AStat/examples/interval/interval_mul.c

16 lines
332 B
C
Raw Normal View History

2024-05-29 11:47:47 +02:00
/*
* 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, 3);
int j = rand(-10, 20);
int x = i * j;
assert(x >= -30);
assert(x <= 60);
assert(x != -30); //@KO
assert(x != 60); //@KO
}