3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 01:55:32 +00:00

FPA API fixes and examples

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2014-06-11 17:55:31 +01:00
parent ca89b120d3
commit 129e2f5e23
3 changed files with 40 additions and 19 deletions

View file

@ -3533,7 +3533,7 @@ namespace Microsoft.Z3
public FPNum MkFP(double v, FPSort s)
{
Contract.Ensures(Contract.Result<FPNum>() != null);
return new FPNum(this, Native.Z3_mk_double(this.nCtx, v, s.NativeObject));
return new FPNum(this, Native.Z3_mk_fpa_double(this.nCtx, v, s.NativeObject));
}
/// <summary>

View file

@ -129,7 +129,7 @@ extern "C" {
\sa Z3_mk_numeral
def_API('Z3_mk_double', AST, (_in(CONTEXT), _in(DOUBLE), _in(SORT)))
def_API('Z3_mk_fpa_double', AST, (_in(CONTEXT), _in(DOUBLE), _in(SORT)))
*/
Z3_ast Z3_API Z3_mk_fpa_double(__in Z3_context c, __in double v, __in Z3_sort ty);