diff --git a/.gitattributes b/.gitattributes index 6825630198..28e1e61e1d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,3 +18,6 @@ research/coordinated-frames-and-entrance-banks/** -text -whitespace # Frozen PR210 package and round-nine evidence retain their audited bytes. research/five-stage-source527-banks/** -text -whitespace research/community-round9-audit/** -text -whitespace + +# Preserve source-pinned R715 proof bytes, including original CRLF. +research/r715-target-factors-banked/** -text -whitespace diff --git a/.github/workflows/r715-target-factors-banked.yml b/.github/workflows/r715-target-factors-banked.yml new file mode 100644 index 0000000000..76073c8d09 --- /dev/null +++ b/.github/workflows/r715-target-factors-banked.yml @@ -0,0 +1,37 @@ +name: Verify banked R715 target factors +on: + push: + paths: + - 'research/r715-target-factors-banked/**' + - '.github/workflows/r715-target-factors-banked.yml' + pull_request: + paths: + - 'research/r715-target-factors-banked/**' + - '.github/workflows/r715-target-factors-banked.yml' +permissions: + contents: read +jobs: + verify: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python: ['3.11', '3.14'] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - run: sudo apt-get update && sudo apt-get install -y libboost-dev + - run: python -m pip install -r research/r715-target-factors-banked/e8-r740-replica32/parent436/requirements.txt + - run: python -B research/r715-target-factors-banked/verify.py "$RUNNER_TEMP/r715-target-factors" + env: + BOOST_INCLUDE: /usr/include + PYTHONDONTWRITEBYTECODE: '1' + - uses: actions/upload-artifact@v4 + if: always() + with: + name: banked-r715-target-factors-${{ matrix.python }} + path: | + ${{ runner.temp }}/r715-target-factors/*.json + ${{ runner.temp }}/r715-target-factors/*.log diff --git a/research/r715-target-factors-banked/EXPECTED.json b/research/r715-target-factors-banked/EXPECTED.json new file mode 100644 index 0000000000..e1da83bdc6 --- /dev/null +++ b/research/r715-target-factors-banked/EXPECTED.json @@ -0,0 +1,76 @@ +{ + "content_sha256": "e2ab3c0c4f25e78f96f14a548a795adaefda5bacbb01cd0ea61950f029aadf63", + "global": { + "template_sha256": "d526b3b08661af3e99d7b4f883dbf40e8625f5a1de645e7784ba9225837fc0bb", + "word_sha256": "7271442372b8b3db5889172397e32a9bbf4e3f37ea79760b26be906dc9ab04d5", + "live": 55920, + "physical": 55929, + "banks_per_stage": 2800, + "entrance_rank_total": 120, + "paid_calls": 1261440, + "rank_mass": 3568896, + "deficit": 9984, + "profile": { + "1": 687456, + "2": 297504, + "3": 73728, + "4": 80352, + "5": 32832, + "6": 17568, + "7": 23328, + "8": 2592, + "14": 15360, + "28": 15360, + "42": 15360 + }, + "local_additions": 15454, + "emitted_events": 5645664, + "emitted_program_sha256": "b2b25c137bdc775afee28ac438804f03919fa5ed7a9cf3989e509d6ec2091932" + }, + "result": { + "bit_lower": "1170229870339438219571/1000000000000000000000000", + "complex_lower": "1183986549206329/1000000000000000000", + "kappa": "1168862033074029/1000000000000000000", + "bit_invoice": { + "prefix_bits": 132, + "charged_prefix_bits": 192, + "coefficient_bits": 132, + "two_level_coefficient_bits": 303, + "charged_two_level_coefficient_bits": 512, + "row_coefficient": 18355, + "live": 55920, + "physical": 55929 + } + }, + "schur": { + "source_canonical_sha256": "cb12976c73d1570bb16d87786ae93d23e607dd9f1aa48abf1eae08247a1b9439", + "candidate_sha256": "e2ab3c0c4f25e78f96f14a548a795adaefda5bacbb01cd0ea61950f029aadf63", + "delta": { + "1": -14, + "4": -14, + "5": 14 + }, + "mutations_rejected": 28 + }, + "operator": { + "formal_registers": 955, + "distinct_projectors": 950, + "exact_nested_transition_pairs": 3414, + "new_target_adds": 140, + "reflected_target_adds": 140 + }, + "bank_owner_audit": { + "status": "PASS_EXPLICIT_R715_BANK_ROUTE_COMPLETIONS", + "helpers": 205920, + "banks": 25200, + "bank_dimensions": 64, + "minimum_local_residual_dimension": 6, + "actual_owner_injection": true, + "complete_disjoint_residual_partition": true, + "maximum_permutation_transpositions": 56, + "paid_extra_route_allowance": 144, + "route_digest": "c514d4b5b16cd646ec5cf6ac9347cac92d25c2097c87ea9796ea5eae4c7a3033", + "word_sha256": "e2ab3c0c4f25e78f96f14a548a795adaefda5bacbb01cd0ea61950f029aadf63", + "template_sha256": "d526b3b08661af3e99d7b4f883dbf40e8625f5a1de645e7784ba9225837fc0bb" + } +} diff --git a/research/r715-target-factors-banked/LICENSE b/research/r715-target-factors-banked/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/r715-target-factors-banked/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/r715-target-factors-banked/MANIFEST.json b/research/r715-target-factors-banked/MANIFEST.json new file mode 100644 index 0000000000..e4118a0d70 --- /dev/null +++ b/research/r715-target-factors-banked/MANIFEST.json @@ -0,0 +1,140 @@ +{ + "SOURCES.json": "afbebac07f69d843d6edddcb4e98025e645b74e794f21fe92ffdbcca758cc284", + "PROOF.md": "e14a7f483c08a55ece1e49d581d5c4f12485a8b13b38c632b1407f30248e4a11", + "EXPECTED.json": "f5876e3d288ff5277cb7c00ad537081c187b75104110729cb87ca981fc009f06", + "LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "README.md": "89d8bd0a1e238e09909cfd9d28c0e04ee46ef350ad17a1d063385f0c4788dcf1", + "verify.py": "4eb0c3b032c2ff64b0d428693181190a7e825f4b94862b3a8a9e93d936d2c7ee", + "NOTICE.md": "19fb501a5412d87edb5d084cf461f8868dc38241659bccc4d2baf93f7fa55520", + "code/operator_audit.py": "eb5bc1526f399001389b3535630e375c4b8097fe52b969a711ad6a8dd75fba57", + "code/mutate_records.py": "db495ff8bca2c9209abf711b2e66bc2b0543b438473b576094983e99252ae931", + "code/bank_owner_audit.py": "8380627b3baa129aab353a1cefc864736181f19d0287fe709ffd9c6b3710b98b", + "code/residual_isometries.py": "c21ef1081d8ccd8c9c8594018239b929740786a0c0166f06f87ca77a2c846bad", + "vendor478/code/schur_constructor.py": "9fe0feee90e6e1333760022d0251104ed3ebc09169ff65d523f518d5afdbcf61", + "vendor478/code/SELECTION473.json": "de9b676ec1006d1d0691165c4a793b91eded27220e93214d7376857a7d344fbe", + "vendor478/bit470/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "vendor478/bit470/NOTICE.md": "158b4c5e47575246e86a43728685a707a7b3156004bb836a3484d9bff0925d7a", + "vendor478/bit470/code/labels.py": "bdd5a517697e68ad5cdae504df890bd62b94df0087550dbfa6e78d22852583c8", + "vendor478/bit470/data/parent473.json": "cb12976c73d1570bb16d87786ae93d23e607dd9f1aa48abf1eae08247a1b9439", + "vendor478/bit470/data/kernel-selection.json": "931b94c0e736703599c0986dd2817a5674c9f3920866ceb79e8f3f56b609f2a4", + "vendor478/bit470/data/mixing.json": "ccdaf957c605b54ad82cfe2e22912fa4b8cc7639405c4b9fa9aac240b87b78a6", + "vendor478/bit470/data/word.json": "e2ab3c0c4f25e78f96f14a548a795adaefda5bacbb01cd0ea61950f029aadf63", + "e8-r740-replica32/PROOF.md": "380a5269e012cb7d54cdf13289b7187aa82c16d23ed1689c5986485398f5cdca", + "e8-r740-replica32/EXPECTED.json": "02f3fd3ac40f17f25822fa49d01ae6e84c2e02e2fafbf24f02845f24e02ec931", + "e8-r740-replica32/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "e8-r740-replica32/SOURCE.json": "20b4bc7418b62a7126fc476b0e8757f713f09dbe03b430048e9f66326688ea88", + "e8-r740-replica32/verify.sh": "3720f542e9cf1ec35b052dec130b9cb6eefa37798f73ba5a4026b400c78d0697", + "e8-r740-replica32/README.md": "86030e96e06e0df02cc775ed1e41122854bc8dba2d1f90eb30b646436028ae5f", + "e8-r740-replica32/MANIFEST.json": "11f8fc7eb52127b078c1d29029ba71a2e1bd3340e9f4d76c92fae1e22511d550", + "e8-r740-replica32/NOTICE.md": "cb5bb6520addd9517672136c5519df4a2c06ed17b8afa1ce24e63855689c114d", + "e8-r740-replica32/parent436/MANIFEST.sha256": "7c6d4bd2ac74710d8a8a68fd637b31df9028a2376b569732374a739092c34310", + "e8-r740-replica32/parent436/EXPECTED.json": "a9655e303cb2c40ce024443b27c0a810ffc24f1ee1e5b07eb19241fad399b5e2", + "e8-r740-replica32/parent436/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "e8-r740-replica32/parent436/requirements.txt": "b9f87c1ec529679c19b8421a7a69b377b54b89949cfc5e1b1ed8c134bfab8917", + "e8-r740-replica32/parent436/SOURCE-pr381.json": "c457c422d54645ad841c8528bf2efa6c253d1c134ee86c875b9b7d76d4f9520c", + "e8-r740-replica32/parent436/SOURCE-pr417.json": "d9b7e606f09b840ed9fe10dc8c8250b4cab9bbe5d0cacb62864ca8366a28b2b1", + "e8-r740-replica32/parent436/SOURCE-pr426.json": "f884cc42793a3afd249ebee20985f61422e7b5baf7c1fcab5b990e1959f31697", + "e8-r740-replica32/parent436/SOURCE-pr386.json": "bba849ed0a1af4d45a76ec734d5f0d07806da2b161f1b5ad8ea63cf2d64b5aa4", + "e8-r740-replica32/parent436/verify.sh": "19bf483b109163b0ccc941f459e70c2e37d20c9c04e69e7c8eb98f329577b26c", + "e8-r740-replica32/parent436/SOURCE-pr431.json": "71cd86e64217fc4db0199ae8e5ef65cb0cc2ed593e15f03bc1501d4b32fdeb66", + "e8-r740-replica32/parent436/README.md": "d737a3b77de97bdf67d2a140465be5b8886af6aa57516f78ad8f2839f3dae8cc", + "e8-r740-replica32/parent436/SOURCE-pr370.json": "352a68f0898535311c63cac879a52b686246ba80844f1a3cc2f3c3f6b1046b4d", + "e8-r740-replica32/parent436/SOURCE-pr425.json": "a2c5e2f0e03b0dbcba4ca18282a4ff390a6a395f14411410cfff42d5281d0289", + "e8-r740-replica32/parent436/SOURCE-pr433.json": "f1181aa9f30dcc2e5df7e94738fa0c0cabe5f56b31c8eb843fa0a257da79ed91", + "e8-r740-replica32/parent436/SOURCE-pr376.json": "1608c15638f874243c3ad00bd6a08b30f0e9608de83002273819365ab300b0e7", + "e8-r740-replica32/parent436/NOTICE.md": "eb9cb7eab03977930484fee70d0aea066803917a6304b1ad2644cfcc6bf2acd4", + "e8-r740-replica32/parent436/portable-include/bits/stdc++.h": "420094be2af295eed03a983dd66debbbe9cfb78d8252859f4498a615a0074b99", + "e8-r740-replica32/parent436/discovery/README.md": "d840952ed60b4b460da83b04c4c8be3622b9bef04b62961c0d496c445f8b84d1", + "e8-r740-replica32/parent436/discovery/search_params.py": "57de04a8ea7e2df8b783e02c454bb102edab48206db0a41a1f28d50e7f164441", + "e8-r740-replica32/parent436/code/provenance.py": "e28fd87d0e34a6f6f6f1fddb6c4891deac220662c954de855d7aa5a7f9cceca4", + "e8-r740-replica32/parent436/code/reuse/controls.py": "89df84f78064de12cd11f0f5f63aa9cad2385f5d18d2e4ade7409a5ae0435721", + "e8-r740-replica32/parent436/code/reuse/ecost.py": "901c61f0a8082fc87012f91372aafbb2a1b464be685426e32e77cc9f0e393958", + "e8-r740-replica32/parent436/code/reuse/reuse.py": "b802483c024d23c92df30f1a2d93838280e39dfa0bd7129b879d6cc0b84c80a4", + "e8-r740-replica32/parent436/code/reuse/regen.py": "972740a54e487b12aebc09f2fab5f2878835727cb4ad82fb1aa26a0f2d34f517", + "e8-r740-replica32/parent436/code/reuse/retime.py": "d8530464a6e00e0a509cf8b392cae70579c8d0f636a0dc86677f5dee0863d34d", + "e8-r740-replica32/parent436/code/bit/mutate_records.py": "b0e75d6550412a7be4017695e6b237392b611bb852ad8ff309d6682c9f166a4e", + "e8-r740-replica32/parent436/code/bit/receipts_k.py": "67f714e10a846e9cc62996342f825cd715055031e0b12591abdafd225717e195", + "e8-r740-replica32/parent436/code/bit/export_records.py": "8a5999601f917dbb492bb9ae9a344611f18cc7cedc53dc3c76496a369e530eb3", + "e8-r740-replica32/parent436/code/bit/producer/e8lib.py": "4f8a6843e83bc4f7055d7337f33dbe12ce499051f46bee1b81bbf6b34c652574", + "e8-r740-replica32/parent436/code/bit/producer/ham1.py": "359040fb432fd392472af6b8f5dca0234dd6c2be744a791df27ba62bc5da5175", + "e8-r740-replica32/parent436/code/bit/producer/params-r865.json": "1256c54debe0a551da8e24896ab73ef0bd4a5233ff8e6fedf21a9e6301d6e6f3", + "e8-r740-replica32/parent436/code/bit/producer/compile2.py": "0e23d4282ceb75768e82631da016aaff9818aec53c7d75a6b2a28ee1b1160dc3", + "e8-r740-replica32/parent436/code/bit/producer/frames.py": "ba71f77dd3e3c1c54f361c066cebe9faadbc78db46376046e7af625bf1de8c24", + "e8-r740-replica32/parent436/code/bit/producer/compile.py": "60fea6a9d6617a3f87376d3fda040642e9cb70e7c179015e03ede8d289f30357", + "e8-r740-replica32/parent436/code/bit/producer/fullword.py": "0daf87599e9e48646b985ad87351c56c1b73cfc99cdf9eca081483846ddbfa90", + "e8-r740-replica32/parent436/code/bit/producer/price.py": "46c858e60ba0a117bf8227b864abf55e85ebee2d56a0dce64472b706499ac405", + "e8-r740-replica32/parent436/code/bit/producer/ham2.py": "fdf0af785ce697bd7f80b4e75f7163735f3b599d9dc42f652f0ffdbdf18ea8bf", + "e8-r740-replica32/parent436/code/bit/checkers/gram_frames.py": "223a5a07731fc315a90a3e48177796babc155c1d9985c7ae5017eff6af2a0608", + "e8-r740-replica32/parent436/code/bit/checkers/tile_k.py": "64255088821f601ede2c3006f08cb97c39a4fa10dbbeb93a8a71fcfa0e1d8d77", + "e8-r740-replica32/parent436/code/bit/checkers/json.hpp": "aaf127c04cb31c406e5b04a63f1ae89369fccde6d8fa7cdda1ed4f32dfc5de63", + "e8-r740-replica32/parent436/code/bit/checkers/legality_h.cpp": "6c1ef2b24e57781d6951c172a1024fc4300e6fd392c9d6672079a7806ab663b3", + "e8-r740-replica32/parent436/code/bit/checkers/finite_k.py": "7e67dc75e63a11e38ac6d6615656c7cf6982e5a33dd404d04b967bf474cad02e", + "e8-r740-replica32/parent436/code/bit/checkers/certify_bit_k.py": "e68a81ef7981a90d613752003cd5cab5351e260f909b094f1668d8a4dfe480df", + "e8-r740-replica32/parent436/code/bit/checkers/columns_k.cpp": "1c344d18fcd494eeca93e259f10cafae7705780e6592f6dcb35b34752dab9bc2", + "e8-r740-replica32/parent436/code/bit/checkers/columns_h.cpp": "d1297f9052be4f2496e1ff2a77e4db2c0cdbd7d460d489b4c03e50bf317238ce", + "e8-r740-replica32/parent436/code/bit/checkers/cost.py": "d55d2b865d1c3d35e343e1a38c592b9172ed8e2596d1107e34d92e2a80c7d03f", + "e8-r740-replica32/parent436/code/bit/checkers/geometry_k.py": "646b7e8773d9c99376cb00627f109a97319e6d72b439ff513c39035c28c3f70f", + "e8-r740-replica32/parent436/code/bit/independent/mutate.py": "0ff65aace5da4b57d96235bf830f8f11969322e75134d498aeb70e9753ec6b0d", + "e8-r740-replica32/parent436/code/bit/independent/checkword.py": "11bf9620ca9db16d52d9fe806b814fc9ec9a89c4d7645354d1861d96f6e805ad", + "e8-r740-replica32/parent436/code/bit/regression/stage_cohort.py": "6c288f6f234b528c1a7c0a4adfb724e91e0fe6b18c8dffad96af3f973de1829a", + "e8-r740-replica32/parent436/code/b4/kappa_b4.py": "cc47efc71334d7d41d6475c5dfc8080a278d3b694b335c6a9873dad4632d1f7e", + "e8-r740-replica32/parent436/code/complex/code/bridged.py": "5fe7174cd3a6580a74e4c1bf8fa7b426e8673f1c285603bf3076d4e758d70731", + "e8-r740-replica32/parent436/code/nine/compose433.py": "27dd61574f1f6921238ff9f57c6fd536e6f0a0983138bc5c99aeb141d3ccc195", + "e8-r740-replica32/parent436/code/nine/certify_g.py": "97a5f7e9bf2202d170da17d5d17d876903641d7d24433115c27ea95b9fe65ccd", + "e8-r740-replica32/parent436/code/nine/audit_g.py": "48ac1d66a406ed72dd9192a19118776ba253f5c90e96185f5c1b98bb670a6361", + "e8-r740-replica32/parent436/code/nine/regress386.py": "bf97418a9aec7c3f55d04d4754e626f17f44aa2059ffd8acd7b315dcf9e89110", + "e8-r740-replica32/parent436/code/nine/global_word_g.py": "ff8d6be2432b79584dc2f2d2bdcd3cefede0d0730d1eecb0a6859dd527f5fce4", + "e8-r740-replica32/parent436/code/nine/geometry.py": "36eeda3184bd009e89462b65c8725d10860c444f8da8f1f87e5f6e50120011ca", + "e8-r740-replica32/parent436/code/nine/cited.py": "b6722d990fba39ef41b3d658326bdde97c25b749a454bda2509fdffeabd31a86", + "e8-r740-replica32/parent436/code/tail/bootstrap.py": "6811203fb7df1ac8a9eee3fbeca722de98dbc99077921fe77e0d452c760f0ffc", + "e8-r740-replica32/parent436/code/tail/e8core.py": "1cb286196c1530d06f50f0997febc5993b388f33464e295611b920ba30a24eeb", + "e8-r740-replica32/parent436/code/tail/apply376.py": "ac49a9a7da44a1e8fbf468c6d8901b5712705d3caa9dd3e0cb89f056f0e67b2a", + "e8-r740-replica32/parent436/code/tail/engines/base_two_moment.py": "aee70c242a2f1d225528fabe2002e1564d1dc884797c07d28a831c7878ee9098", + "e8-r740-replica32/parent436/code/tail/engines/moment.py": "81cbc864e106418fc7854322746f72180cb8110ff39f74450a3b8d55a82c1482", + "e8-r740-replica32/parent436/code/tail/engines/outer.py": "c1ebb52163a7219504c728a5c2b098bf1e50bf20148a2879c5a74c3cadc7c03c", + "e8-r740-replica32/parent436/code/pricing/base_two_moment.py": "aee70c242a2f1d225528fabe2002e1564d1dc884797c07d28a831c7878ee9098", + "e8-r740-replica32/parent436/code/pricing/moment.py": "81cbc864e106418fc7854322746f72180cb8110ff39f74450a3b8d55a82c1482", + "e8-r740-replica32/parent436/code/pricing/prime_witnesses.py": "98cd03bc9582e7bd0ab194c191ea8eea940539e510051443ab9fd3e572a364ab", + "e8-r740-replica32/parent436/code/pricing/outer.py": "c1ebb52163a7219504c728a5c2b098bf1e50bf20148a2879c5a74c3cadc7c03c", + "e8-r740-replica32/parent436/data/complex-b-433.json": "161663bf22c8e6a62e2dce194b326016c11e551f31691140ef34355e9b2e4e92", + "e8-r740-replica32/parent436/data/complex-b-b4.json": "1bdd6a649615ddb6bf7cdf24abd7bb1bbd6cc9284e2aa44f796786310d3e1a3b", + "e8-r740-replica32/parent436/data/complex-b-nine.json": "2815ca568c88edde758c31e756d0d07aa08233243f365bc111383d7f0c1c757a", + "e8-r740-replica32/parent436/data/bit/bitE8-r740.json.gz": "f8daa4982d865748fa9a3095b2cf4290f34e2c085d6d35673fd7171cab95623c", + "e8-r740-replica32/parent436/data/bit/reuse-ledger.json": "e7bb324150a5342076c9a268f69b83c65f817a7cfc1d14fda9558a9f7e486f0b", + "e8-r740-replica32/parent436/data/bit/bitE8-r865.json.gz": "1fb726ea3818fe0837cceb0dd22a71a0814f064e5e781628104610d6468e0e55", + "e8-r740-replica32/parent436/data/controls/pr426-bit-candidate.json.gz": "bd3b84244528767b85d8d7fe423b155630b5c659e21e51563674b1dcb6305ad7", + "e8-r740-replica32/parent436/data/controls/pr417-bitE8-nine-kernel.json.gz": "acc2b138ce16be1ff12570d3ec1634fe28cccaf259de797be0f62628fb37cccb", + "e8-r740-replica32/parent436/data/controls/LICENSE-pr426": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "e8-r740-replica32/parent436/data/controls/pr386/COMBINED.json": "6043a7486790ac8ca04dc67ddf5b57076e7c880b66eb456127c6cd933c77764a", + "e8-r740-replica32/parent436/data/controls/pr386/AUDIT.json": "59625785de14c3df03abe009cdc67c7918b8fcfa8dc5f468c3d363af0494cbb7", + "e8-r740-replica32/parent436/data/controls/pr386/GLOBAL.json": "55af2a11552c04f5a87268bc2d1798246297874e9e87b50e49773e91cc495c2d", + "e8-r740-replica32/parent436/data/controls/pr433/CERTIFICATE.json": "f71580f22193726fb582eae604807ff70a7302265e001d9484a718e63bbe14c4", + "e8-r740-replica32/parent436/data/controls/pr376/LICENSE-pr376": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "e8-r740-replica32/parent436/data/controls/pr376/reuse-selection.json": "0b300bab47cf0d69cbc7965bf01c2a27c96b97677ee651334470d8c968b603f1", + "e8-r740-replica32/parent436/data/controls/pr376/frame-selection.json": "a83d4880579fb1f8cffb701d1d685c157b7fa14ef9d6642e42ff1e4f5a1b8c5c", + "e8-r740-replica32/parent436/data/controls/pr431/VALIDATION-LOCAL.json": "2b77c882ac524adbbacc9775ee172c854ecd4027e36db59ed15a7d1b6b9e1ce5", + "e8-r740-replica32/parent436/data/controls/pr425/FINAL.json": "46ea33ad1979cd14a2b686e8742792739312a07ab72945517c3809b647b31c42", + "e8-r740-replica32/parent436/data/params/params-r740.json": "871fc75ce6fea2638f68553bcfe771d09297e987d59c123338227e29415851d1", + "e8-r740-replica32/code/iface386.py": "1b7c998513759195dee3e82a34c1a46dc3310236530a7f1dfbeefe00f108fc4f", + "e8-r740-replica32/code/config.py": "283d7fad45155ee91e704d63ec947cf4a60aeff5cc43510bc0e835f7da7d8767", + "e8-r740-replica32/code/global_kernel.py": "01cf4be0ab9affe48598062c4ae3610882aa77a9e18e75c4e596e2f08d8b2173", + "e8-r740-replica32/code/e8core.py": "1cb286196c1530d06f50f0997febc5993b388f33464e295611b920ba30a24eeb", + "e8-r740-replica32/code/replica_kernel.py": "780e08ad63983d0256271e8c7803c74bb1623d15cc202d98177c440ff3726aad", + "e8-r740-replica32/code/stages.py": "e73ab7836519510ed30dd7e3022dae557fa50fc513d723197929bff741859668", + "e8-r740-replica32/code/bank_routes.py": "7c6997c455bd55acca3a1603797c34e7733d557c27a7694a1429ff15773a505d", + "e8-r740-replica32/code/audit_kernel.py": "e49f9b499f98dc2938b10e32db28da3e4f38291dc345c0b5e7b906ca2b0cfb9c", + "e8-r740-replica32/code/export249.py": "6d9817f7c431573aff695e1eacfa7c2ca6d3a2a10baa3a2ea814ab9b9f7b13ab", + "e8-r740-replica32/code/compose_kernel.py": "010e081821f20bcf6e097306289031804b2609e5160dba1c743272126ef7472a", + "e8-r740-replica32/code/tile_m.py": "d6ae4a556472d403773cd2117c992bfc10e1187112da1b3893f3fae628a131dd", + "e8-r740-replica32/code/rebuild.py": "3efb6c81a247ac6d5cab87c47030a332292c2c46d482ff996588858f41cdad4d", + "e8-r740-replica32/code/engines/base_two_moment.py": "aee70c242a2f1d225528fabe2002e1564d1dc884797c07d28a831c7878ee9098", + "e8-r740-replica32/code/engines/moment.py": "81cbc864e106418fc7854322746f72180cb8110ff39f74450a3b8d55a82c1482", + "e8-r740-replica32/code/engines/outer.py": "c1ebb52163a7219504c728a5c2b098bf1e50bf20148a2879c5a74c3cadc7c03c", + "e8-r740-replica32/data/word.json.gz": "d8d6d3d3f336720302bc40b3c1504fe3c3583a7a8d707bb9bd7b21f85e5e69c6", + "e8-r740-replica32/data/residual-isometries.json": "e12ed7ddd13cee101ba74a083b54665fd64d0b122b0bad5b83d817dcc8bae9d8", + "e8-r740-replica32/data/post-retiming.json": "d25a636bcebf97b46b01cd39259e8c4f59ab92a188f4cb4bd0b0b34936cf3b56", + "e8-r740-replica32/data/selection.json": "1a96e47f1889bc690316f95a3858b0062ce212ea876dd15e5123ed89d09a9c39", + "e8-r740-replica32/data/retiming.json": "f2b041a33577eebbf47f740ae1d7b94a68f2424de39df0c4ef075fad055c0793", + "e8-r740-replica32/data/upstream441/window-retime-selection.json": "170a2190b6bae36de3a18a8b4c1a152cebd95b839ae889da3049f9d9b0109e30", + "e8-r740-replica32/data/upstream441/pair-retime-selection.json": "201d8cbc8ac1df10ee74246815f3ce8507b94395af69835e8098a8274bca5651" +} diff --git a/research/r715-target-factors-banked/NOTICE.md b/research/r715-target-factors-banked/NOTICE.md new file mode 100644 index 0000000000..b70bf240b5 --- /dev/null +++ b/research/r715-target-factors-banked/NOTICE.md @@ -0,0 +1,48 @@ +# Provenance and assistance + +All retained source material is Apache-2.0. Original notices, license files, +source headers and exact file bytes are preserved. + +* PR443, chafreaky / Chafik Boukhalfa, with OpenAI Codex assistance, head + `5a514e94f156edcc5fd827b87494d962f79d0f6c`: the complete 118-file rank138/R740 + non-hosting package is unchanged in `e8-r740-replica32/`. Its engines, source + pins, predecessor notices and license remain intact. Its full verifier is rerun. +* Dugongue's [PR478](https://github.com/CrocSwap/integer-mult-bounds/pull/478), + head `bea1d52fd330c699903f81612ee58be81697d1eb`, supplies the fourteen target + interval factors, Schur constructor and selection. The constructor blob + `e74f728b33384223ecd2a990ac8a583108b9885c` was independently matched at the + original `Dugongue/integer-mult-bounds` path + `research/tensor-r715-next/code/schur_constructor.py`. Original disclosures + are retained; no AI model is inferred where the source does not identify one. +* The retrieval mirror is Rohan Arun / rohanarun's repository at head + `ab9952829152ff9ad80b17d77369fdb72a8a1f71`, directory + `research/r715-factors-complex79/upstream478`: nine exact blobs are retained + under `vendor478/`. This identifies the exact retrieval source, not authorship + of every mirrored file. They include the rank120 R715 word, its `parent473.json` + input, fourteen-factor constructor and selection, target-label checker, + kernel/mixing selections, notice and license. `SOURCES.json` pins every blob, + preserving original CRLF bytes. Only these local-word components are imported; + hosting schedules and the later complex supplier are not used here. +* R715 carrier/XOR construction and earlier target mixing: DreamingOfClouds, + with Claude Opus 5.5 via Claude Code, and the lineage named in the preserved + `vendor478/bit470/NOTICE.md`. Shared-donor kernels and exact engines retain + the chafreaky and PR417/443 credits. The vendor notice also records historical + hosting and complex contributions; their mention is provenance, not a claim + that this package uses those mechanisms. +* The independent `code/operator_audit.py` is unchanged from eumemic PR #3, + head `2c40e3739468fbb99e86102fd69e5ebb94b725c3`, with OpenAI Codex assistance. + Its historical descriptions remain intact; wrapper arguments and hashes bind + its application here to the R715 input/final pair. +* Further retained lineage includes Dylan Crow, Jacob Sussman, Zhihao Chen / + jacklightChen, icekylinx, eumemic, ai-nanachi and every author named in the + unchanged parent notices. The complex result is cited from icekylinx PR433. + +The present non-hosting R715 composition, explicit 64-dimensional owner audit, +residual witness generator, portable verification wrapper, proof and integration +were prepared for eumemic with substantial OpenAI Codex assistance. The new +record-mutation adapter changes only the inherited frame-corruption selector +to choose a nonzero B frame, ensuring that the corruption is not a no-op. + +All earlier published PR heads and claims remain frozen. Numerical claims here +are finite conditional constructions under the interfaces stated in README.md +and PROOF.md, not unconditional integer-multiplication theorems. diff --git a/research/r715-target-factors-banked/PROOF.md b/research/r715-target-factors-banked/PROOF.md new file mode 100644 index 0000000000..1f3ed75cda --- /dev/null +++ b/research/r715-target-factors-banked/PROOF.md @@ -0,0 +1,149 @@ +# R715 target factors in whole-residual banks + +This finite conditional construction combines a pinned R715 scalar word with +the unchanged non-hosting PR443 global compiler. All original notices and source +pins remain in the package. This integration, proof, wrapper and additional +route audit were prepared for eumemic with substantial OpenAI Codex assistance. + +## Actual scalar word and interval factors + +The pinned `vendor478/bit470/data/parent473.json` is a 715-helper word with total +entrance rank 120. It is an input artifact, not the repaired rank119 final word. +The pinned constructor and selection from Dugongue's PR478 replace fourteen disjoint target intervals +in its B phase. Abstractly, if a receiver gains A and a donor gains B during an +interval, setup replaces u by u+d, the receiver increment becomes A+B, and +recovery adds the current donor d+B. Over F2, + +`(u+d) + (A+B) + (d+B) = u+A`. + +This endpoint identity alone does not establish legality of intermediate reads. +The constructor checks the actual 955 independent input columns, monotone frames, +exact rational ranks, and integer operand support through every intermediate +gate. Each of the 28 omitted setup/recovery controls must fail. It checks that +every word field except B is unchanged and reproduces the published final word +byte-for-byte. The official native checks and the independent operator checker +then replay the concrete result separately. + +The before/after local profile change is `-14[1] -14[4] +14[5]`, preserving rank +mass. The final profile, including nine rank-eight copied totals, is + +`{1:2387, 2:1033, 3:256, 4:279, 5:114, 6:61, 7:1, 8:9}`. + +The final local stream has 15,454 primitive ADDs and 19,603 emitted records in +each orientation. The scalar map fixes sources and arbitrary dirty helpers and +adds each source to its corresponding target. Both copied work and reflected +fresh copies close. Earlier carrier/kernel discovery is not regenerated here; +the pinned words are verified directly. + +## Literal bit address operators + +Over each admitted odd address field, the inherited address matrix for a frame +with orthogonal projector P is + +`D_P = [[I-P,P],[P,I-P]]`. + +In sum/difference coordinates it has blocks I and `R_P=I-2P`, so equality of the +checked R blocks is equality of the doubled address operators. For nested P<=Q, + +`D_(Q-P) D_P = D_Q`, + +and the reflected path uses the same positive child: + +`D_(Q-P) D_(I-Q) = D_(I-P)`. + +Define the pullback `Lambda_P f(z)=f(D_P z)` on arbitrary bit arrays. Its action +depends on the frame and actual address chart. It does not depend on a register's +designation as source, target or helper. Inherited port routes bring operands +to the common local chart. For any two arrays a,b, + +`Lambda_P(a xor b) = Lambda_P(a) xor Lambda_P(b)`. + +The invariant is `physical_r=Lambda_current_r(formal_r)`, with initial formal +array `Lambda_start_r^-1(physical_input_r)`. Exact nested MOVE identities and +common-frame ADD linearity preserve it. The inherited charged COPY/scatter/ERASE +episode transports the temporary between source and scatter labels. Reflected +ERASE becomes a fresh COPY from the unchanged center, followed by transport from +I-F to I at the scatter; copied work closes afterward. + +Thus a scalar map M lifts to +`diag(Lambda_final) M diag(Lambda_start)^-1`. Input and final words have identical +root lines, frame lists, initial/final labels, retained totals and A/C phases; +their scalar maps agree on all 955 columns. They therefore have the same full +local array operator, including arbitrary correlated dirty contents, in both +orientations. There are no new rational frame denominators. Rational projector +identities descend to every field admitted by the original frame witnesses. + +The unchanged `code/operator_audit.py` reconstructs both actual MOVE/ADD +chronologies, checks 950 projectors and 3,414 transition pairs, and checks all +140 target reads per orientation (112 inherited plus 28 new). Its one-/two-cycle +Boolean orbit checks establish the universal common-pullback ADD identity. +The pinned `labels.py` additionally checks actual target-label matrices and small +F3/F2 controls. Those finite controls are not an enumeration of all arrays. +Some unchanged checker descriptions retain their historical PR443 context; +the word hashes and explicit arguments bind this invocation to the R715 word. + +## Whole residuals and explicit physical owners + +For the 715 helper entrances, the residual-width census is +`{6:11, 7:98, 8:606}`, with sum 5,600 and total entrance rank 120. Each entrance +is spanned by coordinate roots. The generated orthogonal basis is therefore a +coordinate permutation divided into entrance and residual rows. The unchanged +bank auditor validates its rational isometry, frame binding and swap factors. + +With 32 replicas, each stage has exactly `32*5600/64=2800` full banks. The unchanged +tiler uses 44 banks of widths `(6,6,6,6,6,6,6,6,8,8)`, 392 banks of widths +`(7,7,7,7,7,7,7,7,8)`, and 2,364 banks of eight width-eight residuals. Every +whole residual has one owner and one disjoint contiguous interval; there is no +padding and no cross-family residual split. + +`code/bank_owner_audit.py` completes each actual residual-to-interval map to a +full 64-dimensional coordinate permutation: map the ordered residual axes to +the interval, then map remaining source axes to remaining target axes in order. +It checks all 205,920 helper occurrences and all 25,200 stage-bank families, +actual `(family, permutation)` owner injection within each call, and full disjoint +coordinate coverage of every bank. The largest completion needs 56 transpositions, +within the already paid extra allowance of 144 route factors. These are explicit +isometries of the inherited form over every odd field; no new route payment is +omitted. The construction does not enumerate the astronomical orthogonal cover. + +At a fixed physical bank owner, the whole residual projectors occupy a partition +of its 64 coordinates. Their literal D operators commute and multiply to D_I. +The all-input local operator identity permits arbitrary correlations left by +earlier calls. This is the inherited whole-bank argument with explicit owner +maps, rather than a clean-helper assumption. + +## Global chronology, price and exact assembly + +The unchanged nine-stage schedule has four data pairs per replica, 288 local +calls, both orientations, 18 bridge shears per port/replica and terminal exchange. +It separately replays the actual local stream on 7,395 unbanked global scalar +columns and validates all global owners and bank lifetimes. Every reflected +COPY rank is freshly computed as eight; no ERASE is inverted. + +Live stock is `8*120*32 + 9*2800 = 55,920`, plus nine private-center reserves for +55,929 physical families. The paid global profile is 288 times the local profile, +plus 23,040 rank-seven idle children and 15,360 each of ranks 14, 28 and 42. +It has 1,261,440 children, mass 3,568,896, and deficit +`64*55920-3568896=9984`. All additions, copies, routes, idle children and bridges +enter the finite invoice. + +The forward/reverse cancellation-free row bounds are 2,008 and 24,120. The +nine-stage prefix uses 132 bits and is charged at 192; the recomputed two-level +coefficient uses 303 bits and fits the inherited 512-bit budget. The largest +child satisfies `2*42^2 < 64^2`. The row coefficient remains 18,355 below the +retained 20,161 allowance. + +Both rational moment engines, including the inherited 10^-16 bad-branch envelope, +certify bit lower endpoint `1170229870339438219571/10^24`. With the cited PR433 +complex endpoint `1183986549206329/10^18`, six bootstrap levels and 47 strict +outer inequalities give conditional + +`kappa = 1168862033074029/10^18 = 0.001168862033074029`. + +The next 10^-18 grid point, zero eta, zero beta and unit beta must fail. The +complex receipt remains a cited input; this package does not rerun its full +phase implementation or introduce a different complex supplier. + +All-size compiler, compressed-window, restored-work, correlated dirty-bank, +tape/common-grid, prime/precision and analytic interfaces remain conditional. +No unconditional multiplication theorem or global optimality is claimed. diff --git a/research/r715-target-factors-banked/README.md b/research/r715-target-factors-banked/README.md new file mode 100644 index 0000000000..a96adc2c29 --- /dev/null +++ b/research/r715-target-factors-banked/README.md @@ -0,0 +1,71 @@ +# Banked R715 target-interval factors + +κ = 0.001168862033074029 + +The exact conditional value is `1168862033074029/10^18`, using bit lower endpoint +`1170229870339438219571/10^24` and the cited PR433 complex lower endpoint +`1183986549206329/10^18`. It improves the earlier non-hosting R740 target-mixing +value `0.001145834572824929` by about 2.01%. Other published packages report +higher numerical values using hosting and/or different complex suppliers; +this package does not claim to exceed those reported numbers. + +This package puts the pinned R715 rank120 scalar word with fourteen target-interval +factors into PR443's independently checked, 32-replica whole-residual banks and +nine-stage schedule. It has 715 helpers, 55,920 live families, 55,929 physical +families, 1,261,440 paid children, rank mass 3,568,896 and deficit 9,984. No helper +residual is split across physical families or placed in idle data storage. + +Dugongue's PR478 constructor regenerates the final fourteen factors from the pinned file +`vendor478/bit470/data/parent473.json` and `vendor478/code/SELECTION473.json`, +then compares the result byte-for-byte with the published UTF-8 scalar word. +This rank120 input is distinct from the repaired rank119 final word associated +with PR473. Reconstruction of the earlier R715 carrier and kernel search is +not claimed; the actual input and final words receive full independent replay. + +## Reproduce + +Python 3.11+, numpy, mpmath, sympy, a C++17 compiler and real Boost headers are +required. From this package directory: + +```sh +python -m pip install -r e8-r740-replica32/parent436/requirements.txt +BOOST_INCLUDE=/path/to/boost python -B verify.py /absolute/fresh/output +``` + +The output directory must be outside the package. `CXX` may select a C++ compiler. +Every pinned upstream byte, including CRLF source files, is preserved. The wrapper +checks the complete manifest and upstream Git blob pins before execution, and +checks that source files and the manifest remain unchanged at completion. + +The complete PR443/436 wrapper is rerun for its parent reconstruction and geometry. +The candidate verifier then rebuilds the fourteen factors, rejects 28 omitted +setup/recovery gates, and compiles the official legality and five-/nine-stage +formal-column checkers for 715 helpers. It runs six nonvacuous record mutations, +Gram/prime checks, full global scalar replay, residual isometries, both reflected +paid ledgers, fourteen global controls, the explicit 64-dimensional bank-owner +audit, both rational moment engines, the finite invoice, six bootstrap levels, +all 47 strict outer inequalities, and four invalid-parameter controls. + +The unchanged independent operator audit checks 950 exact rational projectors, +3,414 forward/reflected transition pairs, all 955 scalar columns and all 140 +target additions per orientation, including 112 inherited reads and 28 new +interval gates. It restores all 715 arbitrary dirty-helper inputs and closes +copied work. Its Boolean orbit cases are exhaustive for one-/two-cycle ADD +commutation; the separate small F3/F2 label checks are finite controls. No +exhaustive replay of all arbitrary array assignments is claimed. + +`EXPECTED.json` binds the complete paid profile, actual word, global template, +bank route digest and exact result. The canonical word is plain JSON. The frozen +global engine receives a deterministic runtime gzip copy generated in the output +directory. Runtime-only geometry timing is normalized to zero before hashing. +Subprocess exits are retained in `STEPS.json`; a failed subprocess also writes +`FAILURE.json`. Success writes `RESULT.json`. + +This is a finite conditional construction within the inherited all-size compiler, +compressed-window, correlated dirty-bank, restored-work, tape/common-grid, +prime/precision and analytic interfaces. The complex supplier is cited through +its pinned PR433 receipt; its complete phase suite is not rerun. No unconditional +integer-multiplication theorem, Lean proof or global optimality is asserted. + +Provenance, licenses and AI disclosures appear in `NOTICE.md`, `SOURCES.json`, and +the unchanged upstream notices. Existing published PR heads and claims are frozen. diff --git a/research/r715-target-factors-banked/SOURCES.json b/research/r715-target-factors-banked/SOURCES.json new file mode 100644 index 0000000000..fdf20bc31e --- /dev/null +++ b/research/r715-target-factors-banked/SOURCES.json @@ -0,0 +1,159 @@ +{ + "parent443": { + "head": "5a514e94f156edcc5fd827b87494d962f79d0f6c", + "repo": "chafreaky/integer-mult-bounds", + "files": { + "e8-r740-replica32/EXPECTED.json": "bab80135968c7f27931d297dd1de7aa46e208af2", + "e8-r740-replica32/LICENSE": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "e8-r740-replica32/MANIFEST.json": "5b72d8bc17fc7e473331ac95373302e1c7c291f8", + "e8-r740-replica32/NOTICE.md": "c47f06f58cf5dcc196a3923417ce7043b85caba9", + "e8-r740-replica32/PROOF.md": "ae1ad94af0f62456d6fb424da4ff0166d5bf3c6c", + "e8-r740-replica32/README.md": "c8e8d3042a30f5dd2980e014c1b28f126f8e1421", + "e8-r740-replica32/SOURCE.json": "405be7ad31739aad043cd988b07d03de909ca62a", + "e8-r740-replica32/code/audit_kernel.py": "5bfcd07320e5870cf603cdf34dd573c2a719fa71", + "e8-r740-replica32/code/bank_routes.py": "9e43a876664a26899762f3b8e9a582e684a3650a", + "e8-r740-replica32/code/compose_kernel.py": "0d92ae7c41045328952bdcd0c4babed9d59ebb0e", + "e8-r740-replica32/code/config.py": "c6824d9c4ea37d58c0d24cb7a3021c4dfcc6f3bb", + "e8-r740-replica32/code/e8core.py": "78983b368715e89fe8524a6dd2c13585d2b5394e", + "e8-r740-replica32/code/engines/base_two_moment.py": "14a90fa0e788217856f070382c9e61bd7c603c61", + "e8-r740-replica32/code/engines/moment.py": "7d697cb45203fe72d97037403d6da41f71f3b7fd", + "e8-r740-replica32/code/engines/outer.py": "43007488ad2c43187c77cc6798beff8b1cd76ad2", + "e8-r740-replica32/code/export249.py": "462a0f121f5363265b02d812cb12bed39e33dc74", + "e8-r740-replica32/code/global_kernel.py": "72856bf507250ee0ce83fcbba5698c5283387858", + "e8-r740-replica32/code/iface386.py": "05d9bab0b497731ee0bab665acf3c9a541d0f88a", + "e8-r740-replica32/code/rebuild.py": "f7239ea69f1de840100e249846ea139607fa2f6b", + "e8-r740-replica32/code/replica_kernel.py": "b61f1d98f27b0dd1d5ca8ad2c0bcf88b1d9094fa", + "e8-r740-replica32/code/stages.py": "9ef95d52f4b2ba0389bb2edb15228da698dd75f4", + "e8-r740-replica32/code/tile_m.py": "cd5fd9b5399f5e7afe5d2a95bd3504bd543c0d60", + "e8-r740-replica32/data/post-retiming.json": "f3306fa80d5aa49c84e36c3ace32673ab5b6915e", + "e8-r740-replica32/data/residual-isometries.json": "9b8b35cb1528a978e209e1098864cae48c57fd93", + "e8-r740-replica32/data/retiming.json": "5769e8a928ff1aa7b8ed249a76574ed449c91a59", + "e8-r740-replica32/data/selection.json": "ef068005b1422ac3cc459232e20108b74568122a", + "e8-r740-replica32/data/upstream441/pair-retime-selection.json": "1b7b7f33ff071d9f474ee6623c8a3fbfd7659646", + "e8-r740-replica32/data/upstream441/window-retime-selection.json": "d816fc0da675ead91188a8e9565c1275c31a18fc", + "e8-r740-replica32/data/word.json.gz": "85390b07e4747feddbf2e16f94b5e0a8a308c191", + "e8-r740-replica32/parent436/EXPECTED.json": "7f5f7f3f9da9864220d4c6ee6bac23010f590d47", + "e8-r740-replica32/parent436/LICENSE": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "e8-r740-replica32/parent436/MANIFEST.sha256": "399beb5da45c2e226ee7320b513f622938c0fdc1", + "e8-r740-replica32/parent436/NOTICE.md": "2c01026b8b300ccc16c313f652f9e46e61617304", + "e8-r740-replica32/parent436/README.md": "5ddb576f02f1e3ef8cfee443bd654ad8cf26b837", + "e8-r740-replica32/parent436/SOURCE-pr370.json": "db86b22e15681b5d120bdc7acd0a1e9cd5e6e363", + "e8-r740-replica32/parent436/SOURCE-pr376.json": "818f17fb6a01e198956b7faffc5d6ce87a0a4bbf", + "e8-r740-replica32/parent436/SOURCE-pr381.json": "042a26c7c2ec22de93dd2aa509a6087e71302f28", + "e8-r740-replica32/parent436/SOURCE-pr386.json": "ac24e5d262d38909a13ecc35fbf7bccb75f977aa", + "e8-r740-replica32/parent436/SOURCE-pr417.json": "33f0ae053c284e12097aaf810c56f7b235c160bc", + "e8-r740-replica32/parent436/SOURCE-pr425.json": "8d9c976b02a418eb2877375f1d83fcac17cc3df7", + "e8-r740-replica32/parent436/SOURCE-pr426.json": "7c72390e09ead086207b74e7d8029e9d14499545", + "e8-r740-replica32/parent436/SOURCE-pr431.json": "00f1075773f5db3d95075d524f412bd79d160c70", + "e8-r740-replica32/parent436/SOURCE-pr433.json": "910a7c34903b855e219a7ff47e48de018db2490d", + "e8-r740-replica32/parent436/code/b4/kappa_b4.py": "402a510e15fc8a3541ddd84d2044e79e288fef89", + "e8-r740-replica32/parent436/code/bit/checkers/certify_bit_k.py": "37ce2ee2b412b3b97a397159f48b912ef893b014", + "e8-r740-replica32/parent436/code/bit/checkers/columns_h.cpp": "00c5a3a5d81d083582f60f33dd2e7bea5049c37f", + "e8-r740-replica32/parent436/code/bit/checkers/columns_k.cpp": "42bb232fbec4de703e70cc13dc2f39a3b43a3a01", + "e8-r740-replica32/parent436/code/bit/checkers/cost.py": "677584c1c6b0e959c19f58521b68d4b3e847f97e", + "e8-r740-replica32/parent436/code/bit/checkers/finite_k.py": "8781815ee6ee663edc0e0afdf1380186594ec913", + "e8-r740-replica32/parent436/code/bit/checkers/geometry_k.py": "2a052980816d9b56b33c5e41132bb7f86286462b", + "e8-r740-replica32/parent436/code/bit/checkers/gram_frames.py": "b740d47295c02692260d7cc01874a49fe48f78ab", + "e8-r740-replica32/parent436/code/bit/checkers/json.hpp": "82d69f7c5d044c9887c96b90c97f5639083ecd14", + "e8-r740-replica32/parent436/code/bit/checkers/legality_h.cpp": "cb1233c7e96b1aa8bbf4d2e4165d75ab0dca64b9", + "e8-r740-replica32/parent436/code/bit/checkers/tile_k.py": "a4635e6681c2f1521b44f24364cc457d304cb077", + "e8-r740-replica32/parent436/code/bit/export_records.py": "3632d370486a02f5456f7643ced03f8c925b2350", + "e8-r740-replica32/parent436/code/bit/independent/checkword.py": "da4e0fe05067184d4dab1e130ae1384c1fa983f5", + "e8-r740-replica32/parent436/code/bit/independent/mutate.py": "eba592fd468e0d7e7e5100fe99da6eb548c5906b", + "e8-r740-replica32/parent436/code/bit/mutate_records.py": "6794516f665d36eac189894e350a5ad01113cb4c", + "e8-r740-replica32/parent436/code/bit/producer/compile.py": "86b12507ef86308336833a208a989d56072096d1", + "e8-r740-replica32/parent436/code/bit/producer/compile2.py": "a7bdfdfbe417c793b2a8c515f5432bdd10472259", + "e8-r740-replica32/parent436/code/bit/producer/e8lib.py": "8464b956f6a5aa5061695990a14b7a385d370c2e", + "e8-r740-replica32/parent436/code/bit/producer/frames.py": "b28c3b2413b9767e7ffe0a8b2db93836f3455494", + "e8-r740-replica32/parent436/code/bit/producer/fullword.py": "104f01b7803481b623809bc8a57682d28f09b5c3", + "e8-r740-replica32/parent436/code/bit/producer/ham1.py": "8086649a5f71c16698db7059bbada7187d781b56", + "e8-r740-replica32/parent436/code/bit/producer/ham2.py": "842f76b245a1bfb4150c53a853f6f472511f5a2f", + "e8-r740-replica32/parent436/code/bit/producer/params-r865.json": "110b4d94d884f03d4d37be22672ab27d836f1275", + "e8-r740-replica32/parent436/code/bit/producer/price.py": "9014d97d519eea1f8c96e4bfc75afa0febd5903f", + "e8-r740-replica32/parent436/code/bit/receipts_k.py": "428261488b4af028fd04df4f84eead1dad79a389", + "e8-r740-replica32/parent436/code/bit/regression/stage_cohort.py": "f6d7afe3e623208c4207b6a683a1e3e49249e31c", + "e8-r740-replica32/parent436/code/complex/code/bridged.py": "626a28614b07066528fd5f189d87cffa5015ac60", + "e8-r740-replica32/parent436/code/nine/audit_g.py": "719b378a0e20e99a79a3da6462be0e430fe7ee60", + "e8-r740-replica32/parent436/code/nine/certify_g.py": "9f4ae1600ae2f2cedd17ea37338f5d54ec7e83b9", + "e8-r740-replica32/parent436/code/nine/cited.py": "3aedb7a5c5bb06e04dae1f135ca5d5a4a5fdd2fe", + "e8-r740-replica32/parent436/code/nine/compose433.py": "b2f3fb6ba1a35b6dfcc6da12f0425c16be832cde", + "e8-r740-replica32/parent436/code/nine/geometry.py": "91594e0223e8fac49162b5aef834ffaa8e94a254", + "e8-r740-replica32/parent436/code/nine/global_word_g.py": "10eab502ded5374cf05bf89864044007e37458ed", + "e8-r740-replica32/parent436/code/nine/regress386.py": "8cbca55668a445502b3a0f07f27687474d0d764f", + "e8-r740-replica32/parent436/code/pricing/base_two_moment.py": "14a90fa0e788217856f070382c9e61bd7c603c61", + "e8-r740-replica32/parent436/code/pricing/moment.py": "7d697cb45203fe72d97037403d6da41f71f3b7fd", + "e8-r740-replica32/parent436/code/pricing/outer.py": "43007488ad2c43187c77cc6798beff8b1cd76ad2", + "e8-r740-replica32/parent436/code/pricing/prime_witnesses.py": "7f16d930302ae879c562dd58e085d9747fcac077", + "e8-r740-replica32/parent436/code/provenance.py": "9bfcb106230e454d9405ce5eb42dd2218d905ea6", + "e8-r740-replica32/parent436/code/reuse/controls.py": "ceb15852b726423f8b6978ba80817ba2b4ac5b39", + "e8-r740-replica32/parent436/code/reuse/ecost.py": "4ec2a959b1cd599e3297de17563446d623e2867c", + "e8-r740-replica32/parent436/code/reuse/regen.py": "529de1b8b37f28e877a57ab3e22a506002860370", + "e8-r740-replica32/parent436/code/reuse/retime.py": "9c3e94b800b70cfe1383ea6478d85bf859903006", + "e8-r740-replica32/parent436/code/reuse/reuse.py": "df455a0b37cca6ebd1a214661b540e8665467208", + "e8-r740-replica32/parent436/code/tail/apply376.py": "c401a84d8f549e0752464ab8313ce648bb4d14fa", + "e8-r740-replica32/parent436/code/tail/bootstrap.py": "1bc17e768259c342fb8b94b919bfeaea10304153", + "e8-r740-replica32/parent436/code/tail/e8core.py": "78983b368715e89fe8524a6dd2c13585d2b5394e", + "e8-r740-replica32/parent436/code/tail/engines/base_two_moment.py": "14a90fa0e788217856f070382c9e61bd7c603c61", + "e8-r740-replica32/parent436/code/tail/engines/moment.py": "7d697cb45203fe72d97037403d6da41f71f3b7fd", + "e8-r740-replica32/parent436/code/tail/engines/outer.py": "43007488ad2c43187c77cc6798beff8b1cd76ad2", + "e8-r740-replica32/parent436/data/bit/bitE8-r740.json.gz": "8a8ce996b890c7d11b2f8c7fbbd8148747627f46", + "e8-r740-replica32/parent436/data/bit/bitE8-r865.json.gz": "8bec1751f7e33c3a1e4673ef5dbc34d6f205321e", + "e8-r740-replica32/parent436/data/bit/reuse-ledger.json": "51eb63c7d8b3b4a0640412a215df042e878f1034", + "e8-r740-replica32/parent436/data/complex-b-433.json": "2d1db891592346fa225924d8d1666743c2144e11", + "e8-r740-replica32/parent436/data/complex-b-b4.json": "4fd117cd047ebbe86db44c732e72f1b75e9e45d4", + "e8-r740-replica32/parent436/data/complex-b-nine.json": "a215ba618871f09cdea2ede90240b980f62228e5", + "e8-r740-replica32/parent436/data/controls/LICENSE-pr426": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "e8-r740-replica32/parent436/data/controls/pr376/LICENSE-pr376": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "e8-r740-replica32/parent436/data/controls/pr376/frame-selection.json": "647b34368f3f0c7d228c70fa335af872e7946beb", + "e8-r740-replica32/parent436/data/controls/pr376/reuse-selection.json": "a6954dc65f28137ad16d015b42c40dbbde0bd66f", + "e8-r740-replica32/parent436/data/controls/pr386/AUDIT.json": "698e827ae87ae9db47fd30cf69537176276cff4e", + "e8-r740-replica32/parent436/data/controls/pr386/COMBINED.json": "8d6e3f22667fa0f6fa1a5495223e87f90a4cd103", + "e8-r740-replica32/parent436/data/controls/pr386/GLOBAL.json": "21bc6dcc7bbefedcd3064485d0e82c95e585044c", + "e8-r740-replica32/parent436/data/controls/pr417-bitE8-nine-kernel.json.gz": "572172b8148538d1937b9f7fa7f3939755008a8c", + "e8-r740-replica32/parent436/data/controls/pr425/FINAL.json": "1e9c8784c3cb719acb5274126141fe360af253fa", + "e8-r740-replica32/parent436/data/controls/pr426-bit-candidate.json.gz": "807cea53ebe1322721463ee2319bcd52b9714f24", + "e8-r740-replica32/parent436/data/controls/pr431/VALIDATION-LOCAL.json": "0f0a80418d7f3e521c980ef0354fc3945eae1795", + "e8-r740-replica32/parent436/data/controls/pr433/CERTIFICATE.json": "7e807079c1ec4907306035c84be1ba2fb1d69d79", + "e8-r740-replica32/parent436/data/params/params-r740.json": "d9bc74d95b4bd1acde79ada315508f24b4fc06e3", + "e8-r740-replica32/parent436/discovery/README.md": "025c3ac932a976b3ad5ff31ba08a39c0d3c9d4ff", + "e8-r740-replica32/parent436/discovery/search_params.py": "6e57d290f31e748753a4aa77472278c92407edf9", + "e8-r740-replica32/parent436/portable-include/bits/stdc++.h": "fc5664e929d9a81d9b4926bee049a93330be86ec", + "e8-r740-replica32/parent436/requirements.txt": "1cc9b96f593a9ce8a70b6b951c633452cb97e778", + "e8-r740-replica32/parent436/verify.sh": "1f03e028799147b03ecd6339cc951f1debbd9dbe", + "e8-r740-replica32/verify.sh": "6b03a7598f7096f182ff47ec7cdce2afb96d8ef3" + } + }, + "target_intervals478": { + "repo": "rohanarun/integer-mult-bounds", + "head": "ab9952829152ff9ad80b17d77369fdb72a8a1f71", + "root": "research/r715-factors-complex79/upstream478", + "files": { + "vendor478/code/schur_constructor.py": "e74f728b33384223ecd2a990ac8a583108b9885c", + "vendor478/code/SELECTION473.json": "ac20cd24587cfa766ac331c4cac5874021191203", + "vendor478/bit470/data/word.json": "7e345d717f36eb4e2f6ad7435bce5830ee357704", + "vendor478/bit470/data/parent473.json": "d9013b7b6e53d11e48ef5b1cc635d2e05a934a2b", + "vendor478/bit470/data/kernel-selection.json": "5bf8b0319b388d1974a5a1a3286cb6e263f244c9", + "vendor478/bit470/data/mixing.json": "2e98e93885bd61bef60df7f033bb16ba28fdb123", + "vendor478/bit470/code/labels.py": "9d649d090b50ba1648da2b0567d0c0a66f46e5ab", + "vendor478/bit470/NOTICE.md": "3541f6d356e5e42f46f41d75d62529196dde0490", + "vendor478/bit470/LICENSE": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64" + }, + "original_source": { + "author": "Dugongue", + "repo": "Dugongue/integer-mult-bounds", + "head": "bea1d52fd330c699903f81612ee58be81697d1eb", + "root": "research/tensor-r715-next", + "pr": "https://github.com/CrocSwap/integer-mult-bounds/pull/478", + "independently_matched_constructor_git_blob": "e74f728b33384223ecd2a990ac8a583108b9885c", + "note": "The file map above pins the exact mirror bytes. Original authorship of the fourteen factors and constructor belongs to Dugongue; mirror ownership is not authorship." + } + }, + "operator_audit_pr3": { + "repo": "eumemic/integer-mult-bounds", + "head": "2c40e3739468fbb99e86102fd69e5ebb94b725c3", + "root": "research/r740-target-mixing-banked", + "files": { + "code/operator_audit.py": "0e5072a0a4cdb5c17ed9c4a24e84f5a22e8e8521" + } + } +} diff --git a/research/r715-target-factors-banked/code/bank_owner_audit.py b/research/r715-target-factors-banked/code/bank_owner_audit.py new file mode 100644 index 0000000000..fb7b3848ae --- /dev/null +++ b/research/r715-target-factors-banked/code/bank_owner_audit.py @@ -0,0 +1,44 @@ +"""Explicit coordinate-bank route completion; OpenAI Codex assistance, Apache-2.0.""" +import argparse,gzip,hashlib,json +from collections import Counter,defaultdict +from pathlib import Path +p=argparse.ArgumentParser();p.add_argument('word',type=Path);p.add_argument('template',type=Path);p.add_argument('out',type=Path);a=p.parse_args() +w=json.loads(a.word.read_bytes());raw=gzip.decompress(a.template.read_bytes());t=json.loads(raw) +assert (w['R'],w['h'],t['m'],t['replicas'])==(715,8,64,32) +assert hashlib.sha256(raw).hexdigest()=='d526b3b08661af3e99d7b4f883dbf40e8625f5a1de645e7784ba9225837fc0bb' +frames={} +for f in set(w['start'][240:]): + E=tuple(i for i in w['frames'][f] if i<8) + assert all(w['lines'][i]==[2*int(i==j) for j in range(8)] for i in range(8)) + assert all(all(x==0 or j in E for j,x in enumerate(w['lines'][i])) for i in w['frames'][f]) + residual=tuple(i for i in range(8) if i not in E);assert len(residual)>=6 + frames[f]=residual +occup=defaultdict(set);sha=hashlib.sha256();count=0;maxfactors=0 +for call in t['calls']: + owners=set() + for helper,(family,route) in enumerate(call['owners'][240:]): + kind,offset,width,f=route;assert kind=='bank' and f==w['start'][240+helper] + residual=frames[f];assert len(residual)==width + target=tuple(range(offset,offset+width));assert set(target)<=set(range(64)) + sigma=dict(zip(residual,target)) + sigma.update(zip((i for i in range(64) if i not in residual),(i for i in range(64) if i not in target))) + sigma=tuple(sigma[i] for i in range(64));assert sorted(sigma)==list(range(64)) + assert {sigma[i] for i in residual}==set(target) + assert (family,sigma) not in owners;owners.add((family,sigma)) + # Distinct residual intervals plus intersecting local residual spaces forbid + # sigma equality within a family independently of chosen completion. + assert not occup[family]&set(target);occup[family].update(target) + seen=set();cycles=0 + for i in range(64): + if i not in seen: + cycles+=1;j=i + while j not in seen:seen.add(j);j=sigma[j] + factors=64-cycles;assert factors<=63;maxfactors=max(maxfactors,factors) + sha.update(json.dumps([call['stage'],call['replica'],helper,family,sigma],separators=(',',':')).encode()+b'\n');count+=1 + assert len(owners)==715 +assert count==9*32*715 and len(occup)==25200 +assert all(z==set(range(64)) for z in occup.values()) +# Every coordinate has exactly one disjoint residual projector per bank. +# D_U factors commute and multiply to D_I, on all arrays and every odd field. +result=dict(status='PASS_EXPLICIT_R715_BANK_ROUTE_COMPLETIONS',helpers=count,banks=len(occup),bank_dimensions=64,minimum_local_residual_dimension=6,actual_owner_injection=True,complete_disjoint_residual_partition=True,maximum_permutation_transpositions=maxfactors,paid_extra_route_allowance=144,route_digest=sha.hexdigest(),word_sha256=hashlib.sha256(a.word.read_bytes()).hexdigest(),template_sha256=hashlib.sha256(raw).hexdigest(),scope='Explicit full64 coordinate isometries and owner injection. Local scalar/operator identity and global data chronology are separate replayed obligations; arbitrary bank contents follow by all-input local identity and commuting disjoint residual products.') +a.out.write_text(json.dumps(result,indent=2)+'\n');print(json.dumps(result)) diff --git a/research/r715-target-factors-banked/code/mutate_records.py b/research/r715-target-factors-banked/code/mutate_records.py new file mode 100644 index 0000000000..ea12b8104e --- /dev/null +++ b/research/r715-target-factors-banked/code/mutate_records.py @@ -0,0 +1,34 @@ +"""Negative controls for the official checkers on the exported E8 records: every mutant must be rejected. +usage: mutate_records.py RECORDDIR COHORT_IN COHORT_OUT LEGALITY_BIN COLUMNS_BIN LEGALITY_NCOPY8_BIN""" +import sys, struct, shutil, subprocess, os +rd,cin,cout,leg,col,leg8=sys.argv[1:7] +rec=bytearray(open(rd+'/249-records.bin','rb').read()); n=len(rec)//24 +get=lambda i: list(struct.unpack_from('<6i',rec,24*i)) +def run(mut,which): + tmp=cout+'-mut'; shutil.rmtree(tmp,ignore_errors=True); shutil.copytree(cout,tmp) + open(tmp+'/COHORT249-RECORDS.bin','wb').write(bytes(mut)) + if which=='legality': r=subprocess.run([leg,cin,tmp,tmp+'/x.json'],capture_output=True,text=True) + elif which=='legality8': r=subprocess.run([leg8,cin,tmp,tmp+'/x.json'],capture_output=True,text=True) + else: r=subprocess.run([col,tmp+'/COHORT249-RECORDS.bin',tmp+'/x.json'],capture_output=True,text=True) + shutil.rmtree(tmp,ignore_errors=True) + return r.returncode!=0, (r.stderr.strip().splitlines() or ['?'])[-1][:70] +def mutate(pred,change): + m=bytearray(rec) + for i in range(n): + e=get(i) + if pred(e,i): + change(e); struct.pack_into('<6i',m,24*i,*e); return m + raise SystemExit('no mutation site') +B4=[i for i in range(n) if get(i)[0]==1 and get(i)[5]==4] +cases=[('drop a phase-B delivery ADD (columns: defining decoder)','columns',bytes(rec[:24*B4[len(B4)//2]]+rec[24*(B4[len(B4)//2]+1):])), + ('ADD at a frame its registers do not stand at','legality',mutate(lambda e,i:e[0]==1 and e[5]==4 and e[4]!=0,lambda e:e.__setitem__(4,0))), + ('MOVE with a wrong rank','legality',mutate(lambda e,i:e[0]==0 and e[4]>1,lambda e:e.__setitem__(4,e[4]-1))), + ('COPY with a cheaper rank','legality',mutate(lambda e,i:e[0]==2,lambda e:e.__setitem__(5,7))), + ('drop a dirt-compensation ADD (columns)','columns',bytes(rec[:24*[i for i in range(n) if get(i)[0]==1 and get(i)[5]==1][0]]+rec[24*([i for i in range(n) if get(i)[0]==1 and get(i)[5]==1][0]+1):])), + ('unchanged word with the copy count pinned to h = 8 (NCOPY unset)','legality8',bytes(rec))] +ok=True +for name,which,m in cases: + rej,msg=run(m,which); ok&=rej + print((' REJECTED ' if rej else ' ACCEPTED!! ')+name+' ['+msg+']') +assert ok, 'a mutant was accepted' +print('PASS all %d record-level negative controls rejected'%len(cases)) diff --git a/research/r715-target-factors-banked/code/operator_audit.py b/research/r715-target-factors-banked/code/operator_audit.py new file mode 100644 index 0000000000..0e5072a0a4 --- /dev/null +++ b/research/r715-target-factors-banked/code/operator_audit.py @@ -0,0 +1,170 @@ +"""Independent exact address-label admission for target mixing on a banked bitE8 word. + +Prepared with OpenAI Codex assistance. This tests actual address projector factors, +not scalar columns or hosted residuals. Standard library only, Apache-2.0. +""" +import argparse, gzip, hashlib, json, sys +from fractions import Fraction as F +from functools import lru_cache +from itertools import product +from pathlib import Path + +ap=argparse.ArgumentParser(description=__doc__) +ap.add_argument('--word',type=Path,required=True) +ap.add_argument('--parent',type=Path,required=True) +ap.add_argument('--out',type=Path,required=True) +args=ap.parse_args();word=args.word;out=args.out +def load(p):return json.loads(gzip.decompress(p.read_bytes()) if p.suffix=='.gz' else p.read_bytes()) +w=load(word);parent=load(args.parent) +for field in ('h','v','R','lines','frames','start','final','ret','A','C'): + assert w[field]==parent[field],('changed boundary or unmixed phase',field) +assert w['D'][:len(parent['D'])]==parent['D'] +n=2*w['v']+w['R']; h=w['h']; v=w['v'] +I=tuple(tuple(F(i==j) for j in range(h)) for i in range(h)) +Z=tuple(tuple(F(0) for _ in range(h)) for _ in range(h)) +def add(a,b):return tuple(tuple(x+y for x,y in zip(ar,br)) for ar,br in zip(a,b)) +def neg(a):return tuple(tuple(-x for x in r) for r in a) +def sub(a,b):return add(a,neg(b)) +def scale(a,s):return tuple(tuple(x*s for x in r) for r in a) +def mul(a,b): + bt=list(zip(*b)) + return tuple(tuple(sum(x*y for x,y in zip(ar,bc)) for bc in bt) for ar in a) +def transpose(a):return tuple(zip(*a)) +def inv(a): + d=len(a); m=[list(row)+[F(i==j) for j in range(d)] for i,row in enumerate(a)] + for c in range(d): + p=next(i for i in range(c,d) if m[i][c]);m[c],m[p]=m[p],m[c] + t=m[c][c];m[c]=[x/t for x in m[c]] + for i in range(d): + if i!=c and m[i][c]: + t=m[i][c];m[i]=[x-t*y for x,y in zip(m[i],m[c])] + return tuple(tuple(r[d:]) for r in m) +@lru_cache(None) +def projector(f): + rows=[] + for k in w['frames'][f]: + x=[F(t) for t in w['lines'][k]] + for r in rows: + p=next(j for j in range(h) if r[j]);t=x[p]/r[p] + x=[a-t*b for a,b in zip(x,r)] + if any(x):rows.append(x) + if not rows:return Z + B=tuple(tuple(r) for r in rows);P=mul(mul(transpose(B),inv(mul(B,transpose(B)))),B) + assert P==transpose(P) and mul(P,P)==P + return P +@lru_cache(None) +def reflect(f):return sub(I,scale(projector(f),2)) +@lru_cache(None) +def advance(a,b): + P,Q=projector(a),projector(b);D=sub(Q,P) + assert mul(P,Q)==P==mul(Q,P) + assert mul(D,D)==D + R=sub(I,scale(D,2)) + assert mul(R,reflect(a))==reflect(b) + # The same positive child takes I-Q to I-P in the reflected inverse. + assert mul(R,neg(reflect(b)))==neg(reflect(a)) + return R + +# Rebuild all MOVE/ADD labels directly from the word, independently of exporters. +cur=list(w['start']); events=[];new_gate_labels=[] +def move(r,f): + if cur[r]!=f: + advance(cur[r],f);events.append(('M',r,cur[r],f));cur[r]=f +def phase(name): + for index,(f,d,ss) in enumerate(w[name]): + for r in [d]+ss:move(r,f) + for s in ss: + assert cur[d]==cur[s]==f + if v<=s<2*v: + assert v<=d<2*v + # Literal target paths have the same D_F; the frame-zero starts need no gauge. + assert projector(w['start'][d])==Z==projector(w['start'][s]) + assert mul(reflect(f),reflect(f))==I + new_gate_labels.append([name,index,d,s,f]) + events.append(('A',d,s,f)) +phase('D');phase('A') +for t in range(v):assert projector(cur[v+t])==Z +# Charged COPY/scatter/ERASE carries the temporary to frame zero and back. +# Its transport is D_0 D_F (the same rank-dim(F) child); all original labels stay. +for k,q in enumerate(w['ret']): + assert mul(reflect(cur[q]),reflect(cur[q]))==I + events.append(('C',n,q,cur[q])) + for t,row in enumerate(w['scatter']): + if k in row:events.append(('A',v+t,n,0)) + events.append(('E',n,q,cur[q])) +phase('B');phase('C') +for r in range(n):move(r,w['final'][r]) + +# Check the exact rewritten inverse on complemented labels, including new ADDs. +cur_rev=list(w['final']);reverse_adds=0;temp_frame=None +for e in reversed(events): + if e[0]=='M': + _,r,a,b=e;assert cur_rev[r]==b + assert mul(advance(a,b),neg(reflect(b)))==neg(reflect(a));cur_rev[r]=a + elif e[0]=='A': + _,d,s,f=e;source_frame=temp_frame if s==n else cur_rev[s] + assert cur_rev[d]==source_frame==f + assert neg(reflect(cur_rev[d]))==neg(reflect(source_frame)) + if v<=s<2*v:reverse_adds+=1 + else: + # A fresh reflected COPY is at the complemented scatter label I, then + # transported to I-F; the same positive rank-dim(F) projector is charged. + _,temporary,q,f=e;assert temporary==n and cur_rev[q]==f + assert mul(reflect(f),neg(I))==neg(reflect(f)) + assert mul(reflect(f),neg(reflect(f)))==neg(I) + if e[0]=='E':assert temp_frame is None;temp_frame=0 + else:assert temp_frame==0;temp_frame=None +assert cur_rev==w['start'] +assert temp_frame is None + +# Separately identify the full formal-array matrix, including all independent +# dirty columns. The lifting proof above promotes this scalar equality to exact +# array-operator equality; no finite sampling of array values is substituted. +def scalar(word,reverse=False): + ops=[] + for ph in ('D','A'): + ops.extend(('A',d,s) for f,d,ss in word[ph] for s in ss) + for k,q in enumerate(word['ret']): + ops.append(('C',n,q)) + ops.extend(('A',v+t,n) for t,row in enumerate(word['scatter']) if k in row) + ops.append(('E',n,q)) + for ph in ('B','C'): + ops.extend(('A',d,s) for f,d,ss in word[ph] for s in ss) + if reverse:ops=[({'A':'A','C':'E','E':'C'}[op],d,s) for op,d,s in reversed(ops)] + vals=[1< 0 and replicas % 8 == 0 + by_width = {} + for rep in range(replicas): + for helper, width in enumerate(widths): + assert 0 < width <= 8 + by_width.setdefault(width, deque()).append((rep, helper)) + patterns = tile({w: len(q) for w, q in by_width.items()}, 64) + result = {} + bank = 0 + for widths_in_bank, count in patterns: + for _ in range(count): + offset = 0 + for width in widths_in_bank: + key = by_width[width].popleft() + result[key] = (bank, offset, width) + offset += width + assert offset == 64 + bank += 1 + assert all(not q for q in by_width.values()) + assert len(result) == replicas * len(widths) + return result, bank + + +def validate_isometries(rows, frames, roots, dimensions): + seen = set() + dot = lambda a, b: sum(x*y for x, y in zip(a, b)) + for record in rows: + f = record['frame'] + assert f not in seen + seen.add(f) + e = record['entrance_rank'] + assert e == dimensions[f] and record['denominator'] == 2 + basis = record['entrance_basis'] + record['residual_basis'] + matrix = record['orthogonal_rows_numerator'] + assert len(basis) == len(matrix) == 8 + assert matrix == [roots[i] for i in basis] + assert all(len(r) == 8 and all(type(x) is int for x in r) for r in matrix) + assert all(dot(a,b) == 4*(i==j) for i,a in enumerate(matrix) for j,b in enumerate(matrix)) + # The first e rows span precisely the frame, not only its dimension. + for i in frames[f]: + assert sum(dot(roots[i], q)**2 for q in matrix[:e]) == 4*dot(roots[i], roots[i]) + assert len(record['entrance_basis']) == e + # This selected family needs coordinate permutations only. Checking the + # elementary reduction also bounds the literal route cost and primes. + reduced = [[x // 2 for x in row] for row in matrix] + assert all(x % 2 == 0 for row in matrix for x in row) + operations = record['gaussian_reduction'] + assert len(operations) <= 7 + for kind, i, j, scalar in operations: + assert kind == 'swap' and scalar is None and 0 <= i < 8 and 0 <= j < 8 + reduced[i], reduced[j] = reduced[j], reduced[i] + assert reduced == [[int(i == j) for j in range(8)] for i in range(8)] + return seen diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/compose_kernel.py b/research/r715-target-factors-banked/e8-r740-replica32/code/compose_kernel.py new file mode 100644 index 0000000000..0d92ae7c41 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/compose_kernel.py @@ -0,0 +1,179 @@ +# Kernel finite invoice by chafreaky with OpenAI Codex assistance. +"""This word's bit side composed with PR #433's complex supplier, with PR #433's own bit pricing, finite invoice and +outer tail (icekylinx's code/bit_price.py and code/combined.py, ported line by line onto this package's receipts). + +Bit price (#433 bit_price.py): PR #315's moment.certify with the inherited 10^-16 bad-branch allowance; c is its + 10^-24-grid lower endpoint; the second engine (base_two_moment, same allowance) must put the lower endpoint below 1 + and the upper endpoint above 1. +Finite invoice (#433 combined.py): #386's coefficient with the fresh prefix bound charged at the next multiple of 64 + bits (at most 256), two-level coefficient below 2^512, row coefficient 18,355 < 20,161. +Tail (#433 combined.py): eta = beta = 10^-18, seed s = min(c, (1 - beta) b) - 10^-24, six bootstrap levels with the + 512-bit cutoff, kappa = the last 10^-18 grid point below (1 - eta) q / (1 + q), q = a_6 (1 - 2 eta); PR #315's outer + assembly with its 47 strict inequalities; next grid point, zero eta, zero beta and unit beta rejected. +Controls: PR #433's stated R758 profile must price to PR #433's bit c, and (that c, PR #433's b) must give PR #433's + kappa, before this word is composed. +usage: compose433.py --pricing DIR --out DIR --cited FILE --receipt CERTIFICATE.json +Prepared by eumemic with Anthropic Claude assistance; Apache-2.0.""" +import argparse +import hashlib +import importlib.util +import json +from fractions import Fraction as Q +from pathlib import Path +from config import REPLICAS + + +def load(path, name): + s = importlib.util.spec_from_file_location(name, path) + m = importlib.util.module_from_spec(s) + s.loader.exec_module(m) + return m + + +def sha(p): + return hashlib.sha256(p.read_bytes()).hexdigest() + + +ap = argparse.ArgumentParser() +ap.add_argument("--pricing", type=Path, required=True) +ap.add_argument("--out", type=Path, required=True) +ap.add_argument("--cited", type=Path, required=True) +ap.add_argument("--receipt", type=Path, required=True) +a = ap.parse_args() +M = load(a.pricing / "moment.py", "c433_moment") +Other = load(a.pricing / "base_two_moment.py", "c433_other") +Outer = load(a.pricing / "outer.py", "c433_outer") +cited = json.loads(a.cited.read_text()) +cert = json.loads(a.receipt.read_text()) +assert cert["status"] == "PASS_CONDITIONAL_SPLIT_CENTRE_ASSEMBLY" and cert["binding_component"] == "bit" +assert (cert["complex_lower"], cert["bit_lower"], cert["kappa"]) == (cited["b"], cited["bit_c"], cited["kappa"]) +grid = Q(1, 10 ** 18) + + +def price(P, m, W): + """#433 bit_price.py: 10^-24 lower endpoint of PR #315's certify (bad-branch allowance), second engine check""" + root = M.certify(P, m, W, True) + lo, hi = Q(root["lower"]), Q(root["upper"]) + fb = 32 * m * m * sum(P.values()) + + def other(x): + l, u = Other.moment(m, W, list(P.items()), x) + p, q = Other.moment(m, W, [(1, fb)], x) + return l + p / 10 ** 16, u + q / 10 ** 16 + assert other(lo)[1] < 1 < other(hi)[0] + lo2, hi2 = Other.moment(m, W, list(P.items()), lo) + bl, bh = Other.moment(m, W, [(1, fb)], lo) + assert hi2 + bh / 10 ** 16 < 1 # #433 combined.py's check at c + return lo, hi + + +def tail(c, b): + """#433 combined.py: six fixed bootstrap levels and the 47-inequality outer assembly""" + eta = beta = Q(1, 10 ** 18) + s = min(c, (1 - beta) * b) - Q(1, 10 ** 24) + assert 0 < s < c and s < (1 - beta) * b + chain = [Q(384599, 10 ** 10)] + cutoffs = [] + + def ceil(x): + return -((-x.numerator) // x.denominator) + for _ in range(6): + old = chain[-1] + z = (1 - s) * s + s * old + gap = min(s - z, 1 - z - s, 1 - z - s * (1 - old), 1 - s) + assert old < z < s < 1 - z and gap > 0 + cutoff = max(ceil(36 / gap ** 2), ceil(2 * (4 + 512) / gap)) + assert cutoff * gap ** 2 >= 36 and cutoff * gap >= 2 * (4 + 512) + cutoffs.append(dict(gap=str(gap), cutoff_log2=str(cutoff))) + chain.append(z) + q = chain[-1] * (1 - 2 * eta) + ticks = (1 - eta) * q / (1 + q) / grid + k = grid * ((ticks.numerator - 1) // ticks.denominator) + bridge = {"semantic": {"C0": {"base": 2, "exponent": 210000}, "strict_literal_gap": 1}, + "rows": {"degree_gap": Q(10 ** 6) - Q(51 * 20161, 25)}} + asm = Outer.assembly(chain[-1], b, bridge, k, eta=eta, beta=beta) + assert len(asm["strict_constraints"]) == 47 and all(x > 0 for x in asm["strict_constraints"].values()) + rejected = [] + for name, kk, ee, bb in [("next_grid", k + grid, eta, beta), ("zero_eta", k, Q(0), beta), + ("zero_beta", k, eta, Q(0)), ("unit_beta", k, eta, Q(1))]: + try: + Outer.assembly(chain[-1], b, bridge, kk, eta=ee, beta=bb) + except AssertionError: + rejected.append(name) + else: + raise AssertionError(name) + binding = "bit" if c < (1 - beta) * b else "complex" + return k, binding, rejected, cutoffs, asm + + +b = Q(cited["b"]) +# control 1: PR #433's stated R758 profile, priced by the same code, gives PR #433's bit c +L433 = {int(r): n for r, n in cited["bit_local_profile"].items()} +R433 = cited["bit_R"] +P433 = {r: 72 * n for r, n in L433.items()} +for r, n in ((7, 48 * 120), (14, 32 * 120), (28, 32 * 120), (42, 32 * 120)): + P433[r] = P433.get(r, 0) + n +W433 = 64 * 120 + 9 * R433 +assert sum(r * n for r, n in L433.items()) == 8 * R433 + 72 + 2 * 120 * 7 +assert 64 * W433 - sum(r * n for r, n in P433.items()) == 2496 +c433, _ = price(P433, 64, W433) +assert c433 == Q(cited["bit_c"]), (str(c433), cited["bit_c"]) +# control 2: PR #433's (c, b) through the tail gives PR #433's kappa +k433, bind433, _, _, _ = tail(c433, b) +assert k433 == Q(cited["kappa"]) and bind433 == "bit", str(k433) +print(" control: PR #433's R758 profile prices to c = %s (= PR #433 bit_lower); with b = %s the tail gives kappa = %s" + " (= PR #433, bit-bound)" % (c433, b, k433), flush=True) +# this word: the compressed nine-stage receipts of global_word_g.py / audit_g.py, #433's invoice and tail +out = a.out +g = json.loads((out / "GLOBAL.json").read_text()) +geo = json.loads((out / "GEOMETRY.json").read_text()) +audit = json.loads((out / "AUDIT.json").read_text()) +assert audit["template_sha256"] == g["template_sha256"] and len(audit["mutations_rejected"]) == 14 +P = {int(r): z for r, z in audit["profile"].items()} +m, W = 64, g["live"] +E = sum(P.values()) +T, L, R, V, K = REPLICAS, 9, g["R"], 120, 4 +assert T==32 and g["replicas"]==T +mass = sum(r * z for r, z in P.items()) +assert m * W - mass == 312*T and W == 8*T*V + 9 * g["banks_per_stage"] +physical = g["physical"] +d = m * m +N = 2 * m +unit = L * T * g["local_additions"] + g["bridge_additions"] +J = 8 * T * L * (2 * V + R) + 8 * (2 * K * V * T) + 2 * g["bank_assignments"] + 2 * g["copy_erase_episodes"] +high = 16 * (d + 1) ** 2 +good = 8 * m * m + 8 +compiler = 128 * N ** 3 +# Each new bank route is an 8-by-8 rational orthogonal matrix followed by +# a coordinate permutation. A conservative 8^2+16 elementary factors plus +# 64 transpositions is covered by an extra 144 factors per helper route. +selectors = 2 * L * T * ((W - 1) + R * m * (geo["max_route_factors"] + 144 + (m - 1) + m)) +prefix = int(g["global_prefix_bound"]) +charged_prefix = 64 * ((prefix.bit_length() + 63) // 64) +assert prefix < 1 << charged_prefix <= 1 << 256 +coefficient = unit + J * high + J * physical + E * (good + compiler) + 16 * m ** 3 + g["copy_erase_episodes"] + selectors + prefix + 1 +two = (coefficient + 1) ** 2 * (E + 1) ** 2 +assert two < 1 << 512 and 2 * max(P) ** 2 < m * m +row = 2 * (m * m + 1) + 9909 + 252 +assert row == 18355 < 20161 +assert geo["bad_prime_factors"] == [2] and geo["route_denominators"] == [1, 2, 4] +c, chi = price(P, m, W) +k, binding, rejected, cutoffs, asm = tail(c, b) +result = dict(status="PASS_KERNEL_BIT_SIDE_COMPOSED_WITH_CITED_PR433_COMPLEX", bit_lower=str(c), bit_upper=str(chi), + bit_lower_decimal=format(float(c), ".24f"), complex_lower=str(b), kappa=str(k), + kappa_decimal=format(float(k), ".18f"), binding_component=binding, + gain_over_pr433_percent=float(100 * (k / Q(cited["kappa"]) - 1)), + bit_gain_over_pr433_percent=float(100 * (c / Q(cited["bit_c"]) - 1)), + bit_invoice=dict(prefix_bits=prefix.bit_length(), charged_prefix_bits=charged_prefix, + coefficient_bits=coefficient.bit_length(), two_level_coefficient_bits=two.bit_length(), + charged_two_level_coefficient_bits=512, row_coefficient=row, live=W, physical=physical), + strict_outer_constraints={n: str(x) for n, x in asm["strict_constraints"].items()}, + minimum_strict_constraint=str(min(asm["strict_constraints"].values())), outer_controls=rejected, + bootstrap=cutoffs, bit_global_sha256=sha(out / "GLOBAL.json"), bit_audit_sha256=sha(out / "AUDIT.json"), + controls=dict(pr433_bit_c=str(c433), pr433_kappa=str(k433)), source=cited["source"]) +(out / "COMPOSED-433.json").write_text(json.dumps(result, indent=2) + "\n") +print("PASS this word with PR #433's bit engine and invoice: c = %s = %.24f (prefix %d bits, charged %d; two-level %d" + " bits < 512)" % (c, float(c), prefix.bit_length(), charged_prefix, two.bit_length()), flush=True) +print("PASS composed with PR #433's complex b = %s: kappa = %s = %.18f (%s-bound; PR #433: %s, %+.6f%%; 47 strict" + " inequalities, next grid point, zero eta, zero beta and unit beta rejected)" + % (b, k, float(k), binding, cited["kappa"], result["gain_over_pr433_percent"]), flush=True) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/config.py b/research/r715-target-factors-banked/e8-r740-replica32/code/config.py new file mode 100644 index 0000000000..c6824d9c4e --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/config.py @@ -0,0 +1,2 @@ +"""Four independent groups of eight replicas; no bank padding.""" +REPLICAS = 32 diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/e8core.py b/research/r715-target-factors-banked/e8-r740-replica32/code/e8core.py new file mode 100644 index 0000000000..78983b3687 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/e8core.py @@ -0,0 +1,203 @@ +"""Our own engine for bitE8/1 words (E8 root-line labels, h = 8): frame algebra over Q via root-line masks, +legality/F2 replay, five-stage histogram, exact bit coarse saving and PR #315 outer assembly (our engine copies). +Chafik Boukhalfa (chafreaky) with Anthropic Claude assistance; Apache-2.0.""" +import gzip, json, os, importlib.util +from fractions import Fraction as Q +from collections import Counter + +HERE = os.path.dirname(os.path.abspath(__file__)) +def _load(n): + s = importlib.util.spec_from_file_location('e8_' + n, os.path.join(HERE, "engines", n + ".py")) + m = importlib.util.module_from_spec(s); s.loader.exec_module(m); return m +moment = _load('moment'); other = _load('base_two_moment'); outer = _load('outer') + +B2 = Q(876248285600677, 10**18) # Sussman E8 five-stage (PR #352) +B3 = Q(932783231884153, 10**18) # DaysSky seven-stage B_3 (PR #363; no Lean proof) + + +def load_word(p): + with (gzip.open(p, 'rt') if p.endswith('.gz') else open(p)) as f: + return json.load(f) + + +def save_word(c, p): + with gzip.open(p, 'wt') as f: + json.dump(c, f, separators=(',', ':')) + + +def rank(vecs): + rows = [[Q(x) for x in r] for r in vecs]; rk = 0 + n = len(rows[0]) if rows else 0 + for col in range(n): + p = next((i for i in range(rk, len(rows)) if rows[i][col] != 0), None) + if p is None: continue + rows[rk], rows[p] = rows[p], rows[rk] + for i in range(len(rows)): + if i != rk and rows[i][col] != 0: + f = rows[i][col] / rows[rk][col]; rows[i] = [a - f * b for a, b in zip(rows[i], rows[rk])] + rk += 1 + return rk + + +class Lat: + """Root-spanned subspaces of Q^8 represented by the mask of root lines they contain.""" + def __init__(self, lines): + self.lines = [tuple(x) for x in lines]; self.v = len(lines) + self._dim = {0: 0}; self._close = {} + # Gram (form /2) for orthogonality + self.ip = [[sum(a * b for a, b in zip(x, y)) // 2 for y in self.lines] for x in self.lines] + + def close(self, mask): + """mask of all root lines in span(roots of mask)""" + if mask in self._close: return self._close[mask] + idx = [i for i in range(self.v) if mask >> i & 1] + basis = [] + for i in idx: + if rank([self.lines[j] for j in basis] + [self.lines[i]]) > len(basis): basis.append(i) + d = len(basis); out = 0 + if d == 8: out = (1 << self.v) - 1 + elif d: + B = [self.lines[j] for j in basis] + for i in range(self.v): + if rank(B + [self.lines[i]]) == d: out |= 1 << i + self._close[mask] = out; self._close[out] = out; self._dim[out] = d + return out + + def dim(self, mask): + if mask not in self._dim: self.close(mask) + return self._dim[mask] + + def basis(self, mask): + b = [] + for i in range(self.v): + if mask >> i & 1 and rank([self.lines[j] for j in b] + [self.lines[i]]) > len(b): b.append(i) + return b + + def perp(self, t): + return self.close(sum(1 << j for j in range(self.v) if self.ip[t][j] == 0)) + + +def to_masks(c, L): + return [L.close(sum(1 << i for i in fr)) for fr in c['frames']] + + +PHASES = ('D', 'A', 'B', 'C') + + +def replay(c, L=None, masks=None, check_f2=True, span=True, span_mode='z'): + """Exact legality + F2 replay + histogram of a bitE8/1 word. Returns dict(H_local, steps, ...). + Legality: each register's frames nested (mask inclusion = exact Q-subspace inclusion for root-spanned frames) and + strictly increasing at each move; every gate at one common frame; D compensation at frame 0; y at frame 0 at the + scatter; COPY of retained totals; final frames (x, helpers FULL; y_t at its cap t-perp). + Source-span: every non-target operand's x-support lies in the gate frame.""" + L = L or Lat(c['lines']); masks = masks or to_masks(c, L) + v, R, h = c['v'], c['R'], c['h']; n = 2 * v + R; FULL = (1 << v) - 1 + cur = [masks[f] for f in c['start']] + for r in range(v): assert cur[r] == L.close(1 << r), 'x start' + for r in range(v, 2 * v): assert cur[r] == 0, 'y start at 0' + sig = [L.dim(cur[r]) for r in range(n)] + H = Counter(); steps = 0; viol = [] + val = [1 << i for i in range(n)] + zsupp = [{i: 1} if i < v else {} for i in range(n)] # integer support of each register over the x columns (all ADDs are +1) + def climb(r, m): + nonlocal steps + if cur[r] == m: return + assert cur[r] & ~m == 0 and cur[r] != m, ('not nested', r) + H[L.dim(m) - L.dim(cur[r])] += 1; steps += 1; cur[r] = m + def run(gates, ph): + for k, (f, d, srcs) in enumerate(gates): + m = masks[f] + assert d >= v and d not in srcs and len(set(srcs)) == len(srcs), (ph, k) + for x in [d] + srcs: climb(x, m) + for s in srcs: + val[d] ^= val[s] + if span: + if s < v or s >= 2 * v: + ms = sum(1 << i for i in zsupp[s]) + if ms & ~m: viol.append((ph, k, s)) + zd = zsupp[d] + for i, a in zsupp[s].items(): + w = zd.get(i, 0) + a + if w: zd[i] = w + else: zd.pop(i, None) + if span_mode == 'f2': + zsupp[d] = {i: 1 for i in range(v) if val[d] >> i & 1} + if span and d >= 2 * v: + md = sum(1 << i for i in zsupp[d]) + if md & ~m: viol.append((ph, k, d)) + run(c['D'], 'D') + for r in range(v, n): assert cur[r] == masks[c['start'][r]], 'D compensation at frame 0 (helpers untouched otherwise)' + run(c['A'], 'A') + for t in range(v): assert cur[v + t] == 0, 'y at frame 0 at the scatter' + copies = [val[q] for q in c['ret']] + for q in c['ret']: + assert q >= 2 * v; H[L.dim(cur[q])] += 1 + for t, row in enumerate(c['scatter']): + for k in row: val[v + t] ^= copies[k] + run(c['B'], 'B'); run(c['C'], 'C') + for r in range(n): climb(r, masks[c['final'][r]]) + for r in range(v): assert cur[r] == FULL + for r in range(2 * v, n): assert cur[r] == FULL + for t in range(v): assert cur[v + t] == L.perp(t), 'y final at cap' + if check_f2: + for s in range(v): assert val[s] == 1 << s + for t in range(v): assert val[v + t] == (1 << (v + t)) | (1 << t), ('target', t) + for r in range(2 * v, n): assert val[r] == 1 << r, ('helper', r) + return dict(sig=sig, viol=viol, H=H, steps=steps, n=n, v=v, R=R, h=h, L=L, masks=masks, ncopy=len(c['ret'])) + + +def profile(H_local, v, h=8): + prof = Counter({j: 5 * c for j, c in H_local.items()}) + for j in (2 * h - 2, h - 1, 2 * h + 2, 4): prof[j] += 2 * v + return prof + + +def coarse(H, m, W): + grid = Q(1, 10**18) + root = moment.certify(dict(H), m, W, True); c = Q(int(Q(root['lower']) * 10**18), 10**18) + assert moment.moment(H, m, W, c, True)[1] < 1 < moment.moment(H, m, W, c + grid, True)[0] + fb = 32 * m * m * sum(H.values()) + _, up = other.moment(m, W, list(H.items()), c); _, bad = other.moment(m, W, [(1, fb)], c) + lo, _ = other.moment(m, W, list(H.items()), c + grid); blo, _ = other.moment(m, W, [(1, fb)], c + grid) + assert up + Q(1, 10**16) * bad < 1 < lo + Q(1, 10**16) * blo + return c + + +def kappa(c, b): + grid = Q(1, 10**18); eta = Q(1, 10**12); beta = Q(1, 10**9); cap = (1 - beta) * b + sv = min(c, Q(((cap - grid) * 10**18).__floor__(), 10**18)); binding = 'bit' if sv == c else 'complex' + chain = [Q(384599, 10**10)] + for _ in range(3): + a = (1 - sv) * sv + sv * chain[-1]; assert chain[-1] < a < sv < 1 - a; chain.append(a) + bit = chain[-1] + bridge = dict(proof='PROOF.md', representation='Exact powers with source-bound finite overcharges', + semantic=dict(G=dict(base=2, exponent=30000), E=dict(base=2, exponent=100000), B_upper=dict(base=2, exponent=100001), + C0=dict(base=2, exponent=210000), C1=1, strict_literal_gap=1, induction_gap_lower=1), + rows=dict(coefficient=20161, degree=10**6, suffix_slope=4 * 10**6, degree_gap=Q(10**6) - Q(51 * 20161, 25))) + q = bit * (1 - 2 * eta); mn = (1 - eta) * q / (1 + q); t = mn * 10**18; k = Q((t.numerator - 1) // t.denominator, 10**18) + asm = outer.assembly(bit, b, bridge, k, eta=eta, beta=beta) + assert len(asm['strict_constraints']) == 47 and min(asm['strict_constraints'].values()) > 0 + try: + outer.assembly(bit, b, bridge, k + grid, eta=eta, beta=beta); raise SystemExit('ADJACENT ADMITTED') + except AssertionError: pass + return k, binding + + +def price_word(c, **kw): + r = replay(c, **kw) + v, h, R = r['v'], r['h'], r['R']; m = 5 * h + resid = sum(h - r['sig'][x] for x in range(2 * v, 2 * v + R)) + T = 1 if resid % h == 0 else h + W = (4 * v * h + resid) * T // h; assert (4 * v * h + resid) * T % h == 0 + prof = Counter({j: T * k for j, k in profile(r['H'], v, h).items()}); mass = sum(a * b for a, b in prof.items()) + L_copy = h * r['ncopy'] + assert m * W - mass == T * (4 * v - 5 * L_copy), ('deficit', m * W - mass) + assert 2 * max(prof) < m + cc = coarse(prof, m, W) + return dict(c=cc, H=r['H'], prof=prof, W=W, T=T, resid=resid, m=m, deficit=m * W - mass, replay=r) + + +def phi_fn(m, W, a): + """linearized moment term per child of rank r (float), for search scoring""" + import math + return lambda r: r / (m * W) * math.exp(a * math.log(m / r)) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/engines/base_two_moment.py b/research/r715-target-factors-banked/e8-r740-replica32/code/engines/base_two_moment.py new file mode 100644 index 0000000000..14a90fa0e7 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/engines/base_two_moment.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python3 +"""Maintainer arithmetic cross-check of the pinned PR39 certificate. + +Uses no producer/checker imports. Counts are inputs, not proved by this script. +80-term rational logarithms and 12-term exponentials independently enclose +the two moments. The accompanying written review addresses their realization. +""" +import argparse +from fractions import Fraction as Q +from hashlib import sha256 +import json +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +GRID = 10**30 + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def log_unit(x): + require(1 <= x <= 2, "logarithm range") + z = (x-1)/(x+1) + lo = 2*sum((z**(2*j+1)/(2*j+1) for j in range(80)), Q(0)) + return lo, lo+2*z**161/(161*(1-z*z)) + + +def log_bounds(x): + k = 0 + while x > 2: + x /= 2 + k += 1 + lo, hi = log_unit(x) + l2, u2 = log_unit(Q(2)) + lo, hi = lo+k*l2, hi+k*u2 + # Outward rational rounding keeps later certificates compact. + return Q((lo*GRID).__floor__(), GRID), Q((hi*GRID).__ceil__(), GRID) + + +def exp_bounds(x): + require(0 <= x < 1, "exponential range") + term = total = Q(1) + for j in range(1, 13): + term *= x/j + total += term + tail = term*x/13/(1-x/14) + return total, total+tail + + +def moment(m, W, entries, saving): + lo = hi = Q(0) + for t, count in entries: + t, count = int(t), int(count) + require(0 < t < m and count > 0, "improper child") + l, u = log_bounds(Q(m, t)) + lower = exp_bounds(saving*l)[0] + upper = exp_bounds(saving*u)[1] + lo += Q(t*count, m*W)*lower + hi += Q(t*count, m*W)*upper + return Q((lo*GRID).__floor__(), GRID), Q((hi*GRID).__ceil__(), GRID) + diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/engines/moment.py b/research/r715-target-factors-banked/e8-r740-replica32/code/engines/moment.py new file mode 100644 index 0000000000..7d697cb452 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/engines/moment.py @@ -0,0 +1,113 @@ +"""Independent prospective ordinary five-stage cost, never supplier admission. + +Consumes a raw one-invocation ledger made from the actual source/internal/target +paths. No packed profile is used as an input. Missing physical/finite/compiler +obligations must remain explicit in the accompanying report. +""" +from collections import Counter +from decimal import Decimal, localcontext, ROUND_FLOOR +from fractions import Fraction as F +from functools import lru_cache +from math import factorial +import hashlib, json, sys +from pathlib import Path + +DYAD = 1 << 224 + +def floor(x): return F(x.numerator*DYAD//x.denominator, DYAD) +def ceil(x): return -floor(-x) + +@lru_cache(None) +def logarithm(x): + """Mercator bounds after binary reduction; ln(2) via two Mercator sums. + + For 1 <= y < 2, log(y) is an alternating series in z=y-1. + We instead reduce to 1 <= y < 3/2, and bound log(3/2) and + log(2) by the same alternating series at z=1/2 and z=1/3, + using log(2)=log(3/2)+log(4/3). All sums are exact rationals. + """ + assert x >= 1 + k = 0 + while x >= 2: x /= 2; k += 1 + j = int(x >= F(3, 2)) + if j: x /= F(3, 2) + def mercator(y): + z=y-1 + assert 0 <= z <= F(1,2) + # An even partial sum is below log; the next term bounds its tail. + t=z; s=F(0) + for n in range(1, 225): + s += (t if n & 1 else -t)/n + t *= z + return s, s+t/225 + a,b=mercator(x); c,d=mercator(F(3,2)); e,f=mercator(F(4,3)) + return floor(a+(k+j)*c+k*e), ceil(b+(k+j)*d+k*f) + +def exponential(l,u): + assert 0 <= l <= u < F(1,10) + def poly(x): + s=t=F(1) + for j in range(1,25): t=t*x/j; s+=t + return s,t + lo,_=poly(l);hi,last=poly(u) + return floor(lo),ceil(hi+last*u/25/(1-u/26)) + +def moment(H,m,W,a,bad=False): + lo=hi=F(0) + for r,n in H.items(): + assert 0 < r < m and n > 0 + l,u=logarithm(F(m,r)); e,f=exponential(a*l,a*u) + p=F(r*n,m*W);lo+=p*e;hi+=p*f + if bad: + # Existing envelope shape, only conditionally portable to the new cover. + l,u=logarithm(F(m));e,f=exponential(a*l,a*u) + p=F(32*m*sum(H.values()),10**16*W) + lo+=p*e;hi+=p*f + return floor(lo),ceil(hi) + +def decimal(x): + with localcontext() as c: + c.prec=70 + return str(Decimal(x.numerator)/Decimal(x.denominator)) + +def certify(H,m,W,bad=False): + with localcontext() as c: + c.prec=70 + terms=[(Decimal(r*n)/Decimal(m*W),(Decimal(m)/Decimal(r)).ln()) for r,n in H.items()] + fallback=Decimal(32*m*sum(H.values()))/Decimal(10**16*W) if bad else Decimal(0) + lm=Decimal(m).ln();lo=Decimal(0);hi=Decimal('.003') + for _ in range(210): + a=(lo+hi)/2 + if sum(p*(a*l).exp() for p,l in terms)+fallback*(a*lm).exp()<1:lo=a + else:hi=a + q=int(((lo+hi)/2*10**24).to_integral_value(rounding=ROUND_FLOOR)) + lo=F(q,10**24);hi=lo+F(1,10**24) + lv=moment(H,m,W,lo,bad);hv=moment(H,m,W,hi,bad) + assert lv[1]<10 for v in slacks.values()),{k:str(v) for k,v in slacks.items() if v<=0} + assert min(margins.values())==minimum + assert margins['balanced_prefix']-minimum==eta and 1-eps-r==eta/2 + assert 1-eps*(1+c)==eta-eps*eta/4 + return dict(parameters=dict(a_bit=a,a_complex=b,tau=tau,sigma=sigma, + eta=eta,beta=beta,q=q,c=c,epsilon=eps,lambda_=lam, + lambda_prime=lp,alpha_squared_power=r,delta=delta, + C0=bridge['semantic']['C0'],C1=1,kappa=kappa), + strict_constraints=slacks,margins=margins,minimum_margin=minimum, + absorption_gap=minimum-kappa, + recurrence=dict(internal=internal,leaf=leaf,reservations=1-c)) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/export249.py b/research/r715-target-factors-banked/e8-r740-replica32/code/export249.py new file mode 100644 index 0000000000..462a0f121f --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/export249.py @@ -0,0 +1,86 @@ +"""Export a bitE8/1 word to PR249 snapshot format (249-records.bin, 249-states.json, frames.json) and stage it for +PR #266's official cohort checkers. Our own exporter (helpers may start at a kernel entrance E, sigma = dim E). +Records (int32 x 6): MOVE(0,role,old,new,rank,0), ADD(1,dst,src,1,frame,phase), COPY(2,centre,temp,frame,ZERO,rank), +ERASE(3,centre,temp,frame,ZERO,0). A gate with several sources: MOVE every participant to the gate frame, then one ADD +per source. Frames: B = integer label vectors of a basis among the frame's root lines; A = primitive integer +annihilator rows under the standard dot product (exact over Q). +usage: export249.py WORD.json.gz SNAPDIR COHORT_IN COHORT_OUT +Chafik Boukhalfa (chafreaky) with Anthropic Claude assistance; Apache-2.0.""" +import sys, os, json, struct, math, shutil +from fractions import Fraction as Q +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +from e8core import load_word, Lat, to_masks + + +def nullspace(B, h): + M = [[Q(x) for x in r] for r in B]; piv = []; rk = 0 + for col in range(h): + p = next((i for i in range(rk, len(M)) if M[i][col] != 0), None) + if p is None: continue + M[rk], M[p] = M[p], M[rk]; pv = M[rk][col]; M[rk] = [x / pv for x in M[rk]] + for i in range(len(M)): + if i != rk and M[i][col] != 0: + f = M[i][col]; M[i] = [a - f * b for a, b in zip(M[i], M[rk])] + piv.append(col); rk += 1 + A = [] + for fc in [x for x in range(h) if x not in piv]: + a = [Q(0)] * h; a[fc] = Q(1) + for i, pc in enumerate(piv): a[pc] = -M[i][fc] + den = 1 + for x in a: den = den * x.denominator // math.gcd(den, x.denominator) + ai = [int(x * den) for x in a]; g = 0 + for x in ai: g = math.gcd(g, abs(x)) + A.append([x // g for x in ai]) + return A + + +def export(c, out): + os.makedirs(out, exist_ok=True) + L = Lat(c['lines']); masks = to_masks(c, L); v, R, h = c['v'], c['R'], c['h']; n = 2 * v + R + fid = {}; frames = {} + for k, m in enumerate(masks): + if m in fid: continue + fid[m] = k; B = [list(L.lines[i]) for i in L.basis(m)] + A = nullspace(B, h) if B else [[int(i == j) for j in range(h)] for i in range(h)] + assert len(A) + len(B) == h and all(sum(x * y for x, y in zip(a, b)) == 0 for a in A for b in B) + frames[str(k)] = dict(dim=len(B), B=B, A=A) + F = lambda f: fid[masks[f]] + ZERO = fid[0]; FULL = fid[(1 << v) - 1] + dim = {int(a): b['dim'] for a, b in frames.items()} + cur = [F(f) for f in c['start']]; rec = [] + def move(r, f): + if cur[r] != f: rec.append((0, r, cur[r], f, dim[f] - dim[cur[r]], 0)); cur[r] = f + def run(gates, ph): + for f, d, srcs in gates: + f = F(f) + for r in [d] + srcs: move(r, f) + for s in srcs: rec.append((1, d, s, 1, f, ph)) + run(c['D'], 1); run(c['A'], 2) + temp = n + for k, q in enumerate(c['ret']): + fq = cur[q]; rec.append((2, q, temp, fq, ZERO, dim[fq])) + for t, row in enumerate(c['scatter']): + if k in row: rec.append((1, v + t, temp, 1, ZERO, 3)) + rec.append((3, q, temp, fq, ZERO, 0)) + run(c['B'], 4); run(c['C'], 5) + for r in range(n): move(r, F(c['final'][r])) + with open(out + '/249-records.bin', 'wb') as fh: + for e in rec: fh.write(struct.pack('<6i', *e)) + st = dict(n=n, v=v, h=h, R=R, ZERO=ZERO, FULL=FULL, initial={str(r): F(c['start'][r]) for r in range(n)}, + final={str(r): F(c['final'][r]) for r in range(n)}, retained_totals=c['ret'], source_owned_roles=[], regs=[]) + json.dump(st, open(out + '/249-states.json', 'w'), sort_keys=True, separators=(',', ':')) + json.dump(dict(frames=frames), open(out + '/frames.json', 'w'), sort_keys=True, separators=(',', ':')) + return st, frames, rec + + +if __name__ == '__main__': + c = load_word(sys.argv[1]); snap, cin, cout = sys.argv[2:5] + st, frames, rec = export(c, snap) + os.makedirs(cin, exist_ok=True); os.makedirs(cout, exist_ok=True) + json.dump(st, open(cin + '/249-states.json', 'w')); json.dump(dict(frames=frames), open(cin + '/frames.json', 'w')) + json.dump({'donor_keys': []}, open(cin + '/249-DONOR-OWNERSHIP.json', 'w')) + json.dump({}, open(cout + '/COHORT249-FRAMES.json', 'w')) + json.dump({k: int(x) for k, x in st['initial'].items()}, open(cout + '/COHORT249-INITIAL.json', 'w')) + json.dump([], open(cout + '/COHORT249-SELECTION.json', 'w')) + shutil.copy(snap + '/249-records.bin', cout + '/COHORT249-RECORDS.bin') + print(' exported %d records, %d distinct frames, n %d, ZERO %d, FULL %d' % (len(rec), len(frames), st['n'], st['ZERO'], st['FULL'])) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/global_kernel.py b/research/r715-target-factors-banked/e8-r740-replica32/code/global_kernel.py new file mode 100644 index 0000000000..72856bf507 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/global_kernel.py @@ -0,0 +1,243 @@ +# Kernel integration of PR436/PR386 by chafreaky, with OpenAI Codex assistance. +# Original copyright and attribution retained below. This variant uses explicit +# residual isometries and mixed-width banks; the original all-zero-start +# requirement is replaced by the verified kernel entrance contract. +"""Source-bound nine-stage bit template with 32 independent replicas. +PR386 global identity and PR436 generalization by Zhihao Chen and eumemic, +with their disclosed OpenAI Codex and Anthropic Claude assistance, Apache-2.0. +PR439 explicit residual routes and this replication extension by chafreaky, +with OpenAI Codex assistance. All owner assignments and emitted calls are checked. +Historical PR386 regression is performed by the unchanged parent wrapper. +""" +import argparse, gzip, hashlib, json, struct, time +from collections import Counter +from pathlib import Path +from bank_routes import placement, validate_isometries +from config import REPLICAS + +H,L,K,T,M=8,9,4,REPLICAS,64 +def sha(p): return hashlib.sha256(p.read_bytes()).hexdigest() +def write(p,x): p.write_text(json.dumps(x,indent=2)+'\n') + +def recipe(): + out=[dict(kind='local',stage=0,pair=0,reverse=False)]; stage=1 + for j in range(K): + out.append(dict(kind='local',stage=stage,pair=j,reverse=True)); stage+=1 + if j/2') + geo=json.loads((out/'GEOMETRY.json').read_text()) + assert geo['status']=='PASS_COMPRESSED_NINE_BIT_GEOMETRY_AND_BANK_BLOCKS' + # the port routes depend only on the labels: same 120 label vectors, in the same order + assert len(geo['ports'])==V and all(p['port']==t and p['q']==w['lines'][t] for t,p in enumerate(geo['ports'])) + rp=a.local_check/'records/249-records.bin'; raw=rp.read_bytes(); rec=list(struct.iter_unpack('<6i',raw)) + state=json.loads((a.local_check/'records/249-states.json').read_text()) + fs=json.loads((a.local_check/'records/frames.json').read_text())['frames'] + dims={int(f):z['dim'] for f,z in fs.items()} + lg=json.loads((a.local_check/'cout/legality.json').read_text()) + cc=json.loads((a.local_check/'cout/columns.json').read_text()) + assert lg['status'].startswith('PASS') and cc['status'].startswith('PASS') + assert (state['v'],state['n'])==(V,LOCAL) and lg['copies']==lg['erasures']==9 + ADDS=lg['common_frame_ADDs'] + assert cc['formal_columns_checked']==4*V+R and cc['local_scalar_additions']==ADDS + initial=[state['initial'][str(i)] for i in range(LOCAL)] + final=[state['final'][str(i)] for i in range(LOCAL)] + assert all(dims[final[i]]==H for i in range(2*V,LOCAL)) + widths=[H-dims[initial[i]] for i in range(2*V,LOCAL)] + ENT=sum(H-z for z in widths) + place,NB=placement(widths,T) + assert T%8==0 and T*(H*R-ENT)%M==0 and NB==T*(H*R-ENT)//M + LIVE=DATA+L*NB + isometries=json.loads(a.isometries.read_text()) + assert validate_isometries(isometries,w['frames'],w['lines'],dims)==set(initial[2*V:]) + streams={}; checks={}; localH=None + for reverse in (False,True): + cur=(final if reverse else initial)[:]+[-1]; val=[1<=0 + cur[x]=newf + if f: hist[f]+=1 + events.append([0,x,oldf,newf,f,int(reverse)]) + elif op==1: + assert cur[x]==cur[y]==f and x!=y and x U-perp, ERASE -> fresh COPY), F2 on all local columns + private centre, 9 copies of rank 8, +equal forward/reverse paid histograms, cancellation-free row l1 bounds and the nine-stage prefix 2^18 cf^5 cb^4 < 2^192, +helper initial/final frames (0 / FULL in #386; kernel pivots start at their entrance). usage: iface386.py WORD.json.gz""" +import sys, os, json, tempfile +from collections import Counter +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +from e8core import load_word +from export249 import export +H = 8 +def check(c, allow=int(os.environ.get("PREFIX_ALLOW", "192"))): + st, frames, rec = export(c, tempfile.mkdtemp()) + v, n = st['v'], st['n']; dims = {int(k): z['dim'] for k, z in frames.items()} + initial = [st['initial'][str(i)] for i in range(n)]; final = [st['final'][str(i)] for i in range(n)] + nz_start = Counter(dims[initial[i]] for i in range(2 * v, n)); assert all(dims[final[i]] == H for i in range(2 * v, n)) + out = {} + for reverse in (False, True): + cur = (final if reverse else initial)[:] + [-1]; val = [1 << i for i in range(n)] + [0] + norm = [1] * n + [0]; mx = 1; centre = None; hist = Counter(); copies = adds = 0 + dim = (lambda f: H - dims[f]) if reverse else (lambda f: dims[f]) + for op, x, y, cc, f, z in (reversed(rec) if reverse else rec): + if op == 0: + old, new = (cc, y) if reverse else (y, cc) + assert cur[x] == old and dim(new) - dim(old) == f >= 0; cur[x] = new + if f: hist[f] += 1 + elif op == 1: + assert cur[x] == cur[y] == f and x != y and x < n + if centre is not None: assert x != centre + if y == n: assert centre is not None + if cc & 1: val[x] ^= val[y] + norm[x] += abs(cc) * norm[y]; mx = max(mx, norm[x]); adds += 1 + elif op == (3 if reverse else 2): + assert centre is None and y == n and cur[x] == cc and val[n] == 0 + r = abs(dim(cc) - dim(f)); assert r == 8 + centre = x; cur[n] = f; val[n] = val[x]; norm[n] = norm[x]; hist[r] += 1; copies += 1 + else: + assert centre == x and y == n and cur[x] == cc and cur[n] == f and val[n] == val[x] + val[n] = 0; norm[n] = 0; cur[n] = -1; centre = None + assert centre is None and copies == 9 and cur[:n] == (initial if reverse else final) + for i in range(n): assert val[i] == (1 << i) ^ ((1 << (i - v)) if v <= i < 2 * v else 0) + out['reverse' if reverse else 'forward'] = dict(adds=adds, copies=copies, row_l1=mx, hist=dict(sorted(hist.items()))) + assert out['forward']['hist'] == out['reverse']['hist'] + cf, cb = out['forward']['row_l1'], out['reverse']['row_l1']; pre = (1 << 18) * cf ** 5 * cb ** 4 + return dict(n=n, R=st['R'], helper_start_dims=dict(sorted(nz_start.items())), streams=out, prefix_bits=pre.bit_length(), prefix_ok=pre < 1 << allow, prefix_allow=allow) +if __name__ == '__main__': + print(json.dumps(check(load_word(sys.argv[1])))) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/rebuild.py b/research/r715-target-factors-banked/e8-r740-replica32/code/rebuild.py new file mode 100644 index 0000000000..f7239ea69f --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/rebuild.py @@ -0,0 +1,65 @@ +"""Reconstruct primitive retiming and the kernel with 32 exact bank replicas. +Prepared by chafreaky with OpenAI Codex assistance; Apache-2.0. +""" +import copy +import json +from pathlib import Path +from e8core import load_word, replay +from iface386 import check +from stages import content_sha, retime +from replica_kernel import kernel +from config import REPLICAS + +ROOT=Path(__file__).resolve().parents[1] +parent=load_word(str(ROOT/'parent436/data/bit/bitE8-r740.json.gz')) +timing=json.loads((ROOT/'data/retiming.json').read_text()) +assert content_sha(parent)==timing['input_sha256'] +primitive=copy.deepcopy(parent) +for phase in ('D','A','B','C'): + primitive[phase]=[[f,d,[s]] for f,d,ss in parent[phase] for s in ss] +retimed=retime(primitive,timing['changes']) +assert len(timing['changes'])==57 and content_sha(retimed)==timing['output_sha256'] +for phase in ('D','A','B','C'): + assert [(d,s) for f,d,ss in parent[phase] for s in ss]==[(d,s) for f,d,ss in retimed[phase] for s in ss] +selected=json.loads((ROOT/'data/selection.json').read_text()) +assert content_sha(retimed)==selected['input_sha256'] +word,entries,rank,donors=kernel(retimed,selected['entries'],REPLICAS) +assert (entries,rank,donors,REPLICAS)==(114,138,103,32) +assert content_sha(word)==selected['output_sha256'] +post=json.loads((ROOT/'data/post-retiming.json').read_text()) +assert [len(s['gates']) for s in post]==[112,42] +for stage in post: + original=json.loads((ROOT/'data/upstream441'/stage['source']).read_text()) + assert stage['gates']==original['gates'] and all(g[0]=='B' for g in stage['gates']) + assert content_sha(word)==stage['input_sha256'] + word=retime(word,stage['gates']) + assert content_sha(word)==stage['output_sha256'] +assert word==load_word(str(ROOT/'data/word.json.gz')) +audit=replay(word,span_mode='z');assert not audit['viol'],audit['viol'][:5] +interface=check(word,192);assert interface['prefix_ok'] + +rejected=[] +for name,mutate in [ + ('retained row used as pivot',lambda s:s[0].__setitem__(1,parent['ret'][0])), + ('duplicate pivot',lambda s:s.append(copy.deepcopy(s[0]))), +]: + bad=copy.deepcopy(selected['entries']);mutate(bad) + try:kernel(retimed,bad,REPLICAS) + except AssertionError:rejected.append(name) + else:raise AssertionError('accepted invalid kernel selection: '+name) +try:kernel(retimed,selected['entries'],8) +except AssertionError:rejected.append('eight replicas do not fill integral banks') +else:raise AssertionError('accepted nonintegral bank stock') +bad=copy.deepcopy(word);bad['A'][0][2].pop() +try:bad_audit=replay(bad,span_mode='z') +except AssertionError:pass +else:assert bad_audit['viol'],'missing dirty-response correction accepted' +rejected.append('omit a kernel dirty-response correction') +bad=copy.deepcopy(timing['changes']);bad[0][2]=[] +try:retime(primitive,bad) +except AssertionError:rejected.append('wrong primitive input frame') +else:raise AssertionError('accepted incorrect frame binding') +print(json.dumps(dict(status='PASS_FROZEN_RETIMING_KERNEL_REPLICA_REBUILD', + input_sha256=content_sha(parent),retimed_sha256=content_sha(retimed),output_sha256=content_sha(word), + pre_kernel_frame_changes=57,post_kernel_frame_changes=[112,42],entries=entries,entrance_rank=rank,donor_slots=donors,replicas=REPLICAS, + interface=interface,mutations_rejected=rejected),sort_keys=True)) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/replica_kernel.py b/research/r715-target-factors-banked/e8-r740-replica32/code/replica_kernel.py new file mode 100644 index 0000000000..b61f1d98f2 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/replica_kernel.py @@ -0,0 +1,42 @@ +"""PR417 kernel with a checked replication count instead of the eight-replica +rank congruence. All local response and frame checks are retained verbatim. +Generalization by chafreaky with OpenAI Codex assistance; Apache-2.0. +""" +from stages import Lat, to_masks, occurrences, Framer, mask_of, json + +def kernel(c, sel, replicas=32): + L = Lat(c['lines']); masks = to_masks(c, L); v = c['v']; n = 2 * v + c['R']; FULL = (1 << v) - 1 + occ = occurrences(c, masks) + gm = {(ph, k): masks[g[0]] for ph in ('D', 'A', 'B', 'C') for k, g in enumerate(c[ph])} + first = {} + for h in range(2 * v, n): + assert masks[c['start'][h]] == 0 + first[h] = next(x if kind == 'p' else gm[x] for kind, x in occ[h][1:] if (x if kind == 'p' else gm[x]) != 0) + resp = {} + for f, t, srcs in c['D']: + assert masks[f] == 0 + for s in srcs: resp[s] = resp.get(s, 0) ^ (1 << (t - v)) + ret = set(c['ret']); pivots = {}; donor_at = {}; tot = 0 + for E_lines, p, D in sel: + E = L.close(mask_of(E_lines)); assert E == mask_of(E_lines) and E != 0 + assert p not in ret and p not in pivots and p not in donor_at and 2 * v <= p < n + x = resp.get(p, 0) + for d in D: + assert d not in ret and d not in pivots and 2 * v <= d < n + assert donor_at.setdefault(d, E) == E, 'donor serves one entrance' + x ^= resp.get(d, 0) + assert x == 0, ('response relation fails', p) + for h in [p] + D: assert E & ~first[h] == 0, ('entrance not inside first frame', h) + pivots[p] = E; tot += L.dim(E) + assert not set(pivots) & set(donor_at) + assert replicas > 0 and replicas % 8 == 0 + assert replicas * (8*c['R']-tot) % 64 == 0, 'residual coordinates must fill whole banks' + out = json.loads(json.dumps(c)); fm = Framer(out) + for p, E in pivots.items(): out['start'][p] = fm.fid(E) + out['D'] = [[f, t, [s for s in srcs if s not in pivots]] for f, t, srcs in c['D']] + byd = {} + for E_lines, p, D in sel: + for d in D: byd.setdefault((d, mask_of(E_lines)), []).append(p) + out['A'] = [[fm.fid(E), d, sorted(ps)] for (d, E), ps in sorted(byd.items())] + out['A'] + out['C'] = out['C'] + [[fm.fid(FULL), d, sorted(ps)] for (d, E), ps in sorted(byd.items())] + return out, len(sel), tot, len(byd) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/stages.py b/research/r715-target-factors-banked/e8-r740-replica32/code/stages.py new file mode 100644 index 0000000000..9ef95d52f4 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/stages.py @@ -0,0 +1,143 @@ +"""Transcript stages on the E8 bit word (bitE8/1), applied from frozen selections, each bound to the exact input word. + +retime (our #329 descent2 / #287 concave retiming, ported to E8 frames): every selected gate g gets a new frame F with + close(LB_g + prev frames of its participants) <= F <= rootspan(AND of their next frames), where LB_g is the + x-support of the non-target operands (source-span rule); pinned: D gates (frame 0), y at frame 0 at the scatter, + retained totals at FULL at COPY, start and final frames. Checked on the joint retimed configuration. +kernel (our #320/#329 shared-donor response kernel; #272/#299/#319 lineage): entry = pivot p, entrance E, donors D with + resp(p) = XOR resp(D) over F2, where resp(h) = the targets whose frame-0 completion (D) gates read h; E inside the + first frame of p and of every donor. p starts at E and leaves the D gates; each donor climbs to E at the start of + A and pays d += (its pivots) at E; after C it pays d += (its pivots) again at FULL (F2: d -= p). + Exclusivity: pivots are never donors, a donor serves one entrance. Total entrance rank = 0 mod 8 (integral + B_4 width W; the residuals then tile width-72 banks with 9 replicas, checked separately). + +usage: stages.py retime|kernel IN.json.gz OUT.json.gz SELECTION.json +After applying, the full exact replay of e8core (legality, F2 on all columns, source spans) must pass and the output +must equal the frozen output content hash. (This package uses the kernel stage only: on PR #376's word our retiming +descent finds no move, before or after the kernel.) +Chafik Boukhalfa (chafreaky) with Anthropic Claude assistance; Apache-2.0.""" +import sys, os, json, hashlib +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +from e8core import * + + +def content_sha(c): + return hashlib.sha256(json.dumps(c, sort_keys=True, separators=(',', ':')).encode()).hexdigest() + + +class Framer: + def __init__(self, c): + self.fl = c['frames']; self.key = {}; self.v = c['v'] + for k, fr in enumerate(self.fl): self.key.setdefault(sum(1 << i for i in fr), k) + def fid(self, m): + if m not in self.key: self.key[m] = len(self.fl); self.fl.append([i for i in range(self.v) if m >> i & 1]) + return self.key[m] + + +def mask_of(lines): return sum(1 << i for i in lines) + + +def occurrences(c, masks): + """per register: list of (kind, ref) with pins ('p', mask) and gates ('g', (phase, k)) in time order""" + v = c['v']; n = 2 * v + c['R']; FULL = (1 << v) - 1 + occ = [[('p', masks[c['start'][r]])] for r in range(n)] + for ph in ('D', 'A'): + for k, (f, d, s) in enumerate(c[ph]): + for x in [d] + s: occ[x].append(('g', (ph, k))) + for t in range(v): occ[v + t].append(('p', 0)) + for q in c['ret']: occ[q].append(('p', FULL)) + for ph in ('B', 'C'): + for k, (f, d, s) in enumerate(c[ph]): + for x in [d] + s: occ[x].append(('g', (ph, k))) + for r in range(n): occ[r].append(('p', masks[c['final'][r]])) + return occ + + +def lower_bounds(c, L): + v = c['v']; n = 2 * v + c['R']; sup = [1 << i if i < v else 0 for i in range(n)]; lb = {} + for ph in ('D', 'A', 'B', 'C'): + for k, (f, d, srcs) in enumerate(c[ph]): + need = 0 + for s in srcs: + sup[d] |= sup[s] + if s < v or s >= 2 * v: need |= sup[s] + if d >= 2 * v: need |= sup[d] + lb[(ph, k)] = L.close(need) if need else 0 + return lb + + +def retime(c, sel): + L = Lat(c['lines']); masks = to_masks(c, L); occ = occurrences(c, masks); lb = lower_bounds(c, L) + gm = {(ph, k): masks[g[0]] for ph in ('D', 'A', 'B', 'C') for k, g in enumerate(c[ph])} + pos = {} + for r, o in enumerate(occ): + for i, (kind, x) in enumerate(o): + if kind == 'g': pos.setdefault(x, []).append((r, i)) + def fr(r, i): + kind, x = occ[r][i]; return x if kind == 'p' else gm[x] + seen = set() + for ph, k, old_lines, new_lines in sel: + g = (ph, k); assert ph != 'D' and g not in seen; seen.add(g) + assert gm[g] == L.close(mask_of(old_lines)), ('selection not bound to this word', g) + F = L.close(mask_of(new_lines)); assert F == mask_of(new_lines), 'frame given as all its root lines' + gm[g] = F + for g in seen: # the joint retimed configuration: every moved gate inside its feasible interval + F = gm[g]; lo = lb[g]; hi = (1 << c['v']) - 1 + for r, i in pos[g]: lo |= fr(r, i - 1); hi &= fr(r, i + 1) + assert lo & ~F == 0 and F & ~hi == 0, ('outside the feasible interval', g) + out = json.loads(json.dumps(c)); fm = Framer(out) + for ph in ('D', 'A', 'B', 'C'): + out[ph] = [[fm.fid(gm[(ph, k)]), d, list(s)] for k, (f, d, s) in enumerate(c[ph])] + return out + + +def kernel(c, sel): + L = Lat(c['lines']); masks = to_masks(c, L); v = c['v']; n = 2 * v + c['R']; FULL = (1 << v) - 1 + occ = occurrences(c, masks) + gm = {(ph, k): masks[g[0]] for ph in ('D', 'A', 'B', 'C') for k, g in enumerate(c[ph])} + first = {} + for h in range(2 * v, n): + assert masks[c['start'][h]] == 0 + first[h] = next(x if kind == 'p' else gm[x] for kind, x in occ[h][1:] if (x if kind == 'p' else gm[x]) != 0) + resp = {} + for f, t, srcs in c['D']: + assert masks[f] == 0 + for s in srcs: resp[s] = resp.get(s, 0) ^ (1 << (t - v)) + ret = set(c['ret']); pivots = {}; donor_at = {}; tot = 0 + for E_lines, p, D in sel: + E = L.close(mask_of(E_lines)); assert E == mask_of(E_lines) and E != 0 + assert p not in ret and p not in pivots and p not in donor_at and 2 * v <= p < n + x = resp.get(p, 0) + for d in D: + assert d not in ret and d not in pivots and 2 * v <= d < n + assert donor_at.setdefault(d, E) == E, 'donor serves one entrance' + x ^= resp.get(d, 0) + assert x == 0, ('response relation fails', p) + for h in [p] + D: assert E & ~first[h] == 0, ('entrance not inside first frame', h) + pivots[p] = E; tot += L.dim(E) + assert not set(pivots) & set(donor_at) + assert tot % 8 == 0, 'total entrance rank 0 mod 8' + out = json.loads(json.dumps(c)); fm = Framer(out) + for p, E in pivots.items(): out['start'][p] = fm.fid(E) + out['D'] = [[f, t, [s for s in srcs if s not in pivots]] for f, t, srcs in c['D']] + byd = {} + for E_lines, p, D in sel: + for d in D: byd.setdefault((d, mask_of(E_lines)), []).append(p) + out['A'] = [[fm.fid(E), d, sorted(ps)] for (d, E), ps in sorted(byd.items())] + out['A'] + out['C'] = out['C'] + [[fm.fid(FULL), d, sorted(ps)] for (d, E), ps in sorted(byd.items())] + return out, len(sel), tot, len(byd) + + +if __name__ == '__main__': + st, inp, outp, selp = sys.argv[1:5] + c = load_word(inp); sel = json.load(open(selp)) + assert sel['input_sha256'] == content_sha(c), 'selection bound to a different input word' + if st == 'retime': + w = retime(c, sel['gates']); info = '%d gates retimed' % len(sel['gates']) + else: + w, ne, tot, nd = kernel(c, sel['entries']); info = '%d entries, total entrance rank %d, %d donor slots' % (ne, tot, nd) + r = replay(w, span_mode='z'); assert not r['viol'], r['viol'][:5] + assert content_sha(w) == sel['output_sha256'], 'output differs from the frozen stage output' + save_word(w, outp) + print(' stage %s: %s | exact replay PASS (legality, F2 on %d columns, source spans) | local histogram %s | output sha %s' + % (st, info, r['n'], dict(sorted(r['H'].items())), sel['output_sha256'][:16])) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/code/tile_m.py b/research/r715-target-factors-banked/e8-r740-replica32/code/tile_m.py new file mode 100644 index 0000000000..cd5fd9b539 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/code/tile_m.py @@ -0,0 +1,93 @@ +"""Residual census (8 - sigma per helper) and an exact zero-padding bank tiling of width m = (2K+1)h with T replicas: +tile() and economy_tile() verbatim from our PR #329 bank_template.py (via code/tile.py of our dtst3 package). +usage: tile_m.py WORD.json.gz M [replicas] (replicas default: the least T with T x residual sum = 0 mod M that tiles)""" +import sys,os,collections +from collections import Counter +sys.path.insert(0,os.path.dirname(os.path.abspath(__file__))) +from e8core import * +def economy_tile(blocks, m): + """Exact zero-padding tiling used when the filler search of tile() runs out of filler blocks (the kernel pivots + and early restorations of the stage stack add many residual widths that do not divide m; the PR #299 analogue at + p = 12 was the (r^4, 24, 4^(24-r)) re-tiling). The fillers are the two most numerous widths dividing m (here the + full helper width h and the rank-4 entrance residual). Each other width w, in decreasing order, gets the bank + w^a F^c f^b (w*a + F*c + f*b = m) that spends the fewest narrow fillers f per w block (then the largest a), plus + at most one bank w^r F^c' f^b' for the remainder r = n mod a. The leftover fillers fill pure banks F^(m/F), + f^(m/f) and y residue banks F^j f^k. Every bank sums to m and every block is used exactly once (no padding).""" + from fractions import Fraction + blocks = {w: n for w, n in blocks.items() if n} + div = sorted((w for w in blocks if m % w == 0), key=lambda w: (-blocks[w], w)) + assert len(div) >= 2, ('economy tiling needs two filler widths', blocks) + F, f = sorted(div[:2], reverse=True) + + def fill(rest): + """(c, b) with F*c + f*b = rest, c maximal (fewest narrow fillers); None if impossible.""" + return next(((c, (rest - F*c)//f) for c in range(rest//F, -1, -1) if (rest - F*c) % f == 0), None) + + left = {F: blocks[F], f: blocks[f]}; out = [] + for w in sorted((x for x in blocks if x not in (F, f)), reverse=True): + n = blocks[w] + opts = [(Fraction(cb[1], a), -a, a, cb) for a in range(m//w, 0, -1) for cb in [fill(m - w*a)] if cb] + assert opts, ('no bank for width', w) + _, _, a, (c, b) = min(opts); q, r = divmod(n, a) + if q: out.append(((w,)*a + (F,)*c + (f,)*b, q)); left[F] -= q*c; left[f] -= q*b + if r: + cb = fill(m - w*r); assert cb, ('no remainder bank', w, r) + out.append(((w,)*r + (F,)*cb[0] + (f,)*cb[1], 1)); left[F] -= cb[0]; left[f] -= cb[1] + assert left[F] >= 0 and left[f] >= 0, ('fillers exhausted', left) + pF, pf = m//F, m//f + for y in range((pF*pf) + 1): + for j in range(1 if y else 0, pF if y else 1): + if (m - F*j) % f: continue + k = (m - F*j)//f; aF, af = left[F] - y*j, left[f] - y*k + if aF >= 0 and af >= 0 and aF % pF == 0 and af % pf == 0: + out += ([((F,)*j + (f,)*k, y)] if y else []) + ([((F,)*pF, aF//pF)] if aF else []) + ([((f,)*pf, af//pf)] if af else []) + return out + raise AssertionError(('no exact zero-padding tiling', blocks, m)) + + +def tile(blocks, m): + """Exact tiling of {width: number of blocks} into banks of total width m, as ((widths, banks), ...). + + A width dividing m fills pure banks. A width w not dividing m is mixed with a filler width f dividing m: + banks w^a f^b with a maximal (w*a + f*b = m), then at most one bank w^r f^t for the remainder r. Fillers + are tried in a fixed order (most blocks first) with backtracking until every pure width also divides out. + Fails (AssertionError) unless every block is used and every bank is full; there is no padding.""" + blocks = {w: n for w, n in blocks.items() if n} + assert all(0 < w <= m for w in blocks) + mixed = sorted(x for x in blocks if m % x) + + def search(i, left, out): + if i == len(mixed): + if any(left[w] % (m // w) for w in left): return None + return out + [(tuple([w]*(m // w)), left[w]//(m // w)) for w in sorted(left) if left[w]] + w = mixed[i]; n = blocks[w] + for f in sorted(left, key=lambda x: (-left[x], x)): + a = next((a for a in range(m // w, 0, -1) if (m - w*a) % f == 0), None) + if a is None: continue + b = (m - w*a)//f; q, r = divmod(n, a) + if r and (m - w*r) % f: continue + t = (m - w*r)//f if r else 0 + if q*b + t > left[f]: continue + rest = dict(left); rest[f] -= q*b + t + found = search(i + 1, rest, out + ([(tuple([w]*a + [f]*b), q)] if q else []) + ([(tuple([w]*r + [f]*t), 1)] if r else [])) + if found is not None: return found + return None + out = search(0, {w: n for w, n in blocks.items() if not m % w}, []) + if out is None: out = economy_tile(blocks, m) + assert all(sum(widths) == m and count > 0 for widths, count in out) + used = Counter() + for widths, count in out: + for x in widths: used[x] += count + assert used == Counter(blocks), 'every block used exactly once' + return tuple(out) +if __name__ == '__main__': + c = load_word(sys.argv[1]); m = int(sys.argv[2]) + L = Lat(c['lines']); M = to_masks(c, L); v = c['v']; n = 2 * v + c['R'] + res = Counter(8 - L.dim(M[c['start'][r]]) for r in range(2 * v, n)); tot = sum(k * x for k, x in res.items()) + reps = [int(sys.argv[3])] if len(sys.argv) > 3 else [t for t in range(1, 200) if t * tot % m == 0] + for T in reps: + try: pat = tile({r: T * k for r, k in res.items() if r > 0}, m); break + except AssertionError: pat = None + assert pat, 'no tiling' + print(' residual census', dict(sorted(res.items())), 'sum', tot) + print(' PASS exact width-%d tiling with %d replicas: %d banks' % (m, T, sum(k for _, k in pat)), pat) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/post-retiming.json b/research/r715-target-factors-banked/e8-r740-replica32/data/post-retiming.json new file mode 100644 index 0000000000..f3306fa80d --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/data/post-retiming.json @@ -0,0 +1,9998 @@ +[ + { + "source": "pair-retime-selection.json", + "input_sha256": "baf86c9d11d1819be0eb4349b606a6773d29790739b755dabee10bdbf771a78d", + "output_sha256": "653c24f51f8af2d267c573931edfd92a891cd5a3695d1f4a54279a3f9840cd1a", + "gates": [ + [ + "B", + 5, + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + [ + 0, + 1, + 2, + 3, + 32, + 35, + 36, + 39, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 6, + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + [ + 0, + 1, + 2, + 3, + 32, + 35, + 36, + 39, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 7, + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + [ + 0, + 1, + 2, + 3, + 32, + 35, + 36, + 39, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 8, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94 + ], + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 15, + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39 + ], + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 64, + 67, + 68, + 71, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 16, + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39 + ], + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 64, + 67, + 68, + 71, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 17, + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39 + ], + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 64, + 67, + 68, + 71, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 18, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62 + ], + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 23, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91 + ] + ], + [ + "B", + 24, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91 + ] + ], + [ + "B", + 25, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91 + ] + ], + [ + "B", + 26, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ] + ], + [ + "B", + 31, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83 + ] + ], + [ + "B", + 32, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83 + ] + ], + [ + "B", + 33, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83 + ] + ], + [ + "B", + 34, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ] + ], + [ + "B", + 40, + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47 + ], + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 64, + 66, + 69, + 71, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 41, + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47 + ], + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 64, + 66, + 69, + 71, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 42, + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47 + ], + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 64, + 66, + 69, + 71, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 43, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63 + ], + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 48, + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ] + ], + [ + "B", + 49, + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ] + ], + [ + "B", + 50, + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ] + ], + [ + "B", + 51, + [ + 0, + 3, + 4, + 7, + 58, + 59, + 60, + 61, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 58, + [ + 0, + 3, + 5, + 6, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 48, + 49, + 50, + 51, + 64, + 65, + 70, + 71, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 59, + [ + 0, + 3, + 5, + 6, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 48, + 49, + 50, + 51, + 64, + 65, + 70, + 71, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 60, + [ + 0, + 3, + 5, + 6, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 48, + 49, + 50, + 51, + 64, + 65, + 70, + 71, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 61, + [ + 0, + 3, + 5, + 6, + 57, + 59, + 61, + 63, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 66, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75 + ] + ], + [ + "B", + 67, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75 + ] + ], + [ + "B", + 68, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75 + ] + ], + [ + "B", + 69, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ] + ], + [ + "B", + 74, + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 66, + 68, + 70, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 75, + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 66, + 68, + 70, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 76, + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 66, + 68, + 70, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 77, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 84, + [ + 1, + 3, + 4, + 6, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ] + ], + [ + "B", + 85, + [ + 1, + 3, + 4, + 6, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ] + ], + [ + "B", + 86, + [ + 1, + 3, + 4, + 6, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ] + ], + [ + "B", + 87, + [ + 1, + 3, + 4, + 6, + 57, + 59, + 60, + 62, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ] + ], + [ + "B", + 92, + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 40, + 41, + 42, + 43, + 64, + 65, + 68, + 69, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 93, + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 40, + 41, + 42, + 43, + 64, + 65, + 68, + 69, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 94, + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 40, + 41, + 42, + 43, + 64, + 65, + 68, + 69, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 95, + [ + 1, + 3, + 5, + 7, + 58, + 59, + 62, + 63, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 100, + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 32, + 33, + 34, + 35, + 64, + 65, + 66, + 67, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 101, + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 32, + 33, + 34, + 35, + 64, + 65, + 66, + 67, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 102, + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 32, + 33, + 34, + 35, + 64, + 65, + 66, + 67, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 103, + [ + 2, + 3, + 4, + 5, + 57, + 58, + 61, + 62, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 108, + [ + 2, + 3, + 6, + 7, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ] + ], + [ + "B", + 109, + [ + 2, + 3, + 6, + 7, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ] + ], + [ + "B", + 110, + [ + 2, + 3, + 6, + 7, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ] + ], + [ + "B", + 111, + [ + 2, + 3, + 6, + 7, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ] + ], + [ + "B", + 116, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ] + ], + [ + "B", + 117, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ] + ], + [ + "B", + 118, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ] + ], + [ + "B", + 119, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 122, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 96, + 99 + ] + ], + [ + "B", + 123, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 96, + 99 + ] + ], + [ + "B", + 126, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ] + ], + [ + "B", + 127, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ] + ], + [ + "B", + 130, + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63 + ], + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63, + 64, + 67, + 68, + 71, + 88, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 131, + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63 + ], + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63, + 64, + 67, + 68, + 71, + 88, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 134, + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95 + ], + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 32, + 35, + 36, + 39, + 56, + 59, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 135, + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95 + ], + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 32, + 35, + 36, + 39, + 56, + 59, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 138, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62 + ], + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 139, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62 + ], + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 142, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94 + ], + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 143, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94 + ], + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 146, + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61 + ], + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61, + 64, + 66, + 69, + 71, + 80, + 83, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 147, + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61 + ], + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61, + 64, + 66, + 69, + 71, + 80, + 83, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 150, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63 + ], + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 151, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63 + ], + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 154, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 104, + 107 + ] + ], + [ + "B", + 155, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 104, + 107 + ] + ], + [ + "B", + 158, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ] + ], + [ + "B", + 159, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ] + ], + [ + "B", + 162, + [ + 0, + 3, + 5, + 6, + 56, + 58, + 60, + 62, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 8, + 11, + 48, + 49, + 50, + 51, + 56, + 58, + 60, + 62, + 64, + 65, + 70, + 71, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 163, + [ + 0, + 3, + 5, + 6, + 56, + 58, + 60, + 62, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 8, + 11, + 48, + 49, + 50, + 51, + 56, + 58, + 60, + 62, + 64, + 65, + 70, + 71, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 166, + [ + 0, + 3, + 5, + 6, + 57, + 59, + 61, + 63, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 167, + [ + 0, + 3, + 5, + 6, + 57, + 59, + 61, + 63, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 170, + [ + 0, + 3, + 4, + 7, + 56, + 57, + 62, + 63, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 48, + 51, + 56, + 57, + 62, + 63, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ] + ], + [ + "B", + 171, + [ + 0, + 3, + 4, + 7, + 56, + 57, + 62, + 63, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 48, + 51, + 56, + 57, + 62, + 63, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ] + ], + [ + "B", + 174, + [ + 0, + 3, + 4, + 7, + 58, + 59, + 60, + 61, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 175, + [ + 0, + 3, + 4, + 7, + 58, + 59, + 60, + 61, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 178, + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62 + ], + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62, + 64, + 66, + 68, + 70, + 72, + 75, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 179, + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62 + ], + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62, + 64, + 66, + 68, + 70, + 72, + 75, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 182, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 183, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 186, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 112, + 115 + ] + ], + [ + "B", + 187, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 112, + 115 + ] + ], + [ + "B", + 190, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ] + ], + [ + "B", + 191, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ] + ], + [ + "B", + 194, + [ + 1, + 3, + 5, + 7, + 56, + 57, + 60, + 61, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 16, + 19, + 40, + 41, + 42, + 43, + 56, + 57, + 60, + 61, + 64, + 65, + 68, + 69, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 195, + [ + 1, + 3, + 5, + 7, + 56, + 57, + 60, + 61, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 16, + 19, + 40, + 41, + 42, + 43, + 56, + 57, + 60, + 61, + 64, + 65, + 68, + 69, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 198, + [ + 1, + 3, + 5, + 7, + 58, + 59, + 62, + 63, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 199, + [ + 1, + 3, + 5, + 7, + 58, + 59, + 62, + 63, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 202, + [ + 1, + 3, + 4, + 6, + 56, + 58, + 61, + 63, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 40, + 43, + 56, + 58, + 61, + 63, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ] + ], + [ + "B", + 203, + [ + 1, + 3, + 4, + 6, + 56, + 58, + 61, + 63, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 40, + 43, + 56, + 58, + 61, + 63, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ] + ], + [ + "B", + 206, + [ + 1, + 3, + 4, + 6, + 57, + 59, + 60, + 62, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ] + ], + [ + "B", + 207, + [ + 1, + 3, + 4, + 6, + 57, + 59, + 60, + 62, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ] + ], + [ + "B", + 210, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 67, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 211, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 67, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 214, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 215, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 218, + [ + 2, + 3, + 6, + 7, + 56, + 57, + 58, + 59, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 35, + 56, + 57, + 58, + 59, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 219, + [ + 2, + 3, + 6, + 7, + 56, + 57, + 58, + 59, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 35, + 56, + 57, + 58, + 59, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 222, + [ + 2, + 3, + 6, + 7, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ] + ], + [ + "B", + 223, + [ + 2, + 3, + 6, + 7, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ] + ], + [ + "B", + 226, + [ + 2, + 3, + 4, + 5, + 56, + 59, + 60, + 63, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 24, + 27, + 32, + 33, + 34, + 35, + 56, + 59, + 60, + 63, + 64, + 65, + 66, + 67, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 227, + [ + 2, + 3, + 4, + 5, + 56, + 59, + 60, + 63, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 24, + 27, + 32, + 33, + 34, + 35, + 56, + 59, + 60, + 63, + 64, + 65, + 66, + 67, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 230, + [ + 2, + 3, + 4, + 5, + 57, + 58, + 61, + 62, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 231, + [ + 2, + 3, + 4, + 5, + 57, + 58, + 61, + 62, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ] + ] + }, + { + "source": "window-retime-selection.json", + "input_sha256": "653c24f51f8af2d267c573931edfd92a891cd5a3695d1f4a54279a3f9840cd1a", + "output_sha256": "64d7d1e0c6ea7a3a8e91254c0dfd51b71637b49703ef4c1fce184fded5040bc9", + "gates": [ + [ + "B", + 8, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ], + [ + 0, + 1, + 2, + 3, + 8, + 11, + 12, + 15, + 16, + 19, + 20, + 23, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 41, + 42, + 45, + 46, + 49, + 50, + 53, + 54, + 57, + 58, + 60, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 75, + 76, + 79, + 80, + 83, + 84, + 87, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103, + 105, + 106, + 109, + 110, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 18, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ], + [ + 0, + 1, + 4, + 5, + 8, + 10, + 13, + 15, + 16, + 18, + 21, + 23, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 42, + 45, + 47, + 48, + 50, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 73, + 75, + 76, + 78, + 81, + 83, + 84, + 86, + 89, + 90, + 92, + 96, + 97, + 98, + 99, + 105, + 107, + 108, + 110, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 26, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ], + [ + 0, + 1, + 6, + 7, + 8, + 9, + 14, + 15, + 16, + 17, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 40, + 41, + 46, + 47, + 48, + 49, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 74, + 75, + 76, + 77, + 82, + 83, + 84, + 85, + 88, + 89, + 90, + 91, + 97, + 98, + 100, + 106, + 107, + 108, + 109, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 34, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ], + [ + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 26, + 29, + 31, + 32, + 34, + 37, + 39, + 41, + 42, + 45, + 46, + 48, + 49, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 73, + 75, + 76, + 78, + 80, + 81, + 82, + 83, + 89, + 91, + 92, + 94, + 97, + 99, + 100, + 102, + 105, + 106, + 108, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 43, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ], + [ + 0, + 2, + 5, + 7, + 8, + 9, + 12, + 13, + 17, + 18, + 21, + 22, + 24, + 25, + 30, + 31, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 74, + 75, + 76, + 77, + 81, + 82, + 84, + 90, + 91, + 92, + 93, + 98, + 99, + 100, + 101, + 104, + 105, + 106, + 107, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 51, + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 17, + 19, + 20, + 22, + 24, + 25, + 30, + 31, + 32, + 34, + 37, + 39, + 42, + 43, + 44, + 45, + 49, + 50, + 52, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 82, + 84, + 86, + 90, + 91, + 94, + 95, + 97, + 99, + 101, + 103, + 104, + 105, + 108, + 109, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 61, + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 12, + 18, + 19, + 20, + 21, + 24, + 26, + 29, + 31, + 32, + 33, + 38, + 39, + 41, + 43, + 44, + 46, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 80, + 81, + 84, + 85, + 89, + 91, + 93, + 95, + 98, + 99, + 102, + 103, + 104, + 106, + 108, + 110, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 69, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 18, + 20, + 22, + 24, + 25, + 28, + 29, + 32, + 34, + 36, + 38, + 40, + 41, + 44, + 45, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 81, + 83, + 84, + 86, + 90, + 91, + 92, + 93, + 97, + 99, + 100, + 102, + 106, + 107, + 108, + 109, + 113, + 114, + 116 + ] + ], + [ + "B", + 77, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 16, + 17, + 20, + 21, + 24, + 26, + 28, + 30, + 32, + 33, + 36, + 37, + 40, + 42, + 44, + 46, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 76, + 82, + 83, + 84, + 85, + 89, + 91, + 92, + 94, + 98, + 99, + 100, + 101, + 105, + 107, + 108, + 110, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 87, + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 9, + 11, + 12, + 14, + 16, + 17, + 18, + 19, + 24, + 26, + 28, + 30, + 32, + 34, + 36, + 38, + 41, + 42, + 44, + 50, + 51, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 72, + 74, + 76, + 78, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 89, + 91, + 93, + 95, + 97, + 99, + 101, + 103, + 105, + 106, + 109, + 110, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 95, + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 10, + 11, + 12, + 13, + 17, + 18, + 20, + 24, + 25, + 28, + 29, + 32, + 33, + 36, + 37, + 40, + 41, + 42, + 43, + 49, + 51, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 72, + 73, + 76, + 77, + 81, + 82, + 85, + 86, + 90, + 91, + 94, + 95, + 98, + 99, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 103, + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 9, + 11, + 13, + 15, + 16, + 18, + 20, + 22, + 25, + 26, + 28, + 32, + 33, + 34, + 35, + 40, + 42, + 44, + 46, + 49, + 51, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 72, + 74, + 76, + 78, + 81, + 83, + 85, + 87, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 105, + 107, + 109, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 111, + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 10, + 11, + 14, + 15, + 16, + 17, + 20, + 21, + 24, + 25, + 26, + 27, + 33, + 34, + 36, + 40, + 41, + 44, + 45, + 50, + 51, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 72, + 73, + 76, + 77, + 82, + 83, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102, + 106, + 107, + 110, + 111, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 119, + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 40, + 41, + 42, + 43, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 68, + 72, + 73, + 74, + 75, + 84, + 85, + 86, + 87, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 127, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ], + [ + 0, + 1, + 6, + 7, + 8, + 9, + 14, + 15, + 16, + 17, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 40, + 41, + 46, + 47, + 48, + 49, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 74, + 75, + 76, + 77, + 82, + 83, + 84, + 85, + 88, + 89, + 90, + 91, + 97, + 98, + 100, + 106, + 107, + 108, + 109, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 139, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ], + [ + 0, + 1, + 4, + 5, + 8, + 10, + 13, + 15, + 16, + 18, + 21, + 23, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 42, + 45, + 47, + 48, + 50, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 73, + 75, + 76, + 78, + 81, + 83, + 84, + 86, + 89, + 90, + 92, + 96, + 97, + 98, + 99, + 105, + 107, + 108, + 110, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 143, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ], + [ + 0, + 1, + 2, + 3, + 8, + 11, + 12, + 15, + 16, + 19, + 20, + 23, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 41, + 42, + 45, + 46, + 49, + 50, + 53, + 54, + 57, + 58, + 60, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 75, + 76, + 79, + 80, + 83, + 84, + 87, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103, + 105, + 106, + 109, + 110, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 151, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ], + [ + 0, + 2, + 5, + 7, + 8, + 9, + 12, + 13, + 17, + 18, + 21, + 22, + 24, + 25, + 30, + 31, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 74, + 75, + 76, + 77, + 81, + 82, + 84, + 90, + 91, + 92, + 93, + 98, + 99, + 100, + 101, + 104, + 105, + 106, + 107, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 159, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ], + [ + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 26, + 29, + 31, + 32, + 34, + 37, + 39, + 41, + 42, + 45, + 46, + 48, + 49, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 73, + 75, + 76, + 78, + 80, + 81, + 82, + 83, + 89, + 91, + 92, + 94, + 97, + 99, + 100, + 102, + 105, + 106, + 108, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 167, + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 12, + 18, + 19, + 20, + 21, + 24, + 26, + 29, + 31, + 32, + 33, + 38, + 39, + 41, + 43, + 44, + 46, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 80, + 81, + 84, + 85, + 89, + 91, + 93, + 95, + 98, + 99, + 102, + 103, + 104, + 106, + 108, + 110, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 175, + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 17, + 19, + 20, + 22, + 24, + 25, + 30, + 31, + 32, + 34, + 37, + 39, + 42, + 43, + 44, + 45, + 49, + 50, + 52, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 82, + 84, + 86, + 90, + 91, + 94, + 95, + 97, + 99, + 101, + 103, + 104, + 105, + 108, + 109, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 183, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 16, + 17, + 20, + 21, + 24, + 26, + 28, + 30, + 32, + 33, + 36, + 37, + 40, + 42, + 44, + 46, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 76, + 82, + 83, + 84, + 85, + 89, + 91, + 92, + 94, + 98, + 99, + 100, + 101, + 105, + 107, + 108, + 110, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 191, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 18, + 20, + 22, + 24, + 25, + 28, + 29, + 32, + 34, + 36, + 38, + 40, + 41, + 44, + 45, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 81, + 83, + 84, + 86, + 90, + 91, + 92, + 93, + 97, + 99, + 100, + 102, + 106, + 107, + 108, + 109, + 113, + 114, + 116 + ] + ], + [ + "B", + 199, + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 10, + 11, + 12, + 13, + 17, + 18, + 20, + 24, + 25, + 28, + 29, + 32, + 33, + 36, + 37, + 40, + 41, + 42, + 43, + 49, + 51, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 72, + 73, + 76, + 77, + 81, + 82, + 85, + 86, + 90, + 91, + 94, + 95, + 98, + 99, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 207, + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 9, + 11, + 12, + 14, + 16, + 17, + 18, + 19, + 24, + 26, + 28, + 30, + 32, + 34, + 36, + 38, + 41, + 42, + 44, + 50, + 51, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 72, + 74, + 76, + 78, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 89, + 91, + 93, + 95, + 97, + 99, + 101, + 103, + 105, + 106, + 109, + 110, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 215, + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 40, + 41, + 42, + 43, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 68, + 72, + 73, + 74, + 75, + 84, + 85, + 86, + 87, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 223, + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 10, + 11, + 14, + 15, + 16, + 17, + 20, + 21, + 24, + 25, + 26, + 27, + 33, + 34, + 36, + 40, + 41, + 44, + 45, + 50, + 51, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 72, + 73, + 76, + 77, + 82, + 83, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102, + 106, + 107, + 110, + 111, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 231, + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 9, + 11, + 13, + 15, + 16, + 18, + 20, + 22, + 25, + 26, + 28, + 32, + 33, + 34, + 35, + 40, + 42, + 44, + 46, + 49, + 51, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 72, + 74, + 76, + 78, + 81, + 83, + 85, + 87, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 105, + 107, + 109, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 239, + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 40, + 41, + 42, + 43, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 68, + 72, + 73, + 74, + 75, + 84, + 85, + 86, + 87, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 247, + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 10, + 11, + 14, + 15, + 16, + 17, + 20, + 21, + 24, + 25, + 26, + 27, + 33, + 34, + 36, + 40, + 41, + 44, + 45, + 50, + 51, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 72, + 73, + 76, + 77, + 82, + 83, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102, + 106, + 107, + 110, + 111, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 255, + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 9, + 11, + 13, + 15, + 16, + 18, + 20, + 22, + 25, + 26, + 28, + 32, + 33, + 34, + 35, + 40, + 42, + 44, + 46, + 49, + 51, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 72, + 74, + 76, + 78, + 81, + 83, + 85, + 87, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 105, + 107, + 109, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 263, + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 10, + 11, + 12, + 13, + 17, + 18, + 20, + 24, + 25, + 28, + 29, + 32, + 33, + 36, + 37, + 40, + 41, + 42, + 43, + 49, + 51, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 72, + 73, + 76, + 77, + 81, + 82, + 85, + 86, + 90, + 91, + 94, + 95, + 98, + 99, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 271, + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 9, + 11, + 12, + 14, + 16, + 17, + 18, + 19, + 24, + 26, + 28, + 30, + 32, + 34, + 36, + 38, + 41, + 42, + 44, + 50, + 51, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 72, + 74, + 76, + 78, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 89, + 91, + 93, + 95, + 97, + 99, + 101, + 103, + 105, + 106, + 109, + 110, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 279, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 16, + 17, + 20, + 21, + 24, + 26, + 28, + 30, + 32, + 33, + 36, + 37, + 40, + 42, + 44, + 46, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 76, + 82, + 83, + 84, + 85, + 89, + 91, + 92, + 94, + 98, + 99, + 100, + 101, + 105, + 107, + 108, + 110, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 287, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 18, + 20, + 22, + 24, + 25, + 28, + 29, + 32, + 34, + 36, + 38, + 40, + 41, + 44, + 45, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 81, + 83, + 84, + 86, + 90, + 91, + 92, + 93, + 97, + 99, + 100, + 102, + 106, + 107, + 108, + 109, + 113, + 114, + 116 + ] + ], + [ + "B", + 295, + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 12, + 18, + 19, + 20, + 21, + 24, + 26, + 29, + 31, + 32, + 33, + 38, + 39, + 41, + 43, + 44, + 46, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 80, + 81, + 84, + 85, + 89, + 91, + 93, + 95, + 98, + 99, + 102, + 103, + 104, + 106, + 108, + 110, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 303, + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 17, + 19, + 20, + 22, + 24, + 25, + 30, + 31, + 32, + 34, + 37, + 39, + 42, + 43, + 44, + 45, + 49, + 50, + 52, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 82, + 84, + 86, + 90, + 91, + 94, + 95, + 97, + 99, + 101, + 103, + 104, + 105, + 108, + 109, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 311, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ], + [ + 0, + 2, + 5, + 7, + 8, + 9, + 12, + 13, + 17, + 18, + 21, + 22, + 24, + 25, + 30, + 31, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 74, + 75, + 76, + 77, + 81, + 82, + 84, + 90, + 91, + 92, + 93, + 98, + 99, + 100, + 101, + 104, + 105, + 106, + 107, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 319, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ], + [ + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 26, + 29, + 31, + 32, + 34, + 37, + 39, + 41, + 42, + 45, + 46, + 48, + 49, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 73, + 75, + 76, + 78, + 80, + 81, + 82, + 83, + 89, + 91, + 92, + 94, + 97, + 99, + 100, + 102, + 105, + 106, + 108, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 327, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ], + [ + 0, + 1, + 6, + 7, + 8, + 9, + 14, + 15, + 16, + 17, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 40, + 41, + 46, + 47, + 48, + 49, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 74, + 75, + 76, + 77, + 82, + 83, + 84, + 85, + 88, + 89, + 90, + 91, + 97, + 98, + 100, + 106, + 107, + 108, + 109, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 335, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ], + [ + 0, + 1, + 4, + 5, + 8, + 10, + 13, + 15, + 16, + 18, + 21, + 23, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 42, + 45, + 47, + 48, + 50, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 73, + 75, + 76, + 78, + 81, + 83, + 84, + 86, + 89, + 90, + 92, + 96, + 97, + 98, + 99, + 105, + 107, + 108, + 110, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 343, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ], + [ + 0, + 1, + 2, + 3, + 8, + 11, + 12, + 15, + 16, + 19, + 20, + 23, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 41, + 42, + 45, + 46, + 49, + 50, + 53, + 54, + 57, + 58, + 60, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 75, + 76, + 79, + 80, + 83, + 84, + 87, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103, + 105, + 106, + 109, + 110, + 113, + 114, + 117, + 118 + ] + ] + ] + } +] diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/residual-isometries.json b/research/r715-target-factors-banked/e8-r740-replica32/data/residual-isometries.json new file mode 100644 index 0000000000..9b8b35cb15 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/data/residual-isometries.json @@ -0,0 +1,1974 @@ +[ + { + "frame": 0, + "entrance_rank": 0, + "denominator": 2, + "entrance_basis": [], + "residual_basis": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [] + }, + { + "frame": 2, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 0 + ], + "residual_basis": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [] + }, + { + "frame": 3, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 1 + ], + "residual_basis": [ + 0, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ] + ] + }, + { + "frame": 4, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 2 + ], + "residual_basis": [ + 0, + 1, + 3, + 4, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ], + [ + "swap", + 1, + 2, + null + ] + ] + }, + { + "frame": 5, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 3 + ], + "residual_basis": [ + 0, + 1, + 2, + 4, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ], + [ + "swap", + 1, + 2, + null + ], + [ + "swap", + 2, + 3, + null + ] + ] + }, + { + "frame": 6, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 4 + ], + "residual_basis": [ + 0, + 1, + 2, + 3, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ], + [ + "swap", + 1, + 2, + null + ], + [ + "swap", + 2, + 3, + null + ], + [ + "swap", + 3, + 4, + null + ] + ] + }, + { + "frame": 7, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 5 + ], + "residual_basis": [ + 0, + 1, + 2, + 3, + 4, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ], + [ + "swap", + 1, + 2, + null + ], + [ + "swap", + 2, + 3, + null + ], + [ + "swap", + 3, + 4, + null + ], + [ + "swap", + 4, + 5, + null + ] + ] + }, + { + "frame": 8, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 6 + ], + "residual_basis": [ + 0, + 1, + 2, + 3, + 4, + 5, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ], + [ + "swap", + 1, + 2, + null + ], + [ + "swap", + 2, + 3, + null + ], + [ + "swap", + 3, + 4, + null + ], + [ + "swap", + 4, + 5, + null + ], + [ + "swap", + 5, + 6, + null + ] + ] + }, + { + "frame": 9, + "entrance_rank": 1, + "denominator": 2, + "entrance_basis": [ + 7 + ], + "residual_basis": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 1, + null + ], + [ + "swap", + 1, + 2, + null + ], + [ + "swap", + 2, + 3, + null + ], + [ + "swap", + 3, + 4, + null + ], + [ + "swap", + 4, + 5, + null + ], + [ + "swap", + 5, + 6, + null + ], + [ + "swap", + 6, + 7, + null + ] + ] + }, + { + "frame": 458, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 0, + 1, + 2, + 3 + ], + "residual_basis": [ + 4, + 5, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [] + }, + { + "frame": 461, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 0, + 2, + 4, + 6 + ], + "residual_basis": [ + 1, + 3, + 5, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 1, + 4, + null + ], + [ + "swap", + 2, + 4, + null + ], + [ + "swap", + 3, + 5, + null + ], + [ + "swap", + 5, + 6, + null + ] + ] + }, + { + "frame": 463, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 0, + 3, + 4, + 7 + ], + "residual_basis": [ + 1, + 2, + 5, + 6 + ], + "orthogonal_rows_numerator": [ + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 1, + 4, + null + ], + [ + "swap", + 2, + 5, + null + ], + [ + "swap", + 3, + 4, + null + ], + [ + "swap", + 4, + 5, + null + ], + [ + "swap", + 5, + 6, + null + ], + [ + "swap", + 6, + 7, + null + ] + ] + }, + { + "frame": 465, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 1, + 2, + 4, + 7 + ], + "residual_basis": [ + 0, + 3, + 5, + 6 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 4, + null + ], + [ + "swap", + 1, + 4, + null + ], + [ + "swap", + 2, + 4, + null + ], + [ + "swap", + 3, + 5, + null + ], + [ + "swap", + 5, + 6, + null + ], + [ + "swap", + 6, + 7, + null + ] + ] + }, + { + "frame": 466, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 1, + 2, + 5, + 6 + ], + "residual_basis": [ + 0, + 3, + 4, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 4, + null + ], + [ + "swap", + 1, + 4, + null + ], + [ + "swap", + 2, + 4, + null + ], + [ + "swap", + 3, + 5, + null + ], + [ + "swap", + 4, + 6, + null + ], + [ + "swap", + 5, + 6, + null + ] + ] + }, + { + "frame": 468, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 1, + 3, + 5, + 7 + ], + "residual_basis": [ + 0, + 2, + 4, + 6 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 4, + null + ], + [ + "swap", + 1, + 4, + null + ], + [ + "swap", + 2, + 5, + null + ], + [ + "swap", + 3, + 4, + null + ], + [ + "swap", + 4, + 6, + null + ], + [ + "swap", + 6, + 7, + null + ] + ] + }, + { + "frame": 469, + "entrance_rank": 4, + "denominator": 2, + "entrance_basis": [ + 2, + 3, + 4, + 5 + ], + "residual_basis": [ + 0, + 1, + 6, + 7 + ], + "orthogonal_rows_numerator": [ + [ + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0 + ], + [ + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2 + ] + ], + "gaussian_reduction": [ + [ + "swap", + 0, + 4, + null + ], + [ + "swap", + 1, + 5, + null + ], + [ + "swap", + 2, + 4, + null + ], + [ + "swap", + 3, + 5, + null + ] + ] + } +] diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/retiming.json b/research/r715-target-factors-banked/e8-r740-replica32/data/retiming.json new file mode 100644 index 0000000000..5769e8a928 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/data/retiming.json @@ -0,0 +1,723 @@ +{ + "input_sha256": "d6ec8811541d6ab59a3bbbaaa15bccc8918b3b43b23d9f593198cfe90826fd20", + "output_sha256": "fec026cda755e5ef93f7ed56923d1452da925cbe0051585e913e0837d9a70ffb", + "changes": [ + [ + "A", + 272, + [ + 64, + 67 + ], + [ + 64 + ] + ], + [ + "A", + 275, + [ + 65, + 66 + ], + [ + 65 + ] + ], + [ + "A", + 278, + [ + 68, + 71 + ], + [ + 68 + ] + ], + [ + "A", + 281, + [ + 69, + 70 + ], + [ + 69 + ] + ], + [ + "A", + 300, + [ + 32, + 35 + ], + [ + 32 + ] + ], + [ + "A", + 303, + [ + 33, + 34 + ], + [ + 33 + ] + ], + [ + "A", + 306, + [ + 36, + 39 + ], + [ + 36 + ] + ], + [ + "A", + 309, + [ + 37, + 38 + ], + [ + 37 + ] + ], + [ + "A", + 328, + [ + 24, + 27 + ], + [ + 24 + ] + ], + [ + "A", + 331, + [ + 25, + 26 + ], + [ + 25 + ] + ], + [ + "A", + 334, + [ + 28, + 31 + ], + [ + 28 + ] + ], + [ + "A", + 337, + [ + 29, + 30 + ], + [ + 29 + ] + ], + [ + "A", + 356, + [ + 16, + 19 + ], + [ + 16 + ] + ], + [ + "A", + 359, + [ + 17, + 18 + ], + [ + 17 + ] + ], + [ + "A", + 362, + [ + 20, + 23 + ], + [ + 20 + ] + ], + [ + "A", + 365, + [ + 21, + 22 + ], + [ + 21 + ] + ], + [ + "A", + 384, + [ + 40, + 43 + ], + [ + 40 + ] + ], + [ + "A", + 387, + [ + 41, + 42 + ], + [ + 41 + ] + ], + [ + "A", + 390, + [ + 44, + 47 + ], + [ + 44 + ] + ], + [ + "A", + 393, + [ + 45, + 46 + ], + [ + 45 + ] + ], + [ + "A", + 412, + [ + 72, + 75 + ], + [ + 72 + ] + ], + [ + "A", + 415, + [ + 73, + 74 + ], + [ + 73 + ] + ], + [ + "A", + 418, + [ + 76, + 79 + ], + [ + 76 + ] + ], + [ + "A", + 421, + [ + 77, + 78 + ], + [ + 77 + ] + ], + [ + "A", + 440, + [ + 112, + 115 + ], + [ + 112 + ] + ], + [ + "A", + 443, + [ + 113, + 114 + ], + [ + 113 + ] + ], + [ + "A", + 446, + [ + 116, + 119 + ], + [ + 116 + ] + ], + [ + "A", + 449, + [ + 117, + 118 + ], + [ + 117 + ] + ], + [ + "A", + 468, + [ + 8, + 11 + ], + [ + 8 + ] + ], + [ + "A", + 471, + [ + 9, + 10 + ], + [ + 9 + ] + ], + [ + "A", + 474, + [ + 12, + 15 + ], + [ + 12 + ] + ], + [ + "A", + 477, + [ + 13, + 14 + ], + [ + 13 + ] + ], + [ + "A", + 496, + [ + 48, + 51 + ], + [ + 48 + ] + ], + [ + "A", + 499, + [ + 49, + 50 + ], + [ + 49 + ] + ], + [ + "A", + 502, + [ + 52, + 55 + ], + [ + 52 + ] + ], + [ + "A", + 505, + [ + 53, + 54 + ], + [ + 53 + ] + ], + [ + "A", + 524, + [ + 80, + 83 + ], + [ + 80 + ] + ], + [ + "A", + 527, + [ + 81, + 82 + ], + [ + 81 + ] + ], + [ + "A", + 530, + [ + 84, + 87 + ], + [ + 84 + ] + ], + [ + "A", + 533, + [ + 85, + 86 + ], + [ + 85 + ] + ], + [ + "A", + 552, + [ + 104, + 107 + ], + [ + 104 + ] + ], + [ + "A", + 555, + [ + 105, + 106 + ], + [ + 105 + ] + ], + [ + "A", + 558, + [ + 108, + 111 + ], + [ + 108 + ] + ], + [ + "A", + 561, + [ + 109, + 110 + ], + [ + 109 + ] + ], + [ + "A", + 580, + [ + 96, + 99 + ], + [ + 96 + ] + ], + [ + "A", + 583, + [ + 97, + 98 + ], + [ + 97 + ] + ], + [ + "A", + 586, + [ + 100, + 103 + ], + [ + 100 + ] + ], + [ + "A", + 589, + [ + 101, + 102 + ], + [ + 101 + ] + ], + [ + "A", + 608, + [ + 88, + 91 + ], + [ + 88 + ] + ], + [ + "A", + 611, + [ + 89, + 90 + ], + [ + 89 + ] + ], + [ + "A", + 614, + [ + 92, + 95 + ], + [ + 92 + ] + ], + [ + "A", + 617, + [ + 93, + 94 + ], + [ + 93 + ] + ], + [ + "A", + 636, + [ + 56, + 59 + ], + [ + 56 + ] + ], + [ + "A", + 639, + [ + 57, + 58 + ], + [ + 57 + ] + ], + [ + "A", + 642, + [ + 60, + 63 + ], + [ + 60 + ] + ], + [ + "A", + 645, + [ + 61, + 62 + ], + [ + 61 + ] + ], + [ + "A", + 2035, + [ + 0, + 1, + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 0, + 1, + 2, + 3, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ] + ] +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/selection.json b/research/r715-target-factors-banked/e8-r740-replica32/data/selection.json new file mode 100644 index 0000000000..ef068005b1 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/data/selection.json @@ -0,0 +1,1291 @@ +{ + "input_sha256": "fec026cda755e5ef93f7ed56923d1452da925cbe0051585e913e0837d9a70ffb", + "output_sha256": "baf86c9d11d1819be0eb4349b606a6773d29790739b755dabee10bdbf771a78d", + "entries_count": 114, + "total_entrance_rank": 138, + "donor_slots": 103, + "replicas": 32, + "entries": [ + [ + [ + 3 + ], + 738, + [ + 263, + 736 + ] + ], + [ + [ + 2 + ], + 739, + [ + 256, + 737 + ] + ], + [ + [ + 1 + ], + 743, + [ + 248, + 742 + ] + ], + [ + [ + 0 + ], + 744, + [ + 244, + 745 + ] + ], + [ + [ + 0 + ], + 746, + [ + 242, + 747 + ] + ], + [ + [ + 4 + ], + 750, + [ + 812, + 840 + ] + ], + [ + [ + 4 + ], + 751, + [ + 779, + 835 + ] + ], + [ + [ + 4 + ], + 752, + [ + 268, + 812, + 840 + ] + ], + [ + [ + 4 + ], + 753, + [ + 269, + 779, + 835 + ] + ], + [ + [ + 1 + ], + 754, + [ + 249, + 755 + ] + ], + [ + [ + 4 + ], + 757, + [ + 266, + 756 + ] + ], + [ + [ + 0 + ], + 760, + [ + 242, + 761 + ] + ], + [ + [ + 0 + ], + 762, + [ + 763, + 776, + 777 + ] + ], + [ + [ + 7 + ], + 766, + [ + 286, + 764 + ] + ], + [ + [ + 6 + ], + 767, + [ + 281, + 765 + ] + ], + [ + [ + 1 + ], + 768, + [ + 248, + 742, + 861, + 888 + ] + ], + [ + [ + 1 + ], + 769, + [ + 742, + 861, + 888 + ] + ], + [ + [ + 1 + ], + 770, + [ + 755, + 873, + 886 + ] + ], + [ + [ + 1 + ], + 771, + [ + 249, + 755, + 873, + 886 + ] + ], + [ + [ + 0 + ], + 773, + [ + 242, + 772 + ] + ], + [ + [ + 4 + ], + 781, + [ + 269, + 779 + ] + ], + [ + [ + 2 + ], + 782, + [ + 257, + 783 + ] + ], + [ + [ + 4 + ], + 785, + [ + 268, + 784 + ] + ], + [ + [ + 0 + ], + 786, + [ + 803, + 817, + 832 + ] + ], + [ + [ + 0 + ], + 787, + [ + 241, + 803, + 817, + 832 + ] + ], + [ + [ + 0 + ], + 788, + [ + 748, + 830 + ] + ], + [ + [ + 0 + ], + 789, + [ + 749, + 830 + ] + ], + [ + [ + 0 + ], + 790, + [ + 763, + 776, + 805 + ] + ], + [ + [ + 0 + ], + 791, + [ + 763, + 777, + 805 + ] + ], + [ + [ + 7 + ], + 794, + [ + 285, + 792 + ] + ], + [ + [ + 7 + ], + 795, + [ + 287, + 793 + ] + ], + [ + [ + 2 + ], + 796, + [ + 783, + 838, + 853 + ] + ], + [ + [ + 2 + ], + 797, + [ + 257, + 783, + 838, + 853 + ] + ], + [ + [ + 2 + ], + 798, + [ + 256, + 799 + ] + ], + [ + [ + 0 + ], + 800, + [ + 749, + 819 + ] + ], + [ + [ + 0 + ], + 801, + [ + 748, + 819 + ] + ], + [ + [ + 0 + ], + 802, + [ + 241, + 803 + ] + ], + [ + [ + 0 + ], + 804, + [ + 776, + 777, + 805 + ] + ], + [ + [ + 4 + ], + 808, + [ + 266, + 806 + ] + ], + [ + [ + 4 + ], + 809, + [ + 269, + 807 + ] + ], + [ + [ + 3 + ], + 811, + [ + 263, + 810 + ] + ], + [ + [ + 4 + ], + 813, + [ + 268, + 812 + ] + ], + [ + [ + 0 + ], + 814, + [ + 763, + 805 + ] + ], + [ + [ + 0 + ], + 815, + [ + 763, + 776, + 777, + 805 + ] + ], + [ + [ + 0 + ], + 816, + [ + 241, + 817 + ] + ], + [ + [ + 0 + ], + 818, + [ + 748, + 749, + 819 + ] + ], + [ + [ + 6 + ], + 821, + [ + 281, + 765, + 851, + 905 + ] + ], + [ + [ + 6 + ], + 822, + [ + 278, + 820 + ] + ], + [ + [ + 6 + ], + 823, + [ + 765, + 851, + 905 + ] + ], + [ + [ + 3 + ], + 825, + [ + 263, + 824 + ] + ], + [ + [ + 0 + ], + 828, + [ + 777, + 805 + ] + ], + [ + [ + 0 + ], + 829, + [ + 776, + 805 + ] + ], + [ + [ + 0 + ], + 831, + [ + 748, + 749, + 830 + ] + ], + [ + [ + 0 + ], + 833, + [ + 241, + 832 + ] + ], + [ + [ + 7 + ], + 836, + [ + 283, + 834 + ] + ], + [ + [ + 4 + ], + 837, + [ + 269, + 835 + ] + ], + [ + [ + 2 + ], + 839, + [ + 257, + 838 + ] + ], + [ + [ + 4 + ], + 841, + [ + 268, + 840 + ] + ], + [ + [ + 1 + ], + 842, + [ + 251, + 843 + ] + ], + [ + [ + 4 + ], + 845, + [ + 778, + 780, + 844 + ] + ], + [ + [ + 1 + ], + 846, + [ + 249, + 873, + 886 + ] + ], + [ + [ + 1 + ], + 847, + [ + 873, + 886 + ] + ], + [ + [ + 6 + ], + 849, + [ + 281, + 851 + ] + ], + [ + [ + 2 + ], + 852, + [ + 257, + 853 + ] + ], + [ + [ + 2 + ], + 854, + [ + 737, + 799, + 909 + ] + ], + [ + [ + 2 + ], + 855, + [ + 256, + 737, + 799, + 909 + ] + ], + [ + [ + 1 + ], + 857, + [ + 251, + 856 + ] + ], + [ + [ + 1 + ], + 860, + [ + 248, + 861 + ] + ], + [ + [ + 4 + ], + 863, + [ + 779, + 807, + 835 + ] + ], + [ + [ + 4 + ], + 865, + [ + 269, + 779, + 807, + 835 + ] + ], + [ + [ + 3 + ], + 866, + [ + 736, + 810 + ] + ], + [ + [ + 3 + ], + 867, + [ + 263, + 736, + 810 + ] + ], + [ + [ + 4 + ], + 868, + [ + 784, + 812, + 840 + ] + ], + [ + [ + 4 + ], + 869, + [ + 268, + 784, + 812, + 840 + ] + ], + [ + [ + 3 + ], + 871, + [ + 261, + 870 + ] + ], + [ + [ + 1 + ], + 872, + [ + 249, + 873 + ] + ], + [ + [ + 4 + ], + 875, + [ + 266, + 874 + ] + ], + [ + [ + 7 + ], + 879, + [ + 287, + 877 + ] + ], + [ + [ + 3 + ], + 880, + [ + 736, + 824 + ] + ], + [ + [ + 3 + ], + 881, + [ + 263, + 736, + 824 + ] + ], + [ + [ + 1 + ], + 887, + [ + 249, + 886 + ] + ], + [ + [ + 1 + ], + 889, + [ + 248, + 888 + ] + ], + [ + [ + 4 + ], + 891, + [ + 779, + 807 + ] + ], + [ + [ + 4 + ], + 893, + [ + 269, + 779, + 807 + ] + ], + [ + [ + 3 + ], + 894, + [ + 810, + 824 + ] + ], + [ + [ + 3 + ], + 895, + [ + 263, + 810, + 824 + ] + ], + [ + [ + 3 + ], + 896, + [ + 870, + 910 + ] + ], + [ + [ + 3 + ], + 897, + [ + 261, + 870, + 910 + ] + ], + [ + [ + 4 + ], + 899, + [ + 778, + 780, + 898 + ] + ], + [ + [ + 4 + ], + 902, + [ + 756, + 806 + ] + ], + [ + [ + 4 + ], + 903, + [ + 266, + 756, + 806 + ] + ], + [ + [ + 6 + ], + 907, + [ + 281, + 905 + ] + ], + [ + [ + 2 + ], + 908, + [ + 256, + 909 + ] + ], + [ + [ + 3 + ], + 911, + [ + 261, + 910 + ] + ], + [ + [ + 6 + ], + 915, + [ + 278, + 914 + ] + ], + [ + [ + 6 + ], + 921, + [ + 280, + 919 + ] + ], + [ + [ + 4 + ], + 922, + [ + 784, + 812 + ] + ], + [ + [ + 4 + ], + 923, + [ + 268, + 784, + 812 + ] + ], + [ + [ + 7 + ], + 924, + [ + 285, + 925 + ] + ], + [ + [ + 4 + ], + 926, + [ + 844, + 898 + ] + ], + [ + [ + 4 + ], + 927, + [ + 778, + 780, + 844, + 898 + ] + ], + [ + [ + 6 + ], + 928, + [ + 278, + 929 + ] + ], + [ + [ + 4 + ], + 930, + [ + 756, + 806, + 874 + ] + ], + [ + [ + 4 + ], + 931, + [ + 266, + 756, + 806, + 874 + ] + ], + [ + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + 938, + [ + 933, + 934, + 937 + ] + ], + [ + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + 943, + [ + 944, + 951, + 953 + ] + ], + [ + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + 945, + [ + 940 + ] + ], + [ + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + 946, + [ + 939 + ] + ], + [ + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + 957, + [ + 958, + 964, + 965 + ] + ], + [ + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + 960, + [ + 959, + 966, + 967 + ] + ], + [ + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + 978, + [ + 974, + 975, + 979 + ] + ], + [ + [ + 5 + ], + 883, + [ + 274, + 882 + ] + ], + [ + [ + 5 + ], + 827, + [ + 274, + 826 + ] + ], + [ + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + 972, + [ + 973, + 976, + 977 + ] + ] + ] +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/upstream441/pair-retime-selection.json b/research/r715-target-factors-banked/e8-r740-replica32/data/upstream441/pair-retime-selection.json new file mode 100644 index 0000000000..1b7b7f33ff --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/data/upstream441/pair-retime-selection.json @@ -0,0 +1,6278 @@ +{ + "input_sha256": "bae58f0692326f180ba49642360fd55557f59a93a96a8fa62bf7babd55d2384e", + "output_sha256": "fc4d045fd68ba47e21d69b840a51128ff52739dca3c0f7b9255bd757e31737e7", + "moves": [ + { + "iteration": 0, + "gates": [ + 11473, + 11474 + ], + "old": 1080864571977105603, + "new": 717695740599131922222305771715, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11462, + 11574 + ], + "old": 8160191253976699249635404808396, + "new": 8160191254253400410767069544652, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11561, + 11562 + ], + "old": 1193064712879659926413702594800, + "new": 1193064713045680623141764727024, + "gain": 0.0009870240319838075 + }, + { + "iteration": 0, + "gates": [ + 11513, + 11514 + ], + "old": 1324035698927103573472051112892694633, + "new": 1324035698927107170591367610905921897, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11420, + 11542 + ], + "old": 4352166089900228502, + "new": 31153781151281373593838377865641878, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11470, + 11566 + ], + "old": 19089035405798938525424167158000, + "new": 19089035405909618989931100635376, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11428, + 11534 + ], + "old": 12321567105508992614, + "new": 77884452878052328921668033630463590, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11394, + 11502 + ], + "old": 14700029559209066661, + "new": 304236151311388386848705102610597, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11537, + 11538 + ], + "old": 14094296508832743318, + "new": 46730671726885866221560285785816982, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11359, + 11494 + ], + "old": 31567475705696935807574605839, + "new": 12153476340388572933841156571151, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11369, + 11490 + ], + "old": 7349875688796586035, + "new": 1190279350602594853281865924659, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11565, + 11589 + ], + "old": 19089035405798938525424167158000, + "new": 19089035405909618989931100635376, + "gain": 0.0015840426696875909 + }, + { + "iteration": 0, + "gates": [ + 11377, + 11478 + ], + "old": 17293823011467559107, + "new": 480011253072551867881164374211, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11446, + 11550 + ], + "old": 5172014572241624258547908635263146, + "new": 5172014572242565042512160497205418, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11541, + 11637 + ], + "old": 4352166089900228502, + "new": 31153781151281373593838377865641878, + "gain": 0.0015840426696875909 + }, + { + "iteration": 0, + "gates": [ + 11533, + 11629 + ], + "old": 12321567105508992614, + "new": 77884452878052328921668033630463590, + "gain": 0.0015840426696875909 + }, + { + "iteration": 0, + "gates": [ + 11545, + 11546 + ], + "old": 5172014633896830034082108742303914, + "new": 5172014633897770818046360604442794, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11412, + 11518 + ], + "old": 1324035698926862738906320254210670697, + "new": 1324035698926866336025636752223897193, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11468, + 11469 + ], + "old": 18374686479671623920, + "new": 18374686544347791600, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11577, + 11578 + ], + "old": 20250532647651096693756401811516, + "new": 20250532647927797854926620590140, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11489, + 11490 + ], + "old": 7349875688796586035, + "new": 1190279350602594853281865924659, + "gain": 0.001584042669688479 + }, + { + "iteration": 0, + "gates": [ + 11410, + 11411 + ], + "old": 1324035698926381045275276563951124585, + "new": 1324035698926384642394593061964349545, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11375, + 11376 + ], + "old": 4278190275, + "new": 4642277969672019312711303363, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11438, + 11558 + ], + "old": 2068806087848560870156522594762842, + "new": 2068806087849501654110878852644954, + "gain": 0.00030802761665604805 + }, + { + "iteration": 0, + "gates": [ + 11418, + 11419 + ], + "old": 65430, + "new": 72403470489309990158230, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11385, + 11510 + ], + "old": 6485295613616259157, + "new": 121694475758847514830896820584533, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11485, + 11486 + ], + "old": 47351211206585534313394077711, + "new": 12169260075889677705129089826831, + "gain": 0.0009870240319838075 + }, + { + "iteration": 0, + "gates": [ + 11509, + 11669 + ], + "old": 6485295613616259157, + "new": 121694475758847514830896820584533, + "gain": 0.0015840426696875909 + }, + { + "iteration": 0, + "gates": [ + 11493, + 11494 + ], + "old": 31567475705696935807574605839, + "new": 12153476340388572933841156571151, + "gain": 0.001584042669688479 + }, + { + "iteration": 0, + "gates": [ + 11521, + 11522 + ], + "old": 794421419357032844669528535296114841, + "new": 794421419357036441787156183449079705, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11505, + 11506 + ], + "old": 11889671241553870933, + "new": 182541704569807930478366512054357, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11529, + 11530 + ], + "old": 6196671612285131110, + "new": 77884452878066489896221149342243174, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11467, + 11468 + ], + "old": 18374686479671623920, + "new": 18374686544347791600, + "gain": 0.0012725764672882889 + }, + { + "iteration": 0, + "gates": [ + 11454, + 11582 + ], + "old": 20234748912146533157955503652924, + "new": 20234748912423234319125672099900, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11444, + 11445 + ], + "old": 5172014448931175958106549077934250, + "new": 5172014448932116742070800939483306, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11357, + 11358 + ], + "old": 4703919738795935662095, + "new": 12121908869386363391265290059791, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11569, + 11570 + ], + "old": 12200827542187967508247612489932, + "new": 12200827542464668669392162128076, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11426, + 11427 + ], + "old": 71776119061217382, + "new": 77884452878023982472979829311406182, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11402, + 11526 + ], + "old": 529614279571756625886698027385618585, + "new": 529614279571760223003481250608451481, + "gain": 0.0003080276166542717 + }, + { + "iteration": 0, + "gates": [ + 11481, + 11482 + ], + "old": 11024812985586548787, + "new": 1191207805635733825784830230579, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11549, + 11550 + ], + "old": 5172014572241624258547908635263146, + "new": 5172014572242565042512160497205418, + "gain": 0.0015840426696875909 + }, + { + "iteration": 0, + "gates": [ + 11501, + 11502 + ], + "old": 14700029559209066661, + "new": 304236151311388386848705102610597, + "gain": 0.001584042669688479 + }, + { + "iteration": 0, + "gates": [ + 11497, + 11498 + ], + "old": 3675217671409434789, + "new": 304236154938154820880704827097253, + "gain": 0.0009870240319846957 + }, + { + "iteration": 0, + "gates": [ + 11400, + 11401 + ], + "old": 1204203453131759529492633, + "new": 1207800568226132892061593, + "gain": 0.0009611102648907632 + }, + { + "iteration": 0, + "gates": [ + 11553, + 11554 + ], + "old": 3103208977634801466097385254944858, + "new": 3103208977635742250055040047710298, + "gain": 0.0009870240319846957 + }, + { + "iteration": 1, + "gates": [ + 11460, + 11461 + ], + "old": 78918677504442992524819169484, + "new": 78918677781144153630714101964, + "gain": 0.0009611102648907632 + }, + { + "iteration": 1, + "gates": [ + 11367, + 11368 + ], + "old": 1095216660531, + "new": 1188422440536316908275937312819, + "gain": 0.0009611102648907632 + }, + { + "iteration": 1, + "gates": [ + 11452, + 11453 + ], + "old": 20203181441137406086353707335740, + "new": 20203181441414107247523775119420, + "gain": 0.0009611102648907632 + }, + { + "iteration": 1, + "gates": [ + 11436, + 11437 + ], + "old": 308276084001730439550074970, + "new": 308277024785678198738190426, + "gain": 0.0009611102648907632 + }, + { + "iteration": 1, + "gates": [ + 11451, + 11452 + ], + "old": 20203181441137406086353707335740, + "new": 20203181441414107247523775119420, + "gain": 0.0012725764672882889 + }, + { + "iteration": 1, + "gates": [ + 11459, + 11460 + ], + "old": 78918677504442992524819169484, + "new": 78918677781144153630714101964, + "gain": 0.0012725764672900652 + }, + { + "iteration": 1, + "gates": [ + 11392, + 11393 + ], + "old": 280375465083045, + "new": 304236144057818769411746310389925, + "gain": 0.0009611102648907632 + }, + { + "iteration": 1, + "gates": [ + 11383, + 11384 + ], + "old": 16711765, + "new": 18136931006991599713321045, + "gain": 0.0009611102648907632 + } + ], + "gates": [ + [ + "B", + 5, + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + [ + 0, + 1, + 2, + 3, + 32, + 35, + 36, + 39, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 6, + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + [ + 0, + 1, + 2, + 3, + 32, + 35, + 36, + 39, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 7, + [ + 0, + 1, + 2, + 3, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71 + ], + [ + 0, + 1, + 2, + 3, + 32, + 35, + 36, + 39, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 8, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94 + ], + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 15, + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39 + ], + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 64, + 67, + 68, + 71, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 16, + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39 + ], + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 64, + 67, + 68, + 71, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 17, + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39 + ], + [ + 0, + 1, + 4, + 5, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 64, + 67, + 68, + 71, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 18, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62 + ], + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 23, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91 + ] + ], + [ + "B", + 24, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91 + ] + ], + [ + "B", + 25, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91 + ] + ], + [ + "B", + 26, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ] + ], + [ + "B", + 31, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83 + ] + ], + [ + "B", + 32, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83 + ] + ], + [ + "B", + 33, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83 + ] + ], + [ + "B", + 34, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ] + ], + [ + "B", + 40, + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47 + ], + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 64, + 66, + 69, + 71, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 41, + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47 + ], + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 64, + 66, + 69, + 71, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 42, + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47 + ], + [ + 0, + 2, + 5, + 7, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 64, + 66, + 69, + 71, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 43, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63 + ], + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 48, + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ] + ], + [ + "B", + 49, + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ] + ], + [ + "B", + 50, + [ + 0, + 3, + 4, + 7, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79 + ] + ], + [ + "B", + 51, + [ + 0, + 3, + 4, + 7, + 58, + 59, + 60, + 61, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 58, + [ + 0, + 3, + 5, + 6, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 48, + 49, + 50, + 51, + 64, + 65, + 70, + 71, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 59, + [ + 0, + 3, + 5, + 6, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 48, + 49, + 50, + 51, + 64, + 65, + 70, + 71, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 60, + [ + 0, + 3, + 5, + 6, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 48, + 49, + 50, + 51, + 64, + 65, + 70, + 71, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 61, + [ + 0, + 3, + 5, + 6, + 57, + 59, + 61, + 63, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 66, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75 + ] + ], + [ + "B", + 67, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75 + ] + ], + [ + "B", + 68, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75 + ] + ], + [ + "B", + 69, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ] + ], + [ + "B", + 74, + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 66, + 68, + 70, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 75, + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 66, + 68, + 70, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 76, + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + [ + 1, + 2, + 5, + 6, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 64, + 66, + 68, + 70, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 77, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 84, + [ + 1, + 3, + 4, + 6, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ] + ], + [ + "B", + 85, + [ + 1, + 3, + 4, + 6, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ] + ], + [ + "B", + 86, + [ + 1, + 3, + 4, + 6, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87 + ] + ], + [ + "B", + 87, + [ + 1, + 3, + 4, + 6, + 57, + 59, + 60, + 62, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ] + ], + [ + "B", + 92, + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 40, + 41, + 42, + 43, + 64, + 65, + 68, + 69, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 93, + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 40, + 41, + 42, + 43, + 64, + 65, + 68, + 69, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 94, + [ + 1, + 3, + 5, + 7, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 40, + 41, + 42, + 43, + 64, + 65, + 68, + 69, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 95, + [ + 1, + 3, + 5, + 7, + 58, + 59, + 62, + 63, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 100, + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 32, + 33, + 34, + 35, + 64, + 65, + 66, + 67, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 101, + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 32, + 33, + 34, + 35, + 64, + 65, + 66, + 67, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 102, + [ + 2, + 3, + 4, + 5, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 32, + 33, + 34, + 35, + 64, + 65, + 66, + 67, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 103, + [ + 2, + 3, + 4, + 5, + 57, + 58, + 61, + 62, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 108, + [ + 2, + 3, + 6, + 7, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ] + ], + [ + "B", + 109, + [ + 2, + 3, + 6, + 7, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ] + ], + [ + "B", + 110, + [ + 2, + 3, + 6, + 7, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95 + ] + ], + [ + "B", + 111, + [ + 2, + 3, + 6, + 7, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ] + ], + [ + "B", + 116, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ] + ], + [ + "B", + 117, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ] + ], + [ + "B", + 118, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63 + ] + ], + [ + "B", + 119, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 122, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 96, + 99 + ] + ], + [ + "B", + 123, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 35, + 36, + 39, + 56, + 57, + 58, + 59, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 96, + 99 + ] + ], + [ + "B", + 126, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ] + ], + [ + "B", + 127, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63 + ], + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ] + ], + [ + "B", + 130, + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63 + ], + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63, + 64, + 67, + 68, + 71, + 88, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 131, + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63 + ], + [ + 0, + 1, + 4, + 5, + 24, + 27, + 28, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 56, + 59, + 60, + 63, + 64, + 67, + 68, + 71, + 88, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 134, + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95 + ], + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 32, + 35, + 36, + 39, + 56, + 59, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 135, + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95 + ], + [ + 0, + 1, + 2, + 3, + 24, + 27, + 28, + 31, + 32, + 35, + 36, + 39, + 56, + 59, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 88, + 91, + 92, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 138, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62 + ], + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 139, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62 + ], + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 142, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94 + ], + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 143, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94 + ], + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 146, + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61 + ], + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61, + 64, + 66, + 69, + 71, + 80, + 83, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 147, + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61 + ], + [ + 0, + 2, + 5, + 7, + 16, + 19, + 20, + 23, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 56, + 57, + 60, + 61, + 64, + 66, + 69, + 71, + 80, + 83, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 150, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63 + ], + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 151, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63 + ], + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ] + ], + [ + "B", + 154, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 104, + 107 + ] + ], + [ + "B", + 155, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 40, + 43, + 44, + 47, + 56, + 58, + 61, + 63, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 104, + 107 + ] + ], + [ + "B", + 158, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ] + ], + [ + "B", + 159, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62 + ], + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ] + ], + [ + "B", + 162, + [ + 0, + 3, + 5, + 6, + 56, + 58, + 60, + 62, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 8, + 11, + 48, + 49, + 50, + 51, + 56, + 58, + 60, + 62, + 64, + 65, + 70, + 71, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 163, + [ + 0, + 3, + 5, + 6, + 56, + 58, + 60, + 62, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 8, + 11, + 48, + 49, + 50, + 51, + 56, + 58, + 60, + 62, + 64, + 65, + 70, + 71, + 72, + 75, + 76, + 79, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 166, + [ + 0, + 3, + 5, + 6, + 57, + 59, + 61, + 63, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 167, + [ + 0, + 3, + 5, + 6, + 57, + 59, + 61, + 63, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 170, + [ + 0, + 3, + 4, + 7, + 56, + 57, + 62, + 63, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 48, + 51, + 56, + 57, + 62, + 63, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ] + ], + [ + "B", + 171, + [ + 0, + 3, + 4, + 7, + 56, + 57, + 62, + 63, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 48, + 51, + 56, + 57, + 62, + 63, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 115, + 116, + 119 + ] + ], + [ + "B", + 174, + [ + 0, + 3, + 4, + 7, + 58, + 59, + 60, + 61, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 175, + [ + 0, + 3, + 4, + 7, + 58, + 59, + 60, + 61, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 178, + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62 + ], + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62, + 64, + 66, + 68, + 70, + 72, + 75, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 179, + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62 + ], + [ + 1, + 2, + 5, + 6, + 8, + 11, + 12, + 15, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 58, + 60, + 62, + 64, + 66, + 68, + 70, + 72, + 75, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 182, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 183, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 186, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 112, + 115 + ] + ], + [ + "B", + 187, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 48, + 51, + 52, + 55, + 56, + 57, + 62, + 63, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 112, + 115 + ] + ], + [ + "B", + 190, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ] + ], + [ + "B", + 191, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ] + ], + [ + "B", + 194, + [ + 1, + 3, + 5, + 7, + 56, + 57, + 60, + 61, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 16, + 19, + 40, + 41, + 42, + 43, + 56, + 57, + 60, + 61, + 64, + 65, + 68, + 69, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 195, + [ + 1, + 3, + 5, + 7, + 56, + 57, + 60, + 61, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 16, + 19, + 40, + 41, + 42, + 43, + 56, + 57, + 60, + 61, + 64, + 65, + 68, + 69, + 80, + 83, + 84, + 87, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 198, + [ + 1, + 3, + 5, + 7, + 58, + 59, + 62, + 63, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 199, + [ + 1, + 3, + 5, + 7, + 58, + 59, + 62, + 63, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ] + ], + [ + "B", + 202, + [ + 1, + 3, + 4, + 6, + 56, + 58, + 61, + 63, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 40, + 43, + 56, + 58, + 61, + 63, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ] + ], + [ + "B", + 203, + [ + 1, + 3, + 4, + 6, + 56, + 58, + 61, + 63, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 40, + 43, + 56, + 58, + 61, + 63, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 104, + 107, + 108, + 111 + ] + ], + [ + "B", + 206, + [ + 1, + 3, + 4, + 6, + 57, + 59, + 60, + 62, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ] + ], + [ + "B", + 207, + [ + 1, + 3, + 4, + 6, + 57, + 59, + 60, + 62, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ] + ], + [ + "B", + 210, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 67, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 211, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 67, + 88, + 89, + 90, + 91, + 96, + 97, + 98, + 99 + ] + ], + [ + "B", + 214, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 215, + [ + 4, + 5, + 6, + 7, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 218, + [ + 2, + 3, + 6, + 7, + 56, + 57, + 58, + 59, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 35, + 56, + 57, + 58, + 59, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 219, + [ + 2, + 3, + 6, + 7, + 56, + 57, + 58, + 59, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 35, + 56, + 57, + 58, + 59, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 99, + 100, + 103 + ] + ], + [ + "B", + 222, + [ + 2, + 3, + 6, + 7, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ] + ], + [ + "B", + 223, + [ + 2, + 3, + 6, + 7, + 60, + 61, + 62, + 63, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ] + ], + [ + "B", + 226, + [ + 2, + 3, + 4, + 5, + 56, + 59, + 60, + 63, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 24, + 27, + 32, + 33, + 34, + 35, + 56, + 59, + 60, + 63, + 64, + 65, + 66, + 67, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 227, + [ + 2, + 3, + 4, + 5, + 56, + 59, + 60, + 63, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 24, + 27, + 32, + 33, + 34, + 35, + 56, + 59, + 60, + 63, + 64, + 65, + 66, + 67, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 230, + [ + 2, + 3, + 4, + 5, + 57, + 58, + 61, + 62, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ], + [ + "B", + 231, + [ + 2, + 3, + 4, + 5, + 57, + 58, + 61, + 62, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ] + ] + ] +} \ No newline at end of file diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/upstream441/window-retime-selection.json b/research/r715-target-factors-banked/e8-r740-replica32/data/upstream441/window-retime-selection.json new file mode 100644 index 0000000000..d816fc0da6 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/data/upstream441/window-retime-selection.json @@ -0,0 +1,4409 @@ +{ + "input_sha256": "fc4d045fd68ba47e21d69b840a51128ff52739dca3c0f7b9255bd757e31737e7", + "output_sha256": "00d8aa8608e40b53fd8752399de06cb730cc55caaadc528f88379cb31b8460a6", + "moves": [ + { + "iteration": 0, + "gates": [ + 11394, + 11502, + 11662 + ], + "old": 304236151311388386848705102610597, + "new": 467615725697923475222285570175021989, + "gain": 0.00010882458330208067 + }, + { + "iteration": 0, + "gates": [ + 11446, + 11550, + 11614, + 11749 + ], + "old": 5172014572242565042512160497205418, + "new": 446533473228038667662826771012009130, + "gain": 0.00010882458330740974 + }, + { + "iteration": 0, + "gates": [ + 11402, + 11526, + 11654 + ], + "old": 529614279571760223003481250608451481, + "new": 530662214486874581358701244873052057, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11470, + 11566, + 11590, + 11845 + ], + "old": 19089035405909618989931100635376, + "new": 82771320508518052368924429394112752, + "gain": 0.00010882458330740974 + }, + { + "iteration": 0, + "gates": [ + 11412, + 11518, + 11646 + ], + "old": 1324035698926866336025636752223897193, + "new": 1325775918962436524365648919009171049, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11462, + 11574, + 11598, + 11781 + ], + "old": 8160191254253400410767069544652, + "new": 268952911782537111171439061732936908, + "gain": 0.00010882458330385703 + }, + { + "iteration": 0, + "gates": [ + 11454, + 11582, + 11606 + ], + "old": 20234748912423234319125672099900, + "new": 444813477562912346164957430720866876, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11359, + 11494, + 11694 + ], + "old": 12153476340388572933841156571151, + "new": 531695239012153450720948508243368207, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11438, + 11558, + 11622 + ], + "old": 2068806087849501654110878852644954, + "new": 266889467273606206443169154457360986, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11428, + 11534, + 11630 + ], + "old": 77884452878052328921668033630463590, + "new": 79714651358393826081832427880408678, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11420, + 11542, + 11638 + ], + "old": 31153781151281373593838377865641878, + "new": 115454624676587912712223763402719126, + "gain": 0.00010882458330208067 + }, + { + "iteration": 0, + "gates": [ + 11369, + 11490, + 11686 + ], + "old": 1190279350602594853281865924659, + "new": 469133329472802233437673988087457075, + "gain": 0.00010882458330563338 + }, + { + "iteration": 0, + "gates": [ + 11385, + 11510, + 11670, + 11925 + ], + "old": 121694475758847514830896820584533, + "new": 311991182930209112662697640099534165, + "gain": 0.00010882458330385703 + }, + { + "iteration": 0, + "gates": [ + 11377, + 11478, + 11678, + 11909 + ], + "old": 480011253072551867881164374211, + "new": 312756503822980949939487947131962307, + "gain": 0.00010882458330385703 + } + ], + "gates": [ + [ + "B", + 8, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ], + [ + 0, + 1, + 2, + 3, + 8, + 11, + 12, + 15, + 16, + 19, + 20, + 23, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 41, + 42, + 45, + 46, + 49, + 50, + 53, + 54, + 57, + 58, + 60, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 75, + 76, + 79, + 80, + 83, + 84, + 87, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103, + 105, + 106, + 109, + 110, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 18, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ], + [ + 0, + 1, + 4, + 5, + 8, + 10, + 13, + 15, + 16, + 18, + 21, + 23, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 42, + 45, + 47, + 48, + 50, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 73, + 75, + 76, + 78, + 81, + 83, + 84, + 86, + 89, + 90, + 92, + 96, + 97, + 98, + 99, + 105, + 107, + 108, + 110, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 26, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ], + [ + 0, + 1, + 6, + 7, + 8, + 9, + 14, + 15, + 16, + 17, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 40, + 41, + 46, + 47, + 48, + 49, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 74, + 75, + 76, + 77, + 82, + 83, + 84, + 85, + 88, + 89, + 90, + 91, + 97, + 98, + 100, + 106, + 107, + 108, + 109, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 34, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ], + [ + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 26, + 29, + 31, + 32, + 34, + 37, + 39, + 41, + 42, + 45, + 46, + 48, + 49, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 73, + 75, + 76, + 78, + 80, + 81, + 82, + 83, + 89, + 91, + 92, + 94, + 97, + 99, + 100, + 102, + 105, + 106, + 108, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 43, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ], + [ + 0, + 2, + 5, + 7, + 8, + 9, + 12, + 13, + 17, + 18, + 21, + 22, + 24, + 25, + 30, + 31, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 74, + 75, + 76, + 77, + 81, + 82, + 84, + 90, + 91, + 92, + 93, + 98, + 99, + 100, + 101, + 104, + 105, + 106, + 107, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 51, + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 17, + 19, + 20, + 22, + 24, + 25, + 30, + 31, + 32, + 34, + 37, + 39, + 42, + 43, + 44, + 45, + 49, + 50, + 52, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 82, + 84, + 86, + 90, + 91, + 94, + 95, + 97, + 99, + 101, + 103, + 104, + 105, + 108, + 109, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 61, + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 12, + 18, + 19, + 20, + 21, + 24, + 26, + 29, + 31, + 32, + 33, + 38, + 39, + 41, + 43, + 44, + 46, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 80, + 81, + 84, + 85, + 89, + 91, + 93, + 95, + 98, + 99, + 102, + 103, + 104, + 106, + 108, + 110, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 69, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 18, + 20, + 22, + 24, + 25, + 28, + 29, + 32, + 34, + 36, + 38, + 40, + 41, + 44, + 45, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 81, + 83, + 84, + 86, + 90, + 91, + 92, + 93, + 97, + 99, + 100, + 102, + 106, + 107, + 108, + 109, + 113, + 114, + 116 + ] + ], + [ + "B", + 77, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 16, + 17, + 20, + 21, + 24, + 26, + 28, + 30, + 32, + 33, + 36, + 37, + 40, + 42, + 44, + 46, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 76, + 82, + 83, + 84, + 85, + 89, + 91, + 92, + 94, + 98, + 99, + 100, + 101, + 105, + 107, + 108, + 110, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 87, + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 9, + 11, + 12, + 14, + 16, + 17, + 18, + 19, + 24, + 26, + 28, + 30, + 32, + 34, + 36, + 38, + 41, + 42, + 44, + 50, + 51, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 72, + 74, + 76, + 78, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 89, + 91, + 93, + 95, + 97, + 99, + 101, + 103, + 105, + 106, + 109, + 110, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 95, + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 10, + 11, + 12, + 13, + 17, + 18, + 20, + 24, + 25, + 28, + 29, + 32, + 33, + 36, + 37, + 40, + 41, + 42, + 43, + 49, + 51, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 72, + 73, + 76, + 77, + 81, + 82, + 85, + 86, + 90, + 91, + 94, + 95, + 98, + 99, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 103, + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 9, + 11, + 13, + 15, + 16, + 18, + 20, + 22, + 25, + 26, + 28, + 32, + 33, + 34, + 35, + 40, + 42, + 44, + 46, + 49, + 51, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 72, + 74, + 76, + 78, + 81, + 83, + 85, + 87, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 105, + 107, + 109, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 111, + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 10, + 11, + 14, + 15, + 16, + 17, + 20, + 21, + 24, + 25, + 26, + 27, + 33, + 34, + 36, + 40, + 41, + 44, + 45, + 50, + 51, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 72, + 73, + 76, + 77, + 82, + 83, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102, + 106, + 107, + 110, + 111, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 119, + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 40, + 41, + 42, + 43, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 68, + 72, + 73, + 74, + 75, + 84, + 85, + 86, + 87, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 127, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ], + [ + 0, + 1, + 6, + 7, + 8, + 9, + 14, + 15, + 16, + 17, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 40, + 41, + 46, + 47, + 48, + 49, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 74, + 75, + 76, + 77, + 82, + 83, + 84, + 85, + 88, + 89, + 90, + 91, + 97, + 98, + 100, + 106, + 107, + 108, + 109, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 139, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ], + [ + 0, + 1, + 4, + 5, + 8, + 10, + 13, + 15, + 16, + 18, + 21, + 23, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 42, + 45, + 47, + 48, + 50, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 73, + 75, + 76, + 78, + 81, + 83, + 84, + 86, + 89, + 90, + 92, + 96, + 97, + 98, + 99, + 105, + 107, + 108, + 110, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 143, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ], + [ + 0, + 1, + 2, + 3, + 8, + 11, + 12, + 15, + 16, + 19, + 20, + 23, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 41, + 42, + 45, + 46, + 49, + 50, + 53, + 54, + 57, + 58, + 60, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 75, + 76, + 79, + 80, + 83, + 84, + 87, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103, + 105, + 106, + 109, + 110, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 151, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ], + [ + 0, + 2, + 5, + 7, + 8, + 9, + 12, + 13, + 17, + 18, + 21, + 22, + 24, + 25, + 30, + 31, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 74, + 75, + 76, + 77, + 81, + 82, + 84, + 90, + 91, + 92, + 93, + 98, + 99, + 100, + 101, + 104, + 105, + 106, + 107, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 159, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ], + [ + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 26, + 29, + 31, + 32, + 34, + 37, + 39, + 41, + 42, + 45, + 46, + 48, + 49, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 73, + 75, + 76, + 78, + 80, + 81, + 82, + 83, + 89, + 91, + 92, + 94, + 97, + 99, + 100, + 102, + 105, + 106, + 108, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 167, + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 12, + 18, + 19, + 20, + 21, + 24, + 26, + 29, + 31, + 32, + 33, + 38, + 39, + 41, + 43, + 44, + 46, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 80, + 81, + 84, + 85, + 89, + 91, + 93, + 95, + 98, + 99, + 102, + 103, + 104, + 106, + 108, + 110, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 175, + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 17, + 19, + 20, + 22, + 24, + 25, + 30, + 31, + 32, + 34, + 37, + 39, + 42, + 43, + 44, + 45, + 49, + 50, + 52, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 82, + 84, + 86, + 90, + 91, + 94, + 95, + 97, + 99, + 101, + 103, + 104, + 105, + 108, + 109, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 183, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 16, + 17, + 20, + 21, + 24, + 26, + 28, + 30, + 32, + 33, + 36, + 37, + 40, + 42, + 44, + 46, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 76, + 82, + 83, + 84, + 85, + 89, + 91, + 92, + 94, + 98, + 99, + 100, + 101, + 105, + 107, + 108, + 110, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 191, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 18, + 20, + 22, + 24, + 25, + 28, + 29, + 32, + 34, + 36, + 38, + 40, + 41, + 44, + 45, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 81, + 83, + 84, + 86, + 90, + 91, + 92, + 93, + 97, + 99, + 100, + 102, + 106, + 107, + 108, + 109, + 113, + 114, + 116 + ] + ], + [ + "B", + 199, + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 10, + 11, + 12, + 13, + 17, + 18, + 20, + 24, + 25, + 28, + 29, + 32, + 33, + 36, + 37, + 40, + 41, + 42, + 43, + 49, + 51, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 72, + 73, + 76, + 77, + 81, + 82, + 85, + 86, + 90, + 91, + 94, + 95, + 98, + 99, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 207, + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 9, + 11, + 12, + 14, + 16, + 17, + 18, + 19, + 24, + 26, + 28, + 30, + 32, + 34, + 36, + 38, + 41, + 42, + 44, + 50, + 51, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 72, + 74, + 76, + 78, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 89, + 91, + 93, + 95, + 97, + 99, + 101, + 103, + 105, + 106, + 109, + 110, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 215, + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 40, + 41, + 42, + 43, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 68, + 72, + 73, + 74, + 75, + 84, + 85, + 86, + 87, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 223, + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 10, + 11, + 14, + 15, + 16, + 17, + 20, + 21, + 24, + 25, + 26, + 27, + 33, + 34, + 36, + 40, + 41, + 44, + 45, + 50, + 51, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 72, + 73, + 76, + 77, + 82, + 83, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102, + 106, + 107, + 110, + 111, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 231, + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 9, + 11, + 13, + 15, + 16, + 18, + 20, + 22, + 25, + 26, + 28, + 32, + 33, + 34, + 35, + 40, + 42, + 44, + 46, + 49, + 51, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 72, + 74, + 76, + 78, + 81, + 83, + 85, + 87, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 105, + 107, + 109, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 239, + [ + 4, + 5, + 6, + 7, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103 + ], + [ + 4, + 5, + 6, + 7, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 24, + 25, + 26, + 27, + 32, + 33, + 34, + 35, + 40, + 41, + 42, + 43, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 65, + 66, + 68, + 72, + 73, + 74, + 75, + 84, + 85, + 86, + 87, + 92, + 93, + 94, + 95, + 100, + 101, + 102, + 103, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 247, + [ + 2, + 3, + 6, + 7, + 24, + 25, + 26, + 27, + 33, + 34, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102 + ], + [ + 2, + 3, + 6, + 7, + 10, + 11, + 14, + 15, + 16, + 17, + 20, + 21, + 24, + 25, + 26, + 27, + 33, + 34, + 36, + 40, + 41, + 44, + 45, + 50, + 51, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 72, + 73, + 76, + 77, + 82, + 83, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 97, + 98, + 101, + 102, + 106, + 107, + 110, + 111, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 255, + [ + 2, + 3, + 4, + 5, + 25, + 26, + 32, + 33, + 34, + 35, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103 + ], + [ + 2, + 3, + 4, + 5, + 9, + 11, + 13, + 15, + 16, + 18, + 20, + 22, + 25, + 26, + 28, + 32, + 33, + 34, + 35, + 40, + 42, + 44, + 46, + 49, + 51, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 65, + 66, + 67, + 72, + 74, + 76, + 78, + 81, + 83, + 85, + 87, + 89, + 90, + 93, + 94, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 105, + 107, + 109, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 263, + [ + 1, + 3, + 5, + 7, + 17, + 18, + 40, + 41, + 42, + 43, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 81, + 82, + 85, + 86, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111 + ], + [ + 1, + 3, + 5, + 7, + 10, + 11, + 12, + 13, + 17, + 18, + 20, + 24, + 25, + 28, + 29, + 32, + 33, + 36, + 37, + 40, + 41, + 42, + 43, + 49, + 51, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 65, + 68, + 69, + 72, + 73, + 76, + 77, + 81, + 82, + 85, + 86, + 90, + 91, + 94, + 95, + 98, + 99, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 114, + 116, + 118 + ] + ], + [ + "B", + 271, + [ + 1, + 3, + 4, + 6, + 16, + 17, + 18, + 19, + 41, + 42, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 105, + 106, + 109, + 110 + ], + [ + 1, + 3, + 4, + 6, + 9, + 11, + 12, + 14, + 16, + 17, + 18, + 19, + 24, + 26, + 28, + 30, + 32, + 34, + 36, + 38, + 41, + 42, + 44, + 50, + 51, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 65, + 68, + 69, + 72, + 74, + 76, + 78, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 89, + 91, + 93, + 95, + 97, + 99, + 101, + 103, + 105, + 106, + 109, + 110, + 112, + 113, + 116, + 117 + ] + ], + [ + "B", + 279, + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 112, + 113, + 114, + 115 + ], + [ + 1, + 2, + 5, + 6, + 9, + 10, + 13, + 14, + 16, + 17, + 20, + 21, + 24, + 26, + 28, + 30, + 32, + 33, + 36, + 37, + 40, + 42, + 44, + 46, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 57, + 59, + 61, + 63, + 64, + 66, + 68, + 70, + 73, + 74, + 76, + 82, + 83, + 84, + 85, + 89, + 91, + 92, + 94, + 98, + 99, + 100, + 101, + 105, + 107, + 108, + 110, + 112, + 113, + 114, + 115 + ] + ], + [ + "B", + 287, + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 113, + 114 + ], + [ + 1, + 2, + 4, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 18, + 20, + 22, + 24, + 25, + 28, + 29, + 32, + 34, + 36, + 38, + 40, + 41, + 44, + 45, + 49, + 50, + 53, + 54, + 58, + 59, + 60, + 61, + 64, + 66, + 68, + 70, + 72, + 73, + 74, + 75, + 81, + 83, + 84, + 86, + 90, + 91, + 92, + 93, + 97, + 99, + 100, + 102, + 106, + 107, + 108, + 109, + 113, + 114, + 116 + ] + ], + [ + "B", + 295, + [ + 0, + 3, + 5, + 6, + 9, + 10, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ], + [ + 0, + 3, + 5, + 6, + 9, + 10, + 12, + 18, + 19, + 20, + 21, + 24, + 26, + 29, + 31, + 32, + 33, + 38, + 39, + 41, + 43, + 44, + 46, + 48, + 49, + 50, + 51, + 57, + 59, + 61, + 63, + 64, + 65, + 70, + 71, + 73, + 74, + 77, + 78, + 80, + 81, + 84, + 85, + 89, + 91, + 93, + 95, + 98, + 99, + 102, + 103, + 104, + 106, + 108, + 110, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119 + ] + ], + [ + "B", + 303, + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 49, + 50, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 113, + 114, + 117, + 118 + ], + [ + 0, + 3, + 4, + 7, + 8, + 9, + 10, + 11, + 17, + 19, + 20, + 22, + 24, + 25, + 30, + 31, + 32, + 34, + 37, + 39, + 42, + 43, + 44, + 45, + 49, + 50, + 52, + 58, + 59, + 60, + 61, + 64, + 65, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 82, + 84, + 86, + 90, + 91, + 94, + 95, + 97, + 99, + 101, + 103, + 104, + 105, + 108, + 109, + 113, + 114, + 117, + 118 + ] + ], + [ + "B", + 311, + [ + 0, + 2, + 5, + 7, + 17, + 18, + 21, + 22, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 81, + 82, + 104, + 105, + 106, + 107 + ], + [ + 0, + 2, + 5, + 7, + 8, + 9, + 12, + 13, + 17, + 18, + 21, + 22, + 24, + 25, + 30, + 31, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 50, + 52, + 54, + 58, + 59, + 62, + 63, + 64, + 66, + 69, + 71, + 74, + 75, + 76, + 77, + 81, + 82, + 84, + 90, + 91, + 92, + 93, + 98, + 99, + 100, + 101, + 104, + 105, + 106, + 107, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 319, + [ + 0, + 2, + 4, + 6, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 41, + 42, + 45, + 46, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 80, + 81, + 82, + 83, + 105, + 106 + ], + [ + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 26, + 29, + 31, + 32, + 34, + 37, + 39, + 41, + 42, + 45, + 46, + 48, + 49, + 52, + 53, + 57, + 59, + 60, + 62, + 64, + 66, + 69, + 71, + 73, + 75, + 76, + 78, + 80, + 81, + 82, + 83, + 89, + 91, + 92, + 94, + 97, + 99, + 100, + 102, + 105, + 106, + 108, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 327, + [ + 0, + 1, + 6, + 7, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 88, + 89, + 90, + 91, + 97, + 98 + ], + [ + 0, + 1, + 6, + 7, + 8, + 9, + 14, + 15, + 16, + 17, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 33, + 34, + 37, + 38, + 40, + 41, + 46, + 47, + 48, + 49, + 54, + 55, + 60, + 61, + 62, + 63, + 64, + 67, + 68, + 71, + 74, + 75, + 76, + 77, + 82, + 83, + 84, + 85, + 88, + 89, + 90, + 91, + 97, + 98, + 100, + 106, + 107, + 108, + 109, + 114, + 115, + 116, + 117 + ] + ], + [ + "B", + 335, + [ + 0, + 1, + 4, + 5, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 89, + 90, + 96, + 97, + 98, + 99 + ], + [ + 0, + 1, + 4, + 5, + 8, + 10, + 13, + 15, + 16, + 18, + 21, + 23, + 25, + 26, + 29, + 30, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 42, + 45, + 47, + 48, + 50, + 53, + 55, + 57, + 58, + 61, + 62, + 64, + 67, + 68, + 71, + 73, + 75, + 76, + 78, + 81, + 83, + 84, + 86, + 89, + 90, + 92, + 96, + 97, + 98, + 99, + 105, + 107, + 108, + 110, + 113, + 115, + 116, + 118 + ] + ], + [ + "B", + 343, + [ + 0, + 1, + 2, + 3, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 57, + 58, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103 + ], + [ + 0, + 1, + 2, + 3, + 8, + 11, + 12, + 15, + 16, + 19, + 20, + 23, + 25, + 26, + 29, + 30, + 32, + 35, + 36, + 39, + 41, + 42, + 45, + 46, + 49, + 50, + 53, + 54, + 57, + 58, + 60, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 75, + 76, + 79, + 80, + 83, + 84, + 87, + 89, + 90, + 93, + 94, + 96, + 99, + 100, + 103, + 105, + 106, + 109, + 110, + 113, + 114, + 117, + 118 + ] + ] + ] +} \ No newline at end of file diff --git a/research/r715-target-factors-banked/e8-r740-replica32/data/word.json.gz b/research/r715-target-factors-banked/e8-r740-replica32/data/word.json.gz new file mode 100644 index 0000000000..85390b07e4 Binary files /dev/null and b/research/r715-target-factors-banked/e8-r740-replica32/data/word.json.gz differ diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/EXPECTED.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/EXPECTED.json new file mode 100644 index 0000000000..7f5f7f3f9d --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/EXPECTED.json @@ -0,0 +1,45 @@ +{ + "note": "Exact values that verify.sh must reproduce. Rationals are on the 10^-18 grid of the hub's pricing; each c is the largest grid point admitted by both PR #315 moment engines (with the 1e-16 fallback), and the next grid point is rejected.", + "word": { + "R": 740, + "content_sha256": "d6ec8811541d6ab59a3bbbaaa15bccc8918b3b43b23d9f593198cfe90826fd20", + "local_histogram": {"1": 2355, "2": 884, "3": 489, "4": 425, "5": 62, "8": 9} + }, + "pr433": { + "bit_lower": "282564789736676592463/250000000000000000000000", + "kappa": "1128983115440183/1000000000000000000" + }, + "nine": { + "c": "565129579473353/500000000000000000", + "controls": { + "pr376": "1084538480613107/1000000000000000000", + "pr426": "1116714040089377/1000000000000000000" + }, + "kappa": { + "pr431": "1056975315151441/1000000000000000000", + "pr425": "524002754014103/500000000000000000", + "pr386": "998243154231047/1000000000000000000" + } + }, + "b4": { + "c": "1064525457834209/1000000000000000000", + "controls": { + "pr370": "249162322049641/250000000000000000", + "pr376": "255384852701747/250000000000000000", + "pr417": "1044063934627389/1000000000000000000" + }, + "kappa": { + "pr424": "1018509848057013/1000000000000000000", + "pr410": "508781072593909/500000000000000000", + "pr409": "508625250464133/500000000000000000", + "pr407": "7941615395831/7812500000000000" + } + }, + "b3": { + "c": "1058066102700151/1000000000000000000", + "controls": { + "pr376": "8128527708459/8000000000000000", + "pr426": "104575879789097/100000000000000000" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/LICENSE b/research/r715-target-factors-banked/e8-r740-replica32/parent436/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/MANIFEST.sha256 b/research/r715-target-factors-banked/e8-r740-replica32/parent436/MANIFEST.sha256 new file mode 100644 index 0000000000..399beb5da4 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/MANIFEST.sha256 @@ -0,0 +1,87 @@ +a9655e303cb2c40ce024443b27c0a810ffc24f1ee1e5b07eb19241fad399b5e2 EXPECTED.json +c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE +eb9cb7eab03977930484fee70d0aea066803917a6304b1ad2644cfcc6bf2acd4 NOTICE.md +d737a3b77de97bdf67d2a140465be5b8886af6aa57516f78ad8f2839f3dae8cc README.md +352a68f0898535311c63cac879a52b686246ba80844f1a3cc2f3c3f6b1046b4d SOURCE-pr370.json +1608c15638f874243c3ad00bd6a08b30f0e9608de83002273819365ab300b0e7 SOURCE-pr376.json +c457c422d54645ad841c8528bf2efa6c253d1c134ee86c875b9b7d76d4f9520c SOURCE-pr381.json +bba849ed0a1af4d45a76ec734d5f0d07806da2b161f1b5ad8ea63cf2d64b5aa4 SOURCE-pr386.json +d9b7e606f09b840ed9fe10dc8c8250b4cab9bbe5d0cacb62864ca8366a28b2b1 SOURCE-pr417.json +a2c5e2f0e03b0dbcba4ca18282a4ff390a6a395f14411410cfff42d5281d0289 SOURCE-pr425.json +f884cc42793a3afd249ebee20985f61422e7b5baf7c1fcab5b990e1959f31697 SOURCE-pr426.json +71cd86e64217fc4db0199ae8e5ef65cb0cc2ed593e15f03bc1501d4b32fdeb66 SOURCE-pr431.json +f1181aa9f30dcc2e5df7e94738fa0c0cabe5f56b31c8eb843fa0a257da79ed91 SOURCE-pr433.json +cc47efc71334d7d41d6475c5dfc8080a278d3b694b335c6a9873dad4632d1f7e code/b4/kappa_b4.py +e68a81ef7981a90d613752003cd5cab5351e260f909b094f1668d8a4dfe480df code/bit/checkers/certify_bit_k.py +d1297f9052be4f2496e1ff2a77e4db2c0cdbd7d460d489b4c03e50bf317238ce code/bit/checkers/columns_h.cpp +1c344d18fcd494eeca93e259f10cafae7705780e6592f6dcb35b34752dab9bc2 code/bit/checkers/columns_k.cpp +d55d2b865d1c3d35e343e1a38c592b9172ed8e2596d1107e34d92e2a80c7d03f code/bit/checkers/cost.py +7e67dc75e63a11e38ac6d6615656c7cf6982e5a33dd404d04b967bf474cad02e code/bit/checkers/finite_k.py +646b7e8773d9c99376cb00627f109a97319e6d72b439ff513c39035c28c3f70f code/bit/checkers/geometry_k.py +223a5a07731fc315a90a3e48177796babc155c1d9985c7ae5017eff6af2a0608 code/bit/checkers/gram_frames.py +aaf127c04cb31c406e5b04a63f1ae89369fccde6d8fa7cdda1ed4f32dfc5de63 code/bit/checkers/json.hpp +6c1ef2b24e57781d6951c172a1024fc4300e6fd392c9d6672079a7806ab663b3 code/bit/checkers/legality_h.cpp +64255088821f601ede2c3006f08cb97c39a4fa10dbbeb93a8a71fcfa0e1d8d77 code/bit/checkers/tile_k.py +8a5999601f917dbb492bb9ae9a344611f18cc7cedc53dc3c76496a369e530eb3 code/bit/export_records.py +11bf9620ca9db16d52d9fe806b814fc9ec9a89c4d7645354d1861d96f6e805ad code/bit/independent/checkword.py +0ff65aace5da4b57d96235bf830f8f11969322e75134d498aeb70e9753ec6b0d code/bit/independent/mutate.py +b0e75d6550412a7be4017695e6b237392b611bb852ad8ff309d6682c9f166a4e code/bit/mutate_records.py +60fea6a9d6617a3f87376d3fda040642e9cb70e7c179015e03ede8d289f30357 code/bit/producer/compile.py +0e23d4282ceb75768e82631da016aaff9818aec53c7d75a6b2a28ee1b1160dc3 code/bit/producer/compile2.py +4f8a6843e83bc4f7055d7337f33dbe12ce499051f46bee1b81bbf6b34c652574 code/bit/producer/e8lib.py +ba71f77dd3e3c1c54f361c066cebe9faadbc78db46376046e7af625bf1de8c24 code/bit/producer/frames.py +0daf87599e9e48646b985ad87351c56c1b73cfc99cdf9eca081483846ddbfa90 code/bit/producer/fullword.py +359040fb432fd392472af6b8f5dca0234dd6c2be744a791df27ba62bc5da5175 code/bit/producer/ham1.py +fdf0af785ce697bd7f80b4e75f7163735f3b599d9dc42f652f0ffdbdf18ea8bf code/bit/producer/ham2.py +1256c54debe0a551da8e24896ab73ef0bd4a5233ff8e6fedf21a9e6301d6e6f3 code/bit/producer/params-r865.json +46c858e60ba0a117bf8227b864abf55e85ebee2d56a0dce64472b706499ac405 code/bit/producer/price.py +67f714e10a846e9cc62996342f825cd715055031e0b12591abdafd225717e195 code/bit/receipts_k.py +6c288f6f234b528c1a7c0a4adfb724e91e0fe6b18c8dffad96af3f973de1829a code/bit/regression/stage_cohort.py +5fe7174cd3a6580a74e4c1bf8fa7b426e8673f1c285603bf3076d4e758d70731 code/complex/code/bridged.py +48ac1d66a406ed72dd9192a19118776ba253f5c90e96185f5c1b98bb670a6361 code/nine/audit_g.py +97a5f7e9bf2202d170da17d5d17d876903641d7d24433115c27ea95b9fe65ccd code/nine/certify_g.py +b6722d990fba39ef41b3d658326bdde97c25b749a454bda2509fdffeabd31a86 code/nine/cited.py +27dd61574f1f6921238ff9f57c6fd536e6f0a0983138bc5c99aeb141d3ccc195 code/nine/compose433.py +36eeda3184bd009e89462b65c8725d10860c444f8da8f1f87e5f6e50120011ca code/nine/geometry.py +ff8d6be2432b79584dc2f2d2bdcd3cefede0d0730d1eecb0a6859dd527f5fce4 code/nine/global_word_g.py +bf97418a9aec7c3f55d04d4754e626f17f44aa2059ffd8acd7b315dcf9e89110 code/nine/regress386.py +aee70c242a2f1d225528fabe2002e1564d1dc884797c07d28a831c7878ee9098 code/pricing/base_two_moment.py +81cbc864e106418fc7854322746f72180cb8110ff39f74450a3b8d55a82c1482 code/pricing/moment.py +c1ebb52163a7219504c728a5c2b098bf1e50bf20148a2879c5a74c3cadc7c03c code/pricing/outer.py +98cd03bc9582e7bd0ab194c191ea8eea940539e510051443ab9fd3e572a364ab code/pricing/prime_witnesses.py +e28fd87d0e34a6f6f6f1fddb6c4891deac220662c954de855d7aa5a7f9cceca4 code/provenance.py +89df84f78064de12cd11f0f5f63aa9cad2385f5d18d2e4ade7409a5ae0435721 code/reuse/controls.py +901c61f0a8082fc87012f91372aafbb2a1b464be685426e32e77cc9f0e393958 code/reuse/ecost.py +972740a54e487b12aebc09f2fab5f2878835727cb4ad82fb1aa26a0f2d34f517 code/reuse/regen.py +d8530464a6e00e0a509cf8b392cae70579c8d0f636a0dc86677f5dee0863d34d code/reuse/retime.py +b802483c024d23c92df30f1a2d93838280e39dfa0bd7129b879d6cc0b84c80a4 code/reuse/reuse.py +ac49a9a7da44a1e8fbf468c6d8901b5712705d3caa9dd3e0cb89f056f0e67b2a code/tail/apply376.py +6811203fb7df1ac8a9eee3fbeca722de98dbc99077921fe77e0d452c760f0ffc code/tail/bootstrap.py +1cb286196c1530d06f50f0997febc5993b388f33464e295611b920ba30a24eeb code/tail/e8core.py +aee70c242a2f1d225528fabe2002e1564d1dc884797c07d28a831c7878ee9098 code/tail/engines/base_two_moment.py +81cbc864e106418fc7854322746f72180cb8110ff39f74450a3b8d55a82c1482 code/tail/engines/moment.py +c1ebb52163a7219504c728a5c2b098bf1e50bf20148a2879c5a74c3cadc7c03c code/tail/engines/outer.py +f8daa4982d865748fa9a3095b2cf4290f34e2c085d6d35673fd7171cab95623c data/bit/bitE8-r740.json.gz +1fb726ea3818fe0837cceb0dd22a71a0814f064e5e781628104610d6468e0e55 data/bit/bitE8-r865.json.gz +e7bb324150a5342076c9a268f69b83c65f817a7cfc1d14fda9558a9f7e486f0b data/bit/reuse-ledger.json +161663bf22c8e6a62e2dce194b326016c11e551f31691140ef34355e9b2e4e92 data/complex-b-433.json +1bdd6a649615ddb6bf7cdf24abd7bb1bbd6cc9284e2aa44f796786310d3e1a3b data/complex-b-b4.json +2815ca568c88edde758c31e756d0d07aa08233243f365bc111383d7f0c1c757a data/complex-b-nine.json +c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 data/controls/LICENSE-pr426 +c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 data/controls/pr376/LICENSE-pr376 +a83d4880579fb1f8cffb701d1d685c157b7fa14ef9d6642e42ff1e4f5a1b8c5c data/controls/pr376/frame-selection.json +0b300bab47cf0d69cbc7965bf01c2a27c96b97677ee651334470d8c968b603f1 data/controls/pr376/reuse-selection.json +59625785de14c3df03abe009cdc67c7918b8fcfa8dc5f468c3d363af0494cbb7 data/controls/pr386/AUDIT.json +6043a7486790ac8ca04dc67ddf5b57076e7c880b66eb456127c6cd933c77764a data/controls/pr386/COMBINED.json +55af2a11552c04f5a87268bc2d1798246297874e9e87b50e49773e91cc495c2d data/controls/pr386/GLOBAL.json +acc2b138ce16be1ff12570d3ec1634fe28cccaf259de797be0f62628fb37cccb data/controls/pr417-bitE8-nine-kernel.json.gz +46ea33ad1979cd14a2b686e8742792739312a07ab72945517c3809b647b31c42 data/controls/pr425/FINAL.json +bd3b84244528767b85d8d7fe423b155630b5c659e21e51563674b1dcb6305ad7 data/controls/pr426-bit-candidate.json.gz +2b77c882ac524adbbacc9775ee172c854ecd4027e36db59ed15a7d1b6b9e1ce5 data/controls/pr431/VALIDATION-LOCAL.json +f71580f22193726fb582eae604807ff70a7302265e001d9484a718e63bbe14c4 data/controls/pr433/CERTIFICATE.json +871fc75ce6fea2638f68553bcfe771d09297e987d59c123338227e29415851d1 data/params/params-r740.json +d840952ed60b4b460da83b04c4c8be3622b9bef04b62961c0d496c445f8b84d1 discovery/README.md +57de04a8ea7e2df8b783e02c454bb102edab48206db0a41a1f28d50e7f164441 discovery/search_params.py +420094be2af295eed03a983dd66debbbe9cfb78d8252859f4498a615a0074b99 portable-include/bits/stdc++.h +b9f87c1ec529679c19b8421a7a69b377b54b89949cfc5e1b1ed8c134bfab8917 requirements.txt +19bf483b109163b0ccc941f459e70c2e37d20c9c04e69e7c8eb98f329577b26c verify.sh diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/NOTICE.md b/research/r715-target-factors-banked/e8-r740-replica32/parent436/NOTICE.md new file mode 100644 index 0000000000..2c01026b8b --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/NOTICE.md @@ -0,0 +1,51 @@ +# Notice + +Apache-2.0 (`LICENSE`). Prepared by eumemic with substantial Anthropic Claude assistance. + +## New in this package + +- `code/reuse/`: the elimination-reuse stage (`reuse.py`), the frame retiming (`retime.py`), their integer cost tables (`ecost.py`), the regeneration driver (`regen.py`) and the elimination-reuse negative controls (`controls.py`). +- `data/params/params-r740.json`: our parameters for PR #370's producer. `discovery/` holds the search that nominated them. +- `data/bit/bitE8-r740.json.gz` (the word) and `data/bit/reuse-ledger.json` (its inserted elimination gates). +- `code/nine/global_word_g.py`, `audit_g.py`, `certify_g.py`: generalisations of PR #386's `global_word.py`, `audit.py` and `certify.py` to any bitE8/1 word whose helpers start at frame 0 and end at the full frame. `regress386.py` checks them against PR #386's own receipts. `cited.py` binds the cited complex savings to the PRs' receipts. `compose433.py` ports PR #433's bit pricing, finite invoice and tail. +- `code/b4/kappa_b4.py`, `code/provenance.py`, `verify.sh`, `EXPECTED.json`, `data/complex-b-*.json`, `.github/workflows/e8-bit-elimination-reuse.yml`. + +## Vendored, byte-identical (git blob ids in `SOURCE-pr*.json`, checked by `code/provenance.py`) + +- **PR #370 (Dylan Crow / utcorvusvolat-dotcom, with Anthropic Claude assistance), commit b7fe9cd:** + - the producer `code/bit/producer/`; + - the independent checker and its controls `code/bit/independent/`; + - the record exporter and the record-level controls; + - PR #266's official cohort checkers as generalised there (`legality_h.cpp`, `columns_h.cpp`, NCOPY); + - `gram_frames.py`, `stage_cohort.py`; + - PR #315's engines (`code/pricing/`, DreamingOfClouds); + - nlohmann/json (`json.hpp`, MIT licence in its header); + - the E8 bit word `data/bit/bitE8-r865.json.gz`; + - `LICENSE`. +- **PR #381 (DaysSky, assisted with Claude), commit 00765b2:** the B_K checkers `columns_k.cpp`, `geometry_k.py`, `tile_k.py`, `certify_bit_k.py`, `finite_k.py`, `cost.py`, `receipts_k.py`, and PR #363's `bridged.py` (DaysSky). +- **PR #386 (Zhihao Chen / jacklightChen, with OpenAI Codex assistance), commit dd11cf8:** + - `geometry.py` (compressed nine-stage bit geometry, unchanged); + - the portable `bits/stdc++.h`; + - the validation receipts `GLOBAL.json`, `AUDIT.json` and `COMBINED.json`, used only as regression references. +- **PR #417 (Chafik Boukhalfa / chafreaky, with Anthropic Claude assistance), commit 3f681fb:** + - `bootstrap.py` (their reimplementation of rohanarun's PR #392 refined pricing tail), `e8core.py` and its copies of PR #315's engines; + - `apply376.py`; + - the final kernel word, used as a B_4 control. +- **PR #376 (applecrusher, with OpenAI Codex assistance), commit 92328da:** `frame-selection.json`, `reuse-selection.json` and `LICENSE-pr376`, as vendored in PR #417. +- **PR #426 (ai-nanachi, with OpenAI Codex assistance), commit 88d5525:** the R767 bit word, used only as a priced comparison and B_3 control, and `LICENSE-pr426`. +- **PR #425 (Zhihao Chen / jacklightChen, with OpenAI Codex assistance), commit e11ccea:** the validation receipt `FINAL.json`, which states the cited b and κ. +- **PR #431 (Rohan Arun / rohanarun, with OpenAI Codex assistance; draft), commit db4f465:** the validation receipt `VALIDATION-LOCAL.json`, which states the cited b and κ. +- **PR #433 (icekylinx, with OpenAI Codex assistance), commit 6d92445:** `CERTIFICATE.json`, which states the cited complex b, the R758 bit c and κ. `code/nine/compose433.py` is our port of #433's `code/bit_price.py` and `code/combined.py` arithmetic. No #433 code is vendored or run. + +## Cited, not rebuilt + +Complex coarse savings in `data/complex-b-nine.json` and `data/complex-b-b4.json`, each with its PR, commit and receipt (git blob): + +- compressed nine-stage layout: + - PR #433 (icekylinx; `data/complex-b-433.json`, bound to its certificate by `compose433.py`); + - PR #386 (#377's component), PR #425 (jacklightChen) and PR #431 (rohanarun, draft), bound to their receipts by `code/nine/cited.py`. +- B_4: PR #424, #407 (chafreaky), #410 (eumemic) and #409 (rohanarun). + +No complex construction is rebuilt here. + +The E8 label family follows Jacob Sussman's introduction of E8 for the complex supplier. diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/README.md b/research/r715-target-factors-banked/e8-r740-replica32/parent436/README.md new file mode 100644 index 0000000000..5ddb576f02 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/README.md @@ -0,0 +1,182 @@ +κ = 1128983115440183/10¹⁸ (conditional; bit-bound) with PR #433's complex supplier + +# An E8 bit word with 740 helpers: dead helper slots reused through F₂ relations + +This package is a bit-side supplier: an E8 bit word in PR #370's format (h = 8, v = 120, 9 retained totals) with **R = 740 helpers**. For comparison, #370 has 865, #376 has 822, #426 has 767 and #433 has 758. In the compressed nine-stage layout of PR #386 (m = 64), which #425, #431 and #433 use, its coarse saving is + +**c = 282564789736676592463/(2.5·10²³) ≈ 1.130259158946706·10⁻³** + +on PR #433's 10⁻²⁴ grid. On #386's 10⁻¹⁸ grid it is 565129579473353/(5·10¹⁷). + +PR #433 (icekylinx) pairs its split-centre complex supplier, b = 1183986549206329/10¹⁸ ≈ 1.183987·10⁻³, with a 758-helper bit word, c = 1.122122700265139·10⁻³. #433's bit side binds, at κ = 1.120864952258278·10⁻³. With this word in place of R758, through #433's own bit engine, finite invoice and six-level tail: + +**κ = 1128983115440183/10¹⁸ ≈ 1.128983115440183·10⁻³**, bit-bound, **+0.7243 % over #433**. + +The bit c is +0.7251 % over #433's R758. As controls, the same code reproduces #433's bit c from #433's stated R758 profile, and #433's κ from #433's (c, b), exactly. The complex side still has 4.75 % of headroom over this c. + +## Bit coarse savings + +| bit word | R | compressed nine-stage (#386 layout, m = 64) | B₄ unsplit (#381 layout, m = 72) | B₃ unsplit (m = 56) | +| --- | ---: | ---: | ---: | ---: | +| PR #370 (`bitE8-r865`) | 865 | **1057833103534317/10¹⁸** (= #386, #425, #431) | **249162322049641/(2.5·10¹⁷)** (= #381) | 9.912261·10⁻⁴ | +| PR #376 (R822) | 822 | 1084538480613107/10¹⁸ | **255384852701747/(2.5·10¹⁷)** (= #390 … #424) | **8128527708459/(8·10¹⁵)** (= #376, #389 baseline) | +| PR #417 (R822 + shared-donor kernel) | 822 | — (entrance residuals do not fill #386's rank-8 slots) | **1044063934627389/10¹⁸** (= #417) | 1.037508·10⁻³ | +| PR #426 (R767, clean-reset reuse) | 767 | 1116714040089377/10¹⁸ | 1.051689·10⁻³ | **104575879789097/10¹⁷** (= #426) | +| PR #433 (R758: #426 + source-basis totals) | 758 | **561061350132569610283/(5·10²³)** (= #433, 10⁻²⁴ grid) | — | — | +| **this word** | **740** | **282564789736676592463/(2.5·10²³) ≈ 1.130259·10⁻³** | **1064525457834209/10¹⁸ ≈ 1.064525·10⁻³** | **1058066102700151/10¹⁸ ≈ 1.058066·10⁻³** | + +Compressed nine-stage values are on #386's 10⁻¹⁸ grid, except #433's and this word's, which are on #433's 10⁻²⁴ grid. On the 10⁻¹⁸ grid this word is 565129579473353/(5·10¹⁷). + +Bold entries in the control rows are the values the cited PRs publish. `verify.sh` reproduces each exactly with the same code that prices this word. Most come from the PR's own word. #433's R758 value comes from the R758 profile stated in #433, because the package does not ship that word. The other entries are computed here and are not published by those PRs. + +This word compared with the best published bit c in each layout: + +| layout | best published bit c | this word | +| --- | --- | ---: | +| compressed nine-stage | #433's R758 | +0.725 % | +| B₄ | #417 | +1.960 % | +| B₃ | #426 | +1.177 % | + +Against #426's R767 word priced in the same layouts, this word is +1.213 % (compressed nine-stage) and +1.221 % (B₄). The five-stage saving (PR #370's independent checker) is 9.63227·10⁻⁴. + +## κ with cited complex suppliers + +| complex supplier (cited, not rebuilt) | layout and tail | b | κ with this word | κ as published | +| --- | --- | ---: | ---: | ---: | +| **PR #433 (icekylinx)** | compressed nine-stage; #433's tail | 1183986549206329/10¹⁸ | **1128983115440183/10¹⁸** (bit-bound) | 560432476129139/(5·10¹⁷) (bit-bound, R758) | +| PR #431 (rohanarun, draft) | compressed nine-stage; #386's tail | 529046848168159/(5·10¹⁷) | 1056975315151441/10¹⁸ (complex-bound) | 1056715272872389/10¹⁸ at db4f465 (bit-bound, #370 word); 1056975315151441/10¹⁸ at 71c5988 (with #376's retimed bit word) | +| PR #425 (jacklightChen) | compressed nine-stage; #386's tail | 52455248902029/(5·10¹⁶) | 524002754014103/(5·10¹⁷) | same | +| PR #386 (#377's component) | compressed nine-stage; #386's tail | 999240641319551/10¹⁸ | 998243154231047/10¹⁸ | same | +| PR #424 (chafreaky) | B₄; #392's refined tail | 254887067002137341481/(2.5·10²³) | 1018509848057013/10¹⁸ | same | +| PR #410, #409, #407 | B₄; #392's refined tail | as cited by #417 | as published | same | + +All κ values are on the 10⁻¹⁸ grid and satisfy PR #315's 47 strict outer inequalities. The next grid point is rejected. The three tails: + +- **#433's tail** (`compose433.py`, ported from #433's `bit_price.py` and `combined.py`): + - c is the 10⁻²⁴-grid lower endpoint of PR #315's `certify`, with the 10⁻¹⁶ bad-branch allowance, and is checked by the second engine; + - η = β = 10⁻¹⁸, seed min(c, (1 − β)b) − 10⁻²⁴, six bootstrap levels; + - zero η, zero β and unit β are rejected as well; + - the finite invoice charges the prefix at the next multiple of 64 bits: here 123 bits, charged 128. +- **#386's tail** (#386, #425, #431): three bootstrap steps, η = 10⁻¹², β = 10⁻⁹. The seed is strictly below (1 − β) times both suppliers (#431's policy). +- **B₄:** #392's refined tail, as reimplemented in PR #417's `bootstrap.refine`. + +With #431's complex supplier the complex side binds. Every bit word above #431's b gives that κ, including #376's and #426's words in this layout. #431's later head uses #376's retimed word. The PR #370 word reproduces #431's κ at db4f465, and #425's and #386's κ, exactly. + +## The word + +1. **PR #370's producer, unchanged, with new parameters.** `data/params/params-r740.json` differs from #370's `params-r865.json` in 67 of 520 entries. It was found by a local search with the reuse pass in the objective (`discovery/`). The producer gives a word with R = 863. +2. **Elimination reuse** (`code/reuse/reuse.py`). + - A helper is dead after its last gate in phases A and B. It still holds a leftover x-content: an F₂ sum of source lines, at its last frame. + - Before a later helper is born at frame F, the pass looks for an F₂ relation content(r₀) = Σ_{q∈S} content(q) among dead slots whose frames lie inside F. It emits r₀ += S at the join G of their frames (G ⊆ F). r₀ then holds no x-content and hosts the new helper. + - The relation is found by Gaussian elimination over F₂. The cheapest relation with |S| ≤ 3 replaces it when one exists, scored by the extra climbing of r₀ and of the eliminators. + - The 9 retained totals take dead slots too. The slot's leftover x-lines are read from the sources at the full frame. + - The dirt compensation D and the cleanup C are rebuilt as in #370's `fullword.py`. + - **114 helper slots and 9 totals are reused: R 863 → 740.** + - **Prior and concurrent work.** + - #376 reused helper lifetimes by aliasing: 43 reuses. + - #426 (ai-nanachi, posted first) uses the same mechanism as this pass. It zeroes a retired helper's x-content with exact two- or three-parent "clean resets" before reusing the slot, rebuilds D and C, and keeps the totals protected. It makes 55 resets on #376's R822 word (R767). + - This pass was developed independently. It differs in four ways: it searches every dead slot inside the birth frame by elimination, uses cost-scored relations with up to three eliminators, puts the totals on dead slots as well, and starts from a re-parameterised #370 producer word (R863). + - **#433's source-basis trick does not apply here.** The trick computes the nine retained sums in source rows, which removes #426's nine dedicated total helpers (R767 → 758). In this word the totals already sit on slots of earlier helpers, and no helper is born after them, so the trick would remove no register. +3. **Retiming** (`code/reuse/retime.py`, the idea of #389). Each gate moves to its lowest or highest legal frame when that lowers Σ r ln(64/r) over its registers' adjacent steps: 37 gate moves. + +All search choices use integer costs computed with Python's correctly rounded `decimal` logarithm, so the word is the same on every platform. One invocation's local histogram is {1: 2355, 2: 884, 3: 489, 4: 425, 5: 62, 8: 9}: 4,224 blocks, of which 9 are copies. Gates D/A/B/C: 120/1873/472/1873; 944 frames. + +## Verify + + BOOST_INCLUDE=/usr/include bash research/e8-bit-elimination-reuse/verify.sh /fresh/output/dir + bash research/e8-bit-elimination-reuse/verify.sh --quick /fresh/output/dir + +Requirements: Python 3.11+ with numpy, mpmath and sympy (`requirements.txt`); a C++17 compiler (`CXX`); Boost headers (`BOOST_INCLUDE`). `--quick` skips the regressions on #370's word, the comparison words in the compressed nine-stage layout, and the B₃ rows. The workflow `.github/workflows/e8-bit-elimination-reuse.yml` runs both modes on Python 3.12 and 3.14. + +0. **Manifest and provenance.** `MANIFEST.sha256`. The git blob id of all 52 vendored files is checked against `SOURCE-pr*.json`: #370, #376, #381, #386, #417, #425, #426, #431 and #433. +1. **The word from pinned inputs.** + - Control: #370's producer regenerates #370's word from its own parameters. + - `regen.py` rebuilds this word from our parameters (producer → reuse → retiming). It must equal the shipped word, and the reuse ledger must match. + - #376's R822 word is rebuilt from #370's word and #376's two witnesses with #417's `apply376.py`, as a control word. +2. **One invocation, exact.** + - #370's independent checker: the 120 E8 root lines; nested frames; common gate frames; F₂ on all 980 columns, dirty helpers included; Gram determinants on 935 used frames (prime 2 only); the five-stage root. + - #370's 6 word-level controls, rejected. + - 6 elimination-reuse controls, rejected by the same checker: drop an elimination gate, drop one eliminator, drop one x-line read of a total's undo, lower an elimination below an eliminator's frame, remove all 123 elimination gates, move a total's undo gate to frame 0. +3. **Official checkers.** + - PR #266's cohort legality, as generalised in #370 (NCOPY = 9): 19,527 records, 15,294 common-frame ADDs. + - Five-stage formal columns: 1,220 columns, prefix payload 64 bits < 104. + - #381's B₄ formal columns: all 1,700 physical columns over F₂ through 9 invocations, 18 twin bridges and the terminal exchange. All 18 omitted-bridge controls are rejected. + - #370's 6 record-level controls are rejected, including the unmodified copy count NCOPY = 8. +4. **Nondegeneracy.** `gram_frames.py`: all 944 frames positive definite under the E8 form. Prime witnesses are valid; the only prime is 2. +5. **Retained totals.** 9 COPY/ERASE episodes at the full frame (rank 8). +6. **Compressed nine-stage layout (#386).** + - #386's `geometry.py`, unchanged: 120 port routes, 1,080 route checks, at most 77 route factors with denominators {1, 2, 4}, and the bank slots. It is bound to this word by the equality of the 120 label vectors. + - `global_word_g.py`, our generalisation of #386's `global_word.py`: + - both reflected local streams replay all 980 columns; + - the scalar replay over 9 stages covers 7,620 independent columns; + - 72 local invocations, 1,405,944 emitted events and 53,280 bank assignments (6,660 banks of 8 whole rank-8 slots, no padding); + - live stock 64v + 9R = 14,340; + - deficit 2,496 = 8(8v − 9·72); + - max child 42 of 64, so two-level halving; + - prefix bound 2¹⁸·776⁵·17,724⁴ of 123 bits, under #386's 192-bit allowance. + - `audit_g.py`: 944 exact rational projectors and 3,263 nested pairs. #386's 8 template mutations are rejected. + - `cited.py`: each cited complex b, and that PR's own κ, must equal the fields of the PR's receipt. The receipts are #386's `COMBINED.json`, #425's `FINAL.json` and #431's `VALIDATION-LOCAL.json`, vendored and pinned by blob id. + - `certify_g.py`: both PR #315 engines with the 10⁻¹⁶ fallback admit c and reject c + 10⁻¹⁸. The finite coefficient has 123 bits; the two-level coefficient has 282 bits, below 2⁵¹²; the row coefficient is 18,355 < 20,161. κ is then computed with each cited complex b. + - `compose433.py`: PR #433's bit engine, finite invoice and six-level tail, ported from #433's `bit_price.py` and `combined.py`. + - Controls: #433's stated R758 profile prices to #433's bit c, and #433's (c, b) gives #433's κ. Both are bound to #433's `CERTIFICATE.json`, which is vendored and pinned. + - Then this word's c, invoice and κ with #433's complex b: next grid point, zero η, zero β and unit β are rejected. + - **Regression:** on #370's word the same three scripts reproduce #386's `GLOBAL.json`, `AUDIT.json` and the bit, finite and κ fields of `COMBINED.json`, field for field. They also reproduce #425's and #431's κ. + - **Comparison:** the same chain prices #376's word (rebuilt in step 1) and #426's word in this layout. Each gives the same κ with #431, since each has c > b. +7. **B₄ (#381's layout, unsplit).** + - #381's `geometry_k.py` on this word: PR234 routes on 9 blocks, idle gap ranks equal to `bridged.py`, the 9-window entrance completion, max child 50 (halving degree 2). + - `tile_k.py`: 740 banks of 9 rank-8 residuals with T = 9 replicas. + - `certify_bit_k.py` prices this word and the #370, #376 and #417 controls. + - `receipts_k.py` and `finite_k.py`: the finite bill at m = 72. The coefficient has 48 bits, below 2⁸⁰; the payload prefix is 64 bits; the internal row coefficient is 10,370. + - `kappa_b4.py` computes κ with the cited B₄ suppliers. + - **Regression:** `columns_k` at K = 2 gives the five-stage `columns_h` receipt. +8. **B₃ (informational).** Formal columns at K = 3 (1,460 columns), banks with T = 7, and prices with the #376 and #426 controls. +9. **Summary** against `EXPECTED.json`. + +Locally, the C++ checkers were built against a 128-bit, overflow-checked stand-in for `boost::multiprecision::cpp_int`, because the preparing machine has no Boost. CI compiles them against libboost-dev. + +## Retained assumptions and open obligations + +- **Everything PR #370 admits:** + - 9 retained totals at h = 8; + - PR234's banks for a non-paired-cube family; + - the inherited all-size weighted bit compiler, prime/tape/precision and analytic interfaces. +- **The compressed nine-stage layout is PR #386's:** + - its window, bank and route arguments (PROOF.txt there); + - two-level halving (max child 42 of 64); + - its finite charges. + Our scripts check this word against those arguments' finite conditions; they add no new argument. +- **B₄ is PR #381's:** halving degree two on the bit side (#375, #381); no Lean proof of B_K. +- **The complex suppliers are cited by pinned reference and not rebuilt:** + - the headline κ depends on #433's split-centre complex supplier (its PROOF.md), which builds on #425's written scalar-interface extension; + - #433's complex b, its six-level tail (#392's refined form, η = β = 10⁻¹⁸) and all its obligations remain #433's. + - #431 (a draft) and the other cited suppliers are listed only for comparison. +- **#433's bit finite charge is adopted for the headline:** the prefix is charged at the next multiple of 64 bits (here 123 bits, charged 128, inside #386's 192-bit allowance), and the two-level coefficient is below 2⁵¹² (here 282 bits). +- This is a conditional finite construction, not a formal verification of the multiplication theorem. No Lean proof is claimed. +- **Not measured:** stacking #417's shared-donor kernel on this word. It applies to B_K banks. It does not apply to #386's whole-block banks, whose slots need rank-8 residuals. + +## Credits + +- **Dylan Crow (utcorvusvolat-dotcom), PR #370:** the E8 bit word format, the producer whose output we reuse, the independent checker and the generalised official checkers. +- **applecrusher, PR #376:** helper-lifetime reuse, which the elimination reuse generalises. +- **ai-nanachi:** + - PR #389: the frame-retiming idea; + - PR #426: clean-reset reuse, the same slot-reuse mechanism, published first (developed independently here), and its R767 word as a comparison. +- **icekylinx, PR #433:** + - the split-centre complex supplier that the headline κ uses; + - its bit engine, finite invoice and six-level tail, ported here; + - the R758 comparison. +- **DaysSky:** + - PR #381: the B₄ layout and checkers; + - PR #375: halving degree two; + - PR #363: B_K and `bridged.py`. +- **Zhihao Chen (jacklightChen):** + - PR #386: the compressed nine-stage bit layout and its checkers, generalised here; + - PR #425: the mutable-basis complex word. +- **Chafik Boukhalfa (chafreaky), PR #417:** the B₄ pricing tail port, the #376 rebuild and the kernel-word control. +- **Rohan Arun (rohanarun):** + - PR #431: a cited complex supplier and the two-supplier seed policy; + - PR #392: the refined pricing tail. +- **Jacob Sussman:** the E8 family and the bridged word. +- **PR #266 and PR #315 (DreamingOfClouds) lineage:** the official checkers, the moment engines and the outer assembly. + +Prepared by eumemic with substantial Anthropic Claude assistance. Apache-2.0 (`LICENSE`); see `NOTICE.md`. diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr370.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr370.json new file mode 100644 index 0000000000..db86b22e15 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr370.json @@ -0,0 +1,105 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/370", + "head_repository": "utcorvusvolat-dotcom/e8-bit-kappa-8.7548e-4", + "commit": "b7fe9cdf2da009c947ff6b334c562bc190b30373", + "note": "PR #370 (Dylan Crow / utcorvusvolat-dotcom): E8 bit word, producer, independent checker, generalised official checkers, PR #315 engines as vendored there. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "LICENSE": { + "source_path": "research/e8-bit/LICENSE", + "blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64" + }, + "code/bit/producer/compile.py": { + "source_path": "research/e8-bit/code/bit/producer/compile.py", + "blob": "86b12507ef86308336833a208a989d56072096d1" + }, + "code/bit/producer/compile2.py": { + "source_path": "research/e8-bit/code/bit/producer/compile2.py", + "blob": "a7bdfdfbe417c793b2a8c515f5432bdd10472259" + }, + "code/bit/producer/e8lib.py": { + "source_path": "research/e8-bit/code/bit/producer/e8lib.py", + "blob": "8464b956f6a5aa5061695990a14b7a385d370c2e" + }, + "code/bit/producer/frames.py": { + "source_path": "research/e8-bit/code/bit/producer/frames.py", + "blob": "b28c3b2413b9767e7ffe0a8b2db93836f3455494" + }, + "code/bit/producer/fullword.py": { + "source_path": "research/e8-bit/code/bit/producer/fullword.py", + "blob": "104f01b7803481b623809bc8a57682d28f09b5c3" + }, + "code/bit/producer/ham1.py": { + "source_path": "research/e8-bit/code/bit/producer/ham1.py", + "blob": "8086649a5f71c16698db7059bbada7187d781b56" + }, + "code/bit/producer/ham2.py": { + "source_path": "research/e8-bit/code/bit/producer/ham2.py", + "blob": "842f76b245a1bfb4150c53a853f6f472511f5a2f" + }, + "code/bit/producer/price.py": { + "source_path": "research/e8-bit/code/bit/producer/price.py", + "blob": "9014d97d519eea1f8c96e4bfc75afa0febd5903f" + }, + "code/bit/producer/params-r865.json": { + "source_path": "research/e8-bit/code/bit/producer/params-r865.json", + "blob": "110b4d94d884f03d4d37be22672ab27d836f1275" + }, + "code/bit/independent/checkword.py": { + "source_path": "research/e8-bit/code/bit/independent/checkword.py", + "blob": "da4e0fe05067184d4dab1e130ae1384c1fa983f5" + }, + "code/bit/independent/mutate.py": { + "source_path": "research/e8-bit/code/bit/independent/mutate.py", + "blob": "eba592fd468e0d7e7e5100fe99da6eb548c5906b" + }, + "code/bit/checkers/legality_h.cpp": { + "source_path": "research/e8-bit/code/bit/checkers/legality_h.cpp", + "blob": "cb1233c7e96b1aa8bbf4d2e4165d75ab0dca64b9" + }, + "code/bit/checkers/columns_h.cpp": { + "source_path": "research/e8-bit/code/bit/checkers/columns_h.cpp", + "blob": "00c5a3a5d81d083582f60f33dd2e7bea5049c37f" + }, + "code/bit/checkers/json.hpp": { + "source_path": "research/e8-bit/code/bit/checkers/json.hpp", + "blob": "82d69f7c5d044c9887c96b90c97f5639083ecd14" + }, + "code/bit/checkers/gram_frames.py": { + "source_path": "research/e8-bit/code/bit/checkers/gram_frames.py", + "blob": "b740d47295c02692260d7cc01874a49fe48f78ab" + }, + "code/bit/export_records.py": { + "source_path": "research/e8-bit/code/bit/export_records.py", + "blob": "3632d370486a02f5456f7643ced03f8c925b2350" + }, + "code/bit/mutate_records.py": { + "source_path": "research/e8-bit/code/bit/mutate_records.py", + "blob": "6794516f665d36eac189894e350a5ad01113cb4c" + }, + "code/bit/regression/stage_cohort.py": { + "source_path": "research/e8-bit/code/bit/regression/stage_cohort.py", + "blob": "f6d7afe3e623208c4207b6a683a1e3e49249e31c" + }, + "code/pricing/moment.py": { + "source_path": "research/e8-bit/code/pricing/moment.py", + "blob": "7d697cb45203fe72d97037403d6da41f71f3b7fd" + }, + "code/pricing/base_two_moment.py": { + "source_path": "research/e8-bit/code/pricing/base_two_moment.py", + "blob": "14a90fa0e788217856f070382c9e61bd7c603c61" + }, + "code/pricing/outer.py": { + "source_path": "research/e8-bit/code/pricing/outer.py", + "blob": "43007488ad2c43187c77cc6798beff8b1cd76ad2" + }, + "code/pricing/prime_witnesses.py": { + "source_path": "research/e8-bit/code/pricing/prime_witnesses.py", + "blob": "7f16d930302ae879c562dd58e085d9747fcac077" + }, + "data/bit/bitE8-r865.json.gz": { + "source_path": "research/e8-bit/data/bit/bitE8-r865.json.gz", + "blob": "8bec1751f7e33c3a1e4673ef5dbc34d6f205321e" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr376.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr376.json new file mode 100644 index 0000000000..818f17fb6a --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr376.json @@ -0,0 +1,21 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/376", + "head_repository": "applecrusher/integer-mult-bounds", + "commit": "92328da595bc688146c79ab8308f0d2012bb491e", + "note": "PR #376 (applecrusher): frame and helper-reuse witnesses of the R822 word (here as vendored by PR #417, byte-identical). Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "data/controls/pr376/frame-selection.json": { + "source_path": "research/e8-bit-helper-reuse/frame-selection.json", + "blob": "647b34368f3f0c7d228c70fa335af872e7946beb" + }, + "data/controls/pr376/reuse-selection.json": { + "source_path": "research/e8-bit-helper-reuse/reuse-selection.json", + "blob": "a6954dc65f28137ad16d015b42c40dbbde0bd66f" + }, + "data/controls/pr376/LICENSE-pr376": { + "source_path": "research/e8-bit-helper-reuse/LICENSE", + "blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr381.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr381.json new file mode 100644 index 0000000000..042a26c7c2 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr381.json @@ -0,0 +1,41 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/381", + "head_repository": "DaysSky/integer-mult-bounds", + "commit": "00765b291d0f924f337298eb1e2930cb0878b95e", + "note": "PR #381 (DaysSky): B_K checkers (formal columns, PR234 geometry, banks, price, finite bill) and PR #363's bridged.py. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "code/bit/checkers/columns_k.cpp": { + "source_path": "research/e8-nine-stage-kappa/code/bit/checkers/columns_k.cpp", + "blob": "42bb232fbec4de703e70cc13dc2f39a3b43a3a01" + }, + "code/bit/checkers/geometry_k.py": { + "source_path": "research/e8-nine-stage-kappa/code/bit/checkers/geometry_k.py", + "blob": "2a052980816d9b56b33c5e41132bb7f86286462b" + }, + "code/bit/checkers/tile_k.py": { + "source_path": "research/e8-nine-stage-kappa/code/bit/checkers/tile_k.py", + "blob": "a4635e6681c2f1521b44f24364cc457d304cb077" + }, + "code/bit/checkers/certify_bit_k.py": { + "source_path": "research/e8-nine-stage-kappa/code/bit/checkers/certify_bit_k.py", + "blob": "37ce2ee2b412b3b97a397159f48b912ef893b014" + }, + "code/bit/checkers/finite_k.py": { + "source_path": "research/e8-nine-stage-kappa/code/bit/checkers/finite_k.py", + "blob": "8781815ee6ee663edc0e0afdf1380186594ec913" + }, + "code/bit/checkers/cost.py": { + "source_path": "research/e8-nine-stage-kappa/code/bit/checkers/cost.py", + "blob": "677584c1c6b0e959c19f58521b68d4b3e847f97e" + }, + "code/bit/receipts_k.py": { + "source_path": "research/e8-nine-stage-kappa/code/bit/receipts_k.py", + "blob": "428261488b4af028fd04df4f84eead1dad79a389" + }, + "code/complex/code/bridged.py": { + "source_path": "research/e8-nine-stage-kappa/code/complex/code/bridged.py", + "blob": "626a28614b07066528fd5f189d87cffa5015ac60" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr386.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr386.json new file mode 100644 index 0000000000..ac24e5d262 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr386.json @@ -0,0 +1,29 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/386", + "head_repository": "jacklightChen/integer-mult-bounds", + "commit": "dd11cf8069554f0333afde398f12a56c3a7c29dd", + "note": "PR #386 (Zhihao Chen / jacklightChen): compressed nine-stage bit geometry (unchanged), portable header, and the validation receipts used as regression references. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "code/nine/geometry.py": { + "source_path": "research/e8-bit-complex-nine/geometry.py", + "blob": "91594e0223e8fac49162b5aef834ffaa8e94a254" + }, + "portable-include/bits/stdc++.h": { + "source_path": "research/e8-bit-complex-nine/portable-include/bits/stdc++.h", + "blob": "fc5664e929d9a81d9b4926bee049a93330be86ec" + }, + "data/controls/pr386/GLOBAL.json": { + "source_path": "research/e8-bit-complex-nine-validation/GLOBAL.json", + "blob": "21bc6dcc7bbefedcd3064485d0e82c95e585044c" + }, + "data/controls/pr386/AUDIT.json": { + "source_path": "research/e8-bit-complex-nine-validation/AUDIT.json", + "blob": "698e827ae87ae9db47fd30cf69537176276cff4e" + }, + "data/controls/pr386/COMBINED.json": { + "source_path": "research/e8-bit-complex-nine-validation/COMBINED.json", + "blob": "8d6e3f22667fa0f6fa1a5495223e87f90a4cd103" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr417.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr417.json new file mode 100644 index 0000000000..33f0ae053c --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr417.json @@ -0,0 +1,49 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/417", + "head_repository": "chafreaky/integer-mult-bounds", + "commit": "3f681fb571036ca4a267570318260b0d083f7b9d", + "note": "PR #417 (Chafik Boukhalfa / chafreaky): refined pricing tail (bootstrap.refine), its engine module and PR #315 engine copies, PR #376 rebuild (apply376.py), the vendored PR #376 witnesses, and the final kernel word used as a B_4 control. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "code/tail/e8core.py": { + "source_path": "research/e8-kernel-bit-nine/code/e8core.py", + "blob": "78983b368715e89fe8524a6dd2c13585d2b5394e" + }, + "code/tail/bootstrap.py": { + "source_path": "research/e8-kernel-bit-nine/code/bootstrap.py", + "blob": "1bc17e768259c342fb8b94b919bfeaea10304153" + }, + "code/tail/apply376.py": { + "source_path": "research/e8-kernel-bit-nine/code/apply376.py", + "blob": "c401a84d8f549e0752464ab8313ce648bb4d14fa" + }, + "code/tail/engines/moment.py": { + "source_path": "research/e8-kernel-bit-nine/code/engines/moment.py", + "blob": "7d697cb45203fe72d97037403d6da41f71f3b7fd" + }, + "code/tail/engines/base_two_moment.py": { + "source_path": "research/e8-kernel-bit-nine/code/engines/base_two_moment.py", + "blob": "14a90fa0e788217856f070382c9e61bd7c603c61" + }, + "code/tail/engines/outer.py": { + "source_path": "research/e8-kernel-bit-nine/code/engines/outer.py", + "blob": "43007488ad2c43187c77cc6798beff8b1cd76ad2" + }, + "data/controls/pr376/frame-selection.json": { + "source_path": "research/e8-kernel-bit-nine/data/pr376/frame-selection.json", + "blob": "647b34368f3f0c7d228c70fa335af872e7946beb" + }, + "data/controls/pr376/reuse-selection.json": { + "source_path": "research/e8-kernel-bit-nine/data/pr376/reuse-selection.json", + "blob": "a6954dc65f28137ad16d015b42c40dbbde0bd66f" + }, + "data/controls/pr376/LICENSE-pr376": { + "source_path": "research/e8-kernel-bit-nine/data/pr376/LICENSE-pr376", + "blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64" + }, + "data/controls/pr417-bitE8-nine-kernel.json.gz": { + "source_path": "research/e8-kernel-bit-nine/data/final/bitE8-nine-kernel.json.gz", + "blob": "572172b8148538d1937b9f7fa7f3939755008a8c" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr425.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr425.json new file mode 100644 index 0000000000..8d9c976b02 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr425.json @@ -0,0 +1,13 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/425", + "head_repository": "jacklightChen/integer-mult-bounds", + "commit": "e11ccea1d092beb1b01b4ee4ce49da478234254c", + "note": "PR #425 (Zhihao Chen / jacklightChen): the fresh validation receipt that states the cited complex coarse saving b and kappa. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "data/controls/pr425/FINAL.json": { + "source_path": "research/hamming-mutable-basis-complex-validation/FINAL.json", + "blob": "1e9c8784c3cb719acb5274126141fe360af253fa" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr426.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr426.json new file mode 100644 index 0000000000..7c72390e09 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr426.json @@ -0,0 +1,17 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/426", + "head_repository": "ai-nanachi/integer-mult-bounds", + "commit": "88d552526893cd15325948bb1487e9a4d4bf32f6", + "note": "PR #426 (ai-nanachi): R767 bit word (clean-reset reuse), used only as a priced comparison and B_3 control. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "data/controls/pr426-bit-candidate.json.gz": { + "source_path": "research/e8-clean-reuse-extension/data/bit-candidate.json.gz", + "blob": "807cea53ebe1322721463ee2319bcd52b9714f24" + }, + "data/controls/LICENSE-pr426": { + "source_path": "research/e8-clean-reuse-extension/LICENSE", + "blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr431.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr431.json new file mode 100644 index 0000000000..00f1075773 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr431.json @@ -0,0 +1,13 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/431", + "head_repository": "rohanarun/integer-mult-bounds", + "commit": "db4f46579b95bec6e2a0c59e3e1ee2b6584dbab3", + "note": "PR #431 (Rohan Arun / rohanarun, draft): the local validation receipt that states the cited complex coarse saving b and kappa. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "data/controls/pr431/VALIDATION-LOCAL.json": { + "source_path": "research/hamming-frame-retiming/VALIDATION-LOCAL.json", + "blob": "0f0a80418d7f3e521c980ef0354fc3945eae1795" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr433.json b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr433.json new file mode 100644 index 0000000000..910a7c3490 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/SOURCE-pr433.json @@ -0,0 +1,13 @@ +{ + "schema": "source-pins/1", + "source": "https://github.com/CrocSwap/integer-mult-bounds/pull/433", + "head_repository": "icekylinx/integer-mult-bounds", + "commit": "6d9244518175caf9e0089f92486959bc2c317273", + "note": "PR #433 (icekylinx): the certificate that states the cited complex lower bound, the R758 bit lower bound and kappa of the split-centre composition. Every file listed has, in this package, the git blob id it has at the commit above (git ls-tree -r -- ).", + "identical": { + "data/controls/pr433/CERTIFICATE.json": { + "source_path": "research/split-centres-global/CERTIFICATE.json", + "blob": "7e807079c1ec4907306035c84be1ba2fb1d69d79" + } + } +} diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/b4/kappa_b4.py b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/b4/kappa_b4.py new file mode 100644 index 0000000000..402a510e15 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/b4/kappa_b4.py @@ -0,0 +1,31 @@ +"""kappa with cited complex savings when the bit side is this word in B_4 (or B_3). + +The bit coarse saving c is read from certify_bit_k.py's receipt (PR #381's checker, unchanged). For every cited +complex supplier b, kappa is computed by PR #417's bootstrap.refine (chafreaky's reimplementation of rohanarun's PR #392 +refined pricing tail: six fixed bootstrap levels, PR #315's outer assembly, 47 strict constraints, next grid point and +invalid parameters rejected) and must equal the value cited with b. Since c > b for every cited supplier, the result is +complex-bound and does not depend on c; it is recomputed with the best previously published bit c as a control. +usage: kappa_b4.py KAPPA.json (certify_bit_k receipt) CONTROL_C COMPLEX_B.json OUT.json +Prepared by eumemic with Anthropic Claude assistance; Apache-2.0.""" +import json +import os +import sys +from fractions import Fraction as Q + +sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "tail")) +from bootstrap import refine # noqa: E402 (PR #417, unchanged) + +rec = json.load(open(sys.argv[1])) +c = Q(rec["bit_coarse"]) +c0 = Q(sys.argv[2]) +out = dict(K=rec["K"], m=rec["m"], bit_coarse=str(c), control_bit_coarse=str(c0), kappa={}) +for s in json.load(open(sys.argv[3]))["suppliers"]: + b = Q(s["b"]) + k, rej = refine(b, c) + k0, _ = refine(b, c0) + assert c > b and c0 > b and k == k0 == Q(s["kappa"]), (s["name"], str(k), s["kappa"]) + out["kappa"][s["name"]] = dict(b=str(b), kappa=str(k), kappa_float=float(k), binding="complex", rejected=rej, + bit_headroom_percent=100 * float(c / b - 1), source=s["source"]) + print(" with %s b = %.12e: kappa = %s = %.15e (complex-bound, equal to the cited value and unchanged with the" + " control bit c; bit headroom c/b - 1 = %.3f%%)" % (s["name"], float(b), k, float(k), 100 * float(c / b - 1))) +json.dump(out, open(sys.argv[4], "w"), indent=1) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/certify_bit_k.py b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/certify_bit_k.py new file mode 100644 index 0000000000..37ce2ee2b4 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/certify_bit_k.py @@ -0,0 +1,59 @@ +"""Generalized (Dylan Crow, with Anthropic Claude assistance): h, the normalization T and the output path are arguments; +h = 20, T = 12 is the original. Bridged word B_K (DaysSky, assisted with Claude): the one-level histogram is +(2K+1) x the local histogram + 2v x the idle blocks of PR #363's bridged.check(K, h) (split below m/2 for K > 2), +W = 2Kv + resid/h, m = (2K+1) h; K = 2 is certify_bit_g.py. With a seventh argument 'unsplit' the idle climbs are +not split and the least halving degree t (m^t > 2 max child^t) replaces the half-shrink guard. +usage: certify_bit_k.py WORDDIR B K H T OUT.json [unsplit] +Exact bit coarse saving + outer assembly for a PR249-format local word, using PR #315's engines +(moment.py, base_two_moment.py, outer.py) and its math_check.run logic, with a given complex coarse b.""" +import sys, json, importlib.util, os +from fractions import Fraction as Q +from collections import Counter +sys.path.insert(0,os.path.dirname(os.path.abspath(__file__))) +import cost as C +sys.path.insert(0,os.path.join(os.path.dirname(os.path.abspath(__file__)),'..','..','complex','code')) +import bridged +P=os.environ.get('PR315',os.path.join(os.path.dirname(os.path.abspath(__file__)),'..','..','pricing'))+'/' +def load(n): + s=importlib.util.spec_from_file_location(n,P+n+'.py'); m=importlib.util.module_from_spec(s); s.loader.exec_module(m); return m +moment=load('moment'); other=load('base_two_moment'); outer=load('outer') +d=sys.argv[1]; b=Q(sys.argv[2]); KP=int(sys.argv[3]); HH=int(sys.argv[4]); T=int(sys.argv[5]); OUT=sys.argv[6]; S=2*KP+1 +s,fr,dim,rec=C.load_snapshot(d) +H,resid,v=C.local_profile(rec,s,dim,h=HH); m=S*HH +UNSPLIT=len(sys.argv)>7 and sys.argv[7]=='unsplit' +lay=bridged.check(KP,HH,split=(m-1)//2 if (KP>2 and not UNSPLIT) else None) +prof=Counter({j:S*c for j,c in H.items()}) +for r in lay['blocks_per_role_pair']: prof[r]+=2*v +norm={int(k):int(c)*T for k,c in prof.items() if c}; Wn=Q(2*KP*v*HH+resid,HH)*T; assert Wn.denominator==1; Wn=int(Wn) +t_half=1 +while m**t_half<=2*max(norm)**t_half: t_half+=1 +assert UNSPLIT or t_half==1, 'half-shrink guard' +mass=sum(k*c for k,c in norm.items()); print('normalized W',Wn,'calls',sum(norm.values()),'mass',mass,'deficit',m*Wn-mass,'maxchild',max(norm)) +root=moment.certify(dict(norm),m,Wn,True); c=Q(int(Q(root['lower'])*10**18),10**18) +bm=moment.moment(norm,m,Wn,c,True); nextbm=moment.moment(norm,m,Wn,c+Q(1,10**18),True); assert bm[1]<1cap-grid, 'complex-bound saving not tight against the cap' +chain=[Q(384599,10**10)] +for _ in range(3): + a=(1-sv)*sv+sv*chain[-1]; assert chain[-1]0 +try: + outer.assembly(bit,b,bridge,k+Q(1,10**18),eta=eta,beta=beta); raise SystemExit('ADJACENT ADMITTED') +except AssertionError: pass +if binding=='complex': + try: outer.assembly(cap,b,bridge,k,eta=eta,beta=beta) + except AssertionError as e: assert 'leaf_saving_above_bit' in str(e); print('complex leaf cap itself rejected (leaf_saving_above_bit), as in PR #315 math_check') + else: raise SystemExit('complex leaf cap admitted') +print('complex b =',b,float(b),'| binding:',binding) +print('KAPPA =',k,'=',format(float(k),'.12e'),'| 47 strict constraints positive, adjacent grid point rejected') +json.dump(dict(word=d,K=KP,stages=S,halving_degree=t_half,idle_blocks_per_role_pair=lay['blocks_per_role_pair'],h=HH,T=T,maxchild=max(norm),bit_moment_interval=[str(x) for x in bm],normalized_histogram=norm,W=Wn,m=m,bit_coarse=str(c),complex_coarse=str(b),binding=binding,kappa=str(k),kappa_float=float(k)),open(OUT,'w'),indent=1) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/columns_h.cpp b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/columns_h.cpp new file mode 100644 index 0000000000..00c5a3a5d8 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/columns_h.cpp @@ -0,0 +1,48 @@ +// Generalization (Dylan Crow, with Anthropic Claude assistance): the copied-centre count is the macro NCOPY, defaulting to +// HDIM, so the unmodified PR #346/#352 build (no -DNCOPY) is exactly the original checker. The E8 bit word has 9 +// retained totals at h = 8 (-DNCOPY=9). +#ifndef NCOPY +#define NCOPY HDIM +#endif +#include "json.hpp" +#include +#include +using boost::multiprecision::cpp_int; +#include +#include +#include +#include +#include +#include +#include +using J=nlohmann::json; +struct E{int kind,dst,src,c;}; +void need(bool x,const char*s){if(!x)throw std::runtime_error(s);} +int main(int argc,char**argv){try{ +need(argc==3,"usage RAW6_RECORDS OUTPUT");std::string pre=argv[1];int v=VPORTS,r=RHELP,loc=2*v+r,global=4*v+r,temp=global; +struct Raw{int op,a,b,c,f,z;};std::ifstream f(pre,std::ios::binary|std::ios::ate);size_t sz=f.tellg();need(sz%sizeof(Raw)==0,"stream alignment");std::vectorp(sz/sizeof(Raw));f.seekg(0);f.read((char*)p.data(),sz);std::vectore;std::mapH;for(auto q:p){if(q.op==0){if(q.f)H[q.f]++;}else if(q.op==1)e.push_back({0,q.a,q.b,q.c});else if(q.op==2){H[q.z]++;e.push_back({1,loc,q.a,0});}else if(q.op==3)e.push_back({2,loc,q.a,0});else need(false,"opcode");} +J prefix=J::array();cpp_int largestF=0,largestB=0;for(int rev=0;rev<2;rev++){std::vectornorms(loc+1,1);cpp_int maxrow=1;bool isopen=false;for(size_t z=0;zmaxrow)maxrow=norms[q.dst];}else if(k==1){need(!isopen,"boundcopy");norms[loc]=norms[q.src];isopen=true;}else {need(isopen,"bounderase");norms[loc]=0;isopen=false;}}need(!isopen,"prefix copy closure");if(rev)largestB=maxrow;else largestF=maxrow;prefix.push_back({{"reverse",bool(rev)},{"cancellation_free_signed_row_l1_upper",maxrow.convert_to()},{"bits",boost::multiprecision::msb(maxrow)+1}});} +cpp_int payload=64*largestF*largestF*largestF*largestB*largestB;need(payload<(cpp_int(1)<<104),"payloadfiniteprefix2^104"); +long long copies=0,adds=0,odd=0;bool open=false;int center=-1;long long reverseCopies=0; +for(auto q:e){need(q.kind>=0&&q.kind<=2,"kind");need(q.dst>=0&&q.dst<=loc,"local dst");if(q.kind==0){need(q.src>=0&&q.src<=loc&&q.dst!=q.src,"source distinct");need(q.dst!=loc,"copy immutable");need(q.src!=loc||open,"temp not open");if(open)need(q.dst!=center,"source changes inside copied-center block");adds++;odd+=q.c&1;} +else if(q.kind==1){need(!open&&q.dst==loc&&q.src>=0&&q.srca((size_t)(global+1)*words);auto row=[&](int i){return a.data()+(size_t)i*words;};for(int i=0;i=v&&i<2*v&&w==(size_t)(i-v)/64)want^=1ull<<((i-v)%64);need(x[w]==want,"local defining-decoder full formal column");}}} +if(stage==1||stage==2||stage==4){int b=stage==1?0:stage==2?1:2;for(auto q:bridges[b])for(int i=0;i(std::chrono::steady_clock::now()-t0).count()<<"s\n";} +for(int bank=0;bank<4;bank+=2)for(int i=0;i()},{"payload_prefix_bits",boost::multiprecision::msb(payload)+1},{"new_Q_categories",{28,29}},{"local_raw_H",H},{"negative_controls",controls},{"seconds",std::chrono::duration(std::chrono::steady_clock::now()-t0).count()}};std::ofstream(argv[2])< +#include +using boost::multiprecision::cpp_int; +#include +#include +#include +#include +#include +#include +#include +using J=nlohmann::json; +struct E{int kind,dst,src,c;}; +void need(bool x,const char*s){if(!x)throw std::runtime_error(s);} +int main(int argc,char**argv){try{ +need(argc==3,"usage RAW6_RECORDS OUTPUT");std::string pre=argv[1];int v=VPORTS,r=RHELP,loc=2*v+r,global=2*KPAIRS*v+r,temp=global;const int S=2*KPAIRS+1; +struct Raw{int op,a,b,c,f,z;};std::ifstream f(pre,std::ios::binary|std::ios::ate);size_t sz=f.tellg();need(sz%sizeof(Raw)==0,"stream alignment");std::vectorp(sz/sizeof(Raw));f.seekg(0);f.read((char*)p.data(),sz);std::vectore;std::mapH;for(auto q:p){if(q.op==0){if(q.f)H[q.f]++;}else if(q.op==1)e.push_back({0,q.a,q.b,q.c});else if(q.op==2){H[q.z]++;e.push_back({1,loc,q.a,0});}else if(q.op==3)e.push_back({2,loc,q.a,0});else need(false,"opcode");} +J prefix=J::array();cpp_int largestF=0,largestB=0;for(int rev=0;rev<2;rev++){std::vectornorms(loc+1,1);cpp_int maxrow=1;bool isopen=false;for(size_t z=0;zmaxrow)maxrow=norms[q.dst];}else if(k==1){need(!isopen,"boundcopy");norms[loc]=norms[q.src];isopen=true;}else {need(isopen,"bounderase");norms[loc]=0;isopen=false;}}need(!isopen,"prefix copy closure");if(rev)largestB=maxrow;else largestF=maxrow;prefix.push_back({{"reverse",bool(rev)},{"cancellation_free_signed_row_l1_upper",maxrow.convert_to()},{"bits",boost::multiprecision::msb(maxrow)+1}});} +cpp_int payload=64*largestF*largestF*largestF*largestB*largestB;need(payload<(cpp_int(1)<<104),"payloadfiniteprefix2^104"); +long long copies=0,adds=0,odd=0;bool open=false;int center=-1;long long reverseCopies=0; +for(auto q:e){need(q.kind>=0&&q.kind<=2,"kind");need(q.dst>=0&&q.dst<=loc,"local dst");if(q.kind==0){need(q.src>=0&&q.src<=loc&&q.dst!=q.src,"source distinct");need(q.dst!=loc,"copy immutable");need(q.src!=loc||open,"temp not open");if(open)need(q.dst!=center,"source changes inside copied-center block");adds++;odd+=q.c&1;} +else if(q.kind==1){need(!open&&q.dst==loc&&q.src>=0&&q.src>active;std::vectorbackward;std::vector>>after(S); +auto X=[](int p){return 2*(p-1);};auto Y=[](int p){return 2*(p-1)+1;}; +for(int t=0;t=3&&t%2==1);backward.push_back(b);active.push_back(b?std::array{Y(p),X(p)}:std::array{X(p),Y(p)});} +for(int q=2;q<=KPAIRS;q++){after[2*q-3].push_back({X(q-1),X(q),1});after[2*q-3].push_back({Y(q),Y(q-1),-1}); + after[2*q-2].push_back({Y(q),Y(q-1),1});after[2*q-2].push_back({X(q-1),X(q),-1});} +for(int p=KPAIRS;p>=2;p--){after[S-1].push_back({Y(p-1),Y(p),-1});after[S-1].push_back({X(p),X(p-1),1});} +int nbridges=0;for(auto&a:after)nbridges+=a.size();need(nbridges==6*(KPAIRS-1),"twin bridge count"); +size_t words=(global+63)/64;std::vectora((size_t)(global+1)*words);auto row=[&](int i){return a.data()+(size_t)i*words;};for(int i=0;i=v&&i<2*v&&w==(size_t)(i-v)/64)want^=1ull<<((i-v)%64);need(x[w]==want,"local defining-decoder full formal column");}}} +for(auto q:after[stage])for(int i=0;i(std::chrono::steady_clock::now()-t0).count()<<"s\n";} +for(int bank=0;bank<2*KPAIRS;bank+=2)for(int i=0;ib(2*KPAIRS);for(int z=0;z<2*KPAIRS;z++)b[z]=1u<()},{"payload_prefix_bits",boost::multiprecision::msb(payload)+1},{"new_Q_categories",{28,29}},{"local_raw_H",H},{"negative_controls",controls},{"seconds",std::chrono::duration(std::chrono::steady_clock::now()-t0).count()}};std::ofstream(argv[2])< 0: H[int(r[4])] += 1 + copies = rec[rec[:, 0] == 2] + for r in copies: + if r[5] > 0: H[int(r[5])] += 1 + init = s['initial'] + resid = sum(h - dim[init[str(r)]] for r in range(2 * v, n)) + return H, resid, v + +def five_stage(H, resid, v, h=24, stages=5): + m = stages * h + prof = collections.Counter() + for j, c in H.items(): prof[j] += stages * c + for j in (2*h - 2, h - 1, 2*h + 2, 4): prof[j] += 2 * v + W = mpf(4 * v) + mpf(resid) / h + mass = sum(j * c for j, c in prof.items()) + return prof, W, m, W * m - mass + +def solve_moment(prof, W, m, bad=mpf('1e-16')): + calls = sum(prof.values()) + items = [(mpf(j) / m, c) for j, c in prof.items()] + def mu(sv): + t = 1 - sv + return (sum(c * x ** t for x, c in items) + bad * 32 * m * m * calls * (mpf(1) / m) ** t) / W - 1 + return findroot(mu, mpf('0.0007')) + +def evaluate(rec, s, dim, h=24): + H, resid, v = local_profile(rec, s, dim, h) + prof, W, m, deficit = five_stage(H, resid, v, h) + sv = solve_moment(prof, W, m) + return dict(saving=sv, kappa_approx=sv / (1 + sv), W=W, deficit=deficit, m=m, + calls=sum(prof.values()), local=dict(sorted(H.items())), resid=resid) + +if __name__ == '__main__': + import sys + s, fr, dim, rec = load_snapshot(sys.argv[1]) + r = evaluate(rec, s, dim) + print({k: (float(v) if hasattr(v, 'real') and not isinstance(v, dict) else v) for k, v in r.items() if k != 'local'}) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/finite_k.py b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/finite_k.py new file mode 100644 index 0000000000..8781815ee6 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/finite_k.py @@ -0,0 +1,154 @@ +"""Finite bill for the banked five-stage bit word, generalized from the source527/p10 finite_check.run (Dylan Crow, with +Anthropic Claude assistance). The arithmetic is the original line by line; the changes are explicit parameters: + * h, m = 5h, v, R, replicas T, literal stock, literal paid histogram, weighted/unit additions and the forward and + inverse cancellation-free row bounds are inputs (from this package's receipts); + * NCOPY, the copied-centre temporaries per invocation and 5*NCOPY copy/erase episodes per replica (the original + writes h for both, since the paired cube has h centres; the E8 word has 9 retained totals at h = 8); + * the 2h-dimensional rational route template: [[p*, k*], [k*, p*]] for the reference port line q* of the label + family under its form (original: a triple line under G = I - J/9, denominators 1,2,3,6; E8: a root line under + /2), recomputed and factored into elementary operations, exact inverse replay, omitted factor rejected; + * K, the conservative extra bank-selector calls, by the original formula 2*5*T*((live-1) + R*m*factors) with + factors = maxops + (m-1) + m (maxops of the actual charts; an ungauged word has only the identity chart, 0 ops). +Bridged word B_K (DaysSky, assisted with Claude): x['Kpairs'] (default 2) gives S = 2K + 1 invocations, m = S h, +S invocations' additions plus 6(K-1)v twin-bridge additions, route families 2S(2v + R) + 2Kv (each invocation routes +its 2v data and R helper roles in and out; the terminal exchange moves the 2Kv data roles), S*NCOPY*T copy/erase +episodes and the selector bill 2*S*T*(...) (receipts_k.py). K = 2 gives exactly finite_g.py's 5, 6v, 20v + 10R + 4v +and 5*NCOPY*T; the p = 10 regression path is five-stage and unchanged. +usage: python3 finite_k.py e8 RECEIPTS.json OUT.json | python3 finite_k.py regression P10_RECEIPT_DIR""" +from fractions import Fraction as Q +from collections import Counter +from hashlib import sha256 +import json, sys, os, importlib.util, gzip +HERE=os.path.dirname(os.path.abspath(__file__)) +def ceilq(x): return -((-x.numerator)//x.denominator) +def cutoff_log2(delta,C): + assert 0=1 + return max(1,ceilq(36/delta**2),ceilq(2*(4+(C-1).bit_length())/delta)) +def mm(A,B): return [[sum(A[i][k]*B[k][j] for k in range(len(B))) for j in range(len(B[0]))] for i in range(len(A))] +def route_template(h,q,form,g=None,ginv=None): + """[[g p* g^-1, g k*], [k* g^-1, p*]] with p* = q q^T G/; G given by form(x,y) on coordinate vectors + (bilinear); g = I (the original's reference port) unless a port isometry is given.""" + I=lambda n:[[Q(i==j)for j in range(n)]for i in range(n)] + Gq=[sum(form(i,j)*q[j] for j in range(h)) for i in range(h)]; nq=sum(q[i]*Gq[i] for i in range(h)) + P=[[Q(q[i])*Gq[j]/nq for j in range(h)]for i in range(h)] + K=[[Q(i==j)-P[i][j]for j in range(h)]for i in range(h)] + if g is None: TL,TR,BL=P,K,K + else: TL,TR,BL=mm(mm(g,P),ginv),mm(g,K),mm(K,ginv) + rho=[TL[i]+TR[i]for i in range(h)]+[BL[i]+P[i]for i in range(h)] + a=[r[:]for r in rho];factors=[] + for j in range(2*h): + p=next(i for i in range(j,2*h)if a[i][j]) + if p!=j:a[j],a[p]=a[p],a[j];factors.append(('swap',j,p,None)) + if a[j][j]!=1: + c=1/a[j][j];a[j]=[c*x for x in a[j]];factors.append(('scale',j,None,c)) + for i in range(2*h): + if i!=j and a[i][j]: + c=-a[i][j];a[i]=[x+c*y for x,y in zip(a[i],a[j])];factors.append(('add',i,j,c)) + assert a==I(2*h) + def replay(omit=None): + a=I(2*h) + for z in reversed(range(len(factors))): + if z==omit:continue + kind,i,j,c=factors[z] + if kind=='swap':a[i],a[j]=a[j],a[i] + elif kind=='scale':a[i]=[x/c for x in a[i]] + else:a[i]=[x-c*y for x,y in zip(a[i],a[j])] + return a + assert replay()==rho + omit=next((i for i,f in enumerate(factors)if f[0]=='add'),0) # original: the first addition; a route without additions: the first factor + assert factors and replay(omit)!=rho + counts=dict(Counter(f[0]for f in factors));denoms=sorted({c.denominator for kind,i,j,c in factors if c is not None}) + serialization=[[kind,i,j,None if c is None else str(c)]for kind,i,j,c in factors] + return dict(factors=len(factors),factor_counts=counts,denominators=denoms, + factor_program_sha256=sha256(json.dumps(serialization,separators=(',',':')).encode()).hexdigest(), + exact_inverse_reconstruction=True,missing_addition_rejected=True) +def bill(x): + """x: dict with h,m,v,R,T,stock,literal(hist),ncopy,weighted,unit,fwd_row,inv_row,K,coarse,moment_module,route.""" + h,m,v,R,T,stock,ncopy=x['h'],x['m'],x['v'],x['R'],x['T'],x['stock'],x['ncopy'] + literal=Counter(x['literal']);E=sum(literal.values());mass=sum(r*c for r,c in literal.items()) + KP=x.get('Kpairs',2);S=2*KP+1 + assert m==S*h and 00 and delta1>0 + chain=[Q(384599,10**10)];gaps=[] + for j in range(3): + old=chain[-1];a=(1-c)*c+c*old;ds=dict(atom=c-a,borrowing=1-a-c,remainder=1-a-c*(1-old),stock=1-c);assert old0 + delta=min(ds.values());L=cutoff_log2(delta,coefficient);assert Q(L)*delta**2>=36 and Q(L)*delta>=2*(4+(coefficient-1).bit_length()) + gaps.append(dict(stage=j+1,minimum_gap=str(delta),cutoff_log2_at_charged_coefficient=str(L)));chain.append(a) + controls=[] + for name,test in [('zero cutoff gap',lambda:cutoff_log2(Q(0),coefficient)),('negative constant',lambda:cutoff_log2(Q(1,2),0))]: + try:test() + except AssertionError:controls.append(name) + else:raise AssertionError('bad finite cutoff accepted') + return dict(coefficient=coefficient,coefficient_bits=coefficient.bit_length(),low_matrix_power=d,strict_upper='q^'+str(d+1), + positive_rank_children=E,rank_mass=mass,weighted_additions=weighted,unit_expanded_additions=unit,route_families=J, + copy_erase_episodes=S*ncopy*T,payload_prefix_upper=payload,payload_prefix_bits=payload.bit_length(), + delta_tau_lower=str(delta_tau),delta_linear=str(delta1),bootstrap_chain=list(map(str,chain)),gaps=gaps, + row_reserve=dict(internal_coefficient=t*(d+1),external_complex_coefficient=20161,**({'halving_degree':t} if t>1 else {})),route=x['route'],rejected_controls=controls) +def load_moment(): + s=importlib.util.spec_from_file_location('m',os.path.join(HERE,'..','..','pricing','moment.py'));m=importlib.util.module_from_spec(s);s.loader.exec_module(m);return m +def hist(x): return Counter({int(k):v for k,v in x.items() if v}) +if __name__=='__main__': + mod=load_moment() + if sys.argv[1]=='regression': + d=sys.argv[2]; raw=json.load(open(d+'/raw.json')); sc=json.load(open(d+'/scalar.json')); bk=json.load(open(d+'/banks.json'))['banks'] + ma=json.load(open(d+'/math.json'))['mathematics']; fin=json.load(open(d+'/finite.json')); gl=json.load(open(d+'/global_result.json')) + h=raw['h'];m=5*h;H=hist(raw['five_stage_profile']['histogram']) + for a,cnt in hist(raw.get('completion_rank_histogram',raw['auxiliary_entrance_rank_histogram'])).items(): + H[5*a]-=cnt + if not H[5*a]: del H[5*a] + T=bk['physical_replicas']; literal=Counter({r:T*c for r,c in H.items()}) + q=[int(i<3) for i in range(h)]; form=lambda i,j: Q(int(i==j))-Q(1,9) + x=dict(h=h,m=m,v=raw['v'],R=raw['physical_R'],T=T,stock=bk['literal_stock'],literal=literal,ncopy=h,deficit=4*raw['v']-5*h*(h-2), + weighted=sc['forward']['weighted_additions'],unit=sc['forward']['literal_unit_additions'],fwd_row=sc['forward']['max_intermediate_row_l1'], + inv_row=sc['inverse']['max_intermediate_row_l1'],K=bk['conservative_extra_selector_calls'],coarse=ma['bit_coarse'],moment_module=mod, + route=route_template(h,q,form)) + r=bill(x) + assert r['coefficient']==fin['q_power_bound']['coefficient'],(r['coefficient'],fin['q_power_bound']) + assert r['bootstrap_chain']==fin['bootstrap']['chain'] and r['delta_tau_lower']==fin['moment']['delta_tau_lower'] and r['delta_linear']==fin['moment']['delta_linear'] + assert r['route']['factor_counts']==fin['rational_route']['factor_counts'] and r['route']['factor_program_sha256']==fin['rational_route']['factor_program_sha256'] + assert r['route']['denominators']==[1,2,3,6] + print('PASS regression: on the p = 10 receipts in',d,'the generalized bill reproduces the coefficient',r['coefficient'], + ', the moment gaps, the bootstrap chain and the 40-dimensional route program (sha',r['route']['factor_program_sha256'][:12]+'...)') + else: + x=json.load(open(sys.argv[2])) + q=x['qstar']; form=lambda i,j: Q(int(i==j),2) # E8 form /2 in Construction-A coordinates + x['route']=route_template(x['h'],q,form); x['moment_module']=mod; x['literal']=hist(x['literal']) + # every port: route conjugated by its W(E8) reflection word (the original's coordinate permutations are free + # relabelings; here the isometry is a rational program and is charged as part of the port route) + w=json.load(gzip.open(x['word'],'rt')); Lw=w['lines']; h=x['h'] + ip=lambda a,b: Q(sum(u*t for u,t in zip(a,b)),2) + def refl(r): + return [[Q(int(i==j))-Q(r[i]*r[j],2)*2/ip(r,r) for j in range(h)] for i in range(h)] + isom={0:[[Q(int(i==j)) for j in range(h)] for i in range(h)]}; fr=[0] + while fr: + nx=[] + for a_ in fr: + for b_ in range(len(Lw)): + if b_ in isom or abs(ip(Lw[a_],Lw[b_]))!=1: continue + d_=[u-t for u,t in zip(Lw[a_],Lw[b_])] if ip(Lw[a_],Lw[b_])==1 else [u+t for u,t in zip(Lw[a_],Lw[b_])] + isom[b_]=mm(refl(d_),isom[a_]); nx.append(b_) + fr=nx + assert len(isom)==len(Lw) and Lw[0]==q + ports=[]; allden=set(); maxf=0 + for t,g in isom.items(): + ginv=[[g[j][i]*1 for j in range(h)] for i in range(h)] # G = I/2 is scalar, so g^-1 = g^T + assert mm(g,ginv)==[[Q(int(i==j)) for j in range(h)] for i in range(h)] + gq=[sum(g[i][j]*q[j] for j in range(h)) for i in range(h)]; assert gq==Lw[t] or gq==[-u for u in Lw[t]] + r_=route_template(h,q,form,g,ginv); allden|=set(r_['denominators']); maxf=max(maxf,r_['factors']) + assert all(d_&(d_-1)==0 for d_ in allden), allden # powers of two: units modulo every odd prime q + x['route']['all_ports']=dict(ports=len(isom),max_factors=maxf,denominators=sorted(allden)) + r=bill(x); r.pop('route') if False else None + json.dump({k:(v if not isinstance(v,Counter) else dict(v)) for k,v in r.items()},open(sys.argv[3],'w'),indent=1,default=str) + print('PASS finite bill (E8, K = %d, m = %d): coefficient %d (%d bits) < 2^80, q-power bound %s, payload prefix %d bits < 104, delta_tau %s, reference route %s; all %d port routes exact elementary programs, at most %d factors, denominators %s (powers of two: units modulo every odd q)'%( + x.get('Kpairs',2),x['m'],r['coefficient'],r['coefficient_bits'],r['strict_upper'],r['payload_prefix_bits'],r['delta_tau_lower'][:14],r['route']['factor_counts'],r['route']['all_ports']['ports'],r['route']['all_ports']['max_factors'],r['route']['all_ports']['denominators'])) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/geometry_k.py b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/geometry_k.py new file mode 100644 index 0000000000..2a05298081 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/geometry_k.py @@ -0,0 +1,163 @@ +"""PR234's route and idle geometry for the bridged word B_K (DaysSky, assisted with Claude), generalizing PR #370's +geometry_g.py (five stages) to 2K + 1 stages. Every formula is geometry_g.py's; only the number of blocks and the idle +chronology change. + + H^S with S = 2K + 1 blocks, ambient form G (+) ... (+) G; p* = q* q*^T G / , k* = I - p* + route rho(i,t) [[g p* g^-1, g k*], [k* g^-1, p*]] on blocks (0, i), identity elsewhere; rho(0,t) = I (i < S) + stage projector P (+) K (+) ... (+) K (K = k* on blocks 1..i) + data(i,kind) rho(i,t) * stage_projector(i, frame(kind)) * rho(i,t), kinds P (port line), K, H, 0 +Checks for every port t: rho^2 = I; data(i-1,H) = data(i,P) and data(i-1,K) = data(i,0) for i = 1..S-1; the idle +boundary pairs of B_K (PR #363's bridged.py chronology), each commuting with a*b = a and an idempotent gap whose rank +equals bridged.check(K, h)'s idle climb: + pair q = 2..K, X: (p, data(2q-3,H)) and (data(2q-2,P), data(2q-1,P)); Y: (0, data(2q-3,K)) and (data(2q-2,0), data(2q-1,0)) + pair 1, final: (data(2,H), I) and (data(2,K), I - p); pair q, final: (data(2q,H), I) and (data(2q,K), I - p) +For K = 2 this is geometry_g.py's list of eight pairs, in the same order. Every gap of rank above floor((m - 1)/2) +gets an explicit intermediate frame Q = b - D, D a sum of mutually orthogonal E8 root projectors r r^T G/ in a +diagonal block where the gap is block-diagonal (dyadic entries only, so the prime-witness set stays {2}): +a Q = Q a = a, Q b = b Q = Q, Q^2 = Q, ranks (split, rest), so the paid children obey the half-shrink guard +2 max child < m. Entrance census (every helper starts at frame 0): the S tau-conjugates of +(I_h - P_sigma) (+) 0 are pairwise orthogonal and sum to I - completion(sigma); a duplicated window is rejected. +With the third argument 'unsplit' no climb is split: the idle children are the whole climbs, and the least halving +degree t (m^t > 2 max child^t) is reported instead of the half-shrink guard. +usage: python3 geometry_k.py K WORD.json[.gz] [unsplit]""" +import sys, os, json, gzip, time +import sympy as sp +sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'complex', 'code')) +import bridged +def eye(n): return sp.eye(n) +class Geo: + def __init__(self, h, G, qstar, S): + self.h = h; self.S = S; self.M = S * h; self.G = G; self.q = qstar + nq = (qstar.T * G * qstar)[0]; assert nq != 0 + self.pstar = qstar * (qstar.T * G) / nq; self.kstar = eye(h) - self.pstar + self.GG = sp.diag(*([G] * S)) + def frame_projector(self, B): + if B.rows == 0: return sp.zeros(self.h) + return B.T * (B * self.G * B.T).inv() * B * self.G + def rho(self, stage, g, ginv): + h, M = self.h, self.M; I = eye(M) + if stage == 0: return I + I[:h, :h] = g * self.pstar * ginv; I[stage*h:(stage+1)*h, stage*h:(stage+1)*h] = self.pstar + I[:h, stage*h:(stage+1)*h] = g * self.kstar; I[stage*h:(stage+1)*h, :h] = self.kstar * ginv + return I + def tau(self, stage): + I = eye(self.M) + if stage: + for j in range(self.h): I.row_swap(j, stage * self.h + j) + return I + def stage_projector(self, stage, P): + A = sp.zeros(self.M); A[:self.h, :self.h] = P + for j in range(1, stage + 1): A[j*self.h:(j+1)*self.h, j*self.h:(j+1)*self.h] = self.kstar + return A + def intermediate(self, a, b, split, lines): + """Q = b - D with D a sum of mutually G-orthogonal root projectors r r^T G/ (dyadic) inside diagonal blocks + on which the gap b - a is block-diagonal; rank(Q - a) = split.""" + h, M = self.h, self.M; gap = b - a; need = int(gap.trace()) - split; D = sp.zeros(M); got = 0 + proj = [r * (r.T * self.G) / (r.T * self.G * r)[0] for r in lines] + for j in range(self.S - 1, 0, -1): + blk = slice(j * h, (j + 1) * h) + off = gap.copy(); off[blk, blk] = sp.zeros(h) + if not (off[blk, :].is_zero_matrix and off[:, blk].is_zero_matrix): continue + Gj = gap[blk, blk]; chosen = [] + for e in proj: + if got == need: break + if Gj * e == e and all(e * f == sp.zeros(h) for f in chosen): + chosen.append(e); D[blk, blk] = D[blk, blk] + e; got += 1 + if got == need: break + assert got == need, ('no dyadic intermediate frame', need, got) + Q = b - D + assert D * D == D and D * a == a * D == sp.zeros(M) and b * D == D * b == D and Q * Q == Q + assert a * Q == Q * a == a and Q * b == b * Q == Q + assert int((Q - a).trace()) == split and int((b - Q).trace()) == need + assert all(sp.Rational(x).q & (sp.Rational(x).q - 1) == 0 for x in Q), 'intermediate frame not dyadic' + return Q + def check_port(self, K, qt, g, ginv, split, lines): + h, M, S = self.h, self.M, self.S; I = eye(M); Z = sp.zeros(M) + assert g * ginv == eye(h) and g.T * self.G * g == self.G, 'port map is not a G-isometry' + assert g * self.q == qt or g * self.q == -qt, 'port map does not send q* to the port line' + routes = [self.rho(i, g, ginv) for i in range(S)] + assert all(r * r == I for r in routes) + P = self.frame_projector(qt.T); assert P * P == P and P.trace() == 1 + Ph = {'P': P, 'K': eye(h) - P, 'H': eye(h), '0': sp.zeros(h)} + cache = {} + def data(i, kind): + if (i, kind) not in cache: cache[i, kind] = routes[i] * self.stage_projector(i, Ph[kind]) * routes[i] + return cache[i, kind] + for i in range(1, S): + assert data(i-1, 'H') == data(i, 'P'); assert data(i-1, 'K') == data(i, '0') + p = data(0, 'P'); pairs = [] + for q in range(2, K + 1): + pairs += [(p, data(2*q-3, 'H')), (Z, data(2*q-3, 'K')), (data(2*q-2, 'P'), data(2*q-1, 'P')), (data(2*q-2, '0'), data(2*q-1, '0'))] + pairs += [(data(2, 'H'), I), (data(2, 'K'), I - p)] + for q in range(2, K + 1): + pairs += [(data(2*q, 'H'), I), (data(2*q, 'K'), I - p)] + ranks = []; children = [] + for a, b in pairs: + assert a * b == b * a == a; gap = b - a; assert gap * gap == gap; r = int(gap.trace()); ranks.append(r) + if r > split: + Q = self.intermediate(a, b, split, lines); children += [split, r - split] + else: + children.append(r) + assert p * (I - p) == Z and p + (I - p) == I + return ranks, children + def check_entrance(self, Psigma): + h, M, S = self.h, self.M, self.S; Z = sp.zeros(M) + completion = sp.diag(*([Psigma] * S)); residual = eye(M) - completion + assert completion * completion == completion and completion.trace() == S * Psigma.trace() + actual = [] + for i in range(S): + t = self.tau(i); local = sp.zeros(M); local[:h, :h] = eye(h) - Psigma; actual.append(t * local * t) + assert sum(actual, Z) == residual + assert all(a * b == Z for i, a in enumerate(actual) for j, b in enumerate(actual) if i != j) + assert sum(actual[:S-1] + [actual[S-2]], Z) != residual + return True +def expected(K, h): + """idle climbs of bridged.check in the order of check_port's pair list (X and Y of each climb)""" + idle = bridged.check(K, h)['per_pair_idle']; out = [] + for q in range(2, K + 1): + a, b, _ = idle[q]; out += [a, a, b, b] + out += [idle[1][0]] * 2 + for q in range(2, K + 1): out += [idle[q][2]] * 2 + return out +def main(K, word, unsplit=False): + c = json.load(gzip.open(word, 'rt') if word.endswith('.gz') else open(word)) + assert c['form'] == '/2' and c['h'] == 8 + h = 8; S = 2 * K + 1; m = S * h; split = m if unsplit else (m - 1) // 2 + G = eye(h) / 2; L = [sp.Matrix(x) for x in c['lines']]; v = len(L) + ip = lambda a, b: (a.T * G * b)[0] + def refl(r): return eye(h) - r * (r.T * G) * 2 / ip(r, r) + star = 0; geo = Geo(h, G, L[star], S) + isom = {star: (eye(h), [])}; frontier = [star] + while frontier: + nxt = [] + for a in frontier: + for r in range(v): + if r == a: continue + if abs(ip(L[a], L[r])) == 1: + d = L[a] - L[r] if ip(L[a], L[r]) == 1 else L[a] + L[r] + if r not in isom: + isom[r] = (refl(d) * isom[a][0], isom[a][1] + [d]); nxt.append(r) + frontier = nxt + assert len(isom) == v + want = expected(K, h); idle = None; kids = None; t0 = time.time() + for t in range(v): + g, w_ = isom[t] + ranks, children = geo.check_port(K, L[t], g, g.inv(), split, L) + if idle is None: idle, kids = ranks, children + assert ranks == idle == want, (ranks, want) + assert children == kids and (unsplit or 2 * max(children) < m) + if t % 30 == 0: print(' port %d/%d checked (%d reflections) %.0fs' % (t + 1, v, len(w_), time.time() - t0), flush=True) + nreg = 2 * v + c['R']; starts = {c['start'][r] for r in range(2 * v, nreg)} + assert starts == {c['start'][v]} and len(c['frames'][c['start'][v]]) == 0 + geo.check_entrance(sp.zeros(h)) + lay = bridged.check(K, h, split=None if (unsplit or K <= 2) else split)['blocks_per_role_pair'] + t = 1 + while m ** t <= 2 * max(kids) ** t: t += 1 + assert sorted(kids) == sorted(lay * 2), (kids, lay) # X and Y of every role pair: PR #363's priced idle blocks + print('PASS E8 geometry in B_%d (%d stages, m = %d): all %d ports (W(E8) reflection words), routes involutive, %d stage boundaries chained,' + ' idle gap ranks %s (= bridged.py), paid idle children %s (%s); entrance census {0: %d helpers}:' + ' %d-window completion exact, duplicate window rejected' % (K, S, m, v, S - 1, idle, kids, + 'unsplit, halving degree %d' % t if unsplit else 'explicit dyadic intermediate frames, 2 x %d < %d' % (max(kids), m), c['R'], S)) + if unsplit: print(' unsplit: largest idle child %d of m = %d, least halving degree t = %d (%d^%d > 2 * %d^%d)' % (max(kids), m, t, m, t, max(kids), t)) +if __name__ == '__main__': + main(int(sys.argv[1]), sys.argv[2], len(sys.argv) > 3 and sys.argv[3] == 'unsplit') diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/gram_frames.py b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/gram_frames.py new file mode 100644 index 0000000000..b740d47295 --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/gram_frames.py @@ -0,0 +1,54 @@ +"""Exact nondegeneracy and PR #315's prime-witness rule for every frame of a PR249-format word, with the ambient Gram +matrix as a parameter. Generalizes PR #346's exactnd_h.py and prime_new.py (Dylan Crow, with Anthropic Claude assistance). + --gram triple9 : the paired-cube form G = I - J/9, integer Gram 9 B G B^t = 9 B B^t - s s^t (exactnd_h/prime_new, verbatim) + --gram e8ham : the E8 form /2 in Construction-A (Hamming) coordinates, integer Gram 2 B G B^t = B B^t +Checks per frame: rank(B) = dim, A.B = 0 and |A| + dim = h (when A given), det(integer Gram) != 0 (exact Bareiss), and +the prime witness: |det| = residual * prod p^e over PR #315's allowed primes with 0 < residual < 2^80. With --new BASE +only frames absent from BASE are checked (prime_new.py's scope); otherwise every frame. +usage: python3 gram_frames.py WORDDIR --gram {triple9,e8ham} --h H [--new BASEDIR] [--positive]""" +import json, sys, argparse, importlib.util, os, collections +ap=argparse.ArgumentParser(); ap.add_argument('word'); ap.add_argument('--gram',required=True); ap.add_argument('--h',type=int,required=True) +ap.add_argument('--new'); ap.add_argument('--positive',action='store_true'); a=ap.parse_args() +HERE=os.path.dirname(os.path.abspath(__file__)) +s=importlib.util.spec_from_file_location('pw',os.path.join(HERE,'..','..','pricing','prime_witnesses.py')); pw=importlib.util.module_from_spec(s); s.loader.exec_module(pw) +def validate_record(row, dimension, determinant, allowed_primes): # PR #315 prime_check.validate_record, verbatim logic + assert type(row['dimension']) is int and type(row['determinant']) is int and type(row['residual']) is int, 'exact integer witness fields' + assert row['dimension'] == dimension and row['determinant'] == determinant != 0, 'exact determinant mismatch or singular basis' + assert 0 < row['residual'] < 2**80, 'retained prime lower bound' + product = row['residual'] + for prime, exponent in row['factors'].items(): + q = int(prime); assert q in allowed_primes and type(exponent) is int and exponent > 0, 'factor shape'; product *= q**exponent + assert product == abs(determinant), 'factor identity' +def gram(B): + if a.gram=='triple9': + s_=list(map(sum,B)); return [[9*sum(x*y for x,y in zip(B[i],B[j]))-s_[i]*s_[j] for j in range(len(B))] for i in range(len(B))] + if a.gram=='e8ham': + return [[sum(x*y for x,y in zip(B[i],B[j])) for j in range(len(B))] for i in range(len(B))] + raise SystemExit('unknown gram') +def rank_int(B): + M=[r[:] for r in B]; r=0 + for c in range(len(M[0]) if M else 0): + p=next((i for i in range(r,len(M)) if M[i][c]!=0),None) + if p is None: continue + M[r],M[p]=M[p],M[r] + for i in range(len(M)): + if i!=r and M[i][c]!=0: x,y=M[r][c],M[i][c]; M[i]=[u*x-w*y for u,w in zip(M[i],M[r])] + r+=1 + return r +fr=json.load(open(a.word+'/frames.json'))['frames'] +old=json.load(open(a.new+'/frames.json'))['frames'] if a.new else {} +keys=[k for k in fr if k not in old] +stats=collections.Counter(); primes=set(); bits=0; nonpos=0 +for k in keys: + B=fr[k]['B']; A=fr[k].get('A',[]); d=len(B); assert fr[k]['dim']==d + assert d==0 or rank_int(B)==d,('basis rank',k) + if A: assert all(sum(x*y for x,y in zip(r,b))==0 for r in A for b in B) and len(A)+d==a.h,('annihilator',k) + M=gram(B) if d else []; det=pw.det(M); assert det!=0,('degenerate frame',k) + if a.positive: # positive-definite ambient form: every leading principal minor positive + for j in range(1,d+1): + if pw.det([r[:j] for r in M[:j]])<=0: nonpos+=1; break + powers,residual=pw.factor_witness(det); row=dict(dimension=d,determinant=det,residual=residual,factors={p:e for p,e in powers.items() if e}) + validate_record(row,d,det,pw.PRIMES); primes.update(map(int,row['factors'])); bits=max(bits,abs(det).bit_length()); stats[d]+=1 +assert nonpos==0 +print('PASS %s Gram: %d frames checked, all nondegenerate%s; prime witnesses valid; max determinant bits %d; primes %s; by dim %s'%( + a.gram,sum(stats.values()),' and positive definite' if a.positive else '',bits,sorted(primes),dict(sorted(stats.items())))) diff --git a/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/json.hpp b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/json.hpp new file mode 100644 index 0000000000..82d69f7c5d --- /dev/null +++ b/research/r715-target-factors-banked/e8-r740-replica32/parent436/code/bit/checkers/json.hpp @@ -0,0 +1,25526 @@ +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + +/****************************************************************************\ + * Note on documentation: The source files contain links to the online * + * documentation of the public API at https://json.nlohmann.me. This URL * + * contains the most recent documentation and should also be applicable to * + * previous versions; documentation for deprecated functions is not * + * removed, but marked deprecated. See "Generate documentation" section in * + * file docs/README.md. * +\****************************************************************************/ + +#ifndef INCLUDE_NLOHMANN_JSON_HPP_ +#define INCLUDE_NLOHMANN_JSON_HPP_ + +#include // all_of, find, for_each +#include // nullptr_t, ptrdiff_t, size_t +#include // hash, less +#include // initializer_list +#ifndef JSON_NO_IO + #include // istream, ostream +#endif // JSON_NO_IO +#include // random_access_iterator_tag +#include // unique_ptr +#include // string, stoi, to_string +#include // declval, forward, move, pair, swap +#include // vector + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +// This file contains all macro definitions affecting or depending on the ABI + +#ifndef JSON_SKIP_LIBRARY_VERSION_CHECK + #if defined(NLOHMANN_JSON_VERSION_MAJOR) && defined(NLOHMANN_JSON_VERSION_MINOR) && defined(NLOHMANN_JSON_VERSION_PATCH) + #if NLOHMANN_JSON_VERSION_MAJOR != 3 || NLOHMANN_JSON_VERSION_MINOR != 12 || NLOHMANN_JSON_VERSION_PATCH != 0 + #warning "Already included a different version of the library!" + #endif + #endif +#endif + +#define NLOHMANN_JSON_VERSION_MAJOR 3 // NOLINT(modernize-macro-to-enum) +#define NLOHMANN_JSON_VERSION_MINOR 12 // NOLINT(modernize-macro-to-enum) +#define NLOHMANN_JSON_VERSION_PATCH 0 // NOLINT(modernize-macro-to-enum) + +#ifndef JSON_DIAGNOSTICS + #define JSON_DIAGNOSTICS 0 +#endif + +#ifndef JSON_DIAGNOSTIC_POSITIONS + #define JSON_DIAGNOSTIC_POSITIONS 0 +#endif + +#ifndef JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON + #define JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON 0 +#endif + +#if JSON_DIAGNOSTICS + #define NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS _diag +#else + #define NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS +#endif + +#if JSON_DIAGNOSTIC_POSITIONS + #define NLOHMANN_JSON_ABI_TAG_DIAGNOSTIC_POSITIONS _dp +#else + #define NLOHMANN_JSON_ABI_TAG_DIAGNOSTIC_POSITIONS +#endif + +#if JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON + #define NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON _ldvcmp +#else + #define NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON +#endif + +#ifndef NLOHMANN_JSON_NAMESPACE_NO_VERSION + #define NLOHMANN_JSON_NAMESPACE_NO_VERSION 0 +#endif + +// Construct the namespace ABI tags component +#define NLOHMANN_JSON_ABI_TAGS_CONCAT_EX(a, b, c) json_abi ## a ## b ## c +#define NLOHMANN_JSON_ABI_TAGS_CONCAT(a, b, c) \ + NLOHMANN_JSON_ABI_TAGS_CONCAT_EX(a, b, c) + +#define NLOHMANN_JSON_ABI_TAGS \ + NLOHMANN_JSON_ABI_TAGS_CONCAT( \ + NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS, \ + NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON, \ + NLOHMANN_JSON_ABI_TAG_DIAGNOSTIC_POSITIONS) + +// Construct the namespace version component +#define NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT_EX(major, minor, patch) \ + _v ## major ## _ ## minor ## _ ## patch +#define NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT(major, minor, patch) \ + NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT_EX(major, minor, patch) + +#if NLOHMANN_JSON_NAMESPACE_NO_VERSION +#define NLOHMANN_JSON_NAMESPACE_VERSION +#else +#define NLOHMANN_JSON_NAMESPACE_VERSION \ + NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT(NLOHMANN_JSON_VERSION_MAJOR, \ + NLOHMANN_JSON_VERSION_MINOR, \ + NLOHMANN_JSON_VERSION_PATCH) +#endif + +// Combine namespace components +#define NLOHMANN_JSON_NAMESPACE_CONCAT_EX(a, b) a ## b +#define NLOHMANN_JSON_NAMESPACE_CONCAT(a, b) \ + NLOHMANN_JSON_NAMESPACE_CONCAT_EX(a, b) + +#ifndef NLOHMANN_JSON_NAMESPACE +#define NLOHMANN_JSON_NAMESPACE \ + nlohmann::NLOHMANN_JSON_NAMESPACE_CONCAT( \ + NLOHMANN_JSON_ABI_TAGS, \ + NLOHMANN_JSON_NAMESPACE_VERSION) +#endif + +#ifndef NLOHMANN_JSON_NAMESPACE_BEGIN +#define NLOHMANN_JSON_NAMESPACE_BEGIN \ + namespace nlohmann \ + { \ + inline namespace NLOHMANN_JSON_NAMESPACE_CONCAT( \ + NLOHMANN_JSON_ABI_TAGS, \ + NLOHMANN_JSON_NAMESPACE_VERSION) \ + { +#endif + +#ifndef NLOHMANN_JSON_NAMESPACE_END +#define NLOHMANN_JSON_NAMESPACE_END \ + } /* namespace (inline namespace) NOLINT(readability/namespace) */ \ + } // namespace nlohmann +#endif + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // transform +#include // array +#include // forward_list +#include // inserter, front_inserter, end +#include // map +#ifdef JSON_HAS_CPP_17 + #include // optional +#endif +#include // string +#include // tuple, make_tuple +#include // is_arithmetic, is_same, is_enum, underlying_type, is_convertible +#include // unordered_map +#include // pair, declval +#include // valarray + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // nullptr_t +#include // exception +#if JSON_DIAGNOSTICS + #include // accumulate +#endif +#include // runtime_error +#include // to_string +#include // vector + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // array +#include // size_t +#include // uint8_t +#include // string + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // declval, pair +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +template struct make_void +{ + using type = void; +}; +template using void_t = typename make_void::type; + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +// https://en.cppreference.com/w/cpp/experimental/is_detected +struct nonesuch +{ + nonesuch() = delete; + ~nonesuch() = delete; + nonesuch(nonesuch const&) = delete; + nonesuch(nonesuch const&&) = delete; + void operator=(nonesuch const&) = delete; + void operator=(nonesuch&&) = delete; +}; + +template class Op, + class... Args> +struct detector +{ + using value_t = std::false_type; + using type = Default; +}; + +template class Op, class... Args> +struct detector>, Op, Args...> +{ + using value_t = std::true_type; + using type = Op; +}; + +template class Op, class... Args> +using is_detected = typename detector::value_t; + +template class Op, class... Args> +struct is_detected_lazy : is_detected { }; + +template class Op, class... Args> +using detected_t = typename detector::type; + +template class Op, class... Args> +using detected_or = detector; + +template class Op, class... Args> +using detected_or_t = typename detected_or::type; + +template class Op, class... Args> +using is_detected_exact = std::is_same>; + +template class Op, class... Args> +using is_detected_convertible = + std::is_convertible, To>; + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + +// #include + + +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-FileCopyrightText: 2016 - 2021 Evan Nemerson +// SPDX-License-Identifier: MIT + +/* Hedley - https://nemequ.github.io/hedley + * Created by Evan Nemerson + */ + +#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 15) +#if defined(JSON_HEDLEY_VERSION) + #undef JSON_HEDLEY_VERSION +#endif +#define JSON_HEDLEY_VERSION 15 + +#if defined(JSON_HEDLEY_STRINGIFY_EX) + #undef JSON_HEDLEY_STRINGIFY_EX +#endif +#define JSON_HEDLEY_STRINGIFY_EX(x) #x + +#if defined(JSON_HEDLEY_STRINGIFY) + #undef JSON_HEDLEY_STRINGIFY +#endif +#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x) + +#if defined(JSON_HEDLEY_CONCAT_EX) + #undef JSON_HEDLEY_CONCAT_EX +#endif +#define JSON_HEDLEY_CONCAT_EX(a,b) a##b + +#if defined(JSON_HEDLEY_CONCAT) + #undef JSON_HEDLEY_CONCAT +#endif +#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b) + +#if defined(JSON_HEDLEY_CONCAT3_EX) + #undef JSON_HEDLEY_CONCAT3_EX +#endif +#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##c + +#if defined(JSON_HEDLEY_CONCAT3) + #undef JSON_HEDLEY_CONCAT3 +#endif +#define JSON_HEDLEY_CONCAT3(a,b,c) JSON_HEDLEY_CONCAT3_EX(a,b,c) + +#if defined(JSON_HEDLEY_VERSION_ENCODE) + #undef JSON_HEDLEY_VERSION_ENCODE +#endif +#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision)) + +#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR) + #undef JSON_HEDLEY_VERSION_DECODE_MAJOR +#endif +#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000) + +#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR) + #undef JSON_HEDLEY_VERSION_DECODE_MINOR +#endif +#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000) + +#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION) + #undef JSON_HEDLEY_VERSION_DECODE_REVISION +#endif +#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000) + +#if defined(JSON_HEDLEY_GNUC_VERSION) + #undef JSON_HEDLEY_GNUC_VERSION +#endif +#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__) + #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) +#elif defined(__GNUC__) + #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0) +#endif + +#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK) + #undef JSON_HEDLEY_GNUC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_GNUC_VERSION) + #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_MSVC_VERSION) + #undef JSON_HEDLEY_MSVC_VERSION +#endif +#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) && !defined(__ICL) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100) +#elif defined(_MSC_FULL_VER) && !defined(__ICL) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10) +#elif defined(_MSC_VER) && !defined(__ICL) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0) +#endif + +#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK) + #undef JSON_HEDLEY_MSVC_VERSION_CHECK +#endif +#if !defined(JSON_HEDLEY_MSVC_VERSION) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0) +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) +#elif defined(_MSC_VER) && (_MSC_VER >= 1200) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) +#else + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor))) +#endif + +#if defined(JSON_HEDLEY_INTEL_VERSION) + #undef JSON_HEDLEY_INTEL_VERSION +#endif +#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && !defined(__ICL) + #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE) +#elif defined(__INTEL_COMPILER) && !defined(__ICL) + #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0) +#endif + +#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK) + #undef JSON_HEDLEY_INTEL_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_INTEL_VERSION) + #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_INTEL_CL_VERSION) + #undef JSON_HEDLEY_INTEL_CL_VERSION +#endif +#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && defined(__ICL) + #define JSON_HEDLEY_INTEL_CL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER, __INTEL_COMPILER_UPDATE, 0) +#endif + +#if defined(JSON_HEDLEY_INTEL_CL_VERSION_CHECK) + #undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_INTEL_CL_VERSION) + #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_PGI_VERSION) + #undef JSON_HEDLEY_PGI_VERSION +#endif +#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__) + #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__) +#endif + +#if defined(JSON_HEDLEY_PGI_VERSION_CHECK) + #undef JSON_HEDLEY_PGI_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_PGI_VERSION) + #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_SUNPRO_VERSION) + #undef JSON_HEDLEY_SUNPRO_VERSION +#endif +#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10) +#elif defined(__SUNPRO_C) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf) +#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10) +#elif defined(__SUNPRO_CC) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf) +#endif + +#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK) + #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_SUNPRO_VERSION) + #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION) + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION +#endif +#if defined(__EMSCRIPTEN__) + #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__) +#endif + +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK) + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION) + #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_ARM_VERSION) + #undef JSON_HEDLEY_ARM_VERSION +#endif +#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION) + #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100) +#elif defined(__CC_ARM) && defined(__ARMCC_VERSION) + #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100) +#endif + +#if defined(JSON_HEDLEY_ARM_VERSION_CHECK) + #undef JSON_HEDLEY_ARM_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_ARM_VERSION) + #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_IBM_VERSION) + #undef JSON_HEDLEY_IBM_VERSION +#endif +#if defined(__ibmxl__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__) +#elif defined(__xlC__) && defined(__xlC_ver__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff) +#elif defined(__xlC__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0) +#endif + +#if defined(JSON_HEDLEY_IBM_VERSION_CHECK) + #undef JSON_HEDLEY_IBM_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_IBM_VERSION) + #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_VERSION) + #undef JSON_HEDLEY_TI_VERSION +#endif +#if \ + defined(__TI_COMPILER_VERSION__) && \ + ( \ + defined(__TMS470__) || defined(__TI_ARM__) || \ + defined(__MSP430__) || \ + defined(__TMS320C2000__) \ + ) +#if (__TI_COMPILER_VERSION__ >= 16000000) + #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif +#endif + +#if defined(JSON_HEDLEY_TI_VERSION_CHECK) + #undef JSON_HEDLEY_TI_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_VERSION) + #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL2000_VERSION) + #undef JSON_HEDLEY_TI_CL2000_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__) + #define JSON_HEDLEY_TI_CL2000_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL2000_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL2000_VERSION) + #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL2000_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL430_VERSION) + #undef JSON_HEDLEY_TI_CL430_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__) + #define JSON_HEDLEY_TI_CL430_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL430_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL430_VERSION) + #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL430_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_ARMCL_VERSION) + #undef JSON_HEDLEY_TI_ARMCL_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__)) + #define JSON_HEDLEY_TI_ARMCL_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK) + #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_ARMCL_VERSION) + #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_ARMCL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL6X_VERSION) + #undef JSON_HEDLEY_TI_CL6X_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__) + #define JSON_HEDLEY_TI_CL6X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL6X_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL6X_VERSION) + #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL7X_VERSION) + #undef JSON_HEDLEY_TI_CL7X_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__) + #define JSON_HEDLEY_TI_CL7X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL7X_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL7X_VERSION) + #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL7X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CLPRU_VERSION) + #undef JSON_HEDLEY_TI_CLPRU_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__) + #define JSON_HEDLEY_TI_CLPRU_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CLPRU_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CLPRU_VERSION) + #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CLPRU_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_CRAY_VERSION) + #undef JSON_HEDLEY_CRAY_VERSION +#endif +#if defined(_CRAYC) + #if defined(_RELEASE_PATCHLEVEL) + #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL) + #else + #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0) + #endif +#endif + +#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK) + #undef JSON_HEDLEY_CRAY_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_CRAY_VERSION) + #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_IAR_VERSION) + #undef JSON_HEDLEY_IAR_VERSION +#endif +#if defined(__IAR_SYSTEMS_ICC__) + #if __VER__ > 1000 + #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000)) + #else + #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(__VER__ / 100, __VER__ % 100, 0) + #endif +#endif + +#if defined(JSON_HEDLEY_IAR_VERSION_CHECK) + #undef JSON_HEDLEY_IAR_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_IAR_VERSION) + #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TINYC_VERSION) + #undef JSON_HEDLEY_TINYC_VERSION +#endif +#if defined(__TINYC__) + #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100) +#endif + +#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK) + #undef JSON_HEDLEY_TINYC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TINYC_VERSION) + #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_DMC_VERSION) + #undef JSON_HEDLEY_DMC_VERSION +#endif +#if defined(__DMC__) + #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf) +#endif + +#if defined(JSON_HEDLEY_DMC_VERSION_CHECK) + #undef JSON_HEDLEY_DMC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_DMC_VERSION) + #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_COMPCERT_VERSION) + #undef JSON_HEDLEY_COMPCERT_VERSION +#endif +#if defined(__COMPCERT_VERSION__) + #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100) +#endif + +#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK) + #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_COMPCERT_VERSION) + #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_PELLES_VERSION) + #undef JSON_HEDLEY_PELLES_VERSION +#endif +#if defined(__POCC__) + #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0) +#endif + +#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK) + #undef JSON_HEDLEY_PELLES_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_PELLES_VERSION) + #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_MCST_LCC_VERSION) + #undef JSON_HEDLEY_MCST_LCC_VERSION +#endif +#if defined(__LCC__) && defined(__LCC_MINOR__) + #define JSON_HEDLEY_MCST_LCC_VERSION JSON_HEDLEY_VERSION_ENCODE(__LCC__ / 100, __LCC__ % 100, __LCC_MINOR__) +#endif + +#if defined(JSON_HEDLEY_MCST_LCC_VERSION_CHECK) + #undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_MCST_LCC_VERSION) + #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_MCST_LCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_GCC_VERSION) + #undef JSON_HEDLEY_GCC_VERSION +#endif +#if \ + defined(JSON_HEDLEY_GNUC_VERSION) && \ + !defined(__clang__) && \ + !defined(JSON_HEDLEY_INTEL_VERSION) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_ARM_VERSION) && \ + !defined(JSON_HEDLEY_CRAY_VERSION) && \ + !defined(JSON_HEDLEY_TI_VERSION) && \ + !defined(JSON_HEDLEY_TI_ARMCL_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL430_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL2000_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL6X_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL7X_VERSION) && \ + !defined(JSON_HEDLEY_TI_CLPRU_VERSION) && \ + !defined(__COMPCERT__) && \ + !defined(JSON_HEDLEY_MCST_LCC_VERSION) + #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION +#endif + +#if defined(JSON_HEDLEY_GCC_VERSION_CHECK) + #undef JSON_HEDLEY_GCC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_GCC_VERSION) + #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_ATTRIBUTE +#endif +#if \ + defined(__has_attribute) && \ + ( \ + (!defined(JSON_HEDLEY_IAR_VERSION) || JSON_HEDLEY_IAR_VERSION_CHECK(8,5,9)) \ + ) +# define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute) +#else +# define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE +#endif +#if \ + defined(__has_cpp_attribute) && \ + defined(__cplusplus) && \ + (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS) + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS +#endif +#if !defined(__cplusplus) || !defined(__has_cpp_attribute) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0) +#elif \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_IAR_VERSION) && \ + (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \ + (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0)) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute) +#else + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE +#endif +#if defined(__has_cpp_attribute) && defined(__cplusplus) + #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE +#endif +#if defined(__has_cpp_attribute) && defined(__cplusplus) + #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_BUILTIN) + #undef JSON_HEDLEY_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin) +#else + #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN) + #undef JSON_HEDLEY_GNUC_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin) +#else + #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN) + #undef JSON_HEDLEY_GCC_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin) +#else + #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_FEATURE) + #undef JSON_HEDLEY_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature) +#else + #define JSON_HEDLEY_HAS_FEATURE(feature) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE) + #undef JSON_HEDLEY_GNUC_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature) +#else + #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_FEATURE) + #undef JSON_HEDLEY_GCC_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature) +#else + #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_EXTENSION) + #undef JSON_HEDLEY_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension) +#else + #define JSON_HEDLEY_HAS_EXTENSION(extension) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION) + #undef JSON_HEDLEY_GNUC_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension) +#else + #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION) + #undef JSON_HEDLEY_GCC_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension) +#else + #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_WARNING) + #undef JSON_HEDLEY_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning) +#else + #define JSON_HEDLEY_HAS_WARNING(warning) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_WARNING) + #undef JSON_HEDLEY_GNUC_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning) +#else + #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_WARNING) + #undef JSON_HEDLEY_GCC_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning) +#else + #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \ + defined(__clang__) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR)) + #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_PRAGMA(value) __pragma(value) +#else + #define JSON_HEDLEY_PRAGMA(value) +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH) + #undef JSON_HEDLEY_DIAGNOSTIC_PUSH +#endif +#if defined(JSON_HEDLEY_DIAGNOSTIC_POP) + #undef JSON_HEDLEY_DIAGNOSTIC_POP +#endif +#if defined(__clang__) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop") +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push)) + #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop)) +#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop") +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop") +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)") +#else + #define JSON_HEDLEY_DIAGNOSTIC_PUSH + #define JSON_HEDLEY_DIAGNOSTIC_POP +#endif + +/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for + HEDLEY INTERNAL USE ONLY. API subject to change without notice. */ +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ +#endif +#if defined(__cplusplus) +# if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat") +# if JSON_HEDLEY_HAS_WARNING("-Wc++17-extensions") +# if JSON_HEDLEY_HAS_WARNING("-Wc++1z-extensions") +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \ + _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \ + _Pragma("clang diagnostic ignored \"-Wc++1z-extensions\"") \ + xpr \ + JSON_HEDLEY_DIAGNOSTIC_POP +# else +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \ + _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \ + xpr \ + JSON_HEDLEY_DIAGNOSTIC_POP +# endif +# else +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \ + xpr \ + JSON_HEDLEY_DIAGNOSTIC_POP +# endif +# endif +#endif +#if !defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x +#endif + +#if defined(JSON_HEDLEY_CONST_CAST) + #undef JSON_HEDLEY_CONST_CAST +#endif +#if defined(__cplusplus) +# define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast(expr)) +#elif \ + JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \ + ((T) (expr)); \ + JSON_HEDLEY_DIAGNOSTIC_POP \ + })) +#else +# define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_REINTERPRET_CAST) + #undef JSON_HEDLEY_REINTERPRET_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast(expr)) +#else + #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_STATIC_CAST) + #undef JSON_HEDLEY_STATIC_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast(expr)) +#else + #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_CPP_CAST) + #undef JSON_HEDLEY_CPP_CAST +#endif +#if defined(__cplusplus) +# if JSON_HEDLEY_HAS_WARNING("-Wold-style-cast") +# define JSON_HEDLEY_CPP_CAST(T, expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \ + ((T) (expr)) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# elif JSON_HEDLEY_IAR_VERSION_CHECK(8,3,0) +# define JSON_HEDLEY_CPP_CAST(T, expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("diag_suppress=Pe137") \ + JSON_HEDLEY_DIAGNOSTIC_POP +# else +# define JSON_HEDLEY_CPP_CAST(T, expr) ((T) (expr)) +# endif +#else +# define JSON_HEDLEY_CPP_CAST(T, expr) (expr) +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)") +#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:1478 1786)) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1216,1444,1445") +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996)) +#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444") +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215") +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)") +#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:161)) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068)) +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(16,9,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163") +#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161") +#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 161") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)") +#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:1292)) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030)) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097,1098") +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)") +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097") +#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunused-function") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("clang diagnostic ignored \"-Wunused-function\"") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("GCC diagnostic ignored \"-Wunused-function\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(1,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION __pragma(warning(disable:4505)) +#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("diag_suppress 3142") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION +#endif + +#if defined(JSON_HEDLEY_DEPRECATED) + #undef JSON_HEDLEY_DEPRECATED +#endif +#if defined(JSON_HEDLEY_DEPRECATED_FOR) + #undef JSON_HEDLEY_DEPRECATED_FOR +#endif +#if \ + JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since)) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement)) +#elif \ + (JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) && !defined(JSON_HEDLEY_IAR_VERSION)) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since))) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement))) +#elif defined(__cplusplus) && (__cplusplus >= 201402L) + #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]]) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]]) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0) + #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__)) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated) +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated") + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated") +#else + #define JSON_HEDLEY_DEPRECATED(since) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) +#endif + +#if defined(JSON_HEDLEY_UNAVAILABLE) + #undef JSON_HEDLEY_UNAVAILABLE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since))) +#else + #define JSON_HEDLEY_UNAVAILABLE(available_since) +#endif + +#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT) + #undef JSON_HEDLEY_WARN_UNUSED_RESULT +#endif +#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT_MSG) + #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__)) +#elif (JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L) + #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]]) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) + #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) +#elif defined(_Check_return_) /* SAL */ + #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_ + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_ +#else + #define JSON_HEDLEY_WARN_UNUSED_RESULT + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) +#endif + +#if defined(JSON_HEDLEY_SENTINEL) + #undef JSON_HEDLEY_SENTINEL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position))) +#else + #define JSON_HEDLEY_SENTINEL(position) +#endif + +#if defined(JSON_HEDLEY_NO_RETURN) + #undef JSON_HEDLEY_NO_RETURN +#endif +#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_NO_RETURN __noreturn +#elif \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__)) +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L + #define JSON_HEDLEY_NO_RETURN _Noreturn +#elif defined(__cplusplus) && (__cplusplus >= 201103L) + #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]]) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0) + #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return") +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_NO_RETURN __declspec(noreturn) +#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;") +#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0) + #define JSON_HEDLEY_NO_RETURN __attribute((noreturn)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0) + #define JSON_HEDLEY_NO_RETURN __declspec(noreturn) +#else + #define JSON_HEDLEY_NO_RETURN +#endif + +#if defined(JSON_HEDLEY_NO_ESCAPE) + #undef JSON_HEDLEY_NO_ESCAPE +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape) + #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__)) +#else + #define JSON_HEDLEY_NO_ESCAPE +#endif + +#if defined(JSON_HEDLEY_UNREACHABLE) + #undef JSON_HEDLEY_UNREACHABLE +#endif +#if defined(JSON_HEDLEY_UNREACHABLE_RETURN) + #undef JSON_HEDLEY_UNREACHABLE_RETURN +#endif +#if defined(JSON_HEDLEY_ASSUME) + #undef JSON_HEDLEY_ASSUME +#endif +#if \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_ASSUME(expr) __assume(expr) +#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume) + #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr) +#elif \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) + #if defined(__cplusplus) + #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr) + #else + #define JSON_HEDLEY_ASSUME(expr) _nassert(expr) + #endif +#endif +#if \ + (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,10,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(10,0,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable() +#elif defined(JSON_HEDLEY_ASSUME) + #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0) +#endif +#if !defined(JSON_HEDLEY_ASSUME) + #if defined(JSON_HEDLEY_UNREACHABLE) + #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (JSON_HEDLEY_UNREACHABLE(), 1))) + #else + #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, expr) + #endif +#endif +#if defined(JSON_HEDLEY_UNREACHABLE) + #if \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (JSON_HEDLEY_STATIC_CAST(void, JSON_HEDLEY_ASSUME(0)), (value)) + #else + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE() + #endif +#else + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (value) +#endif +#if !defined(JSON_HEDLEY_UNREACHABLE) + #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0) +#endif + +JSON_HEDLEY_DIAGNOSTIC_PUSH +#if JSON_HEDLEY_HAS_WARNING("-Wpedantic") + #pragma clang diagnostic ignored "-Wpedantic" +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus) + #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" +#endif +#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0) + #if defined(__clang__) + #pragma clang diagnostic ignored "-Wvariadic-macros" + #elif defined(JSON_HEDLEY_GCC_VERSION) + #pragma GCC diagnostic ignored "-Wvariadic-macros" + #endif +#endif +#if defined(JSON_HEDLEY_NON_NULL) + #undef JSON_HEDLEY_NON_NULL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) + #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__))) +#else + #define JSON_HEDLEY_NON_NULL(...) +#endif +JSON_HEDLEY_DIAGNOSTIC_POP + +#if defined(JSON_HEDLEY_PRINTF_FORMAT) + #undef JSON_HEDLEY_PRINTF_FORMAT +#endif +#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check))) +#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check))) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(format) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check))) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check)) +#else + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) +#endif + +#if defined(JSON_HEDLEY_CONSTEXPR) + #undef JSON_HEDLEY_CONSTEXPR +#endif +#if defined(__cplusplus) + #if __cplusplus >= 201103L + #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr) + #endif +#endif +#if !defined(JSON_HEDLEY_CONSTEXPR) + #define JSON_HEDLEY_CONSTEXPR +#endif + +#if defined(JSON_HEDLEY_PREDICT) + #undef JSON_HEDLEY_PREDICT +#endif +#if defined(JSON_HEDLEY_LIKELY) + #undef JSON_HEDLEY_LIKELY +#endif +#if defined(JSON_HEDLEY_UNLIKELY) + #undef JSON_HEDLEY_UNLIKELY +#endif +#if defined(JSON_HEDLEY_UNPREDICTABLE) + #undef JSON_HEDLEY_UNPREDICTABLE +#endif +#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable) + #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr)) +#endif +#if \ + (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) && !defined(JSON_HEDLEY_PGI_VERSION)) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) +# define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability( (expr), (value), (probability)) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) __builtin_expect_with_probability(!!(expr), 1 , (probability)) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) __builtin_expect_with_probability(!!(expr), 0 , (probability)) +# define JSON_HEDLEY_LIKELY(expr) __builtin_expect (!!(expr), 1 ) +# define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 ) +#elif \ + (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) +# define JSON_HEDLEY_PREDICT(expr, expected, probability) \ + (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (JSON_HEDLEY_STATIC_CAST(void, expected), (expr))) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \ + (__extension__ ({ \ + double hedley_probability_ = (probability); \ + ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \ + })) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \ + (__extension__ ({ \ + double hedley_probability_ = (probability); \ + ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \ + })) +# define JSON_HEDLEY_LIKELY(expr) __builtin_expect(!!(expr), 1) +# define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0) +#else +# define JSON_HEDLEY_PREDICT(expr, expected, probability) (JSON_HEDLEY_STATIC_CAST(void, expected), (expr)) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr)) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr)) +# define JSON_HEDLEY_LIKELY(expr) (!!(expr)) +# define JSON_HEDLEY_UNLIKELY(expr) (!!(expr)) +#endif +#if !defined(JSON_HEDLEY_UNPREDICTABLE) + #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5) +#endif + +#if defined(JSON_HEDLEY_MALLOC) + #undef JSON_HEDLEY_MALLOC +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_MALLOC __attribute__((__malloc__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory") +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_MALLOC __declspec(restrict) +#else + #define JSON_HEDLEY_MALLOC +#endif + +#if defined(JSON_HEDLEY_PURE) + #undef JSON_HEDLEY_PURE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) +# define JSON_HEDLEY_PURE __attribute__((__pure__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) +# define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data") +#elif defined(__cplusplus) && \ + ( \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \ + ) +# define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;") +#else +# define JSON_HEDLEY_PURE +#endif + +#if defined(JSON_HEDLEY_CONST) + #undef JSON_HEDLEY_CONST +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(const) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_CONST __attribute__((__const__)) +#elif \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_CONST _Pragma("no_side_effect") +#else + #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE +#endif + +#if defined(JSON_HEDLEY_RESTRICT) + #undef JSON_HEDLEY_RESTRICT +#endif +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus) + #define JSON_HEDLEY_RESTRICT restrict +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \ + defined(__clang__) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_RESTRICT __restrict +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus) + #define JSON_HEDLEY_RESTRICT _Restrict +#else + #define JSON_HEDLEY_RESTRICT +#endif + +#if defined(JSON_HEDLEY_INLINE) + #undef JSON_HEDLEY_INLINE +#endif +#if \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \ + (defined(__cplusplus) && (__cplusplus >= 199711L)) + #define JSON_HEDLEY_INLINE inline +#elif \ + defined(JSON_HEDLEY_GCC_VERSION) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0) + #define JSON_HEDLEY_INLINE __inline__ +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_INLINE __inline +#else + #define JSON_HEDLEY_INLINE +#endif + +#if defined(JSON_HEDLEY_ALWAYS_INLINE) + #undef JSON_HEDLEY_ALWAYS_INLINE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0) +# define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) +# define JSON_HEDLEY_ALWAYS_INLINE __forceinline +#elif defined(__cplusplus) && \ + ( \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \ + ) +# define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) +# define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced") +#else +# define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE +#endif + +#if defined(JSON_HEDLEY_NEVER_INLINE) + #undef JSON_HEDLEY_NEVER_INLINE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0) + #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline") +#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never") +#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0) + #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0) + #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline) +#else + #define JSON_HEDLEY_NEVER_INLINE +#endif + +#if defined(JSON_HEDLEY_PRIVATE) + #undef JSON_HEDLEY_PRIVATE +#endif +#if defined(JSON_HEDLEY_PUBLIC) + #undef JSON_HEDLEY_PUBLIC +#endif +#if defined(JSON_HEDLEY_IMPORT) + #undef JSON_HEDLEY_IMPORT +#endif +#if defined(_WIN32) || defined(__CYGWIN__) +# define JSON_HEDLEY_PRIVATE +# define JSON_HEDLEY_PUBLIC __declspec(dllexport) +# define JSON_HEDLEY_IMPORT __declspec(dllimport) +#else +# if \ + JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + ( \ + defined(__TI_EABI__) && \ + ( \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \ + ) \ + ) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) +# define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden"))) +# define JSON_HEDLEY_PUBLIC __attribute__((__visibility__("default"))) +# else +# define JSON_HEDLEY_PRIVATE +# define JSON_HEDLEY_PUBLIC +# endif +# define JSON_HEDLEY_IMPORT extern +#endif + +#if defined(JSON_HEDLEY_NO_THROW) + #undef JSON_HEDLEY_NO_THROW +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) + #define JSON_HEDLEY_NO_THROW __declspec(nothrow) +#else + #define JSON_HEDLEY_NO_THROW +#endif + +#if defined(JSON_HEDLEY_FALL_THROUGH) + #undef JSON_HEDLEY_FALL_THROUGH +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(7,0,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__)) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough) + #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]]) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough) + #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]]) +#elif defined(__fallthrough) /* SAL */ + #define JSON_HEDLEY_FALL_THROUGH __fallthrough +#else + #define JSON_HEDLEY_FALL_THROUGH +#endif + +#if defined(JSON_HEDLEY_RETURNS_NON_NULL) + #undef JSON_HEDLEY_RETURNS_NON_NULL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__)) +#elif defined(_Ret_notnull_) /* SAL */ + #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_ +#else + #define JSON_HEDLEY_RETURNS_NON_NULL +#endif + +#if defined(JSON_HEDLEY_ARRAY_PARAM) + #undef JSON_HEDLEY_ARRAY_PARAM +#endif +#if \ + defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \ + !defined(__STDC_NO_VLA__) && \ + !defined(__cplusplus) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_TINYC_VERSION) + #define JSON_HEDLEY_ARRAY_PARAM(name) (name) +#else + #define JSON_HEDLEY_ARRAY_PARAM(name) +#endif + +#if defined(JSON_HEDLEY_IS_CONSTANT) + #undef JSON_HEDLEY_IS_CONSTANT +#endif +#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR) + #undef JSON_HEDLEY_REQUIRE_CONSTEXPR +#endif +/* JSON_HEDLEY_IS_CONSTEXPR_ is for + HEDLEY INTERNAL USE ONLY. API subject to change without notice. */ +#if defined(JSON_HEDLEY_IS_CONSTEXPR_) + #undef JSON_HEDLEY_IS_CONSTEXPR_ +#endif +#if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) + #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr) +#endif +#if !defined(__cplusplus) +# if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24) +#if defined(__INTPTR_TYPE__) + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*) +#else + #include + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*) +#endif +# elif \ + ( \ + defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \ + !defined(JSON_HEDLEY_SUNPRO_VERSION) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_IAR_VERSION)) || \ + (JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) && !defined(JSON_HEDLEY_IAR_VERSION)) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0) +#if defined(__INTPTR_TYPE__) + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0) +#else + #include + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0) +#endif +# elif \ + defined(JSON_HEDLEY_GCC_VERSION) || \ + defined(JSON_HEDLEY_INTEL_VERSION) || \ + defined(JSON_HEDLEY_TINYC_VERSION) || \ + defined(JSON_HEDLEY_TI_ARMCL_VERSION) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \ + defined(JSON_HEDLEY_TI_CL2000_VERSION) || \ + defined(JSON_HEDLEY_TI_CL6X_VERSION) || \ + defined(JSON_HEDLEY_TI_CL7X_VERSION) || \ + defined(JSON_HEDLEY_TI_CLPRU_VERSION) || \ + defined(__clang__) +# define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \ + sizeof(void) != \ + sizeof(*( \ + 1 ? \ + ((void*) ((expr) * 0L) ) : \ +((struct { char v[sizeof(void) * 2]; } *) 1) \ + ) \ + ) \ + ) +# endif +#endif +#if defined(JSON_HEDLEY_IS_CONSTEXPR_) + #if !defined(JSON_HEDLEY_IS_CONSTANT) + #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr) + #endif + #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1)) +#else + #if !defined(JSON_HEDLEY_IS_CONSTANT) + #define JSON_HEDLEY_IS_CONSTANT(expr) (0) + #endif + #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr) +#endif + +#if defined(JSON_HEDLEY_BEGIN_C_DECLS) + #undef JSON_HEDLEY_BEGIN_C_DECLS +#endif +#if defined(JSON_HEDLEY_END_C_DECLS) + #undef JSON_HEDLEY_END_C_DECLS +#endif +#if defined(JSON_HEDLEY_C_DECL) + #undef JSON_HEDLEY_C_DECL +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" { + #define JSON_HEDLEY_END_C_DECLS } + #define JSON_HEDLEY_C_DECL extern "C" +#else + #define JSON_HEDLEY_BEGIN_C_DECLS + #define JSON_HEDLEY_END_C_DECLS + #define JSON_HEDLEY_C_DECL +#endif + +#if defined(JSON_HEDLEY_STATIC_ASSERT) + #undef JSON_HEDLEY_STATIC_ASSERT +#endif +#if \ + !defined(__cplusplus) && ( \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \ + (JSON_HEDLEY_HAS_FEATURE(c_static_assert) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + defined(_Static_assert) \ + ) +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message) +#elif \ + (defined(__cplusplus) && (__cplusplus >= 201103L)) || \ + JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message)) +#else +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) +#endif + +#if defined(JSON_HEDLEY_NULL) + #undef JSON_HEDLEY_NULL +#endif +#if defined(__cplusplus) + #if __cplusplus >= 201103L + #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr) + #elif defined(NULL) + #define JSON_HEDLEY_NULL NULL + #else + #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0) + #endif +#elif defined(NULL) + #define JSON_HEDLEY_NULL NULL +#else + #define JSON_HEDLEY_NULL ((void*) 0) +#endif + +#if defined(JSON_HEDLEY_MESSAGE) + #undef JSON_HEDLEY_MESSAGE +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") +# define JSON_HEDLEY_MESSAGE(msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \ + JSON_HEDLEY_PRAGMA(message msg) \ + JSON_HEDLEY_DIAGNOSTIC_POP +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg) +#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg) +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#else +# define JSON_HEDLEY_MESSAGE(msg) +#endif + +#if defined(JSON_HEDLEY_WARNING) + #undef JSON_HEDLEY_WARNING +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") +# define JSON_HEDLEY_WARNING(msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \ + JSON_HEDLEY_PRAGMA(clang warning msg) \ + JSON_HEDLEY_DIAGNOSTIC_POP +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#else +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg) +#endif + +#if defined(JSON_HEDLEY_REQUIRE) + #undef JSON_HEDLEY_REQUIRE +#endif +#if defined(JSON_HEDLEY_REQUIRE_MSG) + #undef JSON_HEDLEY_REQUIRE_MSG +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if) +# if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat") +# define JSON_HEDLEY_REQUIRE(expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \ + __attribute__((diagnose_if(!(expr), #expr, "error"))) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \ + __attribute__((diagnose_if(!(expr), msg, "error"))) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# else +# define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error"))) +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error"))) +# endif +#else +# define JSON_HEDLEY_REQUIRE(expr) +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) +#endif + +#if defined(JSON_HEDLEY_FLAGS) + #undef JSON_HEDLEY_FLAGS +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) && (!defined(__cplusplus) || JSON_HEDLEY_HAS_WARNING("-Wbitfield-enum-conversion")) + #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__)) +#else + #define JSON_HEDLEY_FLAGS +#endif + +#if defined(JSON_HEDLEY_FLAGS_CAST) + #undef JSON_HEDLEY_FLAGS_CAST +#endif +#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0) +# define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("warning(disable:188)") \ + ((T) (expr)); \ + JSON_HEDLEY_DIAGNOSTIC_POP \ + })) +#else +# define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr) +#endif + +#if defined(JSON_HEDLEY_EMPTY_BASES) + #undef JSON_HEDLEY_EMPTY_BASES +#endif +#if \ + (JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0)) || \ + JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) + #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases) +#else + #define JSON_HEDLEY_EMPTY_BASES +#endif + +/* Remaining macros are deprecated. */ + +#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK) + #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK +#endif +#if defined(__clang__) + #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0) +#else + #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN) + #undef JSON_HEDLEY_CLANG_HAS_BUILTIN +#endif +#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin) + +#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE) + #undef JSON_HEDLEY_CLANG_HAS_FEATURE +#endif +#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature) + +#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION) + #undef JSON_HEDLEY_CLANG_HAS_EXTENSION +#endif +#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension) + +#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_WARNING) + #undef JSON_HEDLEY_CLANG_HAS_WARNING +#endif +#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning) + +#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */ + + +// This file contains all internal macro definitions (except those affecting ABI) +// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them + +// #include + + +// exclude unsupported compilers +#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK) + #if defined(__clang__) + #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400 + #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers" + #endif + #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER)) + #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800 + #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers" + #endif + #endif +#endif + +// C++ language standard detection +// if the user manually specified the used c++ version this is skipped +#if !defined(JSON_HAS_CPP_23) && !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11) + #if (defined(__cplusplus) && __cplusplus > 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG > 202002L) + #define JSON_HAS_CPP_23 + #define JSON_HAS_CPP_20 + #define JSON_HAS_CPP_17 + #define JSON_HAS_CPP_14 + #elif (defined(__cplusplus) && __cplusplus > 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201703L) + #define JSON_HAS_CPP_20 + #define JSON_HAS_CPP_17 + #define JSON_HAS_CPP_14 + #elif (defined(__cplusplus) && __cplusplus > 201402L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464 + #define JSON_HAS_CPP_17 + #define JSON_HAS_CPP_14 + #elif (defined(__cplusplus) && __cplusplus > 201103L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1) + #define JSON_HAS_CPP_14 + #endif + // the cpp 11 flag is always specified because it is the minimal required version + #define JSON_HAS_CPP_11 +#endif + +#ifdef __has_include + #if __has_include() + #include + #endif +#endif + +#if !defined(JSON_HAS_FILESYSTEM) && !defined(JSON_HAS_EXPERIMENTAL_FILESYSTEM) + #ifdef JSON_HAS_CPP_17 + #if defined(__cpp_lib_filesystem) + #define JSON_HAS_FILESYSTEM 1 + #elif defined(__cpp_lib_experimental_filesystem) + #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1 + #elif !defined(__has_include) + #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1 + #elif __has_include() + #define JSON_HAS_FILESYSTEM 1 + #elif __has_include() + #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1 + #endif + + // std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/ + #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #endif + + // no filesystem support before GCC 8: https://en.cppreference.com/w/cpp/compiler_support + #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #endif + + // no filesystem support before Clang 7: https://en.cppreference.com/w/cpp/compiler_support + #if defined(__clang_major__) && __clang_major__ < 7 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #endif + + // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support + #if defined(_MSC_VER) && _MSC_VER < 1914 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #endif + + // no filesystem support before iOS 13 + #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #endif + + // no filesystem support before macOS Catalina + #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #endif + #endif +#endif + +#ifndef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 0 +#endif + +#ifndef JSON_HAS_FILESYSTEM + #define JSON_HAS_FILESYSTEM 0 +#endif + +#ifndef JSON_HAS_THREE_WAY_COMPARISON + #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison >= 201907L \ + && defined(__cpp_lib_three_way_comparison) && __cpp_lib_three_way_comparison >= 201907L + #define JSON_HAS_THREE_WAY_COMPARISON 1 + #else + #define JSON_HAS_THREE_WAY_COMPARISON 0 + #endif +#endif + +#ifndef JSON_HAS_RANGES + // ranges header shipping in GCC 11.1.0 (released 2021-04-27) has syntax error + #if defined(__GLIBCXX__) && __GLIBCXX__ == 20210427 + #define JSON_HAS_RANGES 0 + #elif defined(__cpp_lib_ranges) + #define JSON_HAS_RANGES 1 + #else + #define JSON_HAS_RANGES 0 + #endif +#endif + +#ifndef JSON_HAS_STATIC_RTTI + #if !defined(_HAS_STATIC_RTTI) || _HAS_STATIC_RTTI != 0 + #define JSON_HAS_STATIC_RTTI 1 + #else + #define JSON_HAS_STATIC_RTTI 0 + #endif +#endif + +#ifdef JSON_HAS_CPP_17 + #define JSON_INLINE_VARIABLE inline +#else + #define JSON_INLINE_VARIABLE +#endif + +#if JSON_HEDLEY_HAS_ATTRIBUTE(no_unique_address) + #define JSON_NO_UNIQUE_ADDRESS [[no_unique_address]] +#else + #define JSON_NO_UNIQUE_ADDRESS +#endif + +// disable documentation warnings on clang +#if defined(__clang__) + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wdocumentation" + #pragma clang diagnostic ignored "-Wdocumentation-unknown-command" +#endif + +// allow disabling exceptions +#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION) + #define JSON_THROW(exception) throw exception + #define JSON_TRY try + #define JSON_CATCH(exception) catch(exception) + #define JSON_INTERNAL_CATCH(exception) catch(exception) +#else + #include + #define JSON_THROW(exception) std::abort() + #define JSON_TRY if(true) + #define JSON_CATCH(exception) if(false) + #define JSON_INTERNAL_CATCH(exception) if(false) +#endif + +// override exception macros +#if defined(JSON_THROW_USER) + #undef JSON_THROW + #define JSON_THROW JSON_THROW_USER +#endif +#if defined(JSON_TRY_USER) + #undef JSON_TRY + #define JSON_TRY JSON_TRY_USER +#endif +#if defined(JSON_CATCH_USER) + #undef JSON_CATCH + #define JSON_CATCH JSON_CATCH_USER + #undef JSON_INTERNAL_CATCH + #define JSON_INTERNAL_CATCH JSON_CATCH_USER +#endif +#if defined(JSON_INTERNAL_CATCH_USER) + #undef JSON_INTERNAL_CATCH + #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER +#endif + +// allow overriding assert +#if !defined(JSON_ASSERT) + #include // assert + #define JSON_ASSERT(x) assert(x) +#endif + +// allow to access some private functions (needed by the test suite) +#if defined(JSON_TESTS_PRIVATE) + #define JSON_PRIVATE_UNLESS_TESTED public +#else + #define JSON_PRIVATE_UNLESS_TESTED private +#endif + +/*! +@brief macro to briefly define a mapping between an enum and JSON +@def NLOHMANN_JSON_SERIALIZE_ENUM +@since version 3.4.0 +*/ +#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...) \ + template \ + inline void to_json(BasicJsonType& j, const ENUM_TYPE& e) \ + { \ + /* NOLINTNEXTLINE(modernize-type-traits) we use C++11 */ \ + static_assert(std::is_enum::value, #ENUM_TYPE " must be an enum!"); \ + /* NOLINTNEXTLINE(modernize-avoid-c-arrays) we don't want to depend on */ \ + static const std::pair m[] = __VA_ARGS__; \ + auto it = std::find_if(std::begin(m), std::end(m), \ + [e](const std::pair& ej_pair) -> bool \ + { \ + return ej_pair.first == e; \ + }); \ + j = ((it != std::end(m)) ? it : std::begin(m))->second; \ + } \ + template \ + inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \ + { \ + /* NOLINTNEXTLINE(modernize-type-traits) we use C++11 */ \ + static_assert(std::is_enum::value, #ENUM_TYPE " must be an enum!"); \ + /* NOLINTNEXTLINE(modernize-avoid-c-arrays) we don't want to depend on */ \ + static const std::pair m[] = __VA_ARGS__; \ + auto it = std::find_if(std::begin(m), std::end(m), \ + [&j](const std::pair& ej_pair) -> bool \ + { \ + return ej_pair.second == j; \ + }); \ + e = ((it != std::end(m)) ? it : std::begin(m))->first; \ + } + +// Ugly macros to avoid uglier copy-paste when specializing basic_json. They +// may be removed in the future once the class is split. + +#define NLOHMANN_BASIC_JSON_TPL_DECLARATION \ + template class ObjectType, \ + template class ArrayType, \ + class StringType, class BooleanType, class NumberIntegerType, \ + class NumberUnsignedType, class NumberFloatType, \ + template class AllocatorType, \ + template class JSONSerializer, \ + class BinaryType, \ + class CustomBaseClass> + +#define NLOHMANN_BASIC_JSON_TPL \ + basic_json + +// Macros to simplify conversion from/to types + +#define NLOHMANN_JSON_EXPAND( x ) x +#define NLOHMANN_JSON_GET_MACRO(_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, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, NAME,...) NAME +#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \ + NLOHMANN_JSON_PASTE64, \ + NLOHMANN_JSON_PASTE63, \ + NLOHMANN_JSON_PASTE62, \ + NLOHMANN_JSON_PASTE61, \ + NLOHMANN_JSON_PASTE60, \ + NLOHMANN_JSON_PASTE59, \ + NLOHMANN_JSON_PASTE58, \ + NLOHMANN_JSON_PASTE57, \ + NLOHMANN_JSON_PASTE56, \ + NLOHMANN_JSON_PASTE55, \ + NLOHMANN_JSON_PASTE54, \ + NLOHMANN_JSON_PASTE53, \ + NLOHMANN_JSON_PASTE52, \ + NLOHMANN_JSON_PASTE51, \ + NLOHMANN_JSON_PASTE50, \ + NLOHMANN_JSON_PASTE49, \ + NLOHMANN_JSON_PASTE48, \ + NLOHMANN_JSON_PASTE47, \ + NLOHMANN_JSON_PASTE46, \ + NLOHMANN_JSON_PASTE45, \ + NLOHMANN_JSON_PASTE44, \ + NLOHMANN_JSON_PASTE43, \ + NLOHMANN_JSON_PASTE42, \ + NLOHMANN_JSON_PASTE41, \ + NLOHMANN_JSON_PASTE40, \ + NLOHMANN_JSON_PASTE39, \ + NLOHMANN_JSON_PASTE38, \ + NLOHMANN_JSON_PASTE37, \ + NLOHMANN_JSON_PASTE36, \ + NLOHMANN_JSON_PASTE35, \ + NLOHMANN_JSON_PASTE34, \ + NLOHMANN_JSON_PASTE33, \ + NLOHMANN_JSON_PASTE32, \ + NLOHMANN_JSON_PASTE31, \ + NLOHMANN_JSON_PASTE30, \ + NLOHMANN_JSON_PASTE29, \ + NLOHMANN_JSON_PASTE28, \ + NLOHMANN_JSON_PASTE27, \ + NLOHMANN_JSON_PASTE26, \ + NLOHMANN_JSON_PASTE25, \ + NLOHMANN_JSON_PASTE24, \ + NLOHMANN_JSON_PASTE23, \ + NLOHMANN_JSON_PASTE22, \ + NLOHMANN_JSON_PASTE21, \ + NLOHMANN_JSON_PASTE20, \ + NLOHMANN_JSON_PASTE19, \ + NLOHMANN_JSON_PASTE18, \ + NLOHMANN_JSON_PASTE17, \ + NLOHMANN_JSON_PASTE16, \ + NLOHMANN_JSON_PASTE15, \ + NLOHMANN_JSON_PASTE14, \ + NLOHMANN_JSON_PASTE13, \ + NLOHMANN_JSON_PASTE12, \ + NLOHMANN_JSON_PASTE11, \ + NLOHMANN_JSON_PASTE10, \ + NLOHMANN_JSON_PASTE9, \ + NLOHMANN_JSON_PASTE8, \ + NLOHMANN_JSON_PASTE7, \ + NLOHMANN_JSON_PASTE6, \ + NLOHMANN_JSON_PASTE5, \ + NLOHMANN_JSON_PASTE4, \ + NLOHMANN_JSON_PASTE3, \ + NLOHMANN_JSON_PASTE2, \ + NLOHMANN_JSON_PASTE1)(__VA_ARGS__)) +#define NLOHMANN_JSON_PASTE2(func, v1) func(v1) +#define NLOHMANN_JSON_PASTE3(func, v1, v2) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE2(func, v2) +#define NLOHMANN_JSON_PASTE4(func, v1, v2, v3) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE3(func, v2, v3) +#define NLOHMANN_JSON_PASTE5(func, v1, v2, v3, v4) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE4(func, v2, v3, v4) +#define NLOHMANN_JSON_PASTE6(func, v1, v2, v3, v4, v5) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE5(func, v2, v3, v4, v5) +#define NLOHMANN_JSON_PASTE7(func, v1, v2, v3, v4, v5, v6) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE6(func, v2, v3, v4, v5, v6) +#define NLOHMANN_JSON_PASTE8(func, v1, v2, v3, v4, v5, v6, v7) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE7(func, v2, v3, v4, v5, v6, v7) +#define NLOHMANN_JSON_PASTE9(func, v1, v2, v3, v4, v5, v6, v7, v8) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE8(func, v2, v3, v4, v5, v6, v7, v8) +#define NLOHMANN_JSON_PASTE10(func, v1, v2, v3, v4, v5, v6, v7, v8, v9) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE9(func, v2, v3, v4, v5, v6, v7, v8, v9) +#define NLOHMANN_JSON_PASTE11(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE10(func, v2, v3, v4, v5, v6, v7, v8, v9, v10) +#define NLOHMANN_JSON_PASTE12(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE11(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) +#define NLOHMANN_JSON_PASTE13(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE12(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) +#define NLOHMANN_JSON_PASTE14(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE13(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) +#define NLOHMANN_JSON_PASTE15(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE14(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) +#define NLOHMANN_JSON_PASTE16(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE15(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) +#define NLOHMANN_JSON_PASTE17(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE16(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) +#define NLOHMANN_JSON_PASTE18(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE17(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) +#define NLOHMANN_JSON_PASTE19(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE18(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) +#define NLOHMANN_JSON_PASTE20(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE19(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) +#define NLOHMANN_JSON_PASTE21(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE20(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) +#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE21(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) +#define NLOHMANN_JSON_PASTE23(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE22(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) +#define NLOHMANN_JSON_PASTE24(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE23(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) +#define NLOHMANN_JSON_PASTE25(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE24(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) +#define NLOHMANN_JSON_PASTE26(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE25(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) +#define NLOHMANN_JSON_PASTE27(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE26(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) +#define NLOHMANN_JSON_PASTE28(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE27(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) +#define NLOHMANN_JSON_PASTE29(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE28(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) +#define NLOHMANN_JSON_PASTE30(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE29(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) +#define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE30(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) +#define NLOHMANN_JSON_PASTE32(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE31(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) +#define NLOHMANN_JSON_PASTE33(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE32(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) +#define NLOHMANN_JSON_PASTE34(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE33(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) +#define NLOHMANN_JSON_PASTE35(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE34(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) +#define NLOHMANN_JSON_PASTE36(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE35(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) +#define NLOHMANN_JSON_PASTE37(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE36(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) +#define NLOHMANN_JSON_PASTE38(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE37(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) +#define NLOHMANN_JSON_PASTE39(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE38(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) +#define NLOHMANN_JSON_PASTE40(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE39(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) +#define NLOHMANN_JSON_PASTE41(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE40(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) +#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE41(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) +#define NLOHMANN_JSON_PASTE43(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE42(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) +#define NLOHMANN_JSON_PASTE44(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE43(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) +#define NLOHMANN_JSON_PASTE45(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE44(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) +#define NLOHMANN_JSON_PASTE46(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE45(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) +#define NLOHMANN_JSON_PASTE47(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE46(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) +#define NLOHMANN_JSON_PASTE48(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE47(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) +#define NLOHMANN_JSON_PASTE49(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE48(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) +#define NLOHMANN_JSON_PASTE50(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE49(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) +#define NLOHMANN_JSON_PASTE51(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE50(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) +#define NLOHMANN_JSON_PASTE52(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE51(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) +#define NLOHMANN_JSON_PASTE53(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE52(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) +#define NLOHMANN_JSON_PASTE54(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE53(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) +#define NLOHMANN_JSON_PASTE55(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE54(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) +#define NLOHMANN_JSON_PASTE56(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE55(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) +#define NLOHMANN_JSON_PASTE57(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE56(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) +#define NLOHMANN_JSON_PASTE58(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE57(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) +#define NLOHMANN_JSON_PASTE59(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE58(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) +#define NLOHMANN_JSON_PASTE60(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE59(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) +#define NLOHMANN_JSON_PASTE61(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE60(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) +#define NLOHMANN_JSON_PASTE62(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE61(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) +#define NLOHMANN_JSON_PASTE63(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE62(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) +#define NLOHMANN_JSON_PASTE64(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE63(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) + +#define NLOHMANN_JSON_TO(v1) nlohmann_json_j[#v1] = nlohmann_json_t.v1; +#define NLOHMANN_JSON_FROM(v1) nlohmann_json_j.at(#v1).get_to(nlohmann_json_t.v1); +#define NLOHMANN_JSON_FROM_WITH_DEFAULT(v1) nlohmann_json_t.v1 = !nlohmann_json_j.is_null() ? nlohmann_json_j.value(#v1, nlohmann_json_default_obj.v1) : nlohmann_json_default_obj.v1; + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_INTRUSIVE +@since version 3.9.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/ +*/ +#define NLOHMANN_DEFINE_TYPE_INTRUSIVE(Type, ...) \ + template::value, int> = 0> \ + friend void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + friend void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT +@since version 3.11.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/ +*/ +#define NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Type, ...) \ + template::value, int> = 0> \ + friend void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + friend void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { const Type nlohmann_json_default_obj{}; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE +@since version 3.11.3 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/ +*/ +#define NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE(Type, ...) \ + template::value, int> = 0> \ + friend void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE +@since version 3.9.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_type_non_intrusive/ +*/ +#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type, ...) \ + template::value, int> = 0> \ + void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT +@since version 3.11.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_type_non_intrusive/ +*/ +#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(Type, ...) \ + template::value, int> = 0> \ + void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { const Type nlohmann_json_default_obj{}; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE +@since version 3.11.3 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_type_non_intrusive/ +*/ +#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE(Type, ...) \ + template::value, int> = 0> \ + void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_DERIVED_TYPE_INTRUSIVE +@since version 3.12.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_derived_type/ +*/ +#define NLOHMANN_DEFINE_DERIVED_TYPE_INTRUSIVE(Type, BaseType, ...) \ + template::value, int> = 0> \ + friend void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { nlohmann::to_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + friend void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { nlohmann::from_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_DERIVED_TYPE_INTRUSIVE_WITH_DEFAULT +@since version 3.12.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_derived_type/ +*/ +#define NLOHMANN_DEFINE_DERIVED_TYPE_INTRUSIVE_WITH_DEFAULT(Type, BaseType, ...) \ + template::value, int> = 0> \ + friend void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { nlohmann::to_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + friend void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { nlohmann::from_json(nlohmann_json_j, static_cast(nlohmann_json_t)); const Type nlohmann_json_default_obj{}; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_DERIVED_TYPE_INTRUSIVE_ONLY_SERIALIZE +@since version 3.12.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_derived_type/ +*/ +#define NLOHMANN_DEFINE_DERIVED_TYPE_INTRUSIVE_ONLY_SERIALIZE(Type, BaseType, ...) \ + template::value, int> = 0> \ + friend void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { nlohmann::to_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE +@since version 3.12.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_derived_type/ +*/ +#define NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE(Type, BaseType, ...) \ + template::value, int> = 0> \ + void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { nlohmann::to_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { nlohmann::from_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE_WITH_DEFAULT +@since version 3.12.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_derived_type/ +*/ +#define NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE_WITH_DEFAULT(Type, BaseType, ...) \ + template::value, int> = 0> \ + void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { nlohmann::to_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + template::value, int> = 0> \ + void from_json(const BasicJsonType& nlohmann_json_j, Type& nlohmann_json_t) { nlohmann::from_json(nlohmann_json_j, static_cast(nlohmann_json_t)); const Type nlohmann_json_default_obj{}; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE +@since version 3.12.0 +@sa https://json.nlohmann.me/api/macros/nlohmann_define_derived_type/ +*/ +#define NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE(Type, BaseType, ...) \ + template::value, int> = 0> \ + void to_json(BasicJsonType& nlohmann_json_j, const Type& nlohmann_json_t) { nlohmann::to_json(nlohmann_json_j, static_cast(nlohmann_json_t)); NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } + +// inspired from https://stackoverflow.com/a/26745591 +// allows calling any std function as if (e.g., with begin): +// using std::begin; begin(x); +// +// it allows using the detected idiom to retrieve the return type +// of such an expression +#define NLOHMANN_CAN_CALL_STD_FUNC_IMPL(std_name) \ + namespace detail { \ + using std::std_name; \ + \ + template \ + using result_of_##std_name = decltype(std_name(std::declval()...)); \ + } \ + \ + namespace detail2 { \ + struct std_name##_tag \ + { \ + }; \ + \ + template \ + std_name##_tag std_name(T&&...); \ + \ + template \ + using result_of_##std_name = decltype(std_name(std::declval()...)); \ + \ + template \ + struct would_call_std_##std_name \ + { \ + static constexpr auto const value = ::nlohmann::detail:: \ + is_detected_exact::value; \ + }; \ + } /* namespace detail2 */ \ + \ + template \ + struct would_call_std_##std_name : detail2::would_call_std_##std_name \ + { \ + } + +#ifndef JSON_USE_IMPLICIT_CONVERSIONS + #define JSON_USE_IMPLICIT_CONVERSIONS 1 +#endif + +#if JSON_USE_IMPLICIT_CONVERSIONS + #define JSON_EXPLICIT +#else + #define JSON_EXPLICIT explicit +#endif + +#ifndef JSON_DISABLE_ENUM_SERIALIZATION + #define JSON_DISABLE_ENUM_SERIALIZATION 0 +#endif + +#ifndef JSON_USE_GLOBAL_UDLS + #define JSON_USE_GLOBAL_UDLS 1 +#endif + +#if JSON_HAS_THREE_WAY_COMPARISON + #include // partial_ordering +#endif + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +/////////////////////////// +// JSON type enumeration // +/////////////////////////// + +/*! +@brief the JSON type enumeration + +This enumeration collects the different JSON types. It is internally used to +distinguish the stored values, and the functions @ref basic_json::is_null(), +@ref basic_json::is_object(), @ref basic_json::is_array(), +@ref basic_json::is_string(), @ref basic_json::is_boolean(), +@ref basic_json::is_number() (with @ref basic_json::is_number_integer(), +@ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()), +@ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and +@ref basic_json::is_structured() rely on it. + +@note There are three enumeration entries (number_integer, number_unsigned, and +number_float), because the library distinguishes these three types for numbers: +@ref basic_json::number_unsigned_t is used for unsigned integers, +@ref basic_json::number_integer_t is used for signed integers, and +@ref basic_json::number_float_t is used for floating-point numbers or to +approximate integers which do not fit in the limits of their respective type. + +@sa see @ref basic_json::basic_json(const value_t value_type) -- create a JSON +value with the default value for a given type + +@since version 1.0.0 +*/ +enum class value_t : std::uint8_t +{ + null, ///< null value + object, ///< object (unordered set of name/value pairs) + array, ///< array (ordered collection of values) + string, ///< string value + boolean, ///< boolean value + number_integer, ///< number value (signed integer) + number_unsigned, ///< number value (unsigned integer) + number_float, ///< number value (floating-point) + binary, ///< binary array (ordered collection of bytes) + discarded ///< discarded by the parser callback function +}; + +/*! +@brief comparison operator for JSON types + +Returns an ordering that is similar to Python: +- order: null < boolean < number < object < array < string < binary +- furthermore, each type is not smaller than itself +- discarded values are not comparable +- binary is represented as a b"" string in python and directly comparable to a + string; however, making a binary array directly comparable with a string would + be surprising behavior in a JSON file. + +@since version 1.0.0 +*/ +#if JSON_HAS_THREE_WAY_COMPARISON + inline std::partial_ordering operator<=>(const value_t lhs, const value_t rhs) noexcept // *NOPAD* +#else + inline bool operator<(const value_t lhs, const value_t rhs) noexcept +#endif +{ + static constexpr std::array order = {{ + 0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */, + 1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */, + 6 /* binary */ + } + }; + + const auto l_index = static_cast(lhs); + const auto r_index = static_cast(rhs); +#if JSON_HAS_THREE_WAY_COMPARISON + if (l_index < order.size() && r_index < order.size()) + { + return order[l_index] <=> order[r_index]; // *NOPAD* + } + return std::partial_ordering::unordered; +#else + return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index]; +#endif +} + +// GCC selects the built-in operator< over an operator rewritten from +// a user-defined spaceship operator +// Clang, MSVC, and ICC select the rewritten candidate +// (see GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105200) +#if JSON_HAS_THREE_WAY_COMPARISON && defined(__GNUC__) +inline bool operator<(const value_t lhs, const value_t rhs) noexcept +{ + return std::is_lt(lhs <=> rhs); // *NOPAD* +} +#endif + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +/*! +@brief replace all occurrences of a substring by another string + +@param[in,out] s the string to manipulate; changed so that all + occurrences of @a f are replaced with @a t +@param[in] f the substring to replace with @a t +@param[in] t the string to replace @a f + +@pre The search string @a f must not be empty. **This precondition is +enforced with an assertion.** + +@since version 2.0.0 +*/ +template +inline void replace_substring(StringType& s, const StringType& f, + const StringType& t) +{ + JSON_ASSERT(!f.empty()); + for (auto pos = s.find(f); // find first occurrence of f + pos != StringType::npos; // make sure f was found + s.replace(pos, f.size(), t), // replace with t, and + pos = s.find(f, pos + t.size())) // find next occurrence of f + {} +} + +/*! + * @brief string escaping as described in RFC 6901 (Sect. 4) + * @param[in] s string to escape + * @return escaped string + * + * Note the order of escaping "~" to "~0" and "/" to "~1" is important. + */ +template +inline StringType escape(StringType s) +{ + replace_substring(s, StringType{"~"}, StringType{"~0"}); + replace_substring(s, StringType{"/"}, StringType{"~1"}); + return s; +} + +/*! + * @brief string unescaping as described in RFC 6901 (Sect. 4) + * @param[in] s string to unescape + * @return unescaped string + * + * Note the order of escaping "~1" to "/" and "~0" to "~" is important. + */ +template +static void unescape(StringType& s) +{ + replace_substring(s, StringType{"~1"}, StringType{"/"}); + replace_substring(s, StringType{"~0"}, StringType{"~"}); +} + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // size_t + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +/// struct to capture the start position of the current token +struct position_t +{ + /// the total number of characters read + std::size_t chars_read_total = 0; + /// the number of characters read in the current line + std::size_t chars_read_current_line = 0; + /// the number of lines read + std::size_t lines_read = 0; + + /// conversion to size_t to preserve SAX interface + constexpr operator size_t() const + { + return chars_read_total; + } +}; + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + +// #include + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-FileCopyrightText: 2018 The Abseil Authors +// SPDX-License-Identifier: MIT + + + +#include // array +#include // size_t +#include // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type +#include // index_sequence, make_index_sequence, index_sequence_for + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +template +using uncvref_t = typename std::remove_cv::type>::type; + +#ifdef JSON_HAS_CPP_14 + +// the following utilities are natively available in C++14 +using std::enable_if_t; +using std::index_sequence; +using std::make_index_sequence; +using std::index_sequence_for; + +#else + +// alias templates to reduce boilerplate +template +using enable_if_t = typename std::enable_if::type; + +// The following code is taken from https://github.com/abseil/abseil-cpp/blob/10cb35e459f5ecca5b2ff107635da0bfa41011b4/absl/utility/utility.h +// which is part of Google Abseil (https://github.com/abseil/abseil-cpp), licensed under the Apache License 2.0. + +//// START OF CODE FROM GOOGLE ABSEIL + +// integer_sequence +// +// Class template representing a compile-time integer sequence. An instantiation +// of `integer_sequence` has a sequence of integers encoded in its +// type through its template arguments (which is a common need when +// working with C++11 variadic templates). `absl::integer_sequence` is designed +// to be a drop-in replacement for C++14's `std::integer_sequence`. +// +// Example: +// +// template< class T, T... Ints > +// void user_function(integer_sequence); +// +// int main() +// { +// // user_function's `T` will be deduced to `int` and `Ints...` +// // will be deduced to `0, 1, 2, 3, 4`. +// user_function(make_integer_sequence()); +// } +template +struct integer_sequence +{ + using value_type = T; + static constexpr std::size_t size() noexcept + { + return sizeof...(Ints); + } +}; + +// index_sequence +// +// A helper template for an `integer_sequence` of `size_t`, +// `absl::index_sequence` is designed to be a drop-in replacement for C++14's +// `std::index_sequence`. +template +using index_sequence = integer_sequence; + +namespace utility_internal +{ + +template +struct Extend; + +// Note that SeqSize == sizeof...(Ints). It's passed explicitly for efficiency. +template +struct Extend, SeqSize, 0> +{ + using type = integer_sequence < T, Ints..., (Ints + SeqSize)... >; +}; + +template +struct Extend, SeqSize, 1> +{ + using type = integer_sequence < T, Ints..., (Ints + SeqSize)..., 2 * SeqSize >; +}; + +// Recursion helper for 'make_integer_sequence'. +// 'Gen::type' is an alias for 'integer_sequence'. +template +struct Gen +{ + using type = + typename Extend < typename Gen < T, N / 2 >::type, N / 2, N % 2 >::type; +}; + +template +struct Gen +{ + using type = integer_sequence; +}; + +} // namespace utility_internal + +// Compile-time sequences of integers + +// make_integer_sequence +// +// This template alias is equivalent to +// `integer_sequence`, and is designed to be a drop-in +// replacement for C++14's `std::make_integer_sequence`. +template +using make_integer_sequence = typename utility_internal::Gen::type; + +// make_index_sequence +// +// This template alias is equivalent to `index_sequence<0, 1, ..., N-1>`, +// and is designed to be a drop-in replacement for C++14's +// `std::make_index_sequence`. +template +using make_index_sequence = make_integer_sequence; + +// index_sequence_for +// +// Converts a typename pack into an index sequence of the same length, and +// is designed to be a drop-in replacement for C++14's +// `std::index_sequence_for()` +template +using index_sequence_for = make_index_sequence; + +//// END OF CODE FROM GOOGLE ABSEIL + +#endif + +// dispatch utility (taken from ranges-v3) +template struct priority_tag : priority_tag < N - 1 > {}; +template<> struct priority_tag<0> {}; + +// taken from ranges-v3 +template +struct static_const +{ + static JSON_INLINE_VARIABLE constexpr T value{}; +}; + +#ifndef JSON_HAS_CPP_17 + template + constexpr T static_const::value; +#endif + +template +constexpr std::array make_array(Args&& ... args) +{ + return std::array {{static_cast(std::forward(args))...}}; +} + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // numeric_limits +#include // char_traits +#include // tuple +#include // false_type, is_constructible, is_integral, is_same, true_type +#include // declval + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +#include // random_access_iterator_tag + +// #include + +// #include + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN +namespace detail +{ + +template +struct iterator_types {}; + +template +struct iterator_types < + It, + void_t> +{ + using difference_type = typename It::difference_type; + using value_type = typename It::value_type; + using pointer = typename It::pointer; + using reference = typename It::reference; + using iterator_category = typename It::iterator_category; +}; + +// This is required as some compilers implement std::iterator_traits in a way that +// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341. +template +struct iterator_traits +{ +}; + +template +struct iterator_traits < T, enable_if_t < !std::is_pointer::value >> + : iterator_types +{ +}; + +template +struct iterator_traits::value>> +{ + using iterator_category = std::random_access_iterator_tag; + using value_type = T; + using difference_type = ptrdiff_t; + using pointer = T*; + using reference = T&; +}; + +} // namespace detail +NLOHMANN_JSON_NAMESPACE_END + +// #include + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN + +NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin); + +NLOHMANN_JSON_NAMESPACE_END + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + + + +// #include + + +NLOHMANN_JSON_NAMESPACE_BEGIN + +NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end); + +NLOHMANN_JSON_NAMESPACE_END + +// #include + +// #include + +// #include +// __ _____ _____ _____ +// __| | __| | | | JSON for Modern C++ +// | | |__ | | | | | | version 3.12.0 +// |_____|_____|_____|_|___| https://github.com/nlohmann/json +// +// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann +// SPDX-License-Identifier: MIT + +#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_ + #define INCLUDE_NLOHMANN_JSON_FWD_HPP_ + + #include // int64_t, uint64_t + #include // map + #include // allocator + #include // string + #include // vector + + // #include + + + /*! + @brief namespace for Niels Lohmann + @see https://github.com/nlohmann + @since version 1.0.0 + */ + NLOHMANN_JSON_NAMESPACE_BEGIN + + /*! + @brief default JSONSerializer template argument + + This serializer ignores the template arguments and uses ADL + ([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl)) + for serialization. + */ + template + struct adl_serializer; + + /// a class to store JSON values + /// @sa https://json.nlohmann.me/api/basic_json/ + template class ObjectType = + std::map, + template class ArrayType = std::vector, + class StringType = std::string, class BooleanType = bool, + class NumberIntegerType = std::int64_t, + class NumberUnsignedType = std::uint64_t, + class NumberFloatType = double, + template class AllocatorType = std::allocator, + template class JSONSerializer = + adl_serializer, + class BinaryType = std::vector, // cppcheck-suppress syntaxError + class CustomBaseClass = void> + class basic_json; + + /// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document + /// @sa https://json.nlohmann.me/api/json_pointer/ + template + class json_pointer; + + /*! + @brief default specialization + @sa https://json.nlohmann.me/api/json/ + */ + using json = basic_json<>; + + /// @brief a minimal map-like container that preserves insertion order + /// @sa https://json.nlohmann.me/api/ordered_map/ + template + struct ordered_map; + + /// @brief specialization that maintains the insertion order of object keys + /// @sa https://json.nlohmann.me/api/ordered_json/ + using ordered_json = basic_json; + + NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_ + + +NLOHMANN_JSON_NAMESPACE_BEGIN +/*! +@brief detail namespace with internal helper functions + +This namespace collects functions that should not be exposed, +implementations of some @ref basic_json methods, and meta-programming helpers. + +@since version 2.1.0 +*/ +namespace detail +{ + +///////////// +// helpers // +///////////// + +// Note to maintainers: +// +// Every trait in this file expects a non CV-qualified type. +// The only exceptions are in the 'aliases for detected' section +// (i.e. those of the form: decltype(T::member_function(std::declval()))) +// +// In this case, T has to be properly CV-qualified to constraint the function arguments +// (e.g. to_json(BasicJsonType&, const T&)) + +template struct is_basic_json : std::false_type {}; + +NLOHMANN_BASIC_JSON_TPL_DECLARATION +struct is_basic_json : std::true_type {}; + +// used by exceptions create() member functions +// true_type for pointer to possibly cv-qualified basic_json or std::nullptr_t +// false_type otherwise +template +struct is_basic_json_context : + std::integral_constant < bool, + is_basic_json::type>::type>::value + || std::is_same::value > +{}; + +////////////////////// +// json_ref helpers // +////////////////////// + +template +class json_ref; + +template +struct is_json_ref : std::false_type {}; + +template +struct is_json_ref> : std::true_type {}; + +////////////////////////// +// aliases for detected // +////////////////////////// + +template +using mapped_type_t = typename T::mapped_type; + +template +using key_type_t = typename T::key_type; + +template +using value_type_t = typename T::value_type; + +template +using difference_type_t = typename T::difference_type; + +template +using pointer_t = typename T::pointer; + +template +using reference_t = typename T::reference; + +template +using iterator_category_t = typename T::iterator_category; + +template +using to_json_function = decltype(T::to_json(std::declval()...)); + +template +using from_json_function = decltype(T::from_json(std::declval()...)); + +template +using get_template_function = decltype(std::declval().template get()); + +// trait checking if JSONSerializer::from_json(json const&, udt&) exists +template +struct has_from_json : std::false_type {}; + +// trait checking if j.get is valid +// use this trait instead of std::is_constructible or std::is_convertible, +// both rely on, or make use of implicit conversions, and thus fail when T +// has several constructors/operator= (see https://github.com/nlohmann/json/issues/958) +template +struct is_getable +{ + static constexpr bool value = is_detected::value; +}; + +template +struct has_from_json < BasicJsonType, T, enable_if_t < !is_basic_json::value >> +{ + using serializer = typename BasicJsonType::template json_serializer; + + static constexpr bool value = + is_detected_exact::value; +}; + +// This trait checks if JSONSerializer::from_json(json const&) exists +// this overload is used for non-default-constructible user-defined-types +template +struct has_non_default_from_json : std::false_type {}; + +template +struct has_non_default_from_json < BasicJsonType, T, enable_if_t < !is_basic_json::value >> +{ + using serializer = typename BasicJsonType::template json_serializer; + + static constexpr bool value = + is_detected_exact::value; +}; + +// This trait checks if BasicJsonType::json_serializer::to_json exists +// Do not evaluate the trait when T is a basic_json type, to avoid template instantiation infinite recursion. +template +struct has_to_json : std::false_type {}; + +template +struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json::value >> +{ + using serializer = typename BasicJsonType::template json_serializer; + + static constexpr bool value = + is_detected_exact::value; +}; + +template +using detect_key_compare = typename T::key_compare; + +template +struct has_key_compare : std::integral_constant::value> {}; + +// obtains the actual object key comparator +template +struct actual_object_comparator +{ + using object_t = typename BasicJsonType::object_t; + using object_comparator_t = typename BasicJsonType::default_object_comparator_t; + using type = typename std::conditional < has_key_compare::value, + typename object_t::key_compare, object_comparator_t>::type; +}; + +template +using actual_object_comparator_t = typename actual_object_comparator::type; + +///////////////// +// char_traits // +///////////////// + +// Primary template of char_traits calls std char_traits +template +struct char_traits : std::char_traits +{}; + +// Explicitly define char traits for unsigned char since it is not standard +template<> +struct char_traits : std::char_traits +{ + using char_type = unsigned char; + using int_type = uint64_t; + + // Redefine to_int_type function + static int_type to_int_type(char_type c) noexcept + { + return static_cast(c); + } + + static char_type to_char_type(int_type i) noexcept + { + return static_cast(i); + } + + static constexpr int_type eof() noexcept + { + return static_cast(std::char_traits::eof()); + } +}; + +// Explicitly define char traits for signed char since it is not standard +template<> +struct char_traits : std::char_traits +{ + using char_type = signed char; + using int_type = uint64_t; + + // Redefine to_int_type function + static int_type to_int_type(char_type c) noexcept + { + return static_cast(c); + } + + static char_type to_char_type(int_type i) noexcept + { + return static_cast(i); + } + + static constexpr int_type eof() noexcept + { + return static_cast(std::char_traits::eof()); + } +}; + +/////////////////// +// is_ functions // +/////////////////// + +// https://en.cppreference.com/w/cpp/types/conjunction +template struct conjunction : std::true_type { }; +template struct conjunction : B { }; +template +struct conjunction +: std::conditional(B::value), conjunction, B>::type {}; + +// https://en.cppreference.com/w/cpp/types/negation +template struct negation : std::integral_constant < bool, !B::value > { }; + +// Reimplementation of is_constructible and is_default_constructible, due to them being broken for +// std::pair and std::tuple until LWG 2367 fix (see https://cplusplus.github.io/LWG/lwg-defects.html#2367). +// This causes compile errors in e.g. clang 3.5 or gcc 4.9. +template +struct is_default_constructible : std::is_default_constructible {}; + +template +struct is_default_constructible> + : conjunction, is_default_constructible> {}; + +template +struct is_default_constructible> + : conjunction, is_default_constructible> {}; + +template +struct is_default_constructible> + : conjunction...> {}; + +template +struct is_default_constructible> + : conjunction...> {}; + +template +struct is_constructible : std::is_constructible {}; + +template +struct is_constructible> : is_default_constructible> {}; + +template +struct is_constructible> : is_default_constructible> {}; + +template +struct is_constructible> : is_default_constructible> {}; + +template +struct is_constructible> : is_default_constructible> {}; + +template +struct is_iterator_traits : std::false_type {}; + +template +struct is_iterator_traits> +{ + private: + using traits = iterator_traits; + + public: + static constexpr auto value = + is_detected::value && + is_detected::value && + is_detected::value && + is_detected::value && + is_detected::value; +}; + +template +struct is_range +{ + private: + using t_ref = typename std::add_lvalue_reference::type; + + using iterator = detected_t; + using sentinel = detected_t; + + // to be 100% correct, it should use https://en.cppreference.com/w/cpp/iterator/input_or_output_iterator + // and https://en.cppreference.com/w/cpp/iterator/sentinel_for + // but reimplementing these would be too much work, as a lot of other concepts are used underneath + static constexpr auto is_iterator_begin = + is_iterator_traits>::value; + + public: + static constexpr bool value = !std::is_same::value && !std::is_same::value && is_iterator_begin; +}; + +template +using iterator_t = enable_if_t::value, result_of_begin())>>; + +template +using range_value_t = value_type_t>>; + +// The following implementation of is_complete_type is taken from +// https://blogs.msdn.microsoft.com/vcblog/2015/12/02/partial-support-for-expression-sfinae-in-vs-2015-update-1/ +// and is written by Xiang Fan who agreed to using it in this library. + +template +struct is_complete_type : std::false_type {}; + +template +struct is_complete_type : std::true_type {}; + +template +struct is_compatible_object_type_impl : std::false_type {}; + +template +struct is_compatible_object_type_impl < + BasicJsonType, CompatibleObjectType, + enable_if_t < is_detected::value&& + is_detected::value >> +{ + using object_t = typename BasicJsonType::object_t; + + // macOS's is_constructible does not play well with nonesuch... + static constexpr bool value = + is_constructible::value && + is_constructible::value; +}; + +template +struct is_compatible_object_type + : is_compatible_object_type_impl {}; + +template +struct is_constructible_object_type_impl : std::false_type {}; + +template +struct is_constructible_object_type_impl < + BasicJsonType, ConstructibleObjectType, + enable_if_t < is_detected::value&& + is_detected::value >> +{ + using object_t = typename BasicJsonType::object_t; + + static constexpr bool value = + (is_default_constructible::value && + (std::is_move_assignable::value || + std::is_copy_assignable::value) && + (is_constructible::value && + std::is_same < + typename object_t::mapped_type, + typename ConstructibleObjectType::mapped_type >::value)) || + (has_from_json::value || + has_non_default_from_json < + BasicJsonType, + typename ConstructibleObjectType::mapped_type >::value); +}; + +template +struct is_constructible_object_type + : is_constructible_object_type_impl {}; + +template +struct is_compatible_string_type +{ + static constexpr auto value = + is_constructible::value; +}; + +template +struct is_constructible_string_type +{ + // launder type through decltype() to fix compilation failure on ICPC +#ifdef __INTEL_COMPILER + using laundered_type = decltype(std::declval()); +#else + using laundered_type = ConstructibleStringType; +#endif + + static constexpr auto value = + conjunction < + is_constructible, + is_detected_exact>::value; +}; + +template +struct is_compatible_array_type_impl : std::false_type {}; + +template +struct is_compatible_array_type_impl < + BasicJsonType, CompatibleArrayType, + enable_if_t < + is_detected::value&& + is_iterator_traits>>::value&& +// special case for types like std::filesystem::path whose iterator's value_type are themselves +// c.f. https://github.com/nlohmann/json/pull/3073 + !std::is_same>::value >> +{ + static constexpr bool value = + is_constructible>::value; +}; + +template +struct is_compatible_array_type + : is_compatible_array_type_impl {}; + +template +struct is_constructible_array_type_impl : std::false_type {}; + +template +struct is_constructible_array_type_impl < + BasicJsonType, ConstructibleArrayType, + enable_if_t::value >> + : std::true_type {}; + +template +struct is_constructible_array_type_impl < + BasicJsonType, ConstructibleArrayType, + enable_if_t < !std::is_same::value&& + !is_compatible_string_type::value&& + is_default_constructible::value&& +(std::is_move_assignable::value || + std::is_copy_assignable::value)&& +is_detected::value&& +is_iterator_traits>>::value&& +is_detected::value&& +// special case for types like std::filesystem::path whose iterator's value_type are themselves +// c.f. https://github.com/nlohmann/json/pull/3073 +!std::is_same>::value&& +is_complete_type < +detected_t>::value >> +{ + using value_type = range_value_t; + + static constexpr bool value = + std::is_same::value || + has_from_json::value || + has_non_default_from_json < + BasicJsonType, + value_type >::value; +}; + +template +struct is_constructible_array_type + : is_constructible_array_type_impl {}; + +template +struct is_compatible_integer_type_impl : std::false_type {}; + +template +struct is_compatible_integer_type_impl < + RealIntegerType, CompatibleNumberIntegerType, + enable_if_t < std::is_integral::value&& + std::is_integral::value&& + !std::is_same::value >> +{ + // is there an assert somewhere on overflows? + using RealLimits = std::numeric_limits; + using CompatibleLimits = std::numeric_limits; + + static constexpr auto value = + is_constructible::value && + CompatibleLimits::is_integer && + RealLimits::is_signed == CompatibleLimits::is_signed; +}; + +template +struct is_compatible_integer_type + : is_compatible_integer_type_impl {}; + +template +struct is_compatible_type_impl: std::false_type {}; + +template +struct is_compatible_type_impl < + BasicJsonType, CompatibleType, + enable_if_t::value >> +{ + static constexpr bool value = + has_to_json::value; +}; + +template +struct is_compatible_type + : is_compatible_type_impl {}; + +template +struct is_constructible_tuple : std::false_type {}; + +template +struct is_constructible_tuple> : conjunction...> {}; + +template +struct is_json_iterator_of : std::false_type {}; + +template +struct is_json_iterator_of : std::true_type {}; + +template +struct is_json_iterator_of : std::true_type +{}; + +// checks if a given type T is a template specialization of Primary +template