Closed sangwoo-joh closed 7 years ago
I found https://github.com/Z3Prover/z3/blob/bba005154c2c753f0da108e39eb6abac2b3c7640/src/api/ml/z3.mli#L3243, and maybe is this check-sat-using
for Z3 solver?
This api function consists of Z3_mk_solver_from_tactic
.
But I could not found in Z3 optimizer, neither a function like Z3_mk_optimize_from_tactic
.
It is correct that check-sat-using corresponds to taking a tactic and either applying it directly to check satisfiability or to extract a solver object and then use that.
The Z3_optimizer objects have no integration with tactics. This is due to the somewhat specialized way that optimization is handled in Z3 and few tactics would be able to interoperate with optimization in the current form.
@NikolajBjorner Thank you for your replying.
1) So, is there no way to interoprate Z3 optimizer with tactics in any API?
2) By Z3 binary with a SMT2-format input file, I was able to use (check-sat-using (using-params smt :random-seed 1))
command with some assert-soft
s(i.e. the optimizer). Is this because the way Z3 binary works differs from the way api works internally? I'm confused.
Thank you!
I'm trying to use
check-sat-using
command in OCaml, but I cound not find such api function inz3.mli
. What I'm trying to do is(check-sat-using (using-params smt :random-seed 1))
. Is there any support forcheck-sat-using
in api? Or, if not, is there any plan to support this?