[sledge] Change: Strengthen Sh.pure_approx with segment loc non-null

Reviewed By: jvillard

Differential Revision: D22571149

fbshipit-source-id: fca90beb9
master
Josh Berdine 5 years ago committed by Facebook GitHub Bot
parent 96aa56507f
commit 1881e990da

@ -595,9 +595,13 @@ let rec is_empty q =
let rec pure_approx q = let rec pure_approx q =
Formula.andN Formula.andN
( q.pure ( [q.pure]
:: List.map q.djns ~f:(fun djn -> |> fun init ->
Formula.orN (List.map djn ~f:pure_approx) ) ) List.fold ~init q.heap ~f:(fun p seg ->
Formula.dq Term.zero seg.loc :: p )
|> fun init ->
List.fold ~init q.djns ~f:(fun p djn ->
Formula.orN (List.map djn ~f:pure_approx) :: p ) )
let pure_approx q = let pure_approx q =
[%Trace.call fun {pf} -> pf "%a" pp q] [%Trace.call fun {pf} -> pf "%a" pp q]

Loading…
Cancel
Save