3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 14:13:23 +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); Contract.Ensures(Contract.Result<Sort[]>() != null);
var n = DomainSize; uint n = DomainSize;
Sort[] res = new Sort[n]; Sort[] res = new Sort[n];
for (uint i = 0; i < n; i++) for (uint i = 0; i < n; i++)

View file

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

View file

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