|
73 | 73 | (global.get $main) |
74 | 74 | (array.new_fixed $arr_unitype 0)))) |
75 | 75 | (func |
76 | | - $reset_cells_export |
77 | | - (export "reset_cells") |
| 76 | + $update_length_export |
| 77 | + (export "update_length") |
78 | 78 | (param $length i32) |
79 | 79 | (result (ref null extern)) |
80 | 80 | (call $unitype_to_js |
81 | | - (call $method_Object_reset_cells |
| 81 | + (call $method_Object_update_length |
82 | 82 | (global.get $main) |
83 | 83 | (array.new_fixed $arr_unitype 1 |
84 | 84 | (call $i32_to_fixnum |
|
155 | 155 | (drop) |
156 | 156 | (global.set $length |
157 | 157 | (ref.i31 |
158 | | - (i32.const 1073741844))) |
| 158 | + (i32.const 1073741839))) |
159 | 159 | (ref.i31 |
160 | 160 | (i32.const 5)) |
161 | 161 | (drop) |
|
336 | 336 | (drop) |
337 | 337 | (local.get $grid)) |
338 | 338 | (func |
339 | | - $method_Object_reset_cells |
| 339 | + $method_Object_update_length |
340 | 340 | (type $method) |
341 | 341 | (param $self (ref $obj)) (param $args (ref $arr_unitype)) |
342 | 342 | (result (ref eq)) |
|
433 | 433 | (local $col (ref eq)) |
434 | 434 | (local $count (ref eq)) |
435 | 435 | (local $neighbor (ref eq)) |
436 | | - (local $607a10a4-ad4c-4e7b-9727-710e2ea2b88e (ref eq)) |
437 | | - (local $b8e6befc-c15f-4c79-8249-7f60cf2bc442 (ref eq)) |
| 436 | + (local $77a1d01d-37a3-43ed-9572-e0ebcd189188 (ref eq)) |
| 437 | + (local $fc65ad19-ade2-4fef-802d-a0d9fc843622 (ref eq)) |
438 | 438 | (local $neighbor_row (ref eq)) |
439 | 439 | (local $neighbor_col (ref eq)) |
440 | 440 | (local $row_lo (ref eq)) |
|
457 | 457 | (local.set $neighbor |
458 | 458 | (ref.i31 |
459 | 459 | (i32.const 5))) |
460 | | - (local.set $607a10a4-ad4c-4e7b-9727-710e2ea2b88e |
| 460 | + (local.set $77a1d01d-37a3-43ed-9572-e0ebcd189188 |
461 | 461 | (ref.i31 |
462 | 462 | (i32.const 5))) |
463 | | - (local.set $b8e6befc-c15f-4c79-8249-7f60cf2bc442 |
| 463 | + (local.set $fc65ad19-ade2-4fef-802d-a0d9fc843622 |
464 | 464 | (ref.i31 |
465 | 465 | (i32.const 5))) |
466 | 466 | (local.set $neighbor_row |
|
493 | 493 | (ref.i31 |
494 | 494 | (i32.const 5)) |
495 | 495 | (drop) |
496 | | - (local.set $607a10a4-ad4c-4e7b-9727-710e2ea2b88e |
| 496 | + (local.set $77a1d01d-37a3-43ed-9572-e0ebcd189188 |
497 | 497 | (array.new_fixed $arr_unitype 8 |
498 | 498 | (array.new_fixed $arr_unitype 2 |
499 | 499 | (call $sub |
|
555 | 555 | (local.get $col) |
556 | 556 | (ref.i31 |
557 | 557 | (i32.const 1073741825)))))) |
558 | | - (local.set $b8e6befc-c15f-4c79-8249-7f60cf2bc442 |
| 558 | + (local.set $fc65ad19-ade2-4fef-802d-a0d9fc843622 |
559 | 559 | (call $i64_to_integer |
560 | 560 | (i64.const 0))) |
561 | 561 | (block $exit_for |
|
564 | 564 | (i32.eq |
565 | 565 | (i32.wrap_i64 |
566 | 566 | (call $integer_to_i64 |
567 | | - (local.get $b8e6befc-c15f-4c79-8249-7f60cf2bc442))) |
| 567 | + (local.get $fc65ad19-ade2-4fef-802d-a0d9fc843622))) |
568 | 568 | (array.len |
569 | 569 | (ref.cast (ref $arr_unitype) |
570 | | - (local.get $607a10a4-ad4c-4e7b-9727-710e2ea2b88e)))) |
| 570 | + (local.get $77a1d01d-37a3-43ed-9572-e0ebcd189188)))) |
571 | 571 | (then |
572 | 572 | (br $exit_for)) |
573 | 573 | (else |
574 | 574 | )) |
575 | 575 | (local.set $neighbor |
576 | 576 | (array.get $arr_unitype |
577 | 577 | (ref.cast (ref $arr_unitype) |
578 | | - (local.get $607a10a4-ad4c-4e7b-9727-710e2ea2b88e)) |
| 578 | + (local.get $77a1d01d-37a3-43ed-9572-e0ebcd189188)) |
579 | 579 | (i32.wrap_i64 |
580 | 580 | (call $integer_to_i64 |
581 | | - (local.get $b8e6befc-c15f-4c79-8249-7f60cf2bc442))))) |
| 581 | + (local.get $fc65ad19-ade2-4fef-802d-a0d9fc843622))))) |
582 | 582 | (local.set $neighbor_row |
583 | 583 | (array.get $arr_unitype |
584 | 584 | (ref.cast (ref $arr_unitype) |
|
708 | 708 | (else |
709 | 709 | (ref.i31 |
710 | 710 | (i32.const 5)))) |
711 | | - (local.set $b8e6befc-c15f-4c79-8249-7f60cf2bc442 |
| 711 | + (local.set $fc65ad19-ade2-4fef-802d-a0d9fc843622 |
712 | 712 | (call $i64_to_integer |
713 | 713 | (i64.add |
714 | 714 | (call $integer_to_i64 |
715 | | - (local.get $b8e6befc-c15f-4c79-8249-7f60cf2bc442)) |
| 715 | + (local.get $fc65ad19-ade2-4fef-802d-a0d9fc843622)) |
716 | 716 | (i64.const 1)))) |
717 | 717 | (br $for))) |
718 | 718 | (ref.i31 |
|
726 | 726 | (result (ref eq)) |
727 | 727 | (local $res (ref eq)) |
728 | 728 | (local $row (ref eq)) |
729 | | - (local $dca73f39-c2ac-4910-9c4a-d6530650ea43 (ref eq)) |
730 | | - (local $83b17551-3626-4499-add9-3dfa9c79b9f6 (ref eq)) |
| 729 | + (local $fc28190d-bc61-4291-a447-dfb424814751 (ref eq)) |
| 730 | + (local $046da16f-be03-495b-8110-ad107b3117ba (ref eq)) |
731 | 731 | (local $res_row (ref eq)) |
732 | 732 | (local $col (ref eq)) |
733 | | - (local $06fb6e1c-a08f-473d-994d-d010f1ad22f3 (ref eq)) |
734 | | - (local $456d4a9f-f5e8-4fb9-b848-e52aefd660a8 (ref eq)) |
| 733 | + (local $12ca7c7f-7111-4282-a577-ea00a4469f80 (ref eq)) |
| 734 | + (local $4f143fc5-8504-4152-a7f5-2e9cc3398204 (ref eq)) |
735 | 735 | (local $alive (ref eq)) |
736 | 736 | (local $living_neighbors (ref eq)) |
737 | 737 | (local $ln3 (ref eq)) |
|
743 | 743 | (local.set $row |
744 | 744 | (ref.i31 |
745 | 745 | (i32.const 5))) |
746 | | - (local.set $dca73f39-c2ac-4910-9c4a-d6530650ea43 |
| 746 | + (local.set $fc28190d-bc61-4291-a447-dfb424814751 |
747 | 747 | (ref.i31 |
748 | 748 | (i32.const 5))) |
749 | | - (local.set $83b17551-3626-4499-add9-3dfa9c79b9f6 |
| 749 | + (local.set $046da16f-be03-495b-8110-ad107b3117ba |
750 | 750 | (ref.i31 |
751 | 751 | (i32.const 5))) |
752 | 752 | (local.set $res_row |
|
755 | 755 | (local.set $col |
756 | 756 | (ref.i31 |
757 | 757 | (i32.const 5))) |
758 | | - (local.set $06fb6e1c-a08f-473d-994d-d010f1ad22f3 |
| 758 | + (local.set $12ca7c7f-7111-4282-a577-ea00a4469f80 |
759 | 759 | (ref.i31 |
760 | 760 | (i32.const 5))) |
761 | | - (local.set $456d4a9f-f5e8-4fb9-b848-e52aefd660a8 |
| 761 | + (local.set $4f143fc5-8504-4152-a7f5-2e9cc3398204 |
762 | 762 | (ref.i31 |
763 | 763 | (i32.const 5))) |
764 | 764 | (local.set $alive |
|
781 | 781 | (ref.i31 |
782 | 782 | (i32.const 5)) |
783 | 783 | (drop) |
784 | | - (local.set $dca73f39-c2ac-4910-9c4a-d6530650ea43 |
| 784 | + (local.set $fc28190d-bc61-4291-a447-dfb424814751 |
785 | 785 | (call $call |
786 | 786 | (global.get $main) |
787 | 787 | (global.get $str_range) |
788 | 788 | (array.new_fixed $arr_unitype 1 |
789 | 789 | (global.get $length)))) |
790 | | - (local.set $83b17551-3626-4499-add9-3dfa9c79b9f6 |
| 790 | + (local.set $046da16f-be03-495b-8110-ad107b3117ba |
791 | 791 | (call $i64_to_integer |
792 | 792 | (i64.const 0))) |
793 | 793 | (block $exit_for |
|
796 | 796 | (i32.eq |
797 | 797 | (i32.wrap_i64 |
798 | 798 | (call $integer_to_i64 |
799 | | - (local.get $83b17551-3626-4499-add9-3dfa9c79b9f6))) |
| 799 | + (local.get $046da16f-be03-495b-8110-ad107b3117ba))) |
800 | 800 | (array.len |
801 | 801 | (ref.cast (ref $arr_unitype) |
802 | | - (local.get $dca73f39-c2ac-4910-9c4a-d6530650ea43)))) |
| 802 | + (local.get $fc28190d-bc61-4291-a447-dfb424814751)))) |
803 | 803 | (then |
804 | 804 | (br $exit_for)) |
805 | 805 | (else |
806 | 806 | )) |
807 | 807 | (local.set $row |
808 | 808 | (array.get $arr_unitype |
809 | 809 | (ref.cast (ref $arr_unitype) |
810 | | - (local.get $dca73f39-c2ac-4910-9c4a-d6530650ea43)) |
| 810 | + (local.get $fc28190d-bc61-4291-a447-dfb424814751)) |
811 | 811 | (i32.wrap_i64 |
812 | 812 | (call $integer_to_i64 |
813 | | - (local.get $83b17551-3626-4499-add9-3dfa9c79b9f6))))) |
| 813 | + (local.get $046da16f-be03-495b-8110-ad107b3117ba))))) |
814 | 814 | (local.set $res_row |
815 | 815 | (array.new_fixed $arr_unitype 0)) |
816 | 816 | (ref.i31 |
817 | 817 | (i32.const 5)) |
818 | 818 | (drop) |
819 | | - (local.set $06fb6e1c-a08f-473d-994d-d010f1ad22f3 |
| 819 | + (local.set $12ca7c7f-7111-4282-a577-ea00a4469f80 |
820 | 820 | (call $call |
821 | 821 | (global.get $main) |
822 | 822 | (global.get $str_range) |
823 | 823 | (array.new_fixed $arr_unitype 1 |
824 | 824 | (global.get $length)))) |
825 | | - (local.set $456d4a9f-f5e8-4fb9-b848-e52aefd660a8 |
| 825 | + (local.set $4f143fc5-8504-4152-a7f5-2e9cc3398204 |
826 | 826 | (call $i64_to_integer |
827 | 827 | (i64.const 0))) |
828 | 828 | (block $exit_for |
|
831 | 831 | (i32.eq |
832 | 832 | (i32.wrap_i64 |
833 | 833 | (call $integer_to_i64 |
834 | | - (local.get $456d4a9f-f5e8-4fb9-b848-e52aefd660a8))) |
| 834 | + (local.get $4f143fc5-8504-4152-a7f5-2e9cc3398204))) |
835 | 835 | (array.len |
836 | 836 | (ref.cast (ref $arr_unitype) |
837 | | - (local.get $06fb6e1c-a08f-473d-994d-d010f1ad22f3)))) |
| 837 | + (local.get $12ca7c7f-7111-4282-a577-ea00a4469f80)))) |
838 | 838 | (then |
839 | 839 | (br $exit_for)) |
840 | 840 | (else |
841 | 841 | )) |
842 | 842 | (local.set $col |
843 | 843 | (array.get $arr_unitype |
844 | 844 | (ref.cast (ref $arr_unitype) |
845 | | - (local.get $06fb6e1c-a08f-473d-994d-d010f1ad22f3)) |
| 845 | + (local.get $12ca7c7f-7111-4282-a577-ea00a4469f80)) |
846 | 846 | (i32.wrap_i64 |
847 | 847 | (call $integer_to_i64 |
848 | | - (local.get $456d4a9f-f5e8-4fb9-b848-e52aefd660a8))))) |
| 848 | + (local.get $4f143fc5-8504-4152-a7f5-2e9cc3398204))))) |
849 | 849 | (local.set $alive |
850 | 850 | (call $eq_eq |
851 | 851 | (array.get $arr_unitype |
|
921 | 921 | (i32.const 1073741824)))) |
922 | 922 | (ref.i31 |
923 | 923 | (i32.const 5)))) |
924 | | - (local.set $456d4a9f-f5e8-4fb9-b848-e52aefd660a8 |
| 924 | + (local.set $4f143fc5-8504-4152-a7f5-2e9cc3398204 |
925 | 925 | (call $i64_to_integer |
926 | 926 | (i64.add |
927 | 927 | (call $integer_to_i64 |
928 | | - (local.get $456d4a9f-f5e8-4fb9-b848-e52aefd660a8)) |
| 928 | + (local.get $4f143fc5-8504-4152-a7f5-2e9cc3398204)) |
929 | 929 | (i64.const 1)))) |
930 | 930 | (br $for))) |
931 | 931 | (ref.i31 |
|
938 | 938 | (local.get $res_row))) |
939 | 939 | (ref.i31 |
940 | 940 | (i32.const 5)) |
941 | | - (local.set $83b17551-3626-4499-add9-3dfa9c79b9f6 |
| 941 | + (local.set $046da16f-be03-495b-8110-ad107b3117ba |
942 | 942 | (call $i64_to_integer |
943 | 943 | (i64.add |
944 | 944 | (call $integer_to_i64 |
945 | | - (local.get $83b17551-3626-4499-add9-3dfa9c79b9f6)) |
| 945 | + (local.get $046da16f-be03-495b-8110-ad107b3117ba)) |
946 | 946 | (i64.const 1)))) |
947 | 947 | (br $for))) |
948 | 948 | (ref.i31 |
|
1617 | 1617 | (i32.const 114) |
1618 | 1618 | (i32.const 105) |
1619 | 1619 | (i32.const 100))) |
1620 | | -(global $str_reset_cells |
| 1620 | +(global $str_update_length |
1621 | 1621 | (ref $str) |
1622 | | - (array.new_fixed $str 11 |
1623 | | - (i32.const 114) |
1624 | | - (i32.const 101) |
1625 | | - (i32.const 115) |
1626 | | - (i32.const 101) |
| 1622 | + (array.new_fixed $str 13 |
| 1623 | + (i32.const 117) |
| 1624 | + (i32.const 112) |
| 1625 | + (i32.const 100) |
| 1626 | + (i32.const 97) |
1627 | 1627 | (i32.const 116) |
1628 | | - (i32.const 95) |
1629 | | - (i32.const 99) |
1630 | 1628 | (i32.const 101) |
| 1629 | + (i32.const 95) |
1631 | 1630 | (i32.const 108) |
1632 | | - (i32.const 108) |
1633 | | - (i32.const 115))) |
| 1631 | + (i32.const 101) |
| 1632 | + (i32.const 110) |
| 1633 | + (i32.const 103) |
| 1634 | + (i32.const 116) |
| 1635 | + (i32.const 104))) |
1634 | 1636 | (global $str_get_cells |
1635 | 1637 | (ref $str) |
1636 | 1638 | (array.new_fixed $str 9 |
|
1747 | 1749 | (global.get $str_grid) |
1748 | 1750 | (ref.func $method_Object_grid)) |
1749 | 1751 | (struct.new $alist_str_method_pair |
1750 | | - (global.get $str_reset_cells) |
1751 | | - (ref.func $method_Object_reset_cells)) |
| 1752 | + (global.get $str_update_length) |
| 1753 | + (ref.func $method_Object_update_length)) |
1752 | 1754 | (struct.new $alist_str_method_pair |
1753 | 1755 | (global.get $str_get_cells) |
1754 | 1756 | (ref.func $method_Object_get_cells)) |
|
0 commit comments