Skip to content

Commit

Permalink
Fix record syntax to match smtlib
Browse files Browse the repository at this point in the history
  • Loading branch information
perry0513 authored and polgreen committed Mar 19, 2024
1 parent ea90f9b commit f401a7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/scala/VerifierSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ class PrintCexSpec extends AnyFlatSpec {
}
val str1 = ((json \ "property__trivial__1" \ "trace")(1) \ "cache1")(0)
str1 match {
case JString(s) => assert(s.equals("const_record(_rec_valid := false, _rec_value := 0)"))
case JString(s) => assert(s.equals("const-record [_rec_valid := false, _rec_value := 0]"))
case _ => assert(false)
}
}
Expand All @@ -789,7 +789,7 @@ class PrintCexSpec extends AnyFlatSpec {
}
val str1 = ((json \ "property__trivial__1" \ "trace")(1) \ "cache1")(0)
str1 match {
case JString(s) => assert(s.equals("const_record(_rec_valid := false, _rec_value := const(0bv32, [bv4]bv32))"))
case JString(s) => assert(s.equals("const-record [_rec_valid := false, _rec_value := const(0bv32, [bv4]bv32)]"))
case _ => assert(false)
}
}
Expand All @@ -813,7 +813,7 @@ class PrintCexSpec extends AnyFlatSpec {
val json = parse(PrintCexSpec.checkSExprToUclidLang("./test/test-sexpr-uclid-lang-mixed-1.ucl"))
val str0 = ((json \ "property__trivial__1" \ "trace")(1) \ "database")(0)
str0 match {
case JString(s) => assert(s.equals("(const(const_record(_rec_uid := 2, _rec_color := false), [integer]utype_t))[2 -> const_record(_rec_uid := 3, _rec_color := false)]"))
case JString(s) => assert(s.equals("(const(const-record [_rec_uid := 2, _rec_color := false], [integer]utype_t))[2 -> const-record [_rec_uid := 3, _rec_color := false]]"))
case _ => assert(false)
}
}
Expand All @@ -829,7 +829,7 @@ class PrintCexSpec extends AnyFlatSpec {
val json = parse(PrintCexSpec.checkSExprToUclidLang("./test/test-sexpr-uclid-lang-mixed-3.ucl"))
val str0 = ((json \ "property__trivial__1" \ "trace")(1) \ "database")(0)
str0 match {
case JString(s) => assert(s.equals("(const(const_record(_rec_uid := 2, _rec_color := RED), [integer]utype_t))[2 -> const_record(_rec_uid := 3, _rec_color := RED)]"))
case JString(s) => assert(s.equals("(const(const-record [_rec_uid := 2, _rec_color := RED], [integer]utype_t))[2 -> const-record [_rec_uid := 3, _rec_color := RED]]"))
case _ => assert(false)
}
}
Expand Down

0 comments on commit f401a7e

Please sign in to comment.