Skip to content

Commit b5091f1

Browse files
committed
Don't count expected errors towards numberOfErrorsToReport limit
1 parent c3dc27c commit b5091f1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/scala/rules/SymbolicExecutionRules.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import viper.silver.verifier.{Counterexample, CounterexampleTransformer, Model,
1515

1616
trait SymbolicExecutionRules {
1717
protected def createFailure(ve: VerificationError, v: Verifier, s: State, generateNewModel: Boolean = false): Failure = {
18-
if (s.retryLevel == 0) v.errorsReportedSoFar.incrementAndGet()
18+
if (s.retryLevel == 0 && !ve.isExpected) v.errorsReportedSoFar.incrementAndGet()
1919
var ceTrafo: Option[CounterexampleTransformer] = None
2020
val res = ve match {
2121
case ErrorWrapperWithExampleTransformer(wrapped, trafo) =>

0 commit comments

Comments
 (0)