Skip to content
Snippets Groups Projects
Commit f39cfc29 authored by François Bobot's avatar François Bobot
Browse files

[Interp] Fix model fixing

parent 40669599
No related branches found
No related tags found
1 merge request!26Fix and domain propagation
......@@ -470,15 +470,19 @@ module Fix_model = struct
|> (fun s -> s 0)
|> Sequence.to_list |> Sequence.of_list
in
let seq =
Sequence.map seq ~f:(fun v d ->
Egraph.set_env d Data.env (During { r with nextnode });
Debug.dprintf4 debug "FixModel by setting %a to %a"
Node.pp n Value.pp v;
Egraph.register d n;
Egraph.set_value d n v)
in
seq)
if Sequence.is_empty seq then
(* Usually because the limit has been reached *)
Egraph.contradiction d
else
let seq =
Sequence.map seq ~f:(fun v d ->
Egraph.set_env d Data.env (During { r with nextnode });
Debug.dprintf4 debug "FixModel by setting %a to %a"
Node.pp n Value.pp v;
Egraph.register d n;
Egraph.set_value d n v)
in
seq)
in
aux r.nextnode
end
......
;; produced by colibri.drv ;;
(set-logic ALL)
(set-info :smt-lib-version 2.6)
(set-info :status-colibri2 sat)
(set-info :status-colibri2 steplimitreached)
(declare-sort tuple0 0)
;; uncomment to pass the VC to cvc4 or z3
......
;; produced by colibri.drv ;;
(set-logic ALL)
(set-info :smt-lib-version 2.6)
(set-info :status-colibri2 sat)
(set-info :status-colibri2 steplimitreached)
(define-fun mod1 ((x Int) (y Int)) Int (ite (< 0 y) (mod x y) (+ (mod x y) y)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment