Skip to content

Commit

Permalink
Fix incorrect dumping of expected status for memtrack benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
zafer-esen committed Feb 3, 2024
1 parent c7a6357 commit 896579e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/tricera/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,17 @@ class Main (args: Array[String]) {
// sat if no properties are expected to be false, unsat otherwise
if (propertiesToCheck.forall(propertyToExpected.contains)) {
if (propertyToExpected.filter(
pair => propertiesToCheck.contains(pair._1)).forall(_._2)) "sat"
else {
pair => propertiesToCheck.contains(pair._1)).forall(_._2)) {
if (useMemCleanupForMemTrack &&
propertiesToCheck.contains(properties.MemValidTrack))
propertiesToCheck.contains(properties.MemValidTrack)) {
/**
* memtrack expected might be 'sat', but we check for
* valid-cleanup, which might return unsat
*/
"unknown"
else "unsat"
} else "sat"
}
else "unsat"
} else "unknown"

val smtFileName = if (splitProperties) {
Expand Down

0 comments on commit 896579e

Please sign in to comment.