/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:22.2.3, null address reference in from clause of receive 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_220203_TriggerOperation_016 {

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

    type component GeneralComp
	{
		port P p;
	}

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

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