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.
Files changed (473) hide show
  1. pyapproxmc-4.4.2/.clang-tidy +88 -0
  2. pyapproxmc-4.4.2/.github/workflows/build.yml +199 -0
  3. pyapproxmc-4.4.2/.github/workflows/nix.yml +23 -0
  4. pyapproxmc-4.4.2/.github/workflows/python-wheels.yml +91 -0
  5. pyapproxmc-4.4.2/.github/workflows/release.yml +189 -0
  6. pyapproxmc-4.4.2/.gitignore +16 -0
  7. pyapproxmc-4.4.2/.gitmodules +3 -0
  8. pyapproxmc-4.4.2/CLAUDE.md +65 -0
  9. pyapproxmc-4.4.2/CMakeLists.txt +667 -0
  10. pyapproxmc-4.4.2/MANIFEST.in +8 -0
  11. pyapproxmc-4.4.2/PKG-INFO +161 -0
  12. pyapproxmc-4.4.2/README.md +258 -0
  13. pyapproxmc-4.4.2/approxmcConfig.cmake.in +11 -0
  14. pyapproxmc-4.4.2/cmake/AddGTestSuite.cmake +26 -0
  15. pyapproxmc-4.4.2/cmake/AddSTPGTest.cmake +33 -0
  16. pyapproxmc-4.4.2/cmake/GetGitSHA1.cmake +44 -0
  17. pyapproxmc-4.4.2/cmake/approxmcConfig-buildtree.cmake.in +7 -0
  18. pyapproxmc-4.4.2/cmake/cmake_uninstall.cmake.in +24 -0
  19. pyapproxmc-4.4.2/flake.lock +184 -0
  20. pyapproxmc-4.4.2/flake.nix +115 -0
  21. pyapproxmc-4.4.2/html/index.html +251 -0
  22. pyapproxmc-4.4.2/html/rsync.sh +4 -0
  23. pyapproxmc-4.4.2/pyproject.toml +70 -0
  24. pyapproxmc-4.4.2/python/README.md +112 -0
  25. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/python/src/pyapproxmc.cpp +99 -129
  26. pyapproxmc-4.4.2/python/tests/test.py +45 -0
  27. pyapproxmc-4.4.2/python/tests/test_1.cnf +999 -0
  28. pyapproxmc-4.4.2/python/tests/test_pyapproxmc.py +267 -0
  29. pyapproxmc-4.4.2/scripts/build_emscripten.sh +21 -0
  30. pyapproxmc-4.4.2/scripts/build_norm.sh +28 -0
  31. pyapproxmc-4.4.2/scripts/build_notest.sh +27 -0
  32. pyapproxmc-4.4.2/scripts/build_sanitize.sh +28 -0
  33. pyapproxmc-4.4.2/scripts/build_static.sh +30 -0
  34. pyapproxmc-4.4.2/scripts/build_static_release.sh +37 -0
  35. pyapproxmc-4.4.2/scripts/clean.sh +15 -0
  36. pyapproxmc-4.4.2/scripts/data/create_graphs_approxmc.py +653 -0
  37. pyapproxmc-4.4.2/scripts/data/get-unzip.sh +28 -0
  38. pyapproxmc-4.4.2/scripts/data/get_data_approxmc.py +306 -0
  39. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/setup.cfg +0 -5
  40. pyapproxmc-4.4.2/setup.py +69 -0
  41. pyapproxmc-4.4.2/src/CMakeLists.txt +164 -0
  42. pyapproxmc-4.1.24/python/cryptominisat/python/src/GitSHA1.cpp → pyapproxmc-4.4.2/src/GitSHA1.cpp.in +17 -8
  43. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/appmc_constants.cpp +5 -75
  44. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/appmc_constants.h +14 -1
  45. pyapproxmc-4.1.24/src/config.h → pyapproxmc-4.4.2/src/appmcconfig.h +13 -6
  46. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/approxmc.cpp +84 -63
  47. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/approxmc.h +25 -31
  48. pyapproxmc-4.4.2/src/counter.cpp +978 -0
  49. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/counter.h +43 -65
  50. pyapproxmc-4.4.2/src/main.cpp +406 -0
  51. {pyapproxmc-4.1.24/python/cryptominisat → pyapproxmc-4.4.2}/src/time_mem.h +18 -52
  52. pyapproxmc-4.4.2/tests/CMakeLists.txt +61 -0
  53. pyapproxmc-4.4.2/tests/gtest/.clang-format +4 -0
  54. pyapproxmc-4.4.2/tests/gtest/.github/ISSUE_TEMPLATE/00-bug_report.yml +53 -0
  55. pyapproxmc-4.4.2/tests/gtest/.github/ISSUE_TEMPLATE/10-feature_request.yml +33 -0
  56. pyapproxmc-4.4.2/tests/gtest/.github/ISSUE_TEMPLATE/config.yml +5 -0
  57. pyapproxmc-4.4.2/tests/gtest/.gitignore +89 -0
  58. pyapproxmc-4.4.2/tests/gtest/BUILD.bazel +250 -0
  59. pyapproxmc-4.4.2/tests/gtest/CMakeLists.txt +36 -0
  60. pyapproxmc-4.4.2/tests/gtest/CONTRIBUTING.md +141 -0
  61. pyapproxmc-4.4.2/tests/gtest/CONTRIBUTORS +66 -0
  62. pyapproxmc-4.4.2/tests/gtest/LICENSE +28 -0
  63. pyapproxmc-4.4.2/tests/gtest/MODULE.bazel +76 -0
  64. pyapproxmc-4.4.2/tests/gtest/README.md +145 -0
  65. pyapproxmc-4.4.2/tests/gtest/WORKSPACE +61 -0
  66. pyapproxmc-4.4.2/tests/gtest/WORKSPACE.bzlmod +35 -0
  67. pyapproxmc-4.4.2/tests/gtest/ci/linux-presubmit.sh +157 -0
  68. pyapproxmc-4.4.2/tests/gtest/ci/macos-presubmit.sh +80 -0
  69. pyapproxmc-4.4.2/tests/gtest/ci/windows-presubmit.bat +75 -0
  70. pyapproxmc-4.4.2/tests/gtest/docs/_config.yml +1 -0
  71. pyapproxmc-4.4.2/tests/gtest/docs/_data/navigation.yml +43 -0
  72. pyapproxmc-4.4.2/tests/gtest/docs/_layouts/default.html +58 -0
  73. pyapproxmc-4.4.2/tests/gtest/docs/_sass/main.scss +200 -0
  74. pyapproxmc-4.4.2/tests/gtest/docs/advanced.md +2466 -0
  75. pyapproxmc-4.4.2/tests/gtest/docs/assets/css/style.scss +5 -0
  76. pyapproxmc-4.4.2/tests/gtest/docs/community_created_documentation.md +7 -0
  77. pyapproxmc-4.4.2/tests/gtest/docs/faq.md +671 -0
  78. pyapproxmc-4.4.2/tests/gtest/docs/gmock_cheat_sheet.md +241 -0
  79. pyapproxmc-4.4.2/tests/gtest/docs/gmock_cook_book.md +4379 -0
  80. pyapproxmc-4.4.2/tests/gtest/docs/gmock_faq.md +390 -0
  81. pyapproxmc-4.4.2/tests/gtest/docs/gmock_for_dummies.md +702 -0
  82. pyapproxmc-4.4.2/tests/gtest/docs/index.md +22 -0
  83. pyapproxmc-4.4.2/tests/gtest/docs/pkgconfig.md +144 -0
  84. pyapproxmc-4.4.2/tests/gtest/docs/platforms.md +8 -0
  85. pyapproxmc-4.4.2/tests/gtest/docs/primer.md +482 -0
  86. pyapproxmc-4.4.2/tests/gtest/docs/quickstart-bazel.md +146 -0
  87. pyapproxmc-4.4.2/tests/gtest/docs/quickstart-cmake.md +157 -0
  88. pyapproxmc-4.4.2/tests/gtest/docs/reference/actions.md +116 -0
  89. pyapproxmc-4.4.2/tests/gtest/docs/reference/assertions.md +640 -0
  90. pyapproxmc-4.4.2/tests/gtest/docs/reference/matchers.md +305 -0
  91. pyapproxmc-4.4.2/tests/gtest/docs/reference/mocking.md +588 -0
  92. pyapproxmc-4.4.2/tests/gtest/docs/reference/testing.md +1550 -0
  93. pyapproxmc-4.4.2/tests/gtest/docs/samples.md +22 -0
  94. pyapproxmc-4.4.2/tests/gtest/fake_fuchsia_sdk.bzl +61 -0
  95. pyapproxmc-4.4.2/tests/gtest/googlemock/CMakeLists.txt +210 -0
  96. pyapproxmc-4.4.2/tests/gtest/googlemock/README.md +40 -0
  97. pyapproxmc-4.4.2/tests/gtest/googlemock/cmake/gmock.pc.in +10 -0
  98. pyapproxmc-4.4.2/tests/gtest/googlemock/cmake/gmock_main.pc.in +10 -0
  99. pyapproxmc-4.4.2/tests/gtest/googlemock/docs/README.md +4 -0
  100. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-actions.h +2377 -0
  101. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-cardinalities.h +159 -0
  102. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-function-mocker.h +519 -0
  103. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-matchers.h +5829 -0
  104. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-more-actions.h +659 -0
  105. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-more-matchers.h +120 -0
  106. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-nice-strict.h +277 -0
  107. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock-spec-builders.h +2146 -0
  108. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/gmock.h +97 -0
  109. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/README.md +18 -0
  110. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +7 -0
  111. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +37 -0
  112. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +40 -0
  113. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +484 -0
  114. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/gmock-port.h +140 -0
  115. pyapproxmc-4.4.2/tests/gtest/googlemock/include/gmock/internal/gmock-pp.h +279 -0
  116. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-all.cc +46 -0
  117. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-cardinalities.cc +155 -0
  118. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-internal-utils.cc +258 -0
  119. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-matchers.cc +478 -0
  120. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock-spec-builders.cc +792 -0
  121. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock.cc +225 -0
  122. pyapproxmc-4.4.2/tests/gtest/googlemock/src/gmock_main.cc +73 -0
  123. pyapproxmc-4.4.2/tests/gtest/googlemock/test/BUILD.bazel +118 -0
  124. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-actions_test.cc +2217 -0
  125. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-cardinalities_test.cc +424 -0
  126. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-function-mocker_test.cc +998 -0
  127. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-internal-utils_test.cc +766 -0
  128. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-arithmetic_test.cc +1662 -0
  129. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-comparisons_test.cc +2427 -0
  130. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-containers_test.cc +3155 -0
  131. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers-misc_test.cc +1882 -0
  132. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-matchers_test.h +192 -0
  133. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-more-actions_test.cc +1617 -0
  134. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-nice-strict_test.cc +541 -0
  135. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-port_test.cc +42 -0
  136. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-pp-string_test.cc +205 -0
  137. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-pp_test.cc +83 -0
  138. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock-spec-builders_test.cc +2599 -0
  139. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_all_test.cc +49 -0
  140. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_ex_test.cc +80 -0
  141. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_leak_test.py +113 -0
  142. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_leak_test_.cc +99 -0
  143. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_link2_test.cc +38 -0
  144. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_link_test.cc +38 -0
  145. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_link_test.h +693 -0
  146. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_output_test.py +190 -0
  147. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_output_test_.cc +286 -0
  148. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_output_test_golden.txt +335 -0
  149. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_stress_test.cc +227 -0
  150. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_test.cc +179 -0
  151. pyapproxmc-4.4.2/tests/gtest/googlemock/test/gmock_test_utils.py +91 -0
  152. pyapproxmc-4.4.2/tests/gtest/googletest/CMakeLists.txt +330 -0
  153. pyapproxmc-4.4.2/tests/gtest/googletest/README.md +231 -0
  154. pyapproxmc-4.4.2/tests/gtest/googletest/cmake/Config.cmake.in +13 -0
  155. pyapproxmc-4.4.2/tests/gtest/googletest/cmake/gtest.pc.in +9 -0
  156. pyapproxmc-4.4.2/tests/gtest/googletest/cmake/gtest_main.pc.in +10 -0
  157. pyapproxmc-4.4.2/tests/gtest/googletest/cmake/internal_utils.cmake +334 -0
  158. pyapproxmc-4.4.2/tests/gtest/googletest/cmake/libgtest.la.in +21 -0
  159. pyapproxmc-4.4.2/tests/gtest/googletest/docs/README.md +4 -0
  160. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-assertion-result.h +244 -0
  161. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-death-test.h +345 -0
  162. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-matchers.h +923 -0
  163. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-message.h +251 -0
  164. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-param-test.h +602 -0
  165. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-printers.h +1236 -0
  166. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-spi.h +250 -0
  167. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-test-part.h +192 -0
  168. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest-typed-test.h +331 -0
  169. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest.h +2338 -0
  170. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest_pred_impl.h +279 -0
  171. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/gtest_prod.h +60 -0
  172. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/README.md +44 -0
  173. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/gtest-port.h +37 -0
  174. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
  175. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/custom/gtest.h +37 -0
  176. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +306 -0
  177. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-filepath.h +233 -0
  178. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-internal.h +1525 -0
  179. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-param-util.h +1064 -0
  180. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-port-arch.h +124 -0
  181. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-port.h +2482 -0
  182. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-string.h +178 -0
  183. pyapproxmc-4.4.2/tests/gtest/googletest/include/gtest/internal/gtest-type-util.h +220 -0
  184. pyapproxmc-4.4.2/tests/gtest/googletest/samples/prime_tables.h +125 -0
  185. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample1.cc +66 -0
  186. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample1.h +41 -0
  187. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample10_unittest.cc +138 -0
  188. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample1_unittest.cc +148 -0
  189. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample2.cc +54 -0
  190. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample2.h +79 -0
  191. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample2_unittest.cc +107 -0
  192. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample3-inl.h +171 -0
  193. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample3_unittest.cc +146 -0
  194. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample4.cc +50 -0
  195. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample4.h +53 -0
  196. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample4_unittest.cc +53 -0
  197. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample5_unittest.cc +189 -0
  198. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample6_unittest.cc +214 -0
  199. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample7_unittest.cc +113 -0
  200. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample8_unittest.cc +154 -0
  201. pyapproxmc-4.4.2/tests/gtest/googletest/samples/sample9_unittest.cc +148 -0
  202. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-all.cc +49 -0
  203. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-assertion-result.cc +77 -0
  204. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-death-test.cc +1587 -0
  205. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-filepath.cc +414 -0
  206. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-internal-inl.h +1234 -0
  207. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-matchers.cc +98 -0
  208. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-port.cc +1434 -0
  209. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-printers.cc +555 -0
  210. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-test-part.cc +106 -0
  211. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest-typed-test.cc +108 -0
  212. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest.cc +7083 -0
  213. pyapproxmc-4.4.2/tests/gtest/googletest/src/gtest_main.cc +66 -0
  214. pyapproxmc-4.4.2/tests/gtest/googletest/test/BUILD.bazel +629 -0
  215. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-break-on-failure-unittest.py +195 -0
  216. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-break-on-failure-unittest_.cc +83 -0
  217. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-catch-exceptions-test.py +315 -0
  218. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-catch-exceptions-test_.cc +289 -0
  219. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-color-test.py +130 -0
  220. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-color-test_.cc +60 -0
  221. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-death-test-test.cc +1512 -0
  222. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-death-test_ex_test.cc +91 -0
  223. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-env-var-test.py +120 -0
  224. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-env-var-test_.cc +130 -0
  225. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-fail-if-no-test-linked-test-with-disabled-test_.cc +38 -0
  226. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-fail-if-no-test-linked-test-with-enabled-test_.cc +38 -0
  227. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-fail-if-no-test-linked-test.py +169 -0
  228. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-failfast-unittest.py +461 -0
  229. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-failfast-unittest_.cc +166 -0
  230. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-filepath-test.cc +671 -0
  231. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-filter-unittest.py +765 -0
  232. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-filter-unittest_.cc +106 -0
  233. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-global-environment-unittest.py +141 -0
  234. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-global-environment-unittest_.cc +58 -0
  235. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-json-outfiles-test.py +180 -0
  236. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-json-output-unittest.py +914 -0
  237. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-list-tests-unittest.py +225 -0
  238. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-list-tests-unittest_.cc +143 -0
  239. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-listener-test.cc +509 -0
  240. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-message-test.cc +184 -0
  241. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-options-test.cc +225 -0
  242. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-output-test-golden-lin.txt +1201 -0
  243. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-output-test.py +385 -0
  244. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-output-test_.cc +1058 -0
  245. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
  246. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name1-test_.cc +46 -0
  247. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name2-test.py +63 -0
  248. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-invalid-name2-test_.cc +52 -0
  249. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-test.cc +1243 -0
  250. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test-test.h +49 -0
  251. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-param-test2-test.cc +58 -0
  252. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-port-test.cc +1301 -0
  253. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-printers-test.cc +2064 -0
  254. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-setuptestsuite-test.py +58 -0
  255. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-setuptestsuite-test_.cc +44 -0
  256. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-shuffle-test.py +378 -0
  257. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-shuffle-test_.cc +99 -0
  258. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-test-part-test.cc +220 -0
  259. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-throw-on-failure-test.py +166 -0
  260. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
  261. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-uninitialized-test.py +70 -0
  262. pyapproxmc-4.4.2/tests/gtest/googletest/test/googletest-uninitialized-test_.cc +39 -0
  263. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-typed-test2_test.cc +39 -0
  264. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-typed-test_test.cc +423 -0
  265. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-typed-test_test.h +57 -0
  266. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest-unittest-api_test.cc +328 -0
  267. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_all_test.cc +46 -0
  268. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_assert_by_exception_test.cc +112 -0
  269. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_dirs_test.cc +101 -0
  270. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_environment_test.cc +187 -0
  271. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_help_test.py +183 -0
  272. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_help_test_.cc +44 -0
  273. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_json_test_utils.py +67 -0
  274. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_list_output_unittest.py +289 -0
  275. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_list_output_unittest_.cc +77 -0
  276. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_main_unittest.cc +42 -0
  277. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_no_test_unittest.cc +54 -0
  278. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_pred_impl_unittest.cc +2070 -0
  279. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_premature_exit_test.cc +128 -0
  280. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_prod_test.cc +56 -0
  281. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_repeat_test.cc +220 -0
  282. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_check_output_test.py +60 -0
  283. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_environment_check_output_test.py +55 -0
  284. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_in_environment_setup_test.cc +50 -0
  285. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_skip_test.cc +51 -0
  286. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_sole_header_test.cc +54 -0
  287. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_stress_test.cc +245 -0
  288. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
  289. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_test_utils.py +262 -0
  290. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_testbridge_test.py +63 -0
  291. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_testbridge_test_.cc +42 -0
  292. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +90 -0
  293. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_unittest.cc +7823 -0
  294. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_outfile1_test_.cc +43 -0
  295. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_outfile2_test_.cc +77 -0
  296. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_outfiles_test.py +147 -0
  297. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_output_unittest.py +513 -0
  298. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_output_unittest_.cc +217 -0
  299. pyapproxmc-4.4.2/tests/gtest/googletest/test/gtest_xml_test_utils.py +242 -0
  300. pyapproxmc-4.4.2/tests/gtest/googletest/test/production.cc +35 -0
  301. pyapproxmc-4.4.2/tests/gtest/googletest/test/production.h +55 -0
  302. pyapproxmc-4.4.2/tests/gtest/googletest_deps.bzl +28 -0
  303. pyapproxmc-4.4.2/tests/simpletest.cpp +147 -0
  304. pyapproxmc-4.4.2/tests/test_helper.h +553 -0
  305. pyapproxmc-4.1.24/PKG-INFO +0 -107
  306. pyapproxmc-4.1.24/README.md +0 -185
  307. pyapproxmc-4.1.24/pyproject.toml +0 -24
  308. pyapproxmc-4.1.24/python/README.md +0 -61
  309. pyapproxmc-4.1.24/python/arjun/python/src/GitSHA1.cpp +0 -41
  310. pyapproxmc-4.1.24/python/arjun/src/GitSHA1.h +0 -34
  311. pyapproxmc-4.1.24/python/arjun/src/arjun.cpp +0 -650
  312. pyapproxmc-4.1.24/python/arjun/src/arjun.h +0 -168
  313. pyapproxmc-4.1.24/python/arjun/src/backward.cpp +0 -377
  314. pyapproxmc-4.1.24/python/arjun/src/common.cpp +0 -406
  315. pyapproxmc-4.1.24/python/arjun/src/common.h +0 -330
  316. pyapproxmc-4.1.24/python/arjun/src/config.h +0 -64
  317. pyapproxmc-4.1.24/python/arjun/src/simplify.cpp +0 -471
  318. pyapproxmc-4.1.24/python/arjun/src/time_mem.h +0 -143
  319. pyapproxmc-4.1.24/python/cryptominisat/src/GitSHA1.h +0 -29
  320. pyapproxmc-4.1.24/python/cryptominisat/src/Vec.h +0 -330
  321. pyapproxmc-4.1.24/python/cryptominisat/src/XAlloc.h +0 -47
  322. pyapproxmc-4.1.24/python/cryptominisat/src/alg.h +0 -43
  323. pyapproxmc-4.1.24/python/cryptominisat/src/avgcalc.h +0 -198
  324. pyapproxmc-4.1.24/python/cryptominisat/src/bitarray.h +0 -141
  325. pyapproxmc-4.1.24/python/cryptominisat/src/boundedqueue.h +0 -196
  326. pyapproxmc-4.1.24/python/cryptominisat/src/bva.cpp +0 -861
  327. pyapproxmc-4.1.24/python/cryptominisat/src/bva.h +0 -201
  328. pyapproxmc-4.1.24/python/cryptominisat/src/cardfinder.cpp +0 -416
  329. pyapproxmc-4.1.24/python/cryptominisat/src/cardfinder.h +0 -80
  330. pyapproxmc-4.1.24/python/cryptominisat/src/ccnr.cpp +0 -537
  331. pyapproxmc-4.1.24/python/cryptominisat/src/ccnr.h +0 -183
  332. pyapproxmc-4.1.24/python/cryptominisat/src/ccnr_cms.cpp +0 -369
  333. pyapproxmc-4.1.24/python/cryptominisat/src/ccnr_cms.h +0 -81
  334. pyapproxmc-4.1.24/python/cryptominisat/src/ccnr_mersenne.h +0 -190
  335. pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_abs.h +0 -119
  336. pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_lgbm.h +0 -79
  337. pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_py.h +0 -103
  338. pyapproxmc-4.1.24/python/cryptominisat/src/cl_predictors_xgb.h +0 -82
  339. pyapproxmc-4.1.24/python/cryptominisat/src/clabstraction.h +0 -51
  340. pyapproxmc-4.1.24/python/cryptominisat/src/clause.h +0 -700
  341. pyapproxmc-4.1.24/python/cryptominisat/src/clauseallocator.cpp +0 -369
  342. pyapproxmc-4.1.24/python/cryptominisat/src/clauseallocator.h +0 -128
  343. pyapproxmc-4.1.24/python/cryptominisat/src/clausecleaner.cpp +0 -620
  344. pyapproxmc-4.1.24/python/cryptominisat/src/clausecleaner.h +0 -94
  345. pyapproxmc-4.1.24/python/cryptominisat/src/cloffset.h +0 -41
  346. pyapproxmc-4.1.24/python/cryptominisat/src/cms_bosphorus.h +0 -54
  347. pyapproxmc-4.1.24/python/cryptominisat/src/cms_breakid.h +0 -92
  348. pyapproxmc-4.1.24/python/cryptominisat/src/cms_windows_includes.h +0 -65
  349. pyapproxmc-4.1.24/python/cryptominisat/src/cnf.cpp +0 -1020
  350. pyapproxmc-4.1.24/python/cryptominisat/src/cnf.h +0 -820
  351. pyapproxmc-4.1.24/python/cryptominisat/src/community_finder.h +0 -46
  352. pyapproxmc-4.1.24/python/cryptominisat/src/completedetachreattacher.cpp +0 -220
  353. pyapproxmc-4.1.24/python/cryptominisat/src/completedetachreattacher.h +0 -85
  354. pyapproxmc-4.1.24/python/cryptominisat/src/constants.h +0 -201
  355. pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat.cpp +0 -1980
  356. pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat.h +0 -320
  357. pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat_c.cpp +0 -170
  358. pyapproxmc-4.1.24/python/cryptominisat/src/cryptominisat_c.h +0 -90
  359. pyapproxmc-4.1.24/python/cryptominisat/src/cset.h +0 -194
  360. pyapproxmc-4.1.24/python/cryptominisat/src/datasync.cpp +0 -880
  361. pyapproxmc-4.1.24/python/cryptominisat/src/datasync.h +0 -156
  362. pyapproxmc-4.1.24/python/cryptominisat/src/datasyncserver.h +0 -82
  363. pyapproxmc-4.1.24/python/cryptominisat/src/dimacsparser.h +0 -733
  364. pyapproxmc-4.1.24/python/cryptominisat/src/distillerbin.cpp +0 -328
  365. pyapproxmc-4.1.24/python/cryptominisat/src/distillerbin.h +0 -104
  366. pyapproxmc-4.1.24/python/cryptominisat/src/distillerlitrem.cpp +0 -405
  367. pyapproxmc-4.1.24/python/cryptominisat/src/distillerlitrem.h +0 -101
  368. pyapproxmc-4.1.24/python/cryptominisat/src/distillerlong.cpp +0 -704
  369. pyapproxmc-4.1.24/python/cryptominisat/src/distillerlong.h +0 -106
  370. pyapproxmc-4.1.24/python/cryptominisat/src/distillerlongwithimpl.cpp +0 -532
  371. pyapproxmc-4.1.24/python/cryptominisat/src/distillerlongwithimpl.h +0 -181
  372. pyapproxmc-4.1.24/python/cryptominisat/src/frat.cpp +0 -25
  373. pyapproxmc-4.1.24/python/cryptominisat/src/frat.h +0 -491
  374. pyapproxmc-4.1.24/python/cryptominisat/src/gatefinder.cpp +0 -374
  375. pyapproxmc-4.1.24/python/cryptominisat/src/gatefinder.h +0 -165
  376. pyapproxmc-4.1.24/python/cryptominisat/src/gaussian.cpp +0 -1584
  377. pyapproxmc-4.1.24/python/cryptominisat/src/gaussian.h +0 -260
  378. pyapproxmc-4.1.24/python/cryptominisat/src/gausswatched.h +0 -56
  379. pyapproxmc-4.1.24/python/cryptominisat/src/get_clause_query.cpp +0 -366
  380. pyapproxmc-4.1.24/python/cryptominisat/src/get_clause_query.h +0 -77
  381. pyapproxmc-4.1.24/python/cryptominisat/src/gqueuedata.h +0 -51
  382. pyapproxmc-4.1.24/python/cryptominisat/src/hasher.h +0 -61
  383. pyapproxmc-4.1.24/python/cryptominisat/src/heap.h +0 -228
  384. pyapproxmc-4.1.24/python/cryptominisat/src/hyperengine.cpp +0 -684
  385. pyapproxmc-4.1.24/python/cryptominisat/src/hyperengine.h +0 -97
  386. pyapproxmc-4.1.24/python/cryptominisat/src/intree.cpp +0 -429
  387. pyapproxmc-4.1.24/python/cryptominisat/src/intree.h +0 -123
  388. pyapproxmc-4.1.24/python/cryptominisat/src/ipasir.h +0 -164
  389. pyapproxmc-4.1.24/python/cryptominisat/src/lucky.cpp +0 -327
  390. pyapproxmc-4.1.24/python/cryptominisat/src/lucky.h +0 -51
  391. pyapproxmc-4.1.24/python/cryptominisat/src/main.h +0 -120
  392. pyapproxmc-4.1.24/python/cryptominisat/src/main_common.h +0 -47
  393. pyapproxmc-4.1.24/python/cryptominisat/src/matrixfinder.cpp +0 -426
  394. pyapproxmc-4.1.24/python/cryptominisat/src/matrixfinder.h +0 -94
  395. pyapproxmc-4.1.24/python/cryptominisat/src/msvc/stdint.h +0 -247
  396. pyapproxmc-4.1.24/python/cryptominisat/src/mystack.h +0 -77
  397. pyapproxmc-4.1.24/python/cryptominisat/src/nomutex.h +0 -60
  398. pyapproxmc-4.1.24/python/cryptominisat/src/occsimplifier.cpp +0 -5574
  399. pyapproxmc-4.1.24/python/cryptominisat/src/occsimplifier.h +0 -712
  400. pyapproxmc-4.1.24/python/cryptominisat/src/oracle/oracle.cpp +0 -935
  401. pyapproxmc-4.1.24/python/cryptominisat/src/oracle/oracle.h +0 -227
  402. pyapproxmc-4.1.24/python/cryptominisat/src/oracle/utils.h +0 -91
  403. pyapproxmc-4.1.24/python/cryptominisat/src/packedmatrix.h +0 -201
  404. pyapproxmc-4.1.24/python/cryptominisat/src/packedrow.cpp +0 -219
  405. pyapproxmc-4.1.24/python/cryptominisat/src/packedrow.h +0 -320
  406. pyapproxmc-4.1.24/python/cryptominisat/src/picosat/pico_config.h +0 -3
  407. pyapproxmc-4.1.24/python/cryptominisat/src/picosat/picosat.c +0 -8504
  408. pyapproxmc-4.1.24/python/cryptominisat/src/picosat/picosat.h +0 -661
  409. pyapproxmc-4.1.24/python/cryptominisat/src/picosat/version.c +0 -14
  410. pyapproxmc-4.1.24/python/cryptominisat/src/predict_func_type.h +0 -39
  411. pyapproxmc-4.1.24/python/cryptominisat/src/propby.h +0 -346
  412. pyapproxmc-4.1.24/python/cryptominisat/src/propby_backup.h +0 -232
  413. pyapproxmc-4.1.24/python/cryptominisat/src/propbyforgraph.h +0 -151
  414. pyapproxmc-4.1.24/python/cryptominisat/src/propengine.cpp +0 -1033
  415. pyapproxmc-4.1.24/python/cryptominisat/src/propengine.h +0 -745
  416. pyapproxmc-4.1.24/python/cryptominisat/src/reducedb.cpp +0 -1385
  417. pyapproxmc-4.1.24/python/cryptominisat/src/reducedb.h +0 -145
  418. pyapproxmc-4.1.24/python/cryptominisat/src/satzilla_features.h +0 -127
  419. pyapproxmc-4.1.24/python/cryptominisat/src/satzilla_features_calc.h +0 -82
  420. pyapproxmc-4.1.24/python/cryptominisat/src/sccfinder.cpp +0 -207
  421. pyapproxmc-4.1.24/python/cryptominisat/src/sccfinder.h +0 -164
  422. pyapproxmc-4.1.24/python/cryptominisat/src/searcher.cpp +0 -3999
  423. pyapproxmc-4.1.24/python/cryptominisat/src/searcher.h +0 -650
  424. pyapproxmc-4.1.24/python/cryptominisat/src/searchhist.h +0 -160
  425. pyapproxmc-4.1.24/python/cryptominisat/src/searchstats.cpp +0 -308
  426. pyapproxmc-4.1.24/python/cryptominisat/src/searchstats.h +0 -107
  427. pyapproxmc-4.1.24/python/cryptominisat/src/shareddata.h +0 -120
  428. pyapproxmc-4.1.24/python/cryptominisat/src/signalcode.h +0 -38
  429. pyapproxmc-4.1.24/python/cryptominisat/src/simplefile.h +0 -173
  430. pyapproxmc-4.1.24/python/cryptominisat/src/sls.cpp +0 -99
  431. pyapproxmc-4.1.24/python/cryptominisat/src/sls.h +0 -47
  432. pyapproxmc-4.1.24/python/cryptominisat/src/solutionextender.cpp +0 -213
  433. pyapproxmc-4.1.24/python/cryptominisat/src/solutionextender.h +0 -72
  434. pyapproxmc-4.1.24/python/cryptominisat/src/solver.cpp +0 -5625
  435. pyapproxmc-4.1.24/python/cryptominisat/src/solver.h +0 -701
  436. pyapproxmc-4.1.24/python/cryptominisat/src/solverconf.cpp +0 -437
  437. pyapproxmc-4.1.24/python/cryptominisat/src/solverconf.h +0 -526
  438. pyapproxmc-4.1.24/python/cryptominisat/src/solvertypes.h +0 -512
  439. pyapproxmc-4.1.24/python/cryptominisat/src/solvertypesmini.h +0 -394
  440. pyapproxmc-4.1.24/python/cryptominisat/src/sql_tablestructure.h +0 -27
  441. pyapproxmc-4.1.24/python/cryptominisat/src/sqlitestats.h +0 -224
  442. pyapproxmc-4.1.24/python/cryptominisat/src/sqlstats.h +0 -174
  443. pyapproxmc-4.1.24/python/cryptominisat/src/str_impl_w_impl.cpp +0 -212
  444. pyapproxmc-4.1.24/python/cryptominisat/src/str_impl_w_impl.h +0 -91
  445. pyapproxmc-4.1.24/python/cryptominisat/src/streambuffer.h +0 -236
  446. pyapproxmc-4.1.24/python/cryptominisat/src/subsumeimplicit.cpp +0 -231
  447. pyapproxmc-4.1.24/python/cryptominisat/src/subsumeimplicit.h +0 -98
  448. pyapproxmc-4.1.24/python/cryptominisat/src/subsumestrengthen.cpp +0 -1088
  449. pyapproxmc-4.1.24/python/cryptominisat/src/subsumestrengthen.h +0 -158
  450. pyapproxmc-4.1.24/python/cryptominisat/src/touchlist.h +0 -183
  451. pyapproxmc-4.1.24/python/cryptominisat/src/trim.h +0 -44
  452. pyapproxmc-4.1.24/python/cryptominisat/src/vardata.h +0 -194
  453. pyapproxmc-4.1.24/python/cryptominisat/src/vardistgen.h +0 -70
  454. pyapproxmc-4.1.24/python/cryptominisat/src/varreplacer.cpp +0 -1352
  455. pyapproxmc-4.1.24/python/cryptominisat/src/varreplacer.h +0 -347
  456. pyapproxmc-4.1.24/python/cryptominisat/src/varupdatehelper.h +0 -142
  457. pyapproxmc-4.1.24/python/cryptominisat/src/vmtf.h +0 -96
  458. pyapproxmc-4.1.24/python/cryptominisat/src/watchalgos.h +0 -198
  459. pyapproxmc-4.1.24/python/cryptominisat/src/watcharray.h +0 -195
  460. pyapproxmc-4.1.24/python/cryptominisat/src/watcharray_handrolled.h +0 -552
  461. pyapproxmc-4.1.24/python/cryptominisat/src/watched.h +0 -355
  462. pyapproxmc-4.1.24/python/cryptominisat/src/xor.h +0 -221
  463. pyapproxmc-4.1.24/python/cryptominisat/src/xorfinder.cpp +0 -913
  464. pyapproxmc-4.1.24/python/cryptominisat/src/xorfinder.h +0 -376
  465. pyapproxmc-4.1.24/setup.py +0 -127
  466. pyapproxmc-4.1.24/src/counter.cpp +0 -842
  467. pyapproxmc-4.1.24/src/pyapproxmc.egg-info/PKG-INFO +0 -107
  468. pyapproxmc-4.1.24/src/pyapproxmc.egg-info/SOURCES.txt +0 -177
  469. pyapproxmc-4.1.24/src/time_mem.h +0 -143
  470. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/LICENSE +0 -0
  471. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/python/src/GitSHA1.cpp +0 -0
  472. {pyapproxmc-4.1.24 → pyapproxmc-4.4.2}/src/GitSHA1.h +0 -0
  473. {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,16 @@
1
+ build/
2
+ .kdev4/
3
+ python/cryptominisat
4
+ python/arjun
5
+ *.kdev4
6
+ .cache/
7
+ .ccls-cache/
8
+ compile_commands.json
9
+ dist/pyapproxmc*
10
+ compare
11
+ /result
12
+ html/*.js
13
+ html/*.wasm
14
+ .claude
15
+ /python/tests/__pycache__
16
+ build-*
@@ -0,0 +1,3 @@
1
+ [submodule "utils/gtest"]
2
+ path = tests/gtest
3
+ url = https://github.com/google/googletest
@@ -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.