Do stuff in pervasives.

This commit is contained in:
Léonard Gérard 2011-02-14 15:22:13 +01:00
parent 86f743318b
commit 979a6cfbd5
2 changed files with 11 additions and 1 deletions

View file

@ -95,4 +95,14 @@ public class Pervasives {
c6 = v6;
}
}
public static int do_stuff(int coeff) {
int x = 13;
for (int i = 0; i < coeff; i++) {
for (int j = 0; j < 1000000; j++) {
x = (x + j) % (x + j/x) + 13;
}
}
return x;
}
}

View file

@ -27,4 +27,4 @@ val fun (or)(bool;bool) returns (bool)
val fun (xor)(bool;bool) returns (bool)
val fun (~-)(int) returns (int)
val fun (~-.)(float) returns (float)
val fun do_stuff(int) returns (int)