mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 06:13:40 +00:00
stub out array serialization
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cd324a4734
commit
e1e8d15827
2 changed files with 38 additions and 33 deletions
|
@ -232,11 +232,10 @@ namespace Microsoft.Z3
|
|||
/// </summary>
|
||||
/// <param name="v">A string representing the Term value in decimal notation.</param>
|
||||
/// <returns>A Term with value <paramref name="v"/> and sort Real</returns>
|
||||
public Z3_ast MkReal(string v, Z3_sort realSort)
|
||||
public Z3_ast MkReal(string v)
|
||||
{
|
||||
Debug.Assert(!string.IsNullOrEmpty(v));
|
||||
|
||||
return Native.Z3_mk_numeral(nCtx, v, realSort);
|
||||
return Native.Z3_mk_numeral(nCtx, v, MkRealSort());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -378,11 +377,7 @@ namespace Microsoft.Z3
|
|||
/// <summary>
|
||||
/// Creates a Boolean value.
|
||||
/// </summary>
|
||||
public Z3_ast MkBool(bool value)
|
||||
{
|
||||
|
||||
return value ? MkTrue() : MkFalse();
|
||||
}
|
||||
public Z3_ast MkBool(bool value) => value ? MkTrue() : MkFalse();
|
||||
|
||||
/// <summary>
|
||||
/// Create an expression representing <c>t1 iff t2</c>.
|
||||
|
@ -1166,7 +1161,7 @@ namespace Microsoft.Z3
|
|||
Debug.Assert(v != IntPtr.Zero);
|
||||
|
||||
int result = i = 0;
|
||||
if (Native.Z3_get_numeral_int(nCtx, v, ref result) == 0) ;
|
||||
if (Native.Z3_get_numeral_int(nCtx, v, ref result) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -1197,8 +1192,7 @@ namespace Microsoft.Z3
|
|||
/// Try to get long from AST
|
||||
/// </summary>
|
||||
/// <param name="v"></param>
|
||||
/// <param name=""></param>
|
||||
/// <param name=""></param>
|
||||
/// <param name="i"></param>
|
||||
/// <returns></returns>
|
||||
public bool TryGetNumeralInt64(Z3_ast v, out long i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue