Commit 6c723ed
committed
Merge #859: typeck: clean up data structures
f3ea32c typeck: fix mistake in previous correction to thresh exec_stack_count (Andrew Poelstra)
1e6aead add unit tests for recent typeck bug fixes (Andrew Poelstra)
5f0072c typeck: move opcode limits into sat/dissat limits (Andrew Poelstra)
f57cac0 typeck: pull satisfaction/dissatisfaction limits into struct (Andrew Poelstra)
Pull request description:
These simple commits just collect some related data into common data structures, allowing satisfaction/dissatisfaction data to all be `Option`al at once without any debug_asserts, and simplifying a bunch of code.
This makes a couple obscure fixes that are not detected by tests and we have never received reports about. See the commit message for the first commit for details. With Claude 4's help I added unit tests for these and tweaked the fixes since my initial fixes didn't seem quite right.
ACKs for top commit:
sanket1729:
utACK f3ea32c
Tree-SHA512: a67f773e87d4bfe1ae9f53a614726445e353e429784b77e1639322ad7c0ee178b883ad76f38de9d89345f1d592cc6e915d92d7b2997a50a9dc862e1392e3828aFile tree
4 files changed
+543
-546
lines changed- src
- miniscript
- types
- policy
4 files changed
+543
-546
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
471 | | - | |
| 470 | + | |
472 | 471 | | |
473 | 472 | | |
474 | 473 | | |
| |||
551 | 550 | | |
552 | 551 | | |
553 | 552 | | |
554 | | - | |
| 553 | + | |
555 | 554 | | |
556 | 555 | | |
557 | 556 | | |
| |||
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
598 | | - | |
599 | | - | |
| 597 | + | |
600 | 598 | | |
601 | 599 | | |
602 | 600 | | |
| |||
688 | 686 | | |
689 | 687 | | |
690 | 688 | | |
691 | | - | |
692 | | - | |
693 | | - | |
| 689 | + | |
| 690 | + | |
694 | 691 | | |
695 | | - | |
| 692 | + | |
696 | 693 | | |
697 | 694 | | |
698 | 695 | | |
| |||
714 | 711 | | |
715 | 712 | | |
716 | 713 | | |
717 | | - | |
718 | | - | |
| 714 | + | |
719 | 715 | | |
720 | 716 | | |
721 | 717 | | |
| |||
787 | 783 | | |
788 | 784 | | |
789 | 785 | | |
790 | | - | |
| 786 | + | |
791 | 787 | | |
792 | 788 | | |
793 | 789 | | |
| |||
812 | 808 | | |
813 | 809 | | |
814 | 810 | | |
815 | | - | |
816 | | - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
817 | 814 | | |
818 | 815 | | |
819 | 816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | | - | |
| 406 | + | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
| 1196 | + | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
1886 | 1933 | | |
1887 | 1934 | | |
1888 | 1935 | | |
| |||
0 commit comments