3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

Java API: Bugfixes and Example.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-27 23:06:35 +00:00
parent 2dab8147f1
commit a9883e972f
13 changed files with 2372 additions and 31 deletions

View file

@ -525,7 +525,7 @@ public class Context extends IDisposable
public Expr MkConst(FuncDecl f) throws Z3Exception
{
return MkApp(f, null);
return MkApp(f, (Expr)null);
}
/**
@ -600,6 +600,17 @@ public class Context extends IDisposable
return (BitVecExpr) MkConst(name, MkBitVecSort(size));
}
/**
* Create a new function application.
**/
public Expr MkApp(FuncDecl f, Expr arg) throws Z3Exception
{
CheckContextMatch(f);
CheckContextMatch(arg);
Expr[] args = { arg };
return Expr.Create(this, f, args);
}
/**
* Create a new function application.
**/
@ -2773,6 +2784,17 @@ public class Context extends IDisposable
return new Probe(this, Native.probeNot(nCtx(), p.NativeObject()));
}
/**
* Creates a new (incremental) solver. <remarks> This solver also uses a set
* of builtin tactics for handling the first check-sat command, and
* check-sat commands that take more than a given number of milliseconds to
* be solved. </remarks>
**/
public Solver MkSolver() throws Z3Exception
{
return MkSolver((Symbol)null);
}
/**
* Creates a new (incremental) solver. <remarks> This solver also uses a set
* of builtin tactics for handling the first check-sat command, and