z3str / Z3-str

A Z3-Based String Constraint Solver
Other
87 stars 13 forks source link

strange dead code in genUnrollConditionalOptions() #3

Open mtrberzi opened 9 years ago

mtrberzi commented 9 years ago

in strRegex.cpp:

line 397 in genUnrollConditionalOptions() is a return statement, followed by some code on line 400: litems.push_back(Z3_mk_eq(ctx, tester, moreAst));

Because of the return statement, line 400 is dead code. Perhaps this relates to the addAxiom call that was commented out on line 396?

The same line of code is also present in the else branch of the conditional at line 409.