Skip to content

Commit e7381d7

Browse files
committed
Post-process results to eliminate Unknowns
1 parent 08d5dfa commit e7381d7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

booster/library/Booster/SMT/Interface.hs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,12 @@ checkPredicates ctxt givenPs givenSubst psToCheck
461461
"Check of Given ∧ P and Given ∧ !P produced "
462462
<> pack (show (positive, negative))
463463

464-
pure (positive, negative)
464+
let (positive', negative') =
465+
case (positive, negative) of
466+
(Unsat, _) -> (Unsat, Sat)
467+
(_, Unsat) -> (Sat, Unsat)
468+
_ -> (positive, negative)
469+
Log.logMessage $
470+
"Given ∧ P and Given ∧ !P interpreted as "
471+
<> pack (show (positive', negative'))
472+
pure (positive', negative')

0 commit comments

Comments
 (0)