/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:7.1.1, Ensure that arithmetic operators can handle special float values
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

/* Restriction c)	With the exception of the equality and non-equality operators, the special value null shall not be used as an operand of expressions (see clause 7.1.3).*/

module Sem_070101_ArithmeticOperators_050 {

type component GeneralComp {
}

testcase TC_Sem_070101_ArithmeticOperators_050() runs on GeneralComp {
	var float v_i := not_a_number;
	var float v_k := -infinity;

	var float v_result := v_i / v_k;	// -infinity special float as denominator and NaN special float as nominator

	if (v_result == not_a_number) { setverdict(pass,"match") }
	else { setverdict(fail,v_result) }


}
control{
    execute(TC_Sem_070101_ArithmeticOperators_050());
}

}
