pyapproxmc 4.1.24__tar.gz → 4.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyapproxmc-4.4.2/.clang-tidy +88 -0
- pyapproxmc-4.4.2/.github/workflows/build.yml +199 -0
- pyapproxmc-4.4.2/.github/workflows/nix.yml +23 -0
- pyapproxmc-4.4.2/.github/workflows/python-wheels.yml +91 -0
- pyapproxmc-4.4.2/.github/workflows/release.yml +189 -0
- pyapproxmc-4.4.2/.gitignore +16 -0
- pyapproxmc-4.4.2/.gitmodules +3 -0
- pyapproxmc-4.4.2/CLAUDE.md +65 -0
- pyapproxmc-4.4.2/CMakeLists.txt +667 -0
- pyapproxmc-4.4.2/MANIFEST.in +8 -0
- pyapproxmc-4.4.2/PKG-INFO +161 -0
- pyapproxmc-4.4.2/README.md +258 -0
- pyapproxmc-4.4.2/approxmcConfig.cmake.in +11 -0
- pyapproxmc-4.4.2/cmake/AddGTestSuite.cmake +26 -0
- pyapproxmc-4.4.2/cmake/AddSTPGTest.cmake +33 -0
- pyapproxmc-4.4.2/cmake/GetGitSHA1.cmake +44 -0
- pyapproxmc-4.4.2/cmake/approxmcConfig-buildtree.cmake.in +7 -0
- pyapproxmc-4.4.2/cmake/cmake_uninstall.cmake.in +24 -0
- pyapproxmc-4.4.2/flake.lock +184 -0
- pyapproxmc-4.4.2/flake.nix +115 -0
- pyapproxmc-4.4.2/html/index.html +251 -0
- pyapproxmc-4.4.2/html/rsync.sh +4 -0
- pyapproxmc-4.4.2/pyproject.toml +70 -0
- pyapproxmc-4.4.2/python/README.md +112 -0
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/python/src/pyapproxmc.cpp +99 -129
- pyapproxmc-4.4.2/python/tests/test.py +45 -0
- pyapproxmc-4.4.2/python/tests/test_1.cnf +999 -0
- pyapproxmc-4.4.2/python/tests/test_pyapproxmc.py +267 -0
- pyapproxmc-4.4.2/scripts/build_emscripten.sh +21 -0
- pyapproxmc-4.4.2/scripts/build_norm.sh +28 -0
- pyapproxmc-4.4.2/scripts/build_notest.sh +27 -0
- pyapproxmc-4.4.2/scripts/build_sanitize.sh +28 -0
- pyapproxmc-4.4.2/scripts/build_static.sh +30 -0
- pyapproxmc-4.4.2/scripts/build_static_release.sh +37 -0
- pyapproxmc-4.4.2/scripts/clean.sh +15 -0
- pyapproxmc-4.4.2/scripts/data/create_graphs_approxmc.py +653 -0
- pyapproxmc-4.4.2/scripts/data/get-unzip.sh +28 -0
- pyapproxmc-4.4.2/scripts/data/get_data_approxmc.py +306 -0
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/setup.cfg +0 -5
- pyapproxmc-4.4.2/setup.py +69 -0
- pyapproxmc-4.4.2/src/CMakeLists.txt +164 -0
- pyapproxmc-4.1.24/python/cryptominisat/python/src/GitSHA1.cpp → pyapproxmc-4.4.2/src/GitSHA1.cpp.in +17 -8
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/appmc_constants.cpp +5 -75
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/appmc_constants.h +14 -1
- pyapproxmc-4.1.24/src/config.h → pyapproxmc-4.4.2/src/appmcconfig.h +13 -6
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/approxmc.cpp +84 -63
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/approxmc.h +25 -31
- pyapproxmc-4.4.2/src/counter.cpp +978 -0
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/counter.h +43 -65
- pyapproxmc-4.4.2/src/main.cpp +406 -0
- {pyapproxmc-4.1.24/python/cryptominisat → pyapproxmc-4.4.2}/src/time_mem.h +18 -52
- pyapproxmc-4.4.2/tests/CMakeLists.txt +61 -0
- pyapproxmc-4.4.2/tests/gtest/.clang-format +4 -0
- pyapproxmc-4.4.2/tests/gtest/.github/ISSUE_TEMPLATE/00-bug_report.yml +53 -0
- pyapproxmc-4.4.2/tests/gtest/.github/ISSUE_TEMPLATE/10-feature_request.yml +33 -0
- pyapproxmc-4.4.2/tests/gtest/.github/ISSUE_TEMPLATE/config.yml +5 -0
- pyapproxmc-4.4.2/tests/gtest/.gitignore +89 -0
- pyapproxmc-4.4.2/tests/gtest/BUILD.bazel +250 -0
- pyapproxmc-4.4.2/tests/gtest/CMakeLists.txt +36 -0
- pyapproxmc-4.4.2/tests/gtest/CONTRIBUTING.md +141 -0
- pyapproxmc-4.4.2/tests/gtest/CONTRIBUTORS +66 -0
- pyapproxmc-4.4.2/tests/gtest/LICENSE +28 -0
- pyapproxmc-4.4.2/tests/gtest/MODULE.bazel +76 -0
- pyapproxmc-4.4.2/tests/gtest/README.md +145 -0
- pyapproxmc-4.4.2/tests/gtest/WORKSPACE +61 -0
- pyapproxmc-4.4.2/tests/gtest/WORKSPACE.bzlmod +35 -0
- pyapproxmc-4.4.2/tests/gtest/ci/linux-presubmit.sh +157 -0
- pyapproxmc-4.4.2/tests/gtest/ci/macos-presubmit.sh +80 -0
- pyapproxmc-4.4.2/tests/gtest/ci/windows-presubmit.bat +75 -0
- pyapproxmc-4.4.2/tests/gtest/docs/_config.yml +1 -0
- pyapproxmc-4.4.2/tests/gtest/docs/_data/navigation.yml +43 -0
- pyapproxmc-4.4.2/tests/gtest/docs/_layouts/default.html +58 -0
- pyapproxmc-4.4.2/tests/gtest/docs/_sass/main.scss +200 -0
- pyapproxmc-4.4.2/tests/gtest/docs/advanced.md +2466 -0
- pyapproxmc-4.4.2/tests/gtest/docs/assets/css/style.scss +5 -0
- pyapproxmc-4.4.2/tests/gtest/docs/community_created_documentation.md +7 -0
- pyapproxmc-4.4.2/tests/gtest/docs/faq.md +671 -0
- pyapproxmc-4.4.2/tests/gtest/docs/gmock_cheat_sheet.md +241 -0
- pyapproxmc-4.4.2/tests/gtest/docs/gmock_cook_book.md +4379 -0
- pyapproxmc-4.4.2/tests/gtest/docs/gmock_faq.md +390 -0
- pyapproxmc-4.4.2/tests/gtest/docs/gmock_for_dummies.md +702 -0
- pyapproxmc-4.4.2/tests/gtest/docs/index.md +22 -0
- pyapproxmc-4.4.2/tests/gtest/docs/pkgconfig.md +144 -0
- pyapproxmc-4.4.2/tests/gtest/docs/platforms.md +8 -0
- pyapproxmc-4.4.2/tests/gtest/docs/primer.md +482 -0
- pyapproxmc-4.4.2/tests/gtest/docs/quickstart-bazel.md +146 -0
- pyapproxmc-4.4.2/tests/gtest/docs/quickstart-cmake.md +157 -0
- pyapproxmc-4.4.2/tests/gtest/docs/reference/actions.md +116 -0
- pyapproxmc-4.4.2/tests/gtest/docs/reference/assertions.md +640 -0
- pyapproxmc-4.4.2/tests/gtest/docs/reference/matchers.md +305 -0
- pyapproxmc-4.4.2/tests/gtest/docs/reference/mocking.md +588 -0
- pyapproxmc-4.4.2/tests/gtest/docs/reference/testing.md +1550 -0
- pyapproxmc-4.4.2/tests/gtest/docs/samples.md +22 -0
- pyapproxmc-4.4.2/tests/gtest/fake_fuchsia_sdk.bzl +61 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/CMakeLists.txt +210 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/README.md +40 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/cmake/gmock.pc.in +10 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/cmake/gmock_main.pc.in +10 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/docs/README.md +4 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-actions.h +2377 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-cardinalities.h +159 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-function-mocker.h +519 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-matchers.h +5829 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-more-actions.h +659 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-more-matchers.h +120 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-nice-strict.h +277 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-spec-builders.h +2146 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock.h +97 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/README.md +18 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +7 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +37 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +40 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +484 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/gmock-port.h +140 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/gmock-pp.h +279 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-all.cc +46 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-cardinalities.cc +155 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-internal-utils.cc +258 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-matchers.cc +478 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-spec-builders.cc +792 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock.cc +225 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock_main.cc +73 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/BUILD.bazel +118 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-actions_test.cc +2217 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-cardinalities_test.cc +424 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-function-mocker_test.cc +998 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-internal-utils_test.cc +766 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-arithmetic_test.cc +1662 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-comparisons_test.cc +2427 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-containers_test.cc +3155 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-misc_test.cc +1882 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers_test.h +192 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-more-actions_test.cc +1617 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-nice-strict_test.cc +541 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-port_test.cc +42 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-pp-string_test.cc +205 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-pp_test.cc +83 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-spec-builders_test.cc +2599 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_all_test.cc +49 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_ex_test.cc +80 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_leak_test.py +113 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_leak_test_.cc +99 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_link2_test.cc +38 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_link_test.cc +38 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_link_test.h +693 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_output_test.py +190 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_output_test_.cc +286 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_output_test_golden.txt +335 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_stress_test.cc +227 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_test.cc +179 -0
- pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_test_utils.py +91 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/CMakeLists.txt +330 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/README.md +231 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/cmake/Config.cmake.in +13 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/cmake/gtest.pc.in +9 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/cmake/gtest_main.pc.in +10 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/cmake/internal_utils.cmake +334 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/cmake/libgtest.la.in +21 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/docs/README.md +4 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-assertion-result.h +244 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-death-test.h +345 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-matchers.h +923 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-message.h +251 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-param-test.h +602 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-printers.h +1236 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-spi.h +250 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-test-part.h +192 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-typed-test.h +331 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest.h +2338 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest_pred_impl.h +279 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest_prod.h +60 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/README.md +44 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/gtest-port.h +37 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/gtest.h +37 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +306 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-filepath.h +233 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-internal.h +1525 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-param-util.h +1064 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-port-arch.h +124 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-port.h +2482 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-string.h +178 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-type-util.h +220 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/prime_tables.h +125 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample1.cc +66 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample1.h +41 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample10_unittest.cc +138 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample1_unittest.cc +148 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample2.cc +54 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample2.h +79 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample2_unittest.cc +107 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample3-inl.h +171 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample3_unittest.cc +146 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample4.cc +50 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample4.h +53 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample4_unittest.cc +53 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample5_unittest.cc +189 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample6_unittest.cc +214 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample7_unittest.cc +113 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample8_unittest.cc +154 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample9_unittest.cc +148 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-all.cc +49 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-assertion-result.cc +77 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-death-test.cc +1587 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-filepath.cc +414 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-internal-inl.h +1234 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-matchers.cc +98 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-port.cc +1434 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-printers.cc +555 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-test-part.cc +106 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-typed-test.cc +108 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest.cc +7083 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest_main.cc +66 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/BUILD.bazel +629 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-break-on-failure-unittest.py +195 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-break-on-failure-unittest_.cc +83 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-catch-exceptions-test.py +315 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-catch-exceptions-test_.cc +289 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-color-test.py +130 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-color-test_.cc +60 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-death-test-test.cc +1512 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-death-test_ex_test.cc +91 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-env-var-test.py +120 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-env-var-test_.cc +130 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-fail-if-no-test-linked-test-with-disabled-test_.cc +38 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-fail-if-no-test-linked-test-with-enabled-test_.cc +38 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-fail-if-no-test-linked-test.py +169 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-failfast-unittest.py +461 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-failfast-unittest_.cc +166 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-filepath-test.cc +671 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-filter-unittest.py +765 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-filter-unittest_.cc +106 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-global-environment-unittest.py +141 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-global-environment-unittest_.cc +58 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-json-outfiles-test.py +180 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-json-output-unittest.py +914 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-list-tests-unittest.py +225 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-list-tests-unittest_.cc +143 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-listener-test.cc +509 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-message-test.cc +184 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-options-test.cc +225 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-output-test-golden-lin.txt +1201 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-output-test.py +385 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-output-test_.cc +1058 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name1-test_.cc +46 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name2-test.py +63 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name2-test_.cc +52 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-test.cc +1243 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-test.h +49 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test2-test.cc +58 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-port-test.cc +1301 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-printers-test.cc +2064 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-setuptestsuite-test.py +58 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-setuptestsuite-test_.cc +44 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-shuffle-test.py +378 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-shuffle-test_.cc +99 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-test-part-test.cc +220 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-throw-on-failure-test.py +166 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-uninitialized-test.py +70 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-uninitialized-test_.cc +39 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-typed-test2_test.cc +39 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-typed-test_test.cc +423 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-typed-test_test.h +57 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-unittest-api_test.cc +328 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_all_test.cc +46 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_assert_by_exception_test.cc +112 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_dirs_test.cc +101 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_environment_test.cc +187 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_help_test.py +183 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_help_test_.cc +44 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_json_test_utils.py +67 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_list_output_unittest.py +289 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_list_output_unittest_.cc +77 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_main_unittest.cc +42 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_no_test_unittest.cc +54 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_pred_impl_unittest.cc +2070 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_premature_exit_test.cc +128 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_prod_test.cc +56 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_repeat_test.cc +220 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_check_output_test.py +60 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_environment_check_output_test.py +55 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_in_environment_setup_test.cc +50 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_test.cc +51 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_sole_header_test.cc +54 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_stress_test.cc +245 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_test_utils.py +262 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_testbridge_test.py +63 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_testbridge_test_.cc +42 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +90 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_unittest.cc +7823 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_outfile1_test_.cc +43 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_outfile2_test_.cc +77 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_outfiles_test.py +147 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_output_unittest.py +513 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_output_unittest_.cc +217 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_test_utils.py +242 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/production.cc +35 -0
- pyapproxmc-4.4.2/tests/gtest/googletest/test/production.h +55 -0
- pyapproxmc-4.4.2/tests/gtest/googletest_deps.bzl +28 -0
- pyapproxmc-4.4.2/tests/simpletest.cpp +147 -0
- pyapproxmc-4.4.2/tests/test_helper.h +553 -0
- pyapproxmc-4.1.24/PKG-INFO +0 -107
- pyapproxmc-4.1.24/README.md +0 -185
- pyapproxmc-4.1.24/pyproject.toml +0 -24
- pyapproxmc-4.1.24/python/README.md +0 -61
- pyapproxmc-4.1.24/python/arjun/python/src/GitSHA1.cpp +0 -41
- pyapproxmc-4.1.24/python/arjun/src/GitSHA1.h +0 -34
- pyapproxmc-4.1.24/python/arjun/src/arjun.cpp +0 -650
- pyapproxmc-4.1.24/python/arjun/src/arjun.h +0 -168
- pyapproxmc-4.1.24/python/arjun/src/backward.cpp +0 -377
- pyapproxmc-4.1.24/python/arjun/src/common.cpp +0 -406
- pyapproxmc-4.1.24/python/arjun/src/common.h +0 -330
- pyapproxmc-4.1.24/python/arjun/src/config.h +0 -64
- pyapproxmc-4.1.24/python/arjun/src/simplify.cpp +0 -471
- pyapproxmc-4.1.24/python/arjun/src/time_mem.h +0 -143
- pyapproxmc-4.1.24/python/cryptominisat/src/GitSHA1.h +0 -29
- pyapproxmc-4.1.24/python/cryptominisat/src/Vec.h +0 -330
- pyapproxmc-4.1.24/python/cryptominisat/src/XAlloc.h +0 -47
- pyapproxmc-4.1.24/python/cryptominisat/src/alg.h +0 -43
- pyapproxmc-4.1.24/python/cryptominisat/src/avgcalc.h +0 -198
- pyapproxmc-4.1.24/python/cryptominisat/src/bitarray.h +0 -141
- pyapproxmc-4.1.24/python/cryptominisat/src/boundedqueue.h +0 -196
- pyapproxmc-4.1.24/python/cryptominisat/src/bva.cpp +0 -861
- pyapproxmc-4.1.24/python/cryptominisat/src/bva.h +0 -201
- pyapproxmc-4.1.24/python/cryptominisat/src/cardfinder.cpp +0 -416
- pyapproxmc-4.1.24/python/cryptominisat/src/cardfinder.h +0 -80
- pyapproxmc-4.1.24/python/cryptominisat/src/ccnr.cpp +0 -537
- pyapproxmc-4.1.24/python/cryptominisat/src/ccnr.h +0 -183
- pyapproxmc-4.1.24/python/cryptominisat/src/ccnr_cms.cpp +0 -369
- pyapproxmc-4.1.24/python/cryptominisat/src/ccnr_cms.h +0 -81
- pyapproxmc-4.1.24/python/cryptominisat/src/ccnr_mersenne.h +0 -190
- pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_abs.h +0 -119
- pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_lgbm.h +0 -79
- pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_py.h +0 -103
- pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_xgb.h +0 -82
- pyapproxmc-4.1.24/python/cryptominisat/src/clabstraction.h +0 -51
- pyapproxmc-4.1.24/python/cryptominisat/src/clause.h +0 -700
- pyapproxmc-4.1.24/python/cryptominisat/src/clauseallocator.cpp +0 -369
- pyapproxmc-4.1.24/python/cryptominisat/src/clauseallocator.h +0 -128
- pyapproxmc-4.1.24/python/cryptominisat/src/clausecleaner.cpp +0 -620
- pyapproxmc-4.1.24/python/cryptominisat/src/clausecleaner.h +0 -94
- pyapproxmc-4.1.24/python/cryptominisat/src/cloffset.h +0 -41
- pyapproxmc-4.1.24/python/cryptominisat/src/cms_bosphorus.h +0 -54
- pyapproxmc-4.1.24/python/cryptominisat/src/cms_breakid.h +0 -92
- pyapproxmc-4.1.24/python/cryptominisat/src/cms_windows_includes.h +0 -65
- pyapproxmc-4.1.24/python/cryptominisat/src/cnf.cpp +0 -1020
- pyapproxmc-4.1.24/python/cryptominisat/src/cnf.h +0 -820
- pyapproxmc-4.1.24/python/cryptominisat/src/community_finder.h +0 -46
- pyapproxmc-4.1.24/python/cryptominisat/src/completedetachreattacher.cpp +0 -220
- pyapproxmc-4.1.24/python/cryptominisat/src/completedetachreattacher.h +0 -85
- pyapproxmc-4.1.24/python/cryptominisat/src/constants.h +0 -201
- pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat.cpp +0 -1980
- pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat.h +0 -320
- pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat_c.cpp +0 -170
- pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat_c.h +0 -90
- pyapproxmc-4.1.24/python/cryptominisat/src/cset.h +0 -194
- pyapproxmc-4.1.24/python/cryptominisat/src/datasync.cpp +0 -880
- pyapproxmc-4.1.24/python/cryptominisat/src/datasync.h +0 -156
- pyapproxmc-4.1.24/python/cryptominisat/src/datasyncserver.h +0 -82
- pyapproxmc-4.1.24/python/cryptominisat/src/dimacsparser.h +0 -733
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerbin.cpp +0 -328
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerbin.h +0 -104
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerlitrem.cpp +0 -405
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerlitrem.h +0 -101
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerlong.cpp +0 -704
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerlong.h +0 -106
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerlongwithimpl.cpp +0 -532
- pyapproxmc-4.1.24/python/cryptominisat/src/distillerlongwithimpl.h +0 -181
- pyapproxmc-4.1.24/python/cryptominisat/src/frat.cpp +0 -25
- pyapproxmc-4.1.24/python/cryptominisat/src/frat.h +0 -491
- pyapproxmc-4.1.24/python/cryptominisat/src/gatefinder.cpp +0 -374
- pyapproxmc-4.1.24/python/cryptominisat/src/gatefinder.h +0 -165
- pyapproxmc-4.1.24/python/cryptominisat/src/gaussian.cpp +0 -1584
- pyapproxmc-4.1.24/python/cryptominisat/src/gaussian.h +0 -260
- pyapproxmc-4.1.24/python/cryptominisat/src/gausswatched.h +0 -56
- pyapproxmc-4.1.24/python/cryptominisat/src/get_clause_query.cpp +0 -366
- pyapproxmc-4.1.24/python/cryptominisat/src/get_clause_query.h +0 -77
- pyapproxmc-4.1.24/python/cryptominisat/src/gqueuedata.h +0 -51
- pyapproxmc-4.1.24/python/cryptominisat/src/hasher.h +0 -61
- pyapproxmc-4.1.24/python/cryptominisat/src/heap.h +0 -228
- pyapproxmc-4.1.24/python/cryptominisat/src/hyperengine.cpp +0 -684
- pyapproxmc-4.1.24/python/cryptominisat/src/hyperengine.h +0 -97
- pyapproxmc-4.1.24/python/cryptominisat/src/intree.cpp +0 -429
- pyapproxmc-4.1.24/python/cryptominisat/src/intree.h +0 -123
- pyapproxmc-4.1.24/python/cryptominisat/src/ipasir.h +0 -164
- pyapproxmc-4.1.24/python/cryptominisat/src/lucky.cpp +0 -327
- pyapproxmc-4.1.24/python/cryptominisat/src/lucky.h +0 -51
- pyapproxmc-4.1.24/python/cryptominisat/src/main.h +0 -120
- pyapproxmc-4.1.24/python/cryptominisat/src/main_common.h +0 -47
- pyapproxmc-4.1.24/python/cryptominisat/src/matrixfinder.cpp +0 -426
- pyapproxmc-4.1.24/python/cryptominisat/src/matrixfinder.h +0 -94
- pyapproxmc-4.1.24/python/cryptominisat/src/msvc/stdint.h +0 -247
- pyapproxmc-4.1.24/python/cryptominisat/src/mystack.h +0 -77
- pyapproxmc-4.1.24/python/cryptominisat/src/nomutex.h +0 -60
- pyapproxmc-4.1.24/python/cryptominisat/src/occsimplifier.cpp +0 -5574
- pyapproxmc-4.1.24/python/cryptominisat/src/occsimplifier.h +0 -712
- pyapproxmc-4.1.24/python/cryptominisat/src/oracle/oracle.cpp +0 -935
- pyapproxmc-4.1.24/python/cryptominisat/src/oracle/oracle.h +0 -227
- pyapproxmc-4.1.24/python/cryptominisat/src/oracle/utils.h +0 -91
- pyapproxmc-4.1.24/python/cryptominisat/src/packedmatrix.h +0 -201
- pyapproxmc-4.1.24/python/cryptominisat/src/packedrow.cpp +0 -219
- pyapproxmc-4.1.24/python/cryptominisat/src/packedrow.h +0 -320
- pyapproxmc-4.1.24/python/cryptominisat/src/picosat/pico_config.h +0 -3
- pyapproxmc-4.1.24/python/cryptominisat/src/picosat/picosat.c +0 -8504
- pyapproxmc-4.1.24/python/cryptominisat/src/picosat/picosat.h +0 -661
- pyapproxmc-4.1.24/python/cryptominisat/src/picosat/version.c +0 -14
- pyapproxmc-4.1.24/python/cryptominisat/src/predict_func_type.h +0 -39
- pyapproxmc-4.1.24/python/cryptominisat/src/propby.h +0 -346
- pyapproxmc-4.1.24/python/cryptominisat/src/propby_backup.h +0 -232
- pyapproxmc-4.1.24/python/cryptominisat/src/propbyforgraph.h +0 -151
- pyapproxmc-4.1.24/python/cryptominisat/src/propengine.cpp +0 -1033
- pyapproxmc-4.1.24/python/cryptominisat/src/propengine.h +0 -745
- pyapproxmc-4.1.24/python/cryptominisat/src/reducedb.cpp +0 -1385
- pyapproxmc-4.1.24/python/cryptominisat/src/reducedb.h +0 -145
- pyapproxmc-4.1.24/python/cryptominisat/src/satzilla_features.h +0 -127
- pyapproxmc-4.1.24/python/cryptominisat/src/satzilla_features_calc.h +0 -82
- pyapproxmc-4.1.24/python/cryptominisat/src/sccfinder.cpp +0 -207
- pyapproxmc-4.1.24/python/cryptominisat/src/sccfinder.h +0 -164
- pyapproxmc-4.1.24/python/cryptominisat/src/searcher.cpp +0 -3999
- pyapproxmc-4.1.24/python/cryptominisat/src/searcher.h +0 -650
- pyapproxmc-4.1.24/python/cryptominisat/src/searchhist.h +0 -160
- pyapproxmc-4.1.24/python/cryptominisat/src/searchstats.cpp +0 -308
- pyapproxmc-4.1.24/python/cryptominisat/src/searchstats.h +0 -107
- pyapproxmc-4.1.24/python/cryptominisat/src/shareddata.h +0 -120
- pyapproxmc-4.1.24/python/cryptominisat/src/signalcode.h +0 -38
- pyapproxmc-4.1.24/python/cryptominisat/src/simplefile.h +0 -173
- pyapproxmc-4.1.24/python/cryptominisat/src/sls.cpp +0 -99
- pyapproxmc-4.1.24/python/cryptominisat/src/sls.h +0 -47
- pyapproxmc-4.1.24/python/cryptominisat/src/solutionextender.cpp +0 -213
- pyapproxmc-4.1.24/python/cryptominisat/src/solutionextender.h +0 -72
- pyapproxmc-4.1.24/python/cryptominisat/src/solver.cpp +0 -5625
- pyapproxmc-4.1.24/python/cryptominisat/src/solver.h +0 -701
- pyapproxmc-4.1.24/python/cryptominisat/src/solverconf.cpp +0 -437
- pyapproxmc-4.1.24/python/cryptominisat/src/solverconf.h +0 -526
- pyapproxmc-4.1.24/python/cryptominisat/src/solvertypes.h +0 -512
- pyapproxmc-4.1.24/python/cryptominisat/src/solvertypesmini.h +0 -394
- pyapproxmc-4.1.24/python/cryptominisat/src/sql_tablestructure.h +0 -27
- pyapproxmc-4.1.24/python/cryptominisat/src/sqlitestats.h +0 -224
- pyapproxmc-4.1.24/python/cryptominisat/src/sqlstats.h +0 -174
- pyapproxmc-4.1.24/python/cryptominisat/src/str_impl_w_impl.cpp +0 -212
- pyapproxmc-4.1.24/python/cryptominisat/src/str_impl_w_impl.h +0 -91
- pyapproxmc-4.1.24/python/cryptominisat/src/streambuffer.h +0 -236
- pyapproxmc-4.1.24/python/cryptominisat/src/subsumeimplicit.cpp +0 -231
- pyapproxmc-4.1.24/python/cryptominisat/src/subsumeimplicit.h +0 -98
- pyapproxmc-4.1.24/python/cryptominisat/src/subsumestrengthen.cpp +0 -1088
- pyapproxmc-4.1.24/python/cryptominisat/src/subsumestrengthen.h +0 -158
- pyapproxmc-4.1.24/python/cryptominisat/src/touchlist.h +0 -183
- pyapproxmc-4.1.24/python/cryptominisat/src/trim.h +0 -44
- pyapproxmc-4.1.24/python/cryptominisat/src/vardata.h +0 -194
- pyapproxmc-4.1.24/python/cryptominisat/src/vardistgen.h +0 -70
- pyapproxmc-4.1.24/python/cryptominisat/src/varreplacer.cpp +0 -1352
- pyapproxmc-4.1.24/python/cryptominisat/src/varreplacer.h +0 -347
- pyapproxmc-4.1.24/python/cryptominisat/src/varupdatehelper.h +0 -142
- pyapproxmc-4.1.24/python/cryptominisat/src/vmtf.h +0 -96
- pyapproxmc-4.1.24/python/cryptominisat/src/watchalgos.h +0 -198
- pyapproxmc-4.1.24/python/cryptominisat/src/watcharray.h +0 -195
- pyapproxmc-4.1.24/python/cryptominisat/src/watcharray_handrolled.h +0 -552
- pyapproxmc-4.1.24/python/cryptominisat/src/watched.h +0 -355
- pyapproxmc-4.1.24/python/cryptominisat/src/xor.h +0 -221
- pyapproxmc-4.1.24/python/cryptominisat/src/xorfinder.cpp +0 -913
- pyapproxmc-4.1.24/python/cryptominisat/src/xorfinder.h +0 -376
- pyapproxmc-4.1.24/setup.py +0 -127
- pyapproxmc-4.1.24/src/counter.cpp +0 -842
- pyapproxmc-4.1.24/src/pyapproxmc.egg-info/PKG-INFO +0 -107
- pyapproxmc-4.1.24/src/pyapproxmc.egg-info/SOURCES.txt +0 -177
- pyapproxmc-4.1.24/src/time_mem.h +0 -143
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/LICENSE +0 -0
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/python/src/GitSHA1.cpp +0 -0
- {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/GitSHA1.h +0 -0
- {pyapproxmc-4.1.24/python/cryptominisat → pyapproxmc-4.4.2}/src/argparse.hpp +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Checks: >
|
|
2
|
+
-clang-analyzer-core.NonNullParamChecker,
|
|
3
|
+
-clang-analyzer-optin.cplusplus.UninitializedObject,
|
|
4
|
+
bugprone-assert-side-effect,
|
|
5
|
+
-bugprone-implicit-widening-of-multiplication-result,
|
|
6
|
+
-bugprone-narrowing-conversions,
|
|
7
|
+
bugprone-unused-raii,
|
|
8
|
+
bugprone-use-after-move,
|
|
9
|
+
clang-analyzer-core.DivideZero,
|
|
10
|
+
misc-unused-using-decls,
|
|
11
|
+
modernize-deprecated-headers,
|
|
12
|
+
modernize-loop-convert,
|
|
13
|
+
modernize-make-shared,
|
|
14
|
+
modernize-make-unique,
|
|
15
|
+
# modernize-return-braced-init-list,
|
|
16
|
+
modernize-use-default-member-init,
|
|
17
|
+
modernize-use-emplace,
|
|
18
|
+
modernize-use-equals-default,
|
|
19
|
+
modernize-use-nodiscard,
|
|
20
|
+
modernize-use-nullptr,
|
|
21
|
+
modernize-use-override,
|
|
22
|
+
modernize-use-using,
|
|
23
|
+
-performance-avoid-endl,
|
|
24
|
+
performance-faster-string-find,
|
|
25
|
+
performance-for-range-copy,
|
|
26
|
+
performance-inefficient-algorithm,
|
|
27
|
+
performance-inefficient-vector-operation,
|
|
28
|
+
performance-noexcept-move-constructor,
|
|
29
|
+
performance-move-constructor-init,
|
|
30
|
+
performance-type-promotion-in-math-fn,
|
|
31
|
+
performance-unnecessary-copy-initialization,
|
|
32
|
+
readability-const-return-type,
|
|
33
|
+
readability-container-size-empty,
|
|
34
|
+
readability-convert-member-functions-to-static,
|
|
35
|
+
readability-else-after-return,
|
|
36
|
+
readability-identifier-naming,
|
|
37
|
+
readability-make-member-function-const,
|
|
38
|
+
readability-qualified-auto,
|
|
39
|
+
readability-redundant-control-flow,
|
|
40
|
+
readability-redundant-member-init,
|
|
41
|
+
readability-redundant-smartptr-get,
|
|
42
|
+
readability-redundant-string-cstr,
|
|
43
|
+
readability-simplify-boolean-expr
|
|
44
|
+
|
|
45
|
+
CheckOptions:
|
|
46
|
+
- key: bugprone-assert-side-effect.AssertMacros
|
|
47
|
+
value: 'ASSERT'
|
|
48
|
+
- key: readability-identifier-naming.ClassCase
|
|
49
|
+
value: 'CamelCase'
|
|
50
|
+
- key: readability-identifier-naming.EnumCase
|
|
51
|
+
value: 'CamelCase'
|
|
52
|
+
- key: readability-identifier-naming.FunctionCase
|
|
53
|
+
value: 'lower_case'
|
|
54
|
+
- key: readability-identifier-naming.FunctionIgnoredRegexp
|
|
55
|
+
value: >-
|
|
56
|
+
(^.*nVars.*$|
|
|
57
|
+
|^.*limitK$|
|
|
58
|
+
|^.*limitM$)
|
|
59
|
+
- key: readability-identifier-naming.ParameterCase
|
|
60
|
+
value: 'lower_case'
|
|
61
|
+
- key: readability-identifier-naming.ParameterIgnoredRegexp
|
|
62
|
+
value: >-
|
|
63
|
+
(^_.*$|
|
|
64
|
+
|^.*limitK$|
|
|
65
|
+
|^.*limitM$)
|
|
66
|
+
- key: readability-identifier-naming.PrivateMemberCase
|
|
67
|
+
value: 'lower_case'
|
|
68
|
+
# - key: readability-identifier-naming.PrivateMemberSuffix
|
|
69
|
+
# value: '_'
|
|
70
|
+
- key: readability-identifier-naming.StructCase
|
|
71
|
+
value: 'CamelCase'
|
|
72
|
+
|
|
73
|
+
- key: readability-identifier-naming.UnionCase
|
|
74
|
+
value: 'CamelCase'
|
|
75
|
+
- key: readability-identifier-naming.VariableCase
|
|
76
|
+
value: 'lower_case'
|
|
77
|
+
|
|
78
|
+
HeaderFilterRegex: '^./src/.*'
|
|
79
|
+
|
|
80
|
+
UseColor: true
|
|
81
|
+
|
|
82
|
+
WarningsAsErrors: ''
|
|
83
|
+
|
|
84
|
+
## The version here is arbitrary since any change to this file will
|
|
85
|
+
## trigger a full run of clang-tidy against all files.
|
|
86
|
+
## It can be useful as it seems some header changes may not trigger the
|
|
87
|
+
## expected rerun.
|
|
88
|
+
# v0
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "*" ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ${{ matrix.os }}
|
|
12
|
+
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: true
|
|
15
|
+
|
|
16
|
+
matrix:
|
|
17
|
+
os: [ubuntu-latest, macos-15, ubuntu-24.04-arm, macos-15-intel, windows-latest]
|
|
18
|
+
build_type: [Release]
|
|
19
|
+
shared_libs: [ON, OFF]
|
|
20
|
+
exclude:
|
|
21
|
+
# Windows only builds statically: the shared build scatters DLLs
|
|
22
|
+
# across _deps subdirs so approxmc.exe can't find them at runtime.
|
|
23
|
+
- os: windows-latest
|
|
24
|
+
shared_libs: ON
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- name: Set up MSYS2
|
|
28
|
+
if: contains(matrix.os, 'windows')
|
|
29
|
+
uses: msys2/setup-msys2@v2
|
|
30
|
+
with:
|
|
31
|
+
msystem: MINGW64
|
|
32
|
+
update: true
|
|
33
|
+
install: >-
|
|
34
|
+
mingw-w64-x86_64-gcc
|
|
35
|
+
mingw-w64-x86_64-cmake
|
|
36
|
+
mingw-w64-x86_64-ninja
|
|
37
|
+
mingw-w64-x86_64-gmp
|
|
38
|
+
mingw-w64-x86_64-mpfr
|
|
39
|
+
mingw-w64-x86_64-zlib
|
|
40
|
+
mingw-w64-x86_64-pkgconf
|
|
41
|
+
make
|
|
42
|
+
|
|
43
|
+
- uses: actions/setup-python@v5
|
|
44
|
+
if: "!contains(matrix.os, 'windows')"
|
|
45
|
+
with:
|
|
46
|
+
python-version: '3.10'
|
|
47
|
+
|
|
48
|
+
- name: Install python dependencies
|
|
49
|
+
if: "!contains(matrix.os, 'windows')"
|
|
50
|
+
run: |
|
|
51
|
+
pip install numpy lit
|
|
52
|
+
|
|
53
|
+
- name: Install gmp for Mac
|
|
54
|
+
if: contains(matrix.os, 'macos')
|
|
55
|
+
run: brew install gmp
|
|
56
|
+
|
|
57
|
+
- name: Install zlib for Mac dynamic
|
|
58
|
+
if: contains(matrix.os, 'macos') && matrix.shared_libs == 'ON'
|
|
59
|
+
run: |
|
|
60
|
+
wget https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
|
|
61
|
+
tar xzvf zlib-1.3.1.tar.gz
|
|
62
|
+
cd zlib-1.3.1
|
|
63
|
+
./configure
|
|
64
|
+
make -j8
|
|
65
|
+
sudo make install
|
|
66
|
+
cd ..
|
|
67
|
+
|
|
68
|
+
- name: Install zlib for Mac static
|
|
69
|
+
if: contains(matrix.os, 'macos') && matrix.shared_libs == 'OFF'
|
|
70
|
+
run: |
|
|
71
|
+
wget https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
|
|
72
|
+
tar xzvf zlib-1.3.1.tar.gz
|
|
73
|
+
cd zlib-1.3.1
|
|
74
|
+
./configure --static
|
|
75
|
+
make -j8
|
|
76
|
+
sudo make install
|
|
77
|
+
cd ..
|
|
78
|
+
|
|
79
|
+
- name: Install mpfr for Mac
|
|
80
|
+
if: contains(matrix.os, 'macos')
|
|
81
|
+
run: brew install mpfr
|
|
82
|
+
|
|
83
|
+
- name: Install dependencies for Linux
|
|
84
|
+
if: contains(matrix.os, 'ubuntu')
|
|
85
|
+
run: sudo apt-get update && sudo apt-get install -yq help2man libgmp-dev libmpfr-dev
|
|
86
|
+
|
|
87
|
+
- name: Setup ccache
|
|
88
|
+
if: "!contains(matrix.os, 'windows')"
|
|
89
|
+
uses: hendrikmuhs/ccache-action@v1
|
|
90
|
+
with:
|
|
91
|
+
key: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.shared_libs }}
|
|
92
|
+
max-size: 1G
|
|
93
|
+
|
|
94
|
+
- uses: actions/checkout@v4
|
|
95
|
+
with:
|
|
96
|
+
path: project
|
|
97
|
+
submodules: 'true'
|
|
98
|
+
|
|
99
|
+
- name: Build project (non-Windows)
|
|
100
|
+
if: "!contains(matrix.os, 'windows')"
|
|
101
|
+
run: |
|
|
102
|
+
cd project
|
|
103
|
+
mkdir -p build && cd build
|
|
104
|
+
cmake \
|
|
105
|
+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
|
106
|
+
-DBUILD_SHARED_LIBS=${{ matrix.shared_libs }} \
|
|
107
|
+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
|
108
|
+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
|
109
|
+
-S ..
|
|
110
|
+
cmake --build . --config ${{matrix.build_type}} -v
|
|
111
|
+
|
|
112
|
+
- name: Build project (Windows)
|
|
113
|
+
if: contains(matrix.os, 'windows')
|
|
114
|
+
shell: msys2 {0}
|
|
115
|
+
run: |
|
|
116
|
+
cd project
|
|
117
|
+
mkdir -p build && cd build
|
|
118
|
+
cmake \
|
|
119
|
+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
|
120
|
+
-DBUILD_SHARED_LIBS=${{ matrix.shared_libs }} \
|
|
121
|
+
-G Ninja \
|
|
122
|
+
-S ..
|
|
123
|
+
cmake --build . --config ${{matrix.build_type}} -v
|
|
124
|
+
|
|
125
|
+
- name: Test
|
|
126
|
+
if: "!contains(matrix.os, 'windows')"
|
|
127
|
+
run: ctest -C ${{matrix.build_type}} --verbose
|
|
128
|
+
|
|
129
|
+
- name: run it to check it executes (non-Windows)
|
|
130
|
+
if: "!contains(matrix.os, 'windows')"
|
|
131
|
+
run: |
|
|
132
|
+
echo "Running version command"
|
|
133
|
+
./project/build/approxmc --version
|
|
134
|
+
echo $?
|
|
135
|
+
echo "Running help command"
|
|
136
|
+
./project/build/approxmc --help
|
|
137
|
+
echo $?
|
|
138
|
+
|
|
139
|
+
- name: run it to check it executes (Windows)
|
|
140
|
+
if: contains(matrix.os, 'windows')
|
|
141
|
+
shell: msys2 {0}
|
|
142
|
+
run: |
|
|
143
|
+
EXE=./project/build/approxmc.exe
|
|
144
|
+
echo "Running: $EXE --version"
|
|
145
|
+
$EXE --version
|
|
146
|
+
echo $?
|
|
147
|
+
echo "Running: $EXE --help"
|
|
148
|
+
$EXE --help
|
|
149
|
+
echo $?
|
|
150
|
+
|
|
151
|
+
- name: Upload Artifact - Linux
|
|
152
|
+
if: matrix.os == 'ubuntu-latest' && matrix.shared_libs == 'OFF'
|
|
153
|
+
uses: actions/upload-artifact@v4
|
|
154
|
+
with:
|
|
155
|
+
name: approxmc-linux-amd64
|
|
156
|
+
path: |
|
|
157
|
+
project/build/approxmc
|
|
158
|
+
project/build/lib/*
|
|
159
|
+
project/build/include/*
|
|
160
|
+
|
|
161
|
+
- name: Upload Artifact - Linux arm
|
|
162
|
+
if: matrix.os == 'ubuntu-24.04-arm' && matrix.shared_libs == 'OFF'
|
|
163
|
+
uses: actions/upload-artifact@v4
|
|
164
|
+
with:
|
|
165
|
+
name: approxmc-linux-arm64
|
|
166
|
+
path: |
|
|
167
|
+
project/build/approxmc
|
|
168
|
+
project/build/lib/*
|
|
169
|
+
project/build/include/*
|
|
170
|
+
|
|
171
|
+
- name: Upload Artifact - Mac arm
|
|
172
|
+
if: matrix.os == 'macos-15' && matrix.shared_libs == 'OFF'
|
|
173
|
+
uses: actions/upload-artifact@v4
|
|
174
|
+
with:
|
|
175
|
+
name: approxmc-mac-arm64
|
|
176
|
+
path: |
|
|
177
|
+
project/build/approxmc
|
|
178
|
+
project/build/lib/*
|
|
179
|
+
project/build/include/*
|
|
180
|
+
|
|
181
|
+
- name: Upload Artifact - Mac x86
|
|
182
|
+
if: matrix.os == 'macos-15-intel' && matrix.shared_libs == 'OFF'
|
|
183
|
+
uses: actions/upload-artifact@v4
|
|
184
|
+
with:
|
|
185
|
+
name: approxmc-mac-x86_64
|
|
186
|
+
path: |
|
|
187
|
+
project/build/approxmc
|
|
188
|
+
project/build/lib/*
|
|
189
|
+
project/build/include/*
|
|
190
|
+
|
|
191
|
+
- name: Upload Artifact - Windows
|
|
192
|
+
if: matrix.os == 'windows-latest' && matrix.shared_libs == 'OFF'
|
|
193
|
+
uses: actions/upload-artifact@v4
|
|
194
|
+
with:
|
|
195
|
+
name: approxmc-windows-x86_64
|
|
196
|
+
path: |
|
|
197
|
+
project/build/approxmc.exe
|
|
198
|
+
project/build/lib/*
|
|
199
|
+
project/build/include/*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: nix build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "*" ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
tests:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: cachix/install-nix-action@v31
|
|
15
|
+
with:
|
|
16
|
+
install_url: https://releases.nixos.org/nix/nix-2.26.3/install
|
|
17
|
+
nix_path: nixpkgs=channel:nixos-unstable
|
|
18
|
+
- uses: cachix/cachix-action@v14
|
|
19
|
+
with:
|
|
20
|
+
name: msoos
|
|
21
|
+
# If you chose API tokens for write access OR if you have a private cache
|
|
22
|
+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
23
|
+
- run: nix build
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: Build and publish Python wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["master"]
|
|
6
|
+
tags:
|
|
7
|
+
- 'release/v[0-9]+.[0-9]+.[0-9]+'
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: ["*"]
|
|
10
|
+
workflow_dispatch: # allow manual test-runs without a tag
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build_wheels:
|
|
14
|
+
name: Wheels on ${{ matrix.os }}
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: true
|
|
18
|
+
matrix:
|
|
19
|
+
# Each runner builds for its native architecture.
|
|
20
|
+
# Linux aarch64 uses a native ARM GitHub-hosted runner.
|
|
21
|
+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-15]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
with:
|
|
26
|
+
submodules: 'true'
|
|
27
|
+
|
|
28
|
+
- name: Install GMP (macOS)
|
|
29
|
+
if: contains(matrix.os, 'macos')
|
|
30
|
+
run: |
|
|
31
|
+
brew install gmp || true
|
|
32
|
+
|
|
33
|
+
- name: Cache ccache
|
|
34
|
+
uses: actions/cache@v4
|
|
35
|
+
with:
|
|
36
|
+
# Linux builds happen inside Docker; CCACHE_DIR is set to /project/.ccache
|
|
37
|
+
# (= .ccache relative to the checkout) so the host can cache it.
|
|
38
|
+
# macOS builds are native; ccache uses ~/.ccache by default.
|
|
39
|
+
path: |
|
|
40
|
+
.ccache
|
|
41
|
+
~/.ccache
|
|
42
|
+
key: ccache-wheels-${{ matrix.os }}-${{ github.sha }}
|
|
43
|
+
restore-keys: ccache-wheels-${{ matrix.os }}-
|
|
44
|
+
|
|
45
|
+
- name: Build wheels
|
|
46
|
+
uses: pypa/cibuildwheel@v3.1.0
|
|
47
|
+
# All cibuildwheel settings live in [tool.cibuildwheel] in pyproject.toml.
|
|
48
|
+
# The only per-runner override needed is the arch selector:
|
|
49
|
+
env:
|
|
50
|
+
CIBW_ARCHS_LINUX: native # x86_64 on ubuntu-latest, aarch64 on ubuntu-24.04-arm
|
|
51
|
+
CIBW_ARCHS_MACOS: native # arm64 on macos-15, x86_64 on macos-15-intel
|
|
52
|
+
|
|
53
|
+
- uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: wheels-${{ matrix.os }}
|
|
56
|
+
path: wheelhouse/*.whl
|
|
57
|
+
|
|
58
|
+
build_sdist:
|
|
59
|
+
name: Source distribution
|
|
60
|
+
runs-on: ubuntu-latest
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v4
|
|
63
|
+
with:
|
|
64
|
+
submodules: 'true'
|
|
65
|
+
|
|
66
|
+
- name: Build sdist
|
|
67
|
+
run: pipx run build --sdist
|
|
68
|
+
|
|
69
|
+
- uses: actions/upload-artifact@v4
|
|
70
|
+
with:
|
|
71
|
+
name: sdist
|
|
72
|
+
path: dist/*.tar.gz
|
|
73
|
+
|
|
74
|
+
publish:
|
|
75
|
+
name: Publish to PyPI
|
|
76
|
+
needs: [build_wheels, build_sdist]
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
# Publish on version tags (v...) or release tags (release/v...); not on branch pushes or workflow_dispatch.
|
|
79
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/release/v')
|
|
80
|
+
environment: pypi
|
|
81
|
+
permissions:
|
|
82
|
+
id-token: write # required for OIDC trusted publishing
|
|
83
|
+
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/download-artifact@v4
|
|
86
|
+
with:
|
|
87
|
+
path: dist
|
|
88
|
+
merge-multiple: true
|
|
89
|
+
|
|
90
|
+
- name: Publish to PyPI
|
|
91
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'release/v[0-9]+.[0-9]+.[0-9]+'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ${{ matrix.os }}
|
|
11
|
+
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: true
|
|
14
|
+
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest, macos-15, ubuntu-24.04-arm, macos-15-intel, windows-latest]
|
|
17
|
+
build_type: [Release]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Set up MSYS2
|
|
21
|
+
if: contains(matrix.os, 'windows')
|
|
22
|
+
uses: msys2/setup-msys2@v2
|
|
23
|
+
with:
|
|
24
|
+
msystem: MINGW64
|
|
25
|
+
update: true
|
|
26
|
+
install: >-
|
|
27
|
+
mingw-w64-x86_64-gcc
|
|
28
|
+
mingw-w64-x86_64-cmake
|
|
29
|
+
mingw-w64-x86_64-ninja
|
|
30
|
+
mingw-w64-x86_64-gmp
|
|
31
|
+
mingw-w64-x86_64-mpfr
|
|
32
|
+
mingw-w64-x86_64-zlib
|
|
33
|
+
mingw-w64-x86_64-pkgconf
|
|
34
|
+
make
|
|
35
|
+
zip
|
|
36
|
+
|
|
37
|
+
- name: Install dependencies for Linux
|
|
38
|
+
if: contains(matrix.os, 'ubuntu')
|
|
39
|
+
run: sudo apt-get update && sudo apt-get install -yq help2man libgmp-dev libmpfr-dev
|
|
40
|
+
|
|
41
|
+
- name: Install gmp for Mac
|
|
42
|
+
if: contains(matrix.os, 'macos')
|
|
43
|
+
run: brew install gmp
|
|
44
|
+
|
|
45
|
+
- name: Install zlib for Mac static
|
|
46
|
+
if: contains(matrix.os, 'macos')
|
|
47
|
+
run: |
|
|
48
|
+
wget https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
|
|
49
|
+
tar xzvf zlib-1.3.1.tar.gz
|
|
50
|
+
cd zlib-1.3.1
|
|
51
|
+
./configure --static
|
|
52
|
+
make -j8
|
|
53
|
+
sudo make install
|
|
54
|
+
cd ..
|
|
55
|
+
|
|
56
|
+
- name: Install mpfr for Mac
|
|
57
|
+
if: contains(matrix.os, 'macos')
|
|
58
|
+
run: brew install mpfr
|
|
59
|
+
|
|
60
|
+
- name: checkout
|
|
61
|
+
uses: actions/checkout@v4
|
|
62
|
+
with:
|
|
63
|
+
path: project
|
|
64
|
+
submodules: 'true'
|
|
65
|
+
|
|
66
|
+
- name: Build project (non-Windows)
|
|
67
|
+
if: "!contains(matrix.os, 'windows')"
|
|
68
|
+
run: |
|
|
69
|
+
cd project
|
|
70
|
+
mkdir -p build && cd build
|
|
71
|
+
cmake \
|
|
72
|
+
-DENABLE_TESTING=OFF \
|
|
73
|
+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
|
74
|
+
-DBUILD_SHARED_LIBS=OFF \
|
|
75
|
+
-S ..
|
|
76
|
+
cmake --build . --config ${{ matrix.build_type }} -v
|
|
77
|
+
|
|
78
|
+
- name: Build project (Windows)
|
|
79
|
+
if: contains(matrix.os, 'windows')
|
|
80
|
+
shell: msys2 {0}
|
|
81
|
+
run: |
|
|
82
|
+
cd project
|
|
83
|
+
mkdir -p build && cd build
|
|
84
|
+
cmake \
|
|
85
|
+
-DENABLE_TESTING=OFF \
|
|
86
|
+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
|
87
|
+
-DBUILD_SHARED_LIBS=OFF \
|
|
88
|
+
-G Ninja \
|
|
89
|
+
-S ..
|
|
90
|
+
cmake --build . --config ${{ matrix.build_type }} -v
|
|
91
|
+
|
|
92
|
+
- name: run it to check it executes (non-Windows)
|
|
93
|
+
if: "!contains(matrix.os, 'windows')"
|
|
94
|
+
run: |
|
|
95
|
+
./project/build/approxmc --version
|
|
96
|
+
echo $?
|
|
97
|
+
./project/build/approxmc --help
|
|
98
|
+
echo $?
|
|
99
|
+
|
|
100
|
+
- name: run it to check it executes (Windows)
|
|
101
|
+
if: contains(matrix.os, 'windows')
|
|
102
|
+
shell: msys2 {0}
|
|
103
|
+
run: |
|
|
104
|
+
EXE=./project/build/approxmc.exe
|
|
105
|
+
echo "Running: $EXE --version"
|
|
106
|
+
$EXE --version
|
|
107
|
+
echo $?
|
|
108
|
+
echo "Running: $EXE --help"
|
|
109
|
+
$EXE --help
|
|
110
|
+
echo $?
|
|
111
|
+
|
|
112
|
+
- name: Check the binary is statically linked (Linux)
|
|
113
|
+
if: contains(matrix.os, 'ubuntu')
|
|
114
|
+
run: |
|
|
115
|
+
file ./project/build/approxmc
|
|
116
|
+
if ! file ./project/build/approxmc | grep -q "statically linked"; then
|
|
117
|
+
echo "ERROR: approxmc is not statically linked"
|
|
118
|
+
ldd ./project/build/approxmc || true
|
|
119
|
+
exit 1
|
|
120
|
+
fi
|
|
121
|
+
|
|
122
|
+
- name: Package artifacts (non-Windows)
|
|
123
|
+
if: "!contains(matrix.os, 'windows')"
|
|
124
|
+
run: |
|
|
125
|
+
TAG="${{ github.ref_name }}"
|
|
126
|
+
TAG="${TAG#release/}"
|
|
127
|
+
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
|
|
128
|
+
ARCH="linux-amd64"
|
|
129
|
+
elif [[ "${{ matrix.os }}" == "ubuntu-24.04-arm" ]]; then
|
|
130
|
+
ARCH="linux-arm64"
|
|
131
|
+
elif [[ "${{ matrix.os }}" == "macos-15" ]]; then
|
|
132
|
+
ARCH="mac-arm64"
|
|
133
|
+
elif [[ "${{ matrix.os }}" == "macos-15-intel" ]]; then
|
|
134
|
+
ARCH="mac-x86_64"
|
|
135
|
+
fi
|
|
136
|
+
ARCHIVE="approxmc-${TAG}-${ARCH}.tar.gz"
|
|
137
|
+
mkdir -p dist
|
|
138
|
+
cp project/build/approxmc dist/
|
|
139
|
+
cp -r project/build/lib dist/ 2>/dev/null || true
|
|
140
|
+
cp -r project/build/include dist/ 2>/dev/null || true
|
|
141
|
+
tar czf "${ARCHIVE}" -C dist .
|
|
142
|
+
echo "ARCHIVE=${ARCHIVE}" >> $GITHUB_ENV
|
|
143
|
+
|
|
144
|
+
- name: Package artifacts (Windows)
|
|
145
|
+
if: contains(matrix.os, 'windows')
|
|
146
|
+
shell: msys2 {0}
|
|
147
|
+
run: |
|
|
148
|
+
TAG="${{ github.ref_name }}"
|
|
149
|
+
TAG="${TAG#release/}"
|
|
150
|
+
ARCH="windows-x86_64"
|
|
151
|
+
ARCHIVE="approxmc-${TAG}-${ARCH}.zip"
|
|
152
|
+
mkdir -p dist
|
|
153
|
+
cp project/build/approxmc.exe dist/
|
|
154
|
+
cp -r project/build/lib dist/ 2>/dev/null || true
|
|
155
|
+
cp -r project/build/include dist/ 2>/dev/null || true
|
|
156
|
+
(cd dist && zip -r "../${ARCHIVE}" .)
|
|
157
|
+
echo "ARCHIVE=${ARCHIVE}" >> $GITHUB_ENV
|
|
158
|
+
|
|
159
|
+
- name: Upload release asset
|
|
160
|
+
uses: actions/upload-artifact@v4
|
|
161
|
+
with:
|
|
162
|
+
name: ${{ env.ARCHIVE }}
|
|
163
|
+
path: ${{ env.ARCHIVE }}
|
|
164
|
+
|
|
165
|
+
release:
|
|
166
|
+
needs: build
|
|
167
|
+
runs-on: ubuntu-latest
|
|
168
|
+
permissions:
|
|
169
|
+
contents: write
|
|
170
|
+
|
|
171
|
+
steps:
|
|
172
|
+
- name: Download all artifacts
|
|
173
|
+
uses: actions/download-artifact@v4
|
|
174
|
+
with:
|
|
175
|
+
path: artifacts
|
|
176
|
+
merge-multiple: true
|
|
177
|
+
|
|
178
|
+
- name: Set release name
|
|
179
|
+
run: |
|
|
180
|
+
TAG="${{ github.ref_name }}"
|
|
181
|
+
echo "RELEASE_NAME=ApproxMC ${TAG#release/}" >> $GITHUB_ENV
|
|
182
|
+
|
|
183
|
+
- name: Create GitHub Release
|
|
184
|
+
uses: softprops/action-gh-release@v2
|
|
185
|
+
with:
|
|
186
|
+
tag_name: ${{ github.ref_name }}
|
|
187
|
+
name: ${{ env.RELEASE_NAME }}
|
|
188
|
+
generate_release_notes: true
|
|
189
|
+
files: artifacts/*
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with
|
|
4
|
+
code in this repository.
|
|
5
|
+
|
|
6
|
+
## Project
|
|
7
|
+
|
|
8
|
+
ApproxMC is a C++ approximate model counter for CNF formulas with PAC (Probably
|
|
9
|
+
Approximately Correct) guarantees. It counts satisfying assignments using
|
|
10
|
+
random XOR-based hashing. Provides a C++ library, CLI binary, and Python
|
|
11
|
+
bindings (pyapproxmc).
|
|
12
|
+
|
|
13
|
+
## Build Commands
|
|
14
|
+
|
|
15
|
+
Out-of-source CMake build (from a `build/` directory inside the repo root):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cmake -DENABLE_TESTING=ON ..
|
|
19
|
+
make -j4
|
|
20
|
+
ctest # run tests
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Key CMake options:
|
|
24
|
+
- `-DENABLE_TESTING=ON` — enables Google Test suite
|
|
25
|
+
- `-DBUILD_SHARED_LIBS=OFF` — static linking (default is ON for shared)
|
|
26
|
+
- `-DNOZLIB=ON` — disable zlib/gzip support
|
|
27
|
+
- `-DSANITIZE=ON` — enable address/UB sanitizers
|
|
28
|
+
|
|
29
|
+
Requires C++20. Dependencies: CryptoMiniSat5, Arjun, GMP. Optional: Zlib.
|
|
30
|
+
|
|
31
|
+
## Architecture
|
|
32
|
+
|
|
33
|
+
- **`src/approxmc.h` / `src/approxmc.cpp`** — Public API. `AppMC` is the facade
|
|
34
|
+
class exposing `count()`, clause/variable management, and configuration.
|
|
35
|
+
- **`src/counter.h` / `src/counter.cpp`** — Core `Counter` class implementing
|
|
36
|
+
the approximate counting algorithm (bounded solution counting, XOR hash
|
|
37
|
+
addition, iteration logic).
|
|
38
|
+
- **`src/appmcconfig.h`** — Configuration struct (epsilon, delta, seed,
|
|
39
|
+
verbosity, sparse mode).
|
|
40
|
+
- **`src/appmc_constants.h` / `.cpp`** — Pre-computed probability tables for
|
|
41
|
+
sparse XOR hashing.
|
|
42
|
+
- **`src/main.cpp`** — CLI binary with argument parsing (uses bundled
|
|
43
|
+
`argparse.hpp`).
|
|
44
|
+
- **`python/`** — Python bindings via C extension (`pyapproxmc.cpp`).
|
|
45
|
+
- **`tests/simpletest.cpp`** — Google Test suite (gtest is a git submodule in
|
|
46
|
+
`tests/gtest`).
|
|
47
|
+
|
|
48
|
+
The library wraps CryptoMiniSat as the underlying SAT solver and uses Arjun for
|
|
49
|
+
sampling set determination. The counting algorithm adds random XOR constraints
|
|
50
|
+
and uses binary search over hash counts to estimate the model count.
|
|
51
|
+
|
|
52
|
+
## Rules
|
|
53
|
+
|
|
54
|
+
- NEVER disable CryptoMiniSat's XOR recovery (`xor=0`) by default, even if
|
|
55
|
+
benchmarks show a speedup. Many users count problems with XORs in the CNF
|
|
56
|
+
that only ApproxMC can count (Ganak cannot), and those rely on it.
|
|
57
|
+
|
|
58
|
+
## Python Bindings
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install pyapproxmc
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Or build from source — `setup.py` compiles the C++ sources directly into a
|
|
65
|
+
Python extension module.
|