8-bit addition overflow counterexample (SMT-LIB2)
Input
{
"produce_model": true,
"produce_unsat_core": false,
"smtlib2": "(set-logic QF_BV)\n(declare-const x (_ BitVec 8))\n(declare-const y (_ BitVec 8))\n; both operands in [100, 200], unsigned\n(assert (and (bvuge x #x64) (bvule x #xc8)))\n(assert (and (bvuge y #x64) (bvule y #xc8)))\n; the 8-bit sum wraps around\n(assert (bvult (bvadd x y) x))\n(check-sat)\n(get-model)\n",
"timeout_ms": 3000
}Output
Build-time verified. stats.elapsed_ms normalized to 0.
{
"model": {
"x": "0x64",
"y": "0xba"
},
"objective_values": null,
"stats": {
"elapsed_ms": 0,
"timed_out": false
},
"unsat_core": null,
"verdict": "sat",
"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_BV)\n(declare-const x (_ BitVec 8))\n(declare-const y (_ BitVec 8))\n; both operands in [100, 200], unsigned\n(assert (and (bvuge x #x64) (bvule x #xc8)))\n(assert (and (bvuge y #x64) (bvule y #xc8)))\n; the 8-bit sum wraps around\n(assert (bvult (bvadd x y) x))\n(check-sat)\n(get-model)\n","produce_model":true,"produce_unsat_core":false,"timeout_ms":3000}'