Files
why3/bench/java/expected/ForLoop.java

18 lines
304 B
Java
Raw Permalink Normal View History

2022-05-13 10:53:00 +02:00
/* This file has been extracted from module ForLoop. */
import java.util.Arrays;
public class ForLoop {
public static boolean allEqualTo(int [] a, int x) {
for (int i = 0; i <= (a.length) - 1; i++) {
if (!(a[i] == x)) {
return false;
}
}
return true;
}
}