Skip to content

Commit

Permalink
Changed to get_const_interp to match Java and C# bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
philzook58 authored and NikolajBjorner committed Oct 4, 2019
1 parent bba9d11 commit 0321312
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/ml/z3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1546,8 +1546,7 @@ struct
end

let get_const_interp (x:model) (f:func_decl) =
if FuncDecl.get_arity f <> 0 ||
(sort_kind_of_int (Z3native.get_sort_kind (FuncDecl.gc f) (Z3native.get_range (FuncDecl.gc f) f))) = ARRAY_SORT then
if FuncDecl.get_arity f <> 0 then
raise (Error "Non-zero arity functions and arrays have FunctionInterpretations as a model. Use FuncInterp.")
else
let np = Z3native.model_get_const_interp (gc x) x f in
Expand Down

0 comments on commit 0321312

Please sign in to comment.