Skip to content

Commit f9fda00

Browse files
committed
Make ValueDomainQueries eval_int speculative
Partitioned array domain evaluates various things which aren't in program.
1 parent a81a94c commit f9fda00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/domains/queries.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,10 @@ struct
550550
end
551551

552552
let to_value_domain_ask (ask: ask) =
553-
let eval_int e = ask.f (EvalInt e) in
553+
let eval_int e =
554+
let@ () = GobRef.wrap AnalysisState.executing_speculative_computations true in
555+
ask.f (EvalInt e)
556+
in
554557
let may_point_to e = ask.f (MayPointTo e) in
555558
let is_multiple v = ask.f (IsMultiple v) in
556559
{ VDQ.eval_int; may_point_to; is_multiple }

0 commit comments

Comments
 (0)