projects
/
jpf-core.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Adding new examples and tests: Groovy and Java programs.
[jpf-core.git]
/
examples
/
Rand.groovy
1
class Rand {
2
static void main (String[] args) {
3
println("Groovy model-checking")
4
Random random = new Random(42);
5
6
int a = random.nextInt(10)
7
int b = random.nextInt(10)
8
println("a=" + a)
9
println(" b=" + b)
10
11
int c = a/(b+a -5)
12
println(" c=" + c)
13
}
14
}
15