Commit 3d1d9bd
Fix checks and their ordering in some proofs, update mir-semantics dependency (#134)
* `withdraw_excess_lamports_account` used a wrong error code for the
overflow case
* `withdraw_excess_lamports_mint` skipped checking overflow errors when
the mint auth flag was set
* `transfer_checked` had a stray `assert(result.is_ok())` placed before
some error checks
* `close_account` skipped checking for overflow when the account was
owned by system or incinerator
Also updates the `mir-semantics` dependency to the latest feature
branch.
---------
Co-authored-by: Daniel Cumming <[email protected]>1 parent f9a2014 commit 3d1d9bd
File tree
3 files changed
+29
-24
lines changed- p-token
- src
- test-properties
3 files changed
+29
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
1818 | | - | |
| 1818 | + | |
| 1819 | + | |
1819 | 1820 | | |
1820 | 1821 | | |
1821 | 1822 | | |
| 1823 | + | |
1822 | 1824 | | |
1823 | 1825 | | |
1824 | 1826 | | |
1825 | 1827 | | |
1826 | 1828 | | |
1827 | 1829 | | |
1828 | 1830 | | |
1829 | | - | |
1830 | | - | |
| 1831 | + | |
| 1832 | + | |
1831 | 1833 | | |
1832 | 1834 | | |
1833 | 1835 | | |
| |||
2042 | 2044 | | |
2043 | 2045 | | |
2044 | 2046 | | |
2045 | | - | |
2046 | | - | |
2047 | 2047 | | |
2048 | 2048 | | |
2049 | 2049 | | |
| |||
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
| 2069 | + | |
2069 | 2070 | | |
2070 | 2071 | | |
2071 | 2072 | | |
| |||
4504 | 4505 | | |
4505 | 4506 | | |
4506 | 4507 | | |
4507 | | - | |
| 4508 | + | |
4508 | 4509 | | |
4509 | 4510 | | |
4510 | 4511 | | |
| |||
4651 | 4652 | | |
4652 | 4653 | | |
4653 | 4654 | | |
4654 | | - | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
4655 | 4658 | | |
4656 | 4659 | | |
4657 | 4660 | | |
4658 | 4661 | | |
4659 | 4662 | | |
4660 | 4663 | | |
4661 | | - | |
| 4664 | + | |
4662 | 4665 | | |
4663 | 4666 | | |
4664 | 4667 | | |
| 4668 | + | |
4665 | 4669 | | |
4666 | 4670 | | |
4667 | 4671 | | |
4668 | | - | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
4669 | 4675 | | |
4670 | | - | |
4671 | 4676 | | |
4672 | 4677 | | |
4673 | | - | |
4674 | 4678 | | |
4675 | 4679 | | |
4676 | 4680 | | |
| |||
Submodule mir-semantics updated 7 files
- kmir/src/kmir/kdist/mir-semantics/lemmas/kmir-lemmas.md+11
- kmir/src/kmir/kdist/mir-semantics/rt/data.md+15
- kmir/src/kmir/kdist/mir-semantics/rt/value.md+6-10
- kmir/src/kmir/kdist/mir-semantics/symbolic/p-token.md+1-1
- kmir/src/kmir/kdist/mir-semantics/symbolic/spl-token.md+133-46
- kmir/src/kmir/kompile.py+132-32
- kmir/src/tests/integration/data/prove-rs/spl_token_domain_data.rs+1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
39 | | - | |
40 | | - | |
41 | 52 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments