Over-constrained allocation with unsat core (SMT-LIB2)
Input
{
"produce_model": true,
"produce_unsat_core": true,
"smtlib2": "(set-logic QF_LIA)\n(declare-const cpu_a Int)\n(declare-const cpu_b Int)\n(declare-const cpu_c Int)\n(assert (! (>= cpu_a 2) :named min_a))\n(assert (! (>= cpu_b 3) :named min_b))\n(assert (! (>= cpu_c 1) :named min_c))\n(assert (! (<= cpu_a 4) :named max_a))\n(assert (! (<= (+ cpu_a cpu_b cpu_c) 5) :named capacity))\n(check-sat)\n(get-unsat-core)\n",
"timeout_ms": 3000
}Output
Build-time verified. stats.elapsed_ms normalized to 0.
{
"model": null,
"objective_values": null,
"stats": {
"elapsed_ms": 0,
"timed_out": false
},
"unsat_core": [
"min_a",
"min_b",
"min_c",
"capacity"
],
"verdict": "unsat",
"verified": true
}Request
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/smt -H 'Content-Type: application/json' --data-raw '{"smtlib2":"(set-logic QF_LIA)\n(declare-const cpu_a Int)\n(declare-const cpu_b Int)\n(declare-const cpu_c Int)\n(assert (! (>= cpu_a 2) :named min_a))\n(assert (! (>= cpu_b 3) :named min_b))\n(assert (! (>= cpu_c 1) :named min_c))\n(assert (! (<= cpu_a 4) :named max_a))\n(assert (! (<= (+ cpu_a cpu_b cpu_c) 5) :named capacity))\n(check-sat)\n(get-unsat-core)\n","produce_model":true,"produce_unsat_core":true,"timeout_ms":3000}'