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 Apr 19, 2021
1 parent c10f468 commit 93beaa3
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 @@ -508,16 +508,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 93beaa3

Please sign in to comment.