,
if ((a < 5) && b > 10) {
// Do something
} else if ((a >= 5) && (b > 10)){
// handled else condition
} else if((a < 5) && (b <= 10)) {
// handled else condition
}
if ((a < 5) && b > 10) {
// Do something
} else if ((a >= 5) && (b > 10)){
// handled else condition
} else if((a < 5) && (b <= 10)) {
// handled else condition
} else {
/*@ assert false ; */
}
, , , , assert, , , else , , .
, Java ( JML), C ( ACSL) # ( Spe#). , , -, , , , . , , - .
C, Frama-C Jessie:
int a, b;
main(){
if ((a < 5) && b > 10) {
// Do something
} else if ((a >= 5) && (b > 10)){
// handled else condition
} else if((a < 5) && (b <= 10)) {
// handled else condition
} else {
/*@ assert \false ; */
}
}
, , , . } else if ((a >= 5) && (b <= 10)) {, .