mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
FPA API: Tied into rest of the API;
added numeral/value handling through existing functions; added trivial .NET example. Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
e14819c1b1
commit
a9840b291f
9 changed files with 104 additions and 52 deletions
|
@ -2022,6 +2022,17 @@ namespace test_mapi
|
|||
// Console.WriteLine("{0}", ctx.MkEq(s1, t1));
|
||||
}
|
||||
|
||||
public static void FloatingPointExample(Context ctx)
|
||||
{
|
||||
Console.WriteLine("FloatingPointExample");
|
||||
|
||||
FPSort s = ctx.MkFPSort(11, 53);
|
||||
Console.WriteLine("Sort: {0}", s);
|
||||
|
||||
FPNum n = (FPNum) ctx.MkNumeral("0.125", s);
|
||||
Console.WriteLine("Numeral: {0}", n.ToString());
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
try
|
||||
|
@ -2063,6 +2074,7 @@ namespace test_mapi
|
|||
FindSmallModelExample(ctx);
|
||||
SimplifierExample(ctx);
|
||||
FiniteDomainExample(ctx);
|
||||
FloatingPointExample(ctx);
|
||||
}
|
||||
|
||||
// These examples need proof generation turned on.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue