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

Managed API: Refactoring

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-27 00:38:19 +00:00
parent d1342ba7a9
commit 8c32f6b015
3 changed files with 6 additions and 6 deletions

View file

@ -110,7 +110,7 @@ namespace Microsoft.Z3
{
Contract.Ensures(Contract.Result<Sort[]>() != null);
var n = DomainSize;
uint n = DomainSize;
Sort[] res = new Sort[n];
for (uint i = 0; i < n; i++)

View file

@ -184,10 +184,10 @@ namespace Microsoft.Z3
{
Tactic t = Context.MkTactic("simplify");
ApplyResult res = t.Apply(this, p);
if (res.NumSubgoals == 0)
return Context.MkGoal();
else
throw new Z3Exception("No subgoals");
else
return res.Subgoals[0];
}

View file

@ -165,8 +165,8 @@ namespace Microsoft.Z3
{
Contract.Ensures(Contract.Result<FuncDecl[]>() != null);
var nFuncs = NumFuncs;
var nConsts = NumConsts;
uint nFuncs = NumFuncs;
uint nConsts = NumConsts;
uint n = nFuncs + nConsts;
FuncDecl[] res = new FuncDecl[n];
for (uint i = 0; i < nConsts; i++)