/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:22.2.2, 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_220202_ReceiveOperation_016 {

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

    type component GeneralComp
	{
		port P p;
	}

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

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