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

Managed API: Refactoring and formatting.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-23 18:30:51 +00:00
parent edc9dccbcf
commit 7defd469bb
52 changed files with 2006 additions and 1657 deletions

View file

@ -49,10 +49,15 @@ namespace Microsoft.Z3
/// <summary>
/// Apply the probe to a goal.
/// </summary>
public double this[Goal g] { get {
Contract.Requires(g != null);
public double this[Goal g]
{
get
{
Contract.Requires(g != null);
return Apply(g); } }
return Apply(g);
}
}
#region Internal
internal Probe(Context ctx, IntPtr obj)
@ -66,7 +71,7 @@ namespace Microsoft.Z3
Contract.Requires(ctx != null);
}
internal class DecRefQueue : Z3.DecRefQueue
internal class DecRefQueue : IDecRefQueue
{
public override void IncRef(Context ctx, IntPtr obj)
{
@ -77,7 +82,7 @@ namespace Microsoft.Z3
{
Native.Z3_probe_dec_ref(ctx.nCtx, obj);
}
};
};
internal override void IncRef(IntPtr o)
{