Skip to content

Commit

Permalink
[chore] disable some logging
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed Jan 12, 2025
1 parent 0515231 commit f8163f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core/Disequality.ml
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ module Conjunct :
) t Term.VarMap.empty

let recheck env subst t =
log "Conjunct.recheck. %a" pp t;
(* log "Conjunct.recheck. %a" pp t; *)
let rez = M.fold (fun id disj acc ->
try
M.add id (Disjunct.recheck env subst disj) acc
with Disequality_fulfilled -> acc
) t M.empty in
log "rechecked = %a" pp rez;
(* log "rechecked = %a" pp rez; *)
rez

let merge_disjoint env subst =
Expand Down
6 changes: 3 additions & 3 deletions src/core/Subst.ml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ let unify ?(subsume=false) ?(scope=Term.Var.non_local_scope) env subst x y =
(Binding.({var; term})::prefix, subst)
in
let rec helper x y acc =
log "unify '%s' and '%s'" (Term.show x) (Term.show y);
(* log "unify '%s' and '%s'" (Term.show x) (Term.show y); *)
let open Term in
fold2 x y ~init:acc
~fvar:(fun ((_, subst) as acc) x y ->
Expand Down Expand Up @@ -203,8 +203,8 @@ let unify_map env subst map =
let vars, terms =
Term.VarMap.fold (fun v term acc -> (v :: fst acc, term :: snd acc)) map ([],[])
in
log "var = %s" (Term.show (Obj.magic (apply env subst vars)));
log "terms = %s" (Term.show (Obj.magic (apply env subst terms)));
(* log "var = %s" (Term.show (Obj.magic (apply env subst vars))); *)
(* log "terms = %s" (Term.show (Obj.magic (apply env subst terms))); *)
unify env subst (Obj.magic vars) (Obj.magic terms)


Expand Down

0 comments on commit f8163f6

Please sign in to comment.