<?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="bal"/>
<org.eventb.core.variable name="(" org.eventb.core.identifier="cardAcct"/>
<org.eventb.core.variable name=")" org.eventb.core.identifier="atmCash"/>
<org.eventb.core.variable name="*" org.eventb.core.identifier="processedDep"/>
<org.eventb.core.variable name="+" org.eventb.core.identifier="cardInAtmB"/>
<org.eventb.core.variable name="," org.eventb.core.identifier="atmDepAmB"/>
<org.eventb.core.variable name="-" org.eventb.core.identifier="recvReqDep"/>
<org.eventb.core.invariant name="." org.eventb.core.label="typing_recvReqDep" org.eventb.core.predicate="recvReqDep ∈ ℙ(ATM)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="/" org.eventb.core.label="typing_atmDepAmB" org.eventb.core.predicate="atmDepAmB ∈ ℙ(ATM × ℤ)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="0" org.eventb.core.label="typing_bal" org.eventb.core.predicate="bal ∈ ℙ(ACCOUNT × ℤ)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="1" org.eventb.core.label="typing_cardInAtmB" org.eventb.core.predicate="cardInAtmB ∈ ℙ(ATM × CARD)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="2" org.eventb.core.label="typing_processedDep" org.eventb.core.predicate="processedDep ∈ ℙ(ATM)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="3" org.eventb.core.label="typing_atmCash" org.eventb.core.predicate="atmCash ∈ ℙ(ATM × ℤ)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="4" org.eventb.core.label="typing_cardAcct" org.eventb.core.predicate="cardAcct ∈ ℙ(CARD × ACCOUNT)" org.eventb.core.theorem="true"/>
<org.eventb.core.invariant name="5" org.eventb.core.label="Deposit_0_IntegralATM_0_inv1" org.eventb.core.predicate="bal ∈ ACCOUNT ⇸ ℕ"/>
<org.eventb.core.invariant name="6" org.eventb.core.label="Deposit_0_IntegralATM_0_inv2" org.eventb.core.predicate="cardAcct ∈ CARD ⇸ ACCOUNT"/>
<org.eventb.core.invariant name="7" org.eventb.core.label="Deposit_1_inv2" org.eventb.core.predicate="atmCash ∈ ATM → ℕ"/>
<org.eventb.core.invariant name="8" org.eventb.core.label="Deposit_4_inv3" org.eventb.core.predicate="cardInAtmB ∈ ATM ⇸ CARD"/>
<org.eventb.core.invariant name="9" org.eventb.core.label="Deposit_4_inv5" org.eventb.core.predicate="atmDepAmB ∈ ATM ⇸ ℕ"/>
<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="bal ≔ ∅" org.eventb.core.label="act3"/>
<org.eventb.core.action name="(" org.eventb.core.assignment="atmCash ≔ ATM × {0}" org.eventb.core.label="act4"/>
<org.eventb.core.action name=")" org.eventb.core.assignment="cardAcct ≔ ∅" org.eventb.core.label="act8"/>
<org.eventb.core.action name="*" org.eventb.core.assignment="processedDep ≔ ∅" org.eventb.core.label="act15"/>
<org.eventb.core.action name="+" org.eventb.core.assignment="recvReqDep ≔ ∅" org.eventb.core.label="act18"/>
<org.eventb.core.action name="," org.eventb.core.assignment="cardInAtmB ≔ ∅" org.eventb.core.label="act25"/>
<org.eventb.core.action name="-" org.eventb.core.assignment="atmDepAmB ≔ ∅" org.eventb.core.label="act27"/>
</org.eventb.core.event>
<org.eventb.core.event name=";" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="recvReqDeposit">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="a"/>
<org.eventb.core.parameter name="(" org.eventb.core.identifier="am"/>
<org.eventb.core.parameter name=")" org.eventb.core.identifier="c"/>
<org.eventb.core.action name="." org.eventb.core.assignment="recvReqDep ≔ recvReqDep ∪ {a}" org.eventb.core.label="act1"/>
<org.eventb.core.action name="/" org.eventb.core.assignment="atmDepAmB(a) ≔ am" org.eventb.core.label="act5"/>
<org.eventb.core.action name="0" org.eventb.core.assignment="cardInAtmB(a) ≔ c" org.eventb.core.label="act6"/>
<org.eventb.core.guard name="1" org.eventb.core.label="typing_c" org.eventb.core.predicate="c ∈ CARD"/>
<org.eventb.core.guard name="2" org.eventb.core.label="typing_am" org.eventb.core.predicate="am ∈ ℤ"/>
<org.eventb.core.guard name="3" 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="depositB">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="acc"/>
<org.eventb.core.parameter name="(" org.eventb.core.identifier="am"/>
<org.eventb.core.parameter name=")" org.eventb.core.identifier="c"/>
<org.eventb.core.parameter name="*" org.eventb.core.identifier="a"/>
<org.eventb.core.guard name="9" org.eventb.core.label="typing_c" org.eventb.core.predicate="c ∈ CARD"/>
<org.eventb.core.guard name=":" 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="acc ∈ ACCOUNT"/>
<org.eventb.core.guard name="," org.eventb.core.label="grd2" org.eventb.core.predicate="acc ∈ dom(bal)"/>
<org.eventb.core.guard name="-" org.eventb.core.label="grd3" org.eventb.core.predicate="am ∈ ℕ1"/>
<org.eventb.core.guard name="." org.eventb.core.label="grd5" org.eventb.core.predicate="c ↦ acc ∈ cardAcct"/>
<org.eventb.core.guard name="/" org.eventb.core.label="grd6" org.eventb.core.predicate="a ∈ ATM"/>
<org.eventb.core.guard name="0" org.eventb.core.label="grd7" org.eventb.core.predicate="a ∈ dom(atmCash)"/>
<org.eventb.core.guard name="1" org.eventb.core.label="grd8" org.eventb.core.predicate="a ∈ dom(cardInAtmB)"/>
<org.eventb.core.guard name="2" org.eventb.core.label="grd9" org.eventb.core.predicate="cardInAtmB(a) = c"/>
<org.eventb.core.guard name="3" org.eventb.core.label="grd11" org.eventb.core.predicate="a ∈ dom(atmDepAmB)"/>
<org.eventb.core.guard name="4" org.eventb.core.label="grd12" org.eventb.core.predicate="atmDepAmB(a) = am"/>
<org.eventb.core.guard name="5" org.eventb.core.label="grd13" org.eventb.core.predicate="a ∈ recvReqDep"/>
<org.eventb.core.action name="6" org.eventb.core.assignment="bal(acc) ≔ bal(acc) + am" org.eventb.core.label="act1"/>
<org.eventb.core.action name="7" org.eventb.core.assignment="atmCash(a) ≔ atmCash(a) + am" org.eventb.core.label="act2"/>
<org.eventb.core.action name="8" org.eventb.core.assignment="processedDep ≔ processedDep ∪ {a}" org.eventb.core.label="act5"/>
</org.eventb.core.event>
<org.eventb.core.event name="&gt;" org.eventb.core.convergence="0" org.eventb.core.extended="false" org.eventb.core.label="sendRespDeposit">
<org.eventb.core.parameter name="'" org.eventb.core.identifier="a"/>
<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="grd1" org.eventb.core.predicate="a ∈ processedDep"/>
<org.eventb.core.guard name=")" org.eventb.core.label="grd6" org.eventb.core.predicate="a ∈ recvReqDep"/>
<org.eventb.core.guard name="*" org.eventb.core.label="grd2" org.eventb.core.predicate="a ∈ dom(cardInAtmB)"/>
<org.eventb.core.guard name="+" org.eventb.core.label="grd4" org.eventb.core.predicate="a ∈ dom(atmDepAmB)"/>
<org.eventb.core.action name="," org.eventb.core.assignment="processedDep ≔ processedDep ∖ {a}" org.eventb.core.label="act2"/>
<org.eventb.core.action name="-" org.eventb.core.assignment="recvReqDep ≔ recvReqDep ∖ {a}" org.eventb.core.label="act10"/>
<org.eventb.core.action name="." org.eventb.core.assignment="atmDepAmB ≔ {a} ⩤ atmDepAmB" org.eventb.core.label="act8"/>
<org.eventb.core.action name="/" org.eventb.core.assignment="cardInAtmB ≔ {a} ⩤ cardInAtmB" org.eventb.core.label="act9"/>
</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="5" org.eventb.core.label="typing_c" org.eventb.core.predicate="c ∈ CARD"/>
<org.eventb.core.guard name="6" 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="grd4" org.eventb.core.predicate="c ↦ src_ac ∈ cardAcct"/>
<org.eventb.core.guard name="/" org.eventb.core.label="grd5" org.eventb.core.predicate="am ∈ ℕ1"/>
<org.eventb.core.guard name="0" org.eventb.core.label="grd6" org.eventb.core.predicate="src_ac ∈ dom(bal)"/>
<org.eventb.core.guard name="1" org.eventb.core.label="grd7" org.eventb.core.predicate="dest_ac ∈ dom(bal)"/>
<org.eventb.core.guard name="2" org.eventb.core.label="grd8" org.eventb.core.predicate="src_ac ≠ dest_ac"/>
<org.eventb.core.guard name="3" org.eventb.core.label="grd9" org.eventb.core.predicate="am &lt; bal(src_ac)"/>
<org.eventb.core.action name="4" org.eventb.core.assignment="bal ≔  bal  {dest_ac ↦ (bal(dest_ac) + am), src_ac ↦(bal(src_ac) − am)}" org.eventb.core.label="act1"/>
</org.eventb.core.event>
<org.eventb.core.seesContext name="@" org.eventb.core.target="Context_mBank_D"/>
</org.eventb.core.machineFile>
