Z3 (4.13.0) sometimes (non-deterministically) produces invalid optimal models for a simple QFLIA optimization problem.
I tried to create a minimal problem that reproduces the issue. On my linux machine, the following script highlights the error in at most a couple of seconds.
Z3 Version: (4, 13, 0, 0)
0 - OK, optimal value is 4268
1 - OK, optimal value is 4268
2 - OK, optimal value is 4268
[...]
35 - OK, optimal value is 4268
36 - ERROR, optimal value is 4268 but Z3 returned 4459
The returned model is:
[x6 = 3008,
x8 = 3638,
x2 = 206,
maximum = 4459,
x5 = 1466,
x1 = 4268,
x7 = 0,
x3 = 2302,
x4 = 836]
Z3 (4.13.0) sometimes (non-deterministically) produces invalid optimal models for a simple QFLIA optimization problem.
I tried to create a minimal problem that reproduces the issue. On my linux machine, the following script highlights the error in at most a couple of seconds.
The output on my machine is: