Skip to content

Commit

Permalink
Simplifying formulas in literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Jul 28, 2022
1 parent 27ecc5f commit 8445b2e
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 255 deletions.
7 changes: 5 additions & 2 deletions src/lib/frontend/cnf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -519,16 +519,19 @@ let make_form name f loc ~decl_kind =
Util.SNo -> form
| Util.SPreprocess | Util.SAll ->
let module S = SimpExprPreproc () in
(*Format.printf "Simplifying@.";*)
let smp_form = S.simp_expr form in
let () =
(* let () =
(* Emptying the caches modified by the simplifier.
St : This is necessary for having consistent results. *)
Shostak.Combine.empty_cache ();
S.empty_caches () in
S.empty_caches (); () in *)
if SRE.has_changed smp_form then
(*let () = Format.printf "Simplification over: success@." in*)
let exp = SRE.get_expr smp_form in
exp
else begin
(*let () = Format.printf "Simplification over: fail@." in*)
form
end
in
Expand Down
Loading

0 comments on commit 8445b2e

Please sign in to comment.