<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<org.eventb.core.machineFile ch.ethz.eventb.decomposition.decomposed="false" org.eventb.core.configuration="ch.ethz.eventb.decomposition.mchBase" org.eventb.core.generated="true" version="5">
<org.eventb.core.variable name="'" org.eventb.core.identifier="validCard"/>
<org.eventb.core.variable name="(" org.eventb.core.identifier="cardInAtm"/>
<org.eventb.core.variable name=")" org.eventb.core.identifier="accBalOnAtm"/>
<org.eventb.core.variable name="*" org.eventb.core.identifier="trans"/>
<org.eventb.core.variable name="+" org.eventb.core.identifier="atmCashA"/>
<org.eventb.core.variable name="," org.eventb.core.identifier="atmDepAm"/>
<org.eventb.core.variable name="-" org.eventb.core.identifier="recvRespDep"/>
<org.eventb.core.invariant name="." org.eventb.core.label="typing_atmDepAm" org.eventb.core.predicate="atmDepAm ∈ ℙ(ATM × ℤ)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="/" org.eventb.core.label="typing_atmCashA" org.eventb.core.predicate="atmCashA ∈ ℙ(ATM × ℤ)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="0" org.eventb.core.label="typing_cardInAtm" org.eventb.core.predicate="cardInAtm ∈ ℙ(ATM × CARD)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="1" org.eventb.core.label="typing_trans" org.eventb.core.predicate="trans ∈ ℙ(ATM)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="2" org.eventb.core.label="typing_accBalOnAtm" org.eventb.core.predicate="accBalOnAtm ∈ ℙ(ACCOUNT × ℤ)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="3" org.eventb.core.label="typing_validCard" org.eventb.core.predicate="validCard ∈ ℙ(CARD)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="4" org.eventb.core.label="typing_recvRespDep" org.eventb.core.predicate="recvRespDep ∈ ℙ(ATM)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="5" org.eventb.core.label="Deposit_0_IntegralATM_0_inv4" org.eventb.core.predicate="validCard ⊆  CARD"/>
<org.eventb.core.invariant name="6" org.eventb.core.label="Deposit_1_inv3" org.eventb.core.predicate="cardInAtm ∈ ATM ⇸ CARD"/>
<org.eventb.core.invariant name="7" org.eventb.core.label="Deposit_2_inv8" org.eventb.core.predicate="atmDepAm ∈ ATM ⇸ ℕ"/>
<org.eventb.core.invariant name="8" org.eventb.core.label="Deposit_2_inv10" org.eventb.core.predicate="atmCashA ∈ ATM → ℕ"/>
<org.eventb.core.invariant name="9" org.eventb.core.label="Deposit_2_inv11" org.eventb.core.predicate="accBalOnAtm ∈ ACCOUNT ⇸ ℕ"/>
<org.eventb.core.invariant name=":" org.eventb.core.label="Deposit_2_inv12" org.eventb.core.predicate="∀c· c ∈ ran(cardInAtm) ⇒ c ∈ validCard "/>
<org.eventb.core.event name=";" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="INITIALISATION">
<org.eventb.core.action name="'" org.eventb.core.assignment="validCard ≔ ∅" org.eventb.core.label="act6"/>
<org.eventb.core.action name="(" org.eventb.core.assignment="cardInAtm ≔ ∅" org.eventb.core.label="act7"/>
<org.eventb.core.action name=")" org.eventb.core.assignment="accBalOnAtm ≔ ∅" org.eventb.core.label="act11"/>
<org.eventb.core.action name="*" org.eventb.core.assignment="trans ≔  ∅" org.eventb.core.label="act12"/>
<org.eventb.core.action name="+" org.eventb.core.assignment="atmDepAm ≔ ∅" org.eventb.core.label="act14"/>
<org.eventb.core.action name="," org.eventb.core.assignment="recvRespDep ≔ ∅" org.eventb.core.label="act20"/>
<org.eventb.core.action name="-" org.eventb.core.assignment="atmCashA ≔ ATM × {0}" org.eventb.core.label="act21"/>
</org.eventb.core.event>
<org.eventb.core.event name="=" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="sendReqDeposit">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="c"/>
<org.eventb.core.parameter name="(" org.eventb.core.identifier="am"/>
<org.eventb.core.parameter name=")" org.eventb.core.identifier="a"/>
<org.eventb.core.guard name="2" org.eventb.core.label="typing_c" org.eventb.core.predicate="c ∈ CARD"/>
<org.eventb.core.guard name="3" org.eventb.core.label="typing_am" org.eventb.core.predicate="am ∈ ℤ"/>
<org.eventb.core.guard name="4" org.eventb.core.label="typing_a" org.eventb.core.predicate="a ∈ ATM"/>
<org.eventb.core.guard name="*" org.eventb.core.label="grd2" org.eventb.core.predicate="am ∈ ℕ1"/>
<org.eventb.core.guard name="+" org.eventb.core.label="grd3" org.eventb.core.predicate="c ∈ ran(cardInAtm)"/>
<org.eventb.core.guard name="," org.eventb.core.label="grd4" org.eventb.core.predicate="a ∈ dom(cardInAtm)"/>
<org.eventb.core.guard name="-" org.eventb.core.label="grd5" org.eventb.core.predicate="cardInAtm(a) = c"/>
<org.eventb.core.guard name="." org.eventb.core.label="grd6" org.eventb.core.predicate="c ∈ validCard"/>
<org.eventb.core.guard name="/" org.eventb.core.label="grd9" org.eventb.core.predicate="a ∉ trans"/>
<org.eventb.core.action name="0" org.eventb.core.assignment="trans ≔ trans ∪ {a}" org.eventb.core.label="act2"/>
<org.eventb.core.action name="1" org.eventb.core.assignment="atmDepAm(a) ≔ am" org.eventb.core.label="act3"/>
</org.eventb.core.event>
<org.eventb.core.event name="&gt;" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="recvRespDeposit">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="a"/>
<org.eventb.core.action name="+" org.eventb.core.assignment="recvRespDep ≔ recvRespDep ∪ {a}" org.eventb.core.label="act4"/>
<org.eventb.core.guard name="," org.eventb.core.label="typing_a" org.eventb.core.predicate="a ∈ ATM"/>
</org.eventb.core.event>
<org.eventb.core.event name="?" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="depositATM">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="am"/>
<org.eventb.core.parameter name="(" org.eventb.core.identifier="a"/>
<org.eventb.core.guard name="/" org.eventb.core.label="typing_am" org.eventb.core.predicate="am ∈ ℤ"/>
<org.eventb.core.guard name="0" org.eventb.core.label="typing_a" org.eventb.core.predicate="a ∈ ATM"/>
<org.eventb.core.guard name=")" org.eventb.core.label="grd9" org.eventb.core.predicate="a ∈ dom (atmDepAm)"/>
<org.eventb.core.guard name="*" org.eventb.core.label="grd10" org.eventb.core.predicate="atmDepAm(a) = am"/>
<org.eventb.core.guard name="+" org.eventb.core.label="grd12" org.eventb.core.predicate="a ∈ recvRespDep"/>
<org.eventb.core.action name="," org.eventb.core.assignment="atmCashA(a) ≔ atmCashA(a) + am" org.eventb.core.label="act2"/>
<org.eventb.core.action name="-" org.eventb.core.assignment="trans ≔ trans ∖ {a}" org.eventb.core.label="act5"/>
<org.eventb.core.action name="." org.eventb.core.assignment="recvRespDep ≔ recvRespDep ∖ {a}" org.eventb.core.label="act6"/>
</org.eventb.core.event>
<org.eventb.core.event ch.ethz.eventb.decomposition.external="true" name="@" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="Transfer">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="src_ac"/>
<org.eventb.core.parameter name="(" org.eventb.core.identifier="dest_ac"/>
<org.eventb.core.parameter name=")" org.eventb.core.identifier="am"/>
<org.eventb.core.parameter name="*" org.eventb.core.identifier="c"/>
<org.eventb.core.guard name="3" org.eventb.core.label="typing_c" org.eventb.core.predicate="c ∈ CARD"/>
<org.eventb.core.guard name="4" org.eventb.core.label="typing_am" org.eventb.core.predicate="am ∈ ℤ"/>
<org.eventb.core.guard name="+" org.eventb.core.label="grd1" org.eventb.core.predicate="src_ac ∈ ACCOUNT"/>
<org.eventb.core.guard name="," org.eventb.core.label="grd2" org.eventb.core.predicate="dest_ac ∈ ACCOUNT"/>
<org.eventb.core.guard name="-" org.eventb.core.label="grd3" org.eventb.core.predicate="c ∈ validCard"/>
<org.eventb.core.guard name="/" org.eventb.core.label="grd5" org.eventb.core.predicate="am ∈ ℕ1"/>
<org.eventb.core.guard name="2" org.eventb.core.label="grd8" org.eventb.core.predicate="src_ac ≠ dest_ac"/>
</org.eventb.core.event>
<org.eventb.core.seesContext name="A" org.eventb.core.target="Context_mATM_D"/>
</org.eventb.core.machineFile>
