Skip to content

Commit

Permalink
Debug PathSensitive3 sync Not_found crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Aug 8, 2022
1 parent 4782ccd commit 3c35b20
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/witness/witnessConstraints.ml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,14 @@ struct

let step n c i e = R.singleton ((n, c, i), e)
let step n c i e sync =
SyncSet.fold (fun xsync acc ->
R.join acc (step n c xsync e)
) (Sync.find i sync) (R.bot ())
match Sync.find i sync with
| syncs ->
SyncSet.fold (fun xsync acc ->
R.join acc (step n c xsync e)
) syncs (R.bot ())
| exception Not_found ->
M.debug ~category:Witness ~tags:[Category Analyzer] "PathSensitive3 sync predecessor not found";
R.bot ()
let step_ctx ctx x e =
try
step ctx.prev_node (ctx.context ()) x e (snd ctx.local)
Expand Down

0 comments on commit 3c35b20

Please sign in to comment.