AStat/examples/interval/interval_cmp_eq.c
2024-05-29 11:47:47 +02:00

17 lines
No EOL
339 B
C

/*
* Cours "Sémantique et Application à la Vérification de programmes"
*
* Josselin Giet 2021
* Ecole normale supérieure, Paris, France / CNRS / INRIA
*/
void main(){
int i = rand(0, 42);
int j = rand(-10, 20);
if (i == j){
assert(i <= 20);
assert(j >= 0);
assert(i != 20); //@KO
assert(j != 0); //@KO
}
}