Optimisation for mcsat solver

This commit is contained in:
Guillaume Bury 2016-09-23 13:30:51 +02:00
parent 41f1ec0e82
commit 88b8c9f895

View file

@ -52,8 +52,9 @@ let rec iter_aux f = function
f t
let iter_assignable f = function
| { Expr_smt.atom = Expr_smt.Pred p } ->
iter_aux f p;
| { Expr_smt.atom = Expr_smt.Pred { Expr_smt.term = Expr_smt.Var _ } } -> ()
| { Expr_smt.atom = Expr_smt.Pred { Expr_smt.term = Expr_smt.App (_, _, l) } } ->
List.iter (iter_aux f) l;
| { Expr_smt.atom = Expr_smt.Equal (a, b) } ->
iter_aux f a; iter_aux f b