/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:22.4, null address reference in from clause of check operation
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// No AddressRef shall contain the special value null at the time of the operation.

module NegSem_2204_the_check_operation_002 {

	type port P message {
		inout integer;
        address integer;
	}

    type component GeneralComp
	{
		port P p;
	}

    testcase TC_NegSem_2204_the_check_operation_002() runs on GeneralComp {
        var P.address v_addr1 := 1, v_addr2 := 2, v_addr3 := null;
        p.send(10);
        alt {
            [] p.check (from (v_addr1, v_addr2, v_addr3)) {}
            [] p.check {}
        }
        setverdict(pass);
    }

    control {
        execute(TC_NegSem_2204_the_check_operation_002(), 5.0);
    }
}