mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Uncomment loop detection.
This commit is contained in:
parent
e9323a0dbb
commit
38c882e75f
1 changed files with 3 additions and 4 deletions
|
|
@ -308,13 +308,12 @@ namespace vtil
|
|||
{
|
||||
// Determine whether we're in a loop or not.
|
||||
//
|
||||
bool potential_loop = true;
|
||||
bool potential_loop = false;
|
||||
|
||||
// Determine whether this block can be the entry/exit to a loop.
|
||||
//
|
||||
//for ( auto& it : it_list )
|
||||
// potential_loop |= it.block->owner->has_path( it.block, lookup.at.block );
|
||||
//potential_loop &= it_list.size() > 1;
|
||||
for ( auto& next : lookup.at.block->prev )
|
||||
potential_loop |= next->owner->has_path_bwd( next, lookup.at.block );
|
||||
|
||||
// If block does not touch our variable, skip the logic.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue