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 29, 2023
1 parent ffe2288 commit f94836b
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 f94836b

Please sign in to comment.