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

merge commit

Signed-off-by: Miguel Angelo Da Terra Neves <t-mineve@microsoft.com>
This commit is contained in:
Miguel Angelo Da Terra Neves 2017-11-18 15:07:18 -08:00
parent 0d15b6abb7
commit f476f94954
3 changed files with 11 additions and 6 deletions

View file

@ -429,11 +429,12 @@ namespace Microsoft.Z3
var lvl = BacktrackLevel;
BacktrackLevel = uint.MaxValue;
ASTVector r = new ASTVector(Context, Native.Z3_solver_cube(Context.nCtx, NativeObject, lvl));
if (r.Size == 1 && ((Expr)r[0]).IsFalse) {
var v = r.ToBoolExprArray();
if (v.Length == 1 && v[0].IsFalse) {
break;
}
yield return r.ToBoolExprArray();
if (r.Size == 0) {
yield return v;
if (v.Length == 0) {
break;
}
}