mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Changed to get_const_interp to match Java and C# bindings
This commit is contained in:
parent
bba9d11fba
commit
0321312c8d
|
@ -1546,8 +1546,7 @@ struct
|
||||||
end
|
end
|
||||||
|
|
||||||
let get_const_interp (x:model) (f:func_decl) =
|
let get_const_interp (x:model) (f:func_decl) =
|
||||||
if FuncDecl.get_arity f <> 0 ||
|
if FuncDecl.get_arity f <> 0 then
|
||||||
(sort_kind_of_int (Z3native.get_sort_kind (FuncDecl.gc f) (Z3native.get_range (FuncDecl.gc f) f))) = ARRAY_SORT then
|
|
||||||
raise (Error "Non-zero arity functions and arrays have FunctionInterpretations as a model. Use FuncInterp.")
|
raise (Error "Non-zero arity functions and arrays have FunctionInterpretations as a model. Use FuncInterp.")
|
||||||
else
|
else
|
||||||
let np = Z3native.model_get_const_interp (gc x) x f in
|
let np = Z3native.model_get_const_interp (gc x) x f in
|
||||||
|
|
Loading…
Reference in a new issue