AStat/examples/constant/constant_div_zero.c

14 lines
323 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 = 9;
int j = 0;
int x = i / j; // Dividing by zero does not raise an error;
assert(1 == 2); // test the abstract value is bottom
}