Comment simplifier l'expression suivante à l'aide de Z3 Solver?La simplification d'une expression entraîne une temporisation
(declare-const c0 Int)
(declare-const c1 Int)
(declare-const c2 Int)
(assert (let ((a!1 (to_real (+ (* (* 2 c0) c2)
(* (* 2 c0) c1)
(* 2 c1 c2)
(* c0 (- c0 1))
(* c1 (- c1 1))))))
(let ((a!2 (/ (to_real (* (* 2 c0) c2)) a!1)))
(and (or (and (<= c2 1) (>= c2 1) (<= c0 2) (>= c0 2) (<= c1 3) (>= c1 3))
(and (<= c2 1) (>= c2 1) (<= c0 3) (>= c0 3) (<= c1 2) (>= c1 2)))
(= (/ 2.0 15.0) a!2))))
)
(apply (then qe propagate-values (repeat (then ctx-solver-simplify propagate-ineqs) 10)))
Lien: http://rise4fun.com/Z3/u7F7
J'ai essayé toutes les tactiques possibles que je connais et pourtant fini par causer le temps par le solveur. Y a-t-il un moyen d'éviter le temps mort? Est-il supposé retourner faux à Java API?