Saltar a contenido

PaymentLifecycle

TLC reached 194,013 states, more than the chart budget of 500, so the chart draws only the bug paths: 4 states and 6 arrows.

OnlyIntentSetReachesAPerson breaks

TLC's counterexample is in tlc-OnlyIntentSetReachesAPerson.out. It has 14 steps: 0. No payment yet; POS heard nothing 1. the POS sends trxpago: Waiting for the wallet; POS heard nothing 2. the wallet pays: Waiting for the wallet; POS heard nothing 3. the wallet's notification is applied: Approved sale; POS heard nothing 4. time passes: Approved sale; POS heard nothing 5. the gateway answers trxpago: Approved sale; POS heard nothing; intent recorded 6. the POS times out and the answer is lost: Approved sale; POS heard nothing; intent recorded 7. the POS asks the consulta: Approved sale; POS heard nothing; intent recorded 8. the gateway answers the consulta: Approved sale; POS heard nothing; intent recorded 9. the POS times out and the answer is lost: Approved sale; POS heard nothing; intent recorded 10. the POS asks the consulta: Approved sale; POS heard nothing; intent recorded 11. the gateway answers the consulta: Approved sale; POS heard nothing; intent recorded 12. the POS times out and the answer is lost: Approved sale; POS heard nothing; intent recorded 13. time passes: Approved sale; POS heard nothing; intent recorded 14. the POS gives up: Approved sale; POS heard nothing; intent recorded The run stops in "Approved sale; POS heard nothing; intent recorded" forever.

Rules that hold

CodeNeverAnnulsAMarkedSale, ApprovedAnswerHasIntent, NoSaleAnswerIsBacked, AtMostOneReversalPerCharge, NoDeadlock, NoSaleChargeGoesBackOrToAPerson