Skip to content

Commit

Permalink
[fix] Fix CachingSolver
Browse files Browse the repository at this point in the history
  • Loading branch information
misonijnik committed Sep 30, 2023
1 parent a0bb3ca commit 390866f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions lib/Solver/CachingSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,11 @@ bool CachingSolver::computeValidity(const Query &query,
if (!solver->impl->computeValidity(query, result))
return false;

switch (result) {
case PValidity::MustBeTrue:
cachedResult = PValidity::MustBeTrue;
break;
case PValidity::MustBeFalse:
cachedResult = PValidity::MustBeFalse;
break;
default:
cachedResult = PValidity::TrueOrFalse;
break;
}
cachedResult = result;
assert(cachedResult != PValidity::None);

cacheInsert(query, cachedResult);

return true;
}

Expand Down

0 comments on commit 390866f

Please sign in to comment.