/*****************************************************************
 ** @author   STF 487 (updated by STF 521)
 ** @version  0.0.2
 ** @purpose  1:22.2.1, null component in the to clause of send operation
 ** @verdict  pass reject
 *****************************************************************/

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

module NegSem_220201_SendOperation_010 {

	type port P message {
		inout integer;
	}

    type component GeneralComp
	{
		port P p;
	}

    testcase TC_NegSem_220201_SendOperation_010() runs on GeneralComp system GeneralComp {
        var GeneralComp v_comp := null;
        connect(self:p, self:p);
		p.send(0) to v_comp;
        p.receive(integer:?);
        setverdict(pass);
    }

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