mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
fix #7616
This commit is contained in:
parent
d792840739
commit
8138829231
1 changed files with 1 additions and 0 deletions
|
@ -1185,6 +1185,7 @@ extern "C" {
|
|||
Z3_TRY;
|
||||
LOG_Z3_solver_set_initial_value(c, s, var, value);
|
||||
RESET_ERROR_CODE();
|
||||
init_solver(c, s);
|
||||
if (to_expr(var)->get_sort() != to_expr(value)->get_sort()) {
|
||||
SET_ERROR_CODE(Z3_INVALID_USAGE, "variable and value should have same sort");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue