projects
/
IRC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
simplify the program...still crashes
[IRC.git]
/
Robust
/
src
/
Benchmarks
/
oooJava
/
micro4
/
test.java
1
public class Foo {
2
public Foo() {}
3
int f;
4
}
5
6
7
public class test {
8
public static void main( String argv[] ) {
9
long count = 800;
10
int numFoo = 10;
11
12
Foo[] array = new Foo[numFoo];
13
14
for( int i = 0; i < numFoo; i++ ) {
15
array[i] = new Foo();
16
}
17
18
for( long j = 0; j < count; j++ ) {
19
for( int i = 0; i < numFoo; i++ ) {
20
rblock child1 {
21
int x = 2;
22
}
23
24
Foo foo = array[i];
25
26
// a variable fro sib
27
// AND memory dependence
28
rblock child2 {
29
foo.f += x;
30
}
31
}
32
}
33
}
34
}