aboutsummaryrefslogtreecommitdiffstats
path: root/src/trace/smtTrace.ml
diff options
context:
space:
mode:
authorChantal Keller <Chantal.Keller@lri.fr>2019-09-25 18:22:53 +0200
committerChantal Keller <Chantal.Keller@lri.fr>2019-09-25 18:22:53 +0200
commitd35b057995b4940af0e66bb081b3fe3ac7ff97f3 (patch)
treed64f000e89d0125543c29cc2de423038d65f7b33 /src/trace/smtTrace.ml
parenta17e48674bace4df1509b0624bef85128d81afbf (diff)
downloadsmtcoq-d35b057995b4940af0e66bb081b3fe3ac7ff97f3.tar.gz
smtcoq-d35b057995b4940af0e66bb081b3fe3ac7ff97f3.zip
Made SmtCommands independent from VeritSyntax
Made lfsc/* mostly independent from VeritSyntax
Diffstat (limited to 'src/trace/smtTrace.ml')
-rw-r--r--src/trace/smtTrace.ml48
1 files changed, 27 insertions, 21 deletions
diff --git a/src/trace/smtTrace.ml b/src/trace/smtTrace.ml
index 5d9d82d..f397826 100644
--- a/src/trace/smtTrace.ml
+++ b/src/trace/smtTrace.ml
@@ -14,11 +14,14 @@ open SmtMisc
open CoqTerms
open SmtCertif
+
+(** Steps identifiers **)
+
let notUsed = 0
let next_id = ref 0
-let clear () = next_id := 0
+let clear_id () = next_id := 0
let next_id () =
let id = !next_id in
@@ -170,7 +173,7 @@ let order_roots init_index first =
the following clauses reference those clauses instead of the roots *)
let add_scertifs to_add c =
let r = ref c in
- clear (); ignore (next_id ());
+ clear_id (); ignore (next_id ());
while isRoot !r.kind do
ignore (next_id ());
r := next !r;
@@ -498,25 +501,25 @@ let to_coq to_lit interp (cstep,
module MakeOpt (Form:SmtForm.FORM) =
struct
(* Share the certificate building a common clause *)
- let share_value c =
- let tbl = Hashtbl.create 17 in
- let to_lits v = List.map (Form.to_lit) v in
- let process c =
- match c.value with
- | None -> ()
- | Some v ->
- let lits = to_lits v in
- try
- let c' = Hashtbl.find tbl lits in
- set_same c c'
- with Not_found -> Hashtbl.add tbl lits c in
- let r = ref c in
- while !r.next <> None do
- let next = next !r in
- process !r;
- r := next
- done;
- process !r
+ (* let share_value c =
+ * let tbl = Hashtbl.create 17 in
+ * let to_lits v = List.map (Form.to_lit) v in
+ * let process c =
+ * match c.value with
+ * | None -> ()
+ * | Some v ->
+ * let lits = to_lits v in
+ * try
+ * let c' = Hashtbl.find tbl lits in
+ * set_same c c'
+ * with Not_found -> Hashtbl.add tbl lits c in
+ * let r = ref c in
+ * while !r.next <> None do
+ * let next = next !r in
+ * process !r;
+ * r := next
+ * done;
+ * process !r *)
(* Sharing of the common prefix *)
@@ -593,3 +596,6 @@ module MakeOpt (Form:SmtForm.FORM) =
done
end
+
+
+let clear () = clear_id ()