/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:22.2.3, incompatible from and sender clause
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// If the trigger operation contains both from and sender clause, the variable or parameter
// referenced in the sender clause shall be type compatible with the template in the from
// clause.

module NegSem_220203_TriggerOperation_022 {

    type integer address;

    type port P message {
		inout integer;
	}

    type component GeneralComp {
		port P p;
	}

    testcase TC_NegSem_220203_TriggerOperation_022() runs on GeneralComp {
        var address v_addr;
        p.send(100);
        alt {
            [] p.trigger(integer:?) from GeneralComp:? -> sender v_addr { }
            [else] {}
        }
        setverdict(pass);
    }

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