Skip to content

Commit bda847f

Browse files
committed
Initialize working set to first instruction only
All other instructions, if reachable, will be seen via visit. Unreachable instructions should have their states remain bottom.
1 parent 50383ed commit bda847f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/analyses/ai.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ bool ai_baset::fixedpoint(
225225
{
226226
working_sett working_set;
227227

228-
// We will put all locations at least once into the working set.
229-
forall_goto_program_instructions(i_it, goto_program)
230-
put_in_working_set(working_set, i_it);
228+
// Put the first location in the working set
229+
if(!goto_program.empty())
230+
put_in_working_set(
231+
working_set,
232+
goto_program.instructions.begin());
231233

232234
bool new_data=false;
233235

0 commit comments

Comments
 (0)