Skip to content

Commit

Permalink
td3: remove wpoint after narrow is done to make nested (outer) loops …
Browse files Browse the repository at this point in the history
…precise
  • Loading branch information
vogler committed May 21, 2021
1 parent d2adce6 commit cf11c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solvers/td3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ module WP =
) else if term && phase = Widen then (
HM.remove stable x;
(solve[@tailcall]) x Narrow;
);
) else if not space && (not term || phase = Narrow) then (* this makes e.g. nested loops precise, ex. tests/regression/34-localization/01-nested.c - if we do not remove wpoint, the inner loop head will stay a wpoint and widen the outer loop variable. *)
HM.remove wpoint x;
)
and eq x get set =
if tracing then trace "sol2" "eq %a\n" S.Var.pretty_trace x;
Expand Down

0 comments on commit cf11c4b

Please sign in to comment.