Skip to content

Commit 4d980ec

Browse files
committed
Sema: Reset best score for conjunction element
1 parent 73561e8 commit 4d980ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/CSStep.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,10 @@ StepResult ConjunctionStep::resume(bool prevFailed) {
925925
// Rewind back the constraint system information.
926926
ActiveChoice.reset();
927927

928+
// Reset the best score which was updated by `ConstraintSystem::finalize`
929+
// while forming solution(s) for the current element.
930+
CS.solverState->BestScore.reset();
931+
928932
if (CS.isDebugMode())
929933
getDebugLogger() << ")\n";
930934

0 commit comments

Comments
 (0)