/*****************************************************************
 ** @author   STF 487 (updated by STF 521)
 ** @version  0.0.2
 ** @purpose  1:22.2.1, incompatible address value in send operation
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// All AddressRef items in the to clause shall be of type address, component or of the
// address type bound to the port type (see clause 6.2.9) of the port instance referenced
// in the send operation.

module NegSem_220201_SendOperation_008 {

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

    type component GeneralComp
	{
		port P p;
	}

    testcase TC_NegSem_220201_SendOperation_008() runs on GeneralComp {
        p.send(1) to "127.0.0.1";
        p.receive(integer:?);
        setverdict(pass);
    }

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