[sledge] Add fast path to Sh.simplify for unsat formulas

Reviewed By: jvillard

Differential Revision: D25756571

fbshipit-source-id: e03906ca9
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent d8d8f947d7
commit e9fd3b603d

@ -812,10 +812,14 @@ let rec simplify_ us rev_xss q =
let simplify q =
[%Trace.call fun {pf} -> pf "%a" pp_raw q]
;
let q = freshen_nested_xs q in
let q = propagate_context Var.Set.empty Context.empty q in
let q = simplify_ q.us [] q in
q
( if is_false q then false_ q.us
else
let q = freshen_nested_xs q in
let q = propagate_context Var.Set.empty Context.empty q in
if is_false q then false_ q.us
else
let q = simplify_ q.us [] q in
q )
|>
[%Trace.retn fun {pf} q' ->
pf "%a" pp_raw q' ;

Loading…
Cancel
Save