-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLogging.tla
30 lines (28 loc) · 1.39 KB
/
Logging.tla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
------------------------------ MODULE Logging -------------------------------
EXTENDS ABL_with_partial_repayments, TLC
LoggingVariants ==
\/ /\ "Contract" \in DOMAIN state'.custody
/\ state.B /= state'.B
/\ Print(<<"RR", \* "Regular repayment"
PeriodOf(block'), state'.n, state'.m, state'.path, state'.B,
RegularRepaymentAmount, state'.total_repaid, state'.custody>>,
TRUE)
\/ /\ "Debtor_R" \in DOMAIN state'.custody
/\ Print(<<"RF", \* "Regular repayment final"
PeriodOf(block'), state'.n, state'.m, state'.path,
RegularRepaymentAmount, state'.total_repaid, state'.custody>>,
TRUE)
\/ /\ "Debtor_E" \in DOMAIN state'.custody
/\ Print(<<"ER", \* "Early repayment "
PeriodOf(block'), state'.n, state'.m, state'.path,
EarlyRepaymentAmount, state'.total_repaid, state'.custody>>,
TRUE)
\/ /\ "Creditor" \in DOMAIN state'.custody
/\ Print(<<"CF", \* Collateral forfeiture
PeriodOf(block'), state'.n, state'.m, state'.path,
RegularRepaymentAmount, AmountForCollateralForfeiturePenalty,
state'.total_repaid, state'.custody>>, TRUE)
Logging ==
\/ /\ LoggingVariants
\/ TRUE
=============================================================================