Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main/scala/viper/gobra/reporting/VerifierError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,6 @@ case class InsufficientPermissionToRangeExpressionError(info: Source.Verifier.In
override def localMessage: String = s"Range expression should be immutable inside the loop body"
}

case class MapMakePreconditionError(info: Source.Verifier.Info) extends VerificationError {
override def localId: String = "make_precondition_error"
override def localMessage: String = s"The provided length to ${info.origin.tag.trim} might be negative"
}

case class ShiftPreconditionError(info: Source.Verifier.Info) extends VerificationError {
override def localId: String = "shift_precondition_error"
override def localMessage: String = s"The shift count in ${info.origin.tag.trim} might be negative"
Expand Down Expand Up @@ -533,6 +528,11 @@ case class SpecNotImplementedByClosure(info: Verifier.Info, closure: String, spe
override def message: String = s"$closure might not implement $spec."
}

case class MapMakePreconditionFailed(info: Source.Verifier.Info) extends VerificationErrorReason {
override def id: String = "make_precondition_error"
override def message: String = s"The provided length to ${info.origin.tag.trim} might be negative"
}

sealed trait VerificationErrorClarification {
def message: String
override def toString: String = message
Expand Down
Loading
Loading