3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-10 15:20:30 +00:00

Java API: more automatic translation from C#, but still unfinished.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-26 21:03:35 +00:00
parent 75b1278e97
commit 36d9a90d2a
80 changed files with 1439 additions and 1166 deletions

View file

@ -7,6 +7,7 @@ package com.Microsoft.Z3;
import java.math.BigInteger;
import java.util.*;
import java.lang.Exception;
import com.Microsoft.Z3.Enumerations.*;
/* using System; */
@ -32,7 +33,7 @@ import java.lang.Exception;
/**
* Retrieves parameter descriptions for Tactics.
**/
public ParamDescrs ParameterDescriptions() { return new ParamDescrs(Context, Native.tacticGetParamDescrs(Context().nCtx(), NativeObject())); }
public ParamDescrs ParameterDescriptions() { return new ParamDescrs(Context(), Native.tacticGetParamDescrs(Context().nCtx(), NativeObject())); }
/**
@ -43,13 +44,13 @@ import java.lang.Exception;
Context.CheckContextMatch(g);
Context().CheckContextMatch(g);
if (p == null)
return new ApplyResult(Context, Native.tacticApply(Context().nCtx(), NativeObject(), g.NativeObject));
return new ApplyResult(Context(), Native.tacticApply(Context().nCtx(), NativeObject(), g.NativeObject()));
else
{
Context.CheckContextMatch(p);
return new ApplyResult(Context, Native.tacticApplyEx(Context().nCtx(), NativeObject(), g.NativeObject, p.NativeObject));
Context().CheckContextMatch(p);
return new ApplyResult(Context(), Native.tacticApplyEx(Context().nCtx(), NativeObject(), g.NativeObject(), p.NativeObject()));
}
}
@ -72,7 +73,7 @@ import java.lang.Exception;
{
return Context.MkSolver(this);
return Context().MkSolver(this);
}
Tactic(Context ctx, long obj)
@ -99,13 +100,13 @@ import java.lang.Exception;
void IncRef(long o)
{
Context.Tactic_DRQ.IncAndClear(Context, o);
Context().Tactic_DRQ().IncAndClear(Context(), o);
super.IncRef(o);
}
void DecRef(long o)
{
Context.Tactic_DRQ.Add(o);
Context().Tactic_DRQ().Add(o);
super.DecRef(o);
}
}