lks9 / src-tracer

Other
0 stars 0 forks source link

switch leads to unsat state #1

Closed ducorduck closed 1 year ago

ducorduck commented 1 year ago

While testing with the switch.c code i've found out that the final state that we get after the replay is unsatisfiable and it is most likely that the constraint that is added in line 109 (to add constraint that the switch variable is equal with the recorded value) made the state unsatisfiable. I've try to look for the constraint given for that variable after the replay but i could figure out how to do that therefore i'm quite stuck at this point.

to replicate the bug you just need to record the switchi.c program (run with ./switchi) and replay. The state we get after the replay is unsatisfiable (state.solver.satisfiable() returns False)

lks9 commented 1 year ago

This should be fixed by a6545c6d403aef6e0b0d225d2f11958b525c3c39. I forgot to add a .resolved

Thx!