/*****************************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:7.1.1, Ensure that the operator precedence is evaluated correctly.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_070101_ArithmeticOperators_025 {

type component GeneralComp {
}

testcase TC_Sem_070101_ArithmeticOperators_025() runs on GeneralComp {
	var integer v_i0 := 20;
	var integer v_i1 := 16;
	var integer v_i2 := 2;
	var integer v_j := 4;
	var integer v_k := 8;

	var integer v_result := v_i0 rem 3-v_j+v_i1/v_i2 mod 3*v_k;

	if (v_result == 14) {
		setverdict(pass);
	} else {
		setverdict(fail);
	}
}
control{
    execute(TC_Sem_070101_ArithmeticOperators_025());
}

}
