16 lines
332 B
C
16 lines
332 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, 3);
|
||
|
int j = rand(-10, 20);
|
||
|
int x = i + j;
|
||
|
assert(x >= -10);
|
||
|
assert(x <= 23);
|
||
|
assert(x != -10); //@KO
|
||
|
assert(x != 23); //@KO
|
||
|
}
|