Skip to content

Commit

Permalink
Add failure messages to csv reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
trktby committed Aug 30, 2024
1 parent 395a1a4 commit 287e872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/viper/silver/reporter/Message.scala
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ case class BlockFailureMessage(methodName: String, label: String, pathId: Int) e
override val toString: String = s"block_failure_message(methodName=$methodName, label=$label, pathId=$pathId)"
override val name: String = "block_failure_message"
}

/** Reported when an execution path through a method has completed.
*/
case class PathProcessedMessage(methodName: String, pathId: Int, result: String) extends Message {
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/viper/silver/reporter/Reporter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ case class CSVReporter(name: String = "csv_reporter", path: String = "report.csv
case q: QuantifierChosenTriggersMessage => csv_file.write(s"${q.toString}\n")
case t: VerificationTerminationMessage => csv_file.write(s"${t.toString}\n")
case r: BlockReachedMessage => csv_file.write(s"${r.toString}\n")
case f: BlockFailureMessage => csv_file.write(s"${f.toString}\n")
case p: PathProcessedMessage => csv_file.write(s"${p.toString}\n")
case _ =>
println( s"Cannot properly print message of unsupported type: $msg" )
Expand Down

0 comments on commit 287e872

Please sign in to comment.