Skip to content

Commit

Permalink
Added some printing support.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Mar 4, 2025
1 parent 89a2905 commit e5930a8
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 42 deletions.
1 change: 1 addition & 0 deletions jvm/src/test/scala/org/sireum/anvil/AnvilTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class AnvilTest extends SireumRcSpec {
f.up.mkdirAll()
f.writeOver(p._2.render)
}
reporter.printMessages()
T
case _ => return F
}
Expand Down
12 changes: 12 additions & 0 deletions jvm/src/test/scala/org/sireum/anvil/example/print.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// #Sireum
import org.sireum._

def printTest(): Unit = {
println("Hello world!")
val x = 5
val c = '≡'
val f32 = 0.1f
val f64 = 0.3d
val s = "abc"
println("x = ", x, ", c = ", c, ", f32 = ", f32, ", f64 = ", f64, ", s = ", s)
}
Loading

0 comments on commit e5930a8

Please sign in to comment.