tididi 0.1.0__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 (622) hide show
  1. tididi-0.1.0/CITATION.cff +47 -0
  2. tididi-0.1.0/CONTRIBUTING.md +121 -0
  3. tididi-0.1.0/Cargo.lock +79 -0
  4. tididi-0.1.0/Cargo.toml +33 -0
  5. tididi-0.1.0/LICENSE +201 -0
  6. tididi-0.1.0/LICENSE-APACHE +201 -0
  7. tididi-0.1.0/PKG-INFO +168 -0
  8. tididi-0.1.0/README.md +126 -0
  9. tididi-0.1.0/README.rst +146 -0
  10. tididi-0.1.0/bindings/python/.gitignore +11 -0
  11. tididi-0.1.0/bindings/python/Cargo.lock +215 -0
  12. tididi-0.1.0/bindings/python/Cargo.toml +21 -0
  13. tididi-0.1.0/bindings/python/LICENSE-APACHE +201 -0
  14. tididi-0.1.0/bindings/python/README.rst +146 -0
  15. tididi-0.1.0/bindings/python/docs/api.rst +66 -0
  16. tididi-0.1.0/bindings/python/docs/conf.py +42 -0
  17. tididi-0.1.0/bindings/python/docs/counting.rst +79 -0
  18. tididi-0.1.0/bindings/python/docs/getting_started.rst +58 -0
  19. tididi-0.1.0/bindings/python/docs/index.rst +45 -0
  20. tididi-0.1.0/bindings/python/docs/ownership.rst +77 -0
  21. tididi-0.1.0/bindings/python/docs/representation.rst +36 -0
  22. tididi-0.1.0/bindings/python/examples/01_configurations.py +82 -0
  23. tididi-0.1.0/bindings/python/examples/02_probability.py +56 -0
  24. tididi-0.1.0/bindings/python/examples/03_reachability.py +110 -0
  25. tididi-0.1.0/bindings/python/examples/04_tables.py +51 -0
  26. tididi-0.1.0/bindings/python/examples/05_persistence.py +40 -0
  27. tididi-0.1.0/bindings/python/examples/06_vtrees.py +35 -0
  28. tididi-0.1.0/bindings/python/examples/07_execution.py +47 -0
  29. tididi-0.1.0/bindings/python/examples/08_minimum_cost.py +63 -0
  30. tididi-0.1.0/bindings/python/examples/09_statistics.py +34 -0
  31. tididi-0.1.0/bindings/python/examples/GALLERY_HEADER.rst +9 -0
  32. tididi-0.1.0/bindings/python/src/circuit.rs +279 -0
  33. tididi-0.1.0/bindings/python/src/counter.rs +135 -0
  34. tididi-0.1.0/bindings/python/src/domain.rs +189 -0
  35. tididi-0.1.0/bindings/python/src/evaluation.rs +96 -0
  36. tididi-0.1.0/bindings/python/src/lib.rs +51 -0
  37. tididi-0.1.0/bindings/python/src/operations.rs +160 -0
  38. tididi-0.1.0/bindings/python/tests/test_circuits.py +382 -0
  39. tididi-0.1.0/bindings/python/tests/test_conformance.py +111 -0
  40. tididi-0.1.0/bindings/python/tests/test_surface.py +44 -0
  41. tididi-0.1.0/docs/api-guide.md +171 -0
  42. tididi-0.1.0/docs/architecture.md +355 -0
  43. tididi-0.1.0/docs/example-navigation.js +45 -0
  44. tididi-0.1.0/docs/examples/care.md +106 -0
  45. tididi-0.1.0/docs/examples/composition.md +143 -0
  46. tididi-0.1.0/docs/examples/configurations.md +281 -0
  47. tididi-0.1.0/docs/examples/counting.md +112 -0
  48. tididi-0.1.0/docs/examples/execution.md +141 -0
  49. tididi-0.1.0/docs/examples/marginalization.md +157 -0
  50. tididi-0.1.0/docs/examples/optimization.md +135 -0
  51. tididi-0.1.0/docs/examples/persistence.md +108 -0
  52. tididi-0.1.0/docs/examples/probability.md +125 -0
  53. tididi-0.1.0/docs/examples/reachability.md +255 -0
  54. tididi-0.1.0/docs/examples/statistics.md +101 -0
  55. tididi-0.1.0/docs/examples/tables.md +117 -0
  56. tididi-0.1.0/docs/examples/vtrees.md +95 -0
  57. tididi-0.1.0/docs/logo.png +0 -0
  58. tididi-0.1.0/docs/logo.svg +29 -0
  59. tididi-0.1.0/docs/reachability.svg +94 -0
  60. tididi-0.1.0/docs/scenarios.md +525 -0
  61. tididi-0.1.0/docs/tdd-basics.svg +49 -0
  62. tididi-0.1.0/docs/tdd.md +103 -0
  63. tididi-0.1.0/docs/vtree-grouping.svg +36 -0
  64. tididi-0.1.0/examples/care.rs +28 -0
  65. tididi-0.1.0/examples/composition.rs +34 -0
  66. tididi-0.1.0/examples/configurations.rs +81 -0
  67. tididi-0.1.0/examples/counting.rs +34 -0
  68. tididi-0.1.0/examples/execution.rs +55 -0
  69. tididi-0.1.0/examples/marginalization.rs +58 -0
  70. tididi-0.1.0/examples/optimization.rs +74 -0
  71. tididi-0.1.0/examples/persistence.rs +39 -0
  72. tididi-0.1.0/examples/probability.rs +63 -0
  73. tididi-0.1.0/examples/reachability.rs +119 -0
  74. tididi-0.1.0/examples/statistics.rs +38 -0
  75. tididi-0.1.0/examples/tables.rs +33 -0
  76. tididi-0.1.0/examples/vtrees.rs +36 -0
  77. tididi-0.1.0/pyproject.toml +31 -0
  78. tididi-0.1.0/scripts/check_release.py +63 -0
  79. tididi-0.1.0/scripts/check_scenarios.py +174 -0
  80. tididi-0.1.0/scripts/prepare_docs.py +135 -0
  81. tididi-0.1.0/src/apply/add.rs +429 -0
  82. tididi-0.1.0/src/apply/compose.rs +550 -0
  83. tididi-0.1.0/src/apply/condition.rs +186 -0
  84. tididi-0.1.0/src/apply/conjoin/budget.rs +217 -0
  85. tididi-0.1.0/src/apply/conjoin/cell/columns.rs +270 -0
  86. tididi-0.1.0/src/apply/conjoin/cell/kernel.rs +661 -0
  87. tididi-0.1.0/src/apply/conjoin/cell/mod.rs +74 -0
  88. tididi-0.1.0/src/apply/conjoin/cell/rows.rs +692 -0
  89. tididi-0.1.0/src/apply/conjoin/cell/rows_stream.rs +111 -0
  90. tididi-0.1.0/src/apply/conjoin/cell/tests/mod.rs +4 -0
  91. tididi-0.1.0/src/apply/conjoin/cell/tests/processing.rs +593 -0
  92. tididi-0.1.0/src/apply/conjoin/cell/tests/reserved.rs +66 -0
  93. tididi-0.1.0/src/apply/conjoin/child_lookup.rs +204 -0
  94. tididi-0.1.0/src/apply/conjoin/drive/compose.rs +132 -0
  95. tididi-0.1.0/src/apply/conjoin/drive/level.rs +1234 -0
  96. tididi-0.1.0/src/apply/conjoin/drive/loose.rs +126 -0
  97. tididi-0.1.0/src/apply/conjoin/drive/mod.rs +560 -0
  98. tididi-0.1.0/src/apply/conjoin/drive/region.rs +111 -0
  99. tididi-0.1.0/src/apply/conjoin/drive/tests/level.rs +88 -0
  100. tididi-0.1.0/src/apply/conjoin/filter.rs +40 -0
  101. tididi-0.1.0/src/apply/conjoin/grid_arena.rs +337 -0
  102. tididi-0.1.0/src/apply/conjoin/identity.rs +412 -0
  103. tididi-0.1.0/src/apply/conjoin/leaf_seed.rs +140 -0
  104. tididi-0.1.0/src/apply/conjoin/liveness.rs +234 -0
  105. tididi-0.1.0/src/apply/conjoin/marginal_plan.rs +289 -0
  106. tididi-0.1.0/src/apply/conjoin/mod.rs +927 -0
  107. tididi-0.1.0/src/apply/conjoin/output.rs +131 -0
  108. tididi-0.1.0/src/apply/conjoin/price.rs +503 -0
  109. tididi-0.1.0/src/apply/conjoin/products.rs +461 -0
  110. tididi-0.1.0/src/apply/conjoin/quantify.rs +159 -0
  111. tididi-0.1.0/src/apply/conjoin/relabel.rs +273 -0
  112. tididi-0.1.0/src/apply/conjoin/route.rs +224 -0
  113. tididi-0.1.0/src/apply/conjoin/scratch.rs +78 -0
  114. tididi-0.1.0/src/apply/conjoin/setup.rs +558 -0
  115. tididi-0.1.0/src/apply/conjoin/sparse/config.rs +216 -0
  116. tididi-0.1.0/src/apply/conjoin/sparse/fold.rs +643 -0
  117. tididi-0.1.0/src/apply/conjoin/sparse/index.rs +520 -0
  118. tididi-0.1.0/src/apply/conjoin/sparse/level.rs +508 -0
  119. tididi-0.1.0/src/apply/conjoin/sparse/mod.rs +40 -0
  120. tididi-0.1.0/src/apply/conjoin/sparse/probe.rs +563 -0
  121. tididi-0.1.0/src/apply/conjoin/sparse/scatter.rs +1440 -0
  122. tididi-0.1.0/src/apply/conjoin/sparse/stream.rs +1010 -0
  123. tididi-0.1.0/src/apply/conjoin/sparse/sum.rs +258 -0
  124. tididi-0.1.0/src/apply/conjoin/sparse/tests/count_root.rs +274 -0
  125. tididi-0.1.0/src/apply/conjoin/sparse/tests/counting_sort.rs +46 -0
  126. tididi-0.1.0/src/apply/conjoin/sparse/tests/direction.rs +90 -0
  127. tididi-0.1.0/src/apply/conjoin/sparse/tests/emit.rs +85 -0
  128. tididi-0.1.0/src/apply/conjoin/sparse/tests/flat_candidates.rs +81 -0
  129. tididi-0.1.0/src/apply/conjoin/sparse/tests/held_bits.rs +100 -0
  130. tididi-0.1.0/src/apply/conjoin/sparse/tests/inner_index.rs +102 -0
  131. tididi-0.1.0/src/apply/conjoin/sparse/tests/mod.rs +261 -0
  132. tididi-0.1.0/src/apply/conjoin/sparse/tests/passthrough.rs +214 -0
  133. tididi-0.1.0/src/apply/conjoin/sparse/tests/prefetch_gate.rs +168 -0
  134. tididi-0.1.0/src/apply/conjoin/sparse/tests/product_filter.rs +30 -0
  135. tididi-0.1.0/src/apply/conjoin/sparse/tests/regression.rs +277 -0
  136. tididi-0.1.0/src/apply/conjoin/sparse/tests/reset_ws.rs +75 -0
  137. tididi-0.1.0/src/apply/conjoin/sparse/tests/root_gate.rs +90 -0
  138. tididi-0.1.0/src/apply/conjoin/sparse/tests/rows.rs +44 -0
  139. tididi-0.1.0/src/apply/conjoin/sparse/tests/scatter_direction_pool.rs +72 -0
  140. tididi-0.1.0/src/apply/conjoin/sparse/tests/stream.rs +263 -0
  141. tididi-0.1.0/src/apply/conjoin/sparse/tests/summed.rs +425 -0
  142. tididi-0.1.0/src/apply/conjoin/sparse/tests/walk_filter.rs +110 -0
  143. tididi-0.1.0/src/apply/conjoin/streaming_marginal/level.rs +134 -0
  144. tididi-0.1.0/src/apply/conjoin/streaming_marginal/mod.rs +47 -0
  145. tididi-0.1.0/src/apply/conjoin/tests/budget/bounded_growth.rs +86 -0
  146. tididi-0.1.0/src/apply/conjoin/tests/budget/mod.rs +3 -0
  147. tididi-0.1.0/src/apply/conjoin/tests/child_lookup/child_grid_mul.rs +23 -0
  148. tididi-0.1.0/src/apply/conjoin/tests/child_lookup/mod.rs +28 -0
  149. tididi-0.1.0/src/apply/conjoin/tests/complete.rs +381 -0
  150. tididi-0.1.0/src/apply/conjoin/tests/conjunction.rs +278 -0
  151. tididi-0.1.0/src/apply/conjoin/tests/filter.rs +99 -0
  152. tididi-0.1.0/src/apply/conjoin/tests/grid_arena.rs +43 -0
  153. tididi-0.1.0/src/apply/conjoin/tests/implicit.rs +248 -0
  154. tididi-0.1.0/src/apply/conjoin/tests/kept_counts.rs +164 -0
  155. tididi-0.1.0/src/apply/conjoin/tests/liveness/bounds.rs +19 -0
  156. tididi-0.1.0/src/apply/conjoin/tests/liveness/build.rs +58 -0
  157. tididi-0.1.0/src/apply/conjoin/tests/liveness/mod.rs +4 -0
  158. tididi-0.1.0/src/apply/conjoin/tests/marginal_leaf_target.rs +33 -0
  159. tididi-0.1.0/src/apply/conjoin/tests/marginal_level.rs +156 -0
  160. tididi-0.1.0/src/apply/conjoin/tests/marginal_orphan.rs +47 -0
  161. tididi-0.1.0/src/apply/conjoin/tests/marginal_subsumed.rs +29 -0
  162. tididi-0.1.0/src/apply/conjoin/tests/mod.rs +386 -0
  163. tididi-0.1.0/src/apply/conjoin/tests/one_sided.rs +68 -0
  164. tididi-0.1.0/src/apply/conjoin/tests/owed.rs +171 -0
  165. tididi-0.1.0/src/apply/conjoin/tests/price.rs +139 -0
  166. tididi-0.1.0/src/apply/conjoin/tests/probe.rs +216 -0
  167. tididi-0.1.0/src/apply/conjoin/tests/relabel.rs +368 -0
  168. tididi-0.1.0/src/apply/conjoin/tests/restoring.rs +132 -0
  169. tididi-0.1.0/src/apply/conjoin/tests/self_conjunction.rs +77 -0
  170. tididi-0.1.0/src/apply/conjoin/tests/setup.rs +103 -0
  171. tididi-0.1.0/src/apply/conjoin/tests/target_completion.rs +72 -0
  172. tididi-0.1.0/src/apply/conjoin/tests/workspace.rs +70 -0
  173. tididi-0.1.0/src/apply/conjoin_clause/cube.rs +131 -0
  174. tididi-0.1.0/src/apply/conjoin_clause/mod.rs +431 -0
  175. tididi-0.1.0/src/apply/conjoin_clause/pairs.rs +91 -0
  176. tididi-0.1.0/src/apply/conjoin_clause/rebuild.rs +241 -0
  177. tididi-0.1.0/src/apply/conjoin_clause/spine.rs +190 -0
  178. tididi-0.1.0/src/apply/conjoin_clause/tests/boundary.rs +51 -0
  179. tididi-0.1.0/src/apply/conjoin_clause/tests/cube.rs +201 -0
  180. tididi-0.1.0/src/apply/conjoin_clause/tests/emit_reserve.rs +105 -0
  181. tididi-0.1.0/src/apply/conjoin_clause/tests/inputs.rs +108 -0
  182. tididi-0.1.0/src/apply/conjoin_clause/tests/limits.rs +26 -0
  183. tididi-0.1.0/src/apply/conjoin_clause/tests/mod.rs +7 -0
  184. tididi-0.1.0/src/apply/conjoin_clause/tests/spine.rs +77 -0
  185. tididi-0.1.0/src/apply/conjoin_in_place.rs +1163 -0
  186. tididi-0.1.0/src/apply/conjoin_indexed.rs +790 -0
  187. tididi-0.1.0/src/apply/disjoin.rs +275 -0
  188. tididi-0.1.0/src/apply/falsity.rs +198 -0
  189. tididi-0.1.0/src/apply/filter_nodes.rs +233 -0
  190. tididi-0.1.0/src/apply/mod.rs +110 -0
  191. tididi-0.1.0/src/apply/negate.rs +520 -0
  192. tididi-0.1.0/src/apply/operators.rs +37 -0
  193. tididi-0.1.0/src/apply/overlay.rs +565 -0
  194. tididi-0.1.0/src/apply/prefix_fold.rs +1500 -0
  195. tididi-0.1.0/src/apply/project/mod.rs +110 -0
  196. tididi-0.1.0/src/apply/project/structural.rs +2094 -0
  197. tididi-0.1.0/src/apply/project/tests/structural.rs +938 -0
  198. tididi-0.1.0/src/apply/restrict_to_care/mark.rs +1873 -0
  199. tididi-0.1.0/src/apply/restrict_to_care/mod.rs +168 -0
  200. tididi-0.1.0/src/apply/restrict_to_care/pairs.rs +108 -0
  201. tididi-0.1.0/src/apply/restrict_to_care/rebuild.rs +92 -0
  202. tididi-0.1.0/src/apply/restrict_to_care/tests/pairs.rs +65 -0
  203. tididi-0.1.0/src/apply/restrict_to_care/tests/rebuild.rs +209 -0
  204. tididi-0.1.0/src/apply/substitute.rs +179 -0
  205. tididi-0.1.0/src/apply/tests/add.rs +265 -0
  206. tididi-0.1.0/src/apply/tests/and_exists.rs +482 -0
  207. tididi-0.1.0/src/apply/tests/condition/assignment.rs +207 -0
  208. tididi-0.1.0/src/apply/tests/condition/mod.rs +5 -0
  209. tididi-0.1.0/src/apply/tests/condition/restrict_in_place.rs +126 -0
  210. tididi-0.1.0/src/apply/tests/conjoin_in_place.rs +345 -0
  211. tididi-0.1.0/src/apply/tests/conjoin_indexed.rs +512 -0
  212. tididi-0.1.0/src/apply/tests/disjoin/apply_or.rs +137 -0
  213. tididi-0.1.0/src/apply/tests/disjoin/mod.rs +7 -0
  214. tididi-0.1.0/src/apply/tests/disjoin/nor_many.rs +76 -0
  215. tididi-0.1.0/src/apply/tests/disjoin/or_many.rs +128 -0
  216. tididi-0.1.0/src/apply/tests/disjoin/weights.rs +93 -0
  217. tididi-0.1.0/src/apply/tests/everyday.rs +628 -0
  218. tididi-0.1.0/src/apply/tests/falsity.rs +29 -0
  219. tididi-0.1.0/src/apply/tests/filter_nodes/builder_sweep.rs +186 -0
  220. tididi-0.1.0/src/apply/tests/filter_nodes/marginal.rs +159 -0
  221. tididi-0.1.0/src/apply/tests/filter_nodes/mod.rs +255 -0
  222. tididi-0.1.0/src/apply/tests/implicit.rs +48 -0
  223. tididi-0.1.0/src/apply/tests/inputs.rs +108 -0
  224. tididi-0.1.0/src/apply/tests/mod.rs +44 -0
  225. tididi-0.1.0/src/apply/tests/negate/expand_full.rs +151 -0
  226. tididi-0.1.0/src/apply/tests/negate/leaf_form.rs +134 -0
  227. tididi-0.1.0/src/apply/tests/negate/mod.rs +6 -0
  228. tididi-0.1.0/src/apply/tests/negate/plan.rs +85 -0
  229. tididi-0.1.0/src/apply/tests/negate/prune_scope.rs +150 -0
  230. tididi-0.1.0/src/apply/tests/operands.rs +48 -0
  231. tididi-0.1.0/src/apply/tests/overlay.rs +307 -0
  232. tididi-0.1.0/src/apply/tests/prefix_fold.rs +632 -0
  233. tididi-0.1.0/src/apply/tests/project.rs +537 -0
  234. tididi-0.1.0/src/apply/tests/restrict_budget.rs +85 -0
  235. tididi-0.1.0/src/apply/tests/restrict_marginal.rs +486 -0
  236. tididi-0.1.0/src/apply/tests/restrict_marginal_gate.rs +210 -0
  237. tididi-0.1.0/src/apply/tests/restrict_to_care.rs +848 -0
  238. tididi-0.1.0/src/apply/tests/shortcuts.rs +154 -0
  239. tididi-0.1.0/src/apply/tests/support.rs +181 -0
  240. tididi-0.1.0/src/apply/tests/weights.rs +243 -0
  241. tididi-0.1.0/src/build/models/columns.rs +293 -0
  242. tididi-0.1.0/src/build/models/cubes.rs +1071 -0
  243. tididi-0.1.0/src/build/models/emit.rs +355 -0
  244. tididi-0.1.0/src/build/models/layout.rs +118 -0
  245. tididi-0.1.0/src/build/models/rows.rs +267 -0
  246. tididi-0.1.0/src/build/models/split.rs +2485 -0
  247. tididi-0.1.0/src/build/models/tests/columns.rs +163 -0
  248. tididi-0.1.0/src/build/models/tests/cubes.rs +288 -0
  249. tididi-0.1.0/src/build/models/tests/split.rs +543 -0
  250. tididi-0.1.0/src/build/models.rs +198 -0
  251. tididi-0.1.0/src/build/tests/models/bottom_up.rs +1072 -0
  252. tididi-0.1.0/src/build/tests/models.rs +714 -0
  253. tididi-0.1.0/src/build.rs +254 -0
  254. tididi-0.1.0/src/cnf/encode.rs +260 -0
  255. tididi-0.1.0/src/cnf/mod.rs +283 -0
  256. tididi-0.1.0/src/cnf/probe/mod.rs +286 -0
  257. tididi-0.1.0/src/cnf/probe/tests/fixtures.rs +126 -0
  258. tididi-0.1.0/src/cnf/probe/tests/golden.rs +197 -0
  259. tididi-0.1.0/src/cnf/probe/tests/mod.rs +131 -0
  260. tididi-0.1.0/src/cnf/probe/tests/soundness.rs +195 -0
  261. tididi-0.1.0/src/cnf/probe/tests/stops.rs +156 -0
  262. tididi-0.1.0/src/cnf/probe/walk.rs +256 -0
  263. tididi-0.1.0/src/cnf/tests/golden.rs +159 -0
  264. tididi-0.1.0/src/cnf/tests/mod.rs +225 -0
  265. tididi-0.1.0/src/cnf/tests/soundness.rs +87 -0
  266. tididi-0.1.0/src/cnf/tests/stops.rs +121 -0
  267. tididi-0.1.0/src/diagram/assembly.rs +154 -0
  268. tididi-0.1.0/src/diagram/build_error.rs +152 -0
  269. tididi-0.1.0/src/diagram/builder.rs +712 -0
  270. tididi-0.1.0/src/diagram/leaf_column.rs +100 -0
  271. tididi-0.1.0/src/diagram/level/arena.rs +651 -0
  272. tididi-0.1.0/src/diagram/level/count_overflow.rs +141 -0
  273. tididi-0.1.0/src/diagram/level/implicit/close.rs +457 -0
  274. tididi-0.1.0/src/diagram/level/implicit/iter.rs +706 -0
  275. tididi-0.1.0/src/diagram/level/implicit/kept.rs +240 -0
  276. tididi-0.1.0/src/diagram/level/implicit/storage.rs +343 -0
  277. tididi-0.1.0/src/diagram/level/implicit.rs +976 -0
  278. tididi-0.1.0/src/diagram/level/marginal.rs +116 -0
  279. tididi-0.1.0/src/diagram/level/mod.rs +539 -0
  280. tididi-0.1.0/src/diagram/level/nodes.rs +268 -0
  281. tididi-0.1.0/src/diagram/level/pairs.rs +888 -0
  282. tididi-0.1.0/src/diagram/level/ranges.rs +112 -0
  283. tididi-0.1.0/src/diagram/level/tests/count_overflow.rs +16 -0
  284. tididi-0.1.0/src/diagram/level/tests/implicit.rs +1264 -0
  285. tididi-0.1.0/src/diagram/level/tests/mod.rs +45 -0
  286. tididi-0.1.0/src/diagram/level/tests/pairs/mod.rs +1 -0
  287. tididi-0.1.0/src/diagram/level/tests/pairs/sorting_networks.rs +50 -0
  288. tididi-0.1.0/src/diagram/level/tests/ranges.rs +41 -0
  289. tididi-0.1.0/src/diagram/level/tests/support.rs +28 -0
  290. tididi-0.1.0/src/diagram/literal.rs +211 -0
  291. tididi-0.1.0/src/diagram/marginal_ref/mod.rs +257 -0
  292. tididi-0.1.0/src/diagram/marginal_ref/refs.rs +208 -0
  293. tididi-0.1.0/src/diagram/marginal_ref/swap.rs +369 -0
  294. tididi-0.1.0/src/diagram/marginal_ref/tag.rs +78 -0
  295. tididi-0.1.0/src/diagram/marginal_ref/tests/encoded.rs +57 -0
  296. tididi-0.1.0/src/diagram/marginal_ref/tests/mod.rs +3 -0
  297. tididi-0.1.0/src/diagram/marginal_ref/tests/swap/mod.rs +3 -0
  298. tididi-0.1.0/src/diagram/marginal_ref/tests/swap/resolve.rs +122 -0
  299. tididi-0.1.0/src/diagram/marginal_values.rs +125 -0
  300. tididi-0.1.0/src/diagram/mod.rs +234 -0
  301. tididi-0.1.0/src/diagram/pair_index.rs +370 -0
  302. tididi-0.1.0/src/diagram/pool.rs +175 -0
  303. tididi-0.1.0/src/diagram/primitives.rs +419 -0
  304. tididi-0.1.0/src/diagram/semiring/mod.rs +374 -0
  305. tididi-0.1.0/src/diagram/semiring/rational.rs +194 -0
  306. tididi-0.1.0/src/diagram/semiring/tests/rational.rs +67 -0
  307. tididi-0.1.0/src/diagram/semiring/tests/weight/exact.rs +362 -0
  308. tididi-0.1.0/src/diagram/semiring/tests/weight/mod.rs +4 -0
  309. tididi-0.1.0/src/diagram/semiring/tests/weight/signed_log.rs +135 -0
  310. tididi-0.1.0/src/diagram/semiring/weight.rs +493 -0
  311. tididi-0.1.0/src/diagram/tdd/edit.rs +73 -0
  312. tididi-0.1.0/src/diagram/tdd/mod.rs +480 -0
  313. tididi-0.1.0/src/diagram/tdd/operations.rs +1239 -0
  314. tididi-0.1.0/src/diagram/tdd/reach.rs +57 -0
  315. tididi-0.1.0/src/diagram/tdd/renumber.rs +280 -0
  316. tididi-0.1.0/src/diagram/tdd/state.rs +655 -0
  317. tididi-0.1.0/src/diagram/tdd/tests/assembly.rs +83 -0
  318. tididi-0.1.0/src/diagram/tdd/tests/canonical.rs +77 -0
  319. tididi-0.1.0/src/diagram/tdd/tests/mod.rs +9 -0
  320. tididi-0.1.0/src/diagram/tdd/tests/pairs.rs +57 -0
  321. tididi-0.1.0/src/diagram/tdd/tests/renumber.rs +275 -0
  322. tididi-0.1.0/src/diagram/tdd/tests/summaries.rs +48 -0
  323. tididi-0.1.0/src/diagram/tdd/tests/worklists.rs +72 -0
  324. tididi-0.1.0/src/diagram/tests/builder.rs +149 -0
  325. tididi-0.1.0/src/diagram/tests/mod.rs +7 -0
  326. tididi-0.1.0/src/diagram/tests/types.rs +671 -0
  327. tididi-0.1.0/src/diagram/tests/weights.rs +213 -0
  328. tididi-0.1.0/src/diagram/weights.rs +258 -0
  329. tididi-0.1.0/src/execution/context.rs +139 -0
  330. tididi-0.1.0/src/execution/engine.rs +166 -0
  331. tididi-0.1.0/src/execution/mod.rs +11 -0
  332. tididi-0.1.0/src/execution/pool.rs +321 -0
  333. tididi-0.1.0/src/execution/tests/context.rs +274 -0
  334. tididi-0.1.0/src/execution/tests/pool.rs +299 -0
  335. tididi-0.1.0/src/guide.rs +61 -0
  336. tididi-0.1.0/src/io/binary.rs +976 -0
  337. tididi-0.1.0/src/io/dot.rs +278 -0
  338. tididi-0.1.0/src/io/mod.rs +206 -0
  339. tididi-0.1.0/src/io/numbering.rs +34 -0
  340. tididi-0.1.0/src/io/read.rs +356 -0
  341. tididi-0.1.0/src/io/tests/binary.rs +564 -0
  342. tididi-0.1.0/src/io/tests/dot.rs +44 -0
  343. tididi-0.1.0/src/io/tests/mod.rs +4 -0
  344. tididi-0.1.0/src/io/tests/readers.rs +191 -0
  345. tididi-0.1.0/src/io/tests/writers.rs +381 -0
  346. tididi-0.1.0/src/io/write.rs +229 -0
  347. tididi-0.1.0/src/lib.rs +118 -0
  348. tididi-0.1.0/src/limits/error.rs +221 -0
  349. tididi-0.1.0/src/limits/growth.rs +391 -0
  350. tididi-0.1.0/src/limits/memory.rs +136 -0
  351. tididi-0.1.0/src/limits/meters.rs +184 -0
  352. tididi-0.1.0/src/limits/mod.rs +746 -0
  353. tididi-0.1.0/src/limits/poll.rs +348 -0
  354. tididi-0.1.0/src/limits/stop.rs +132 -0
  355. tididi-0.1.0/src/limits/tests/captured.rs +95 -0
  356. tididi-0.1.0/src/limits/tests/charged.rs +87 -0
  357. tididi-0.1.0/src/limits/tests/config_roundtrip.rs +100 -0
  358. tididi-0.1.0/src/limits/tests/conversion.rs +24 -0
  359. tididi-0.1.0/src/limits/tests/deadline.rs +128 -0
  360. tididi-0.1.0/src/limits/tests/error.rs +24 -0
  361. tididi-0.1.0/src/limits/tests/headroom.rs +48 -0
  362. tididi-0.1.0/src/limits/tests/mod.rs +16 -0
  363. tididi-0.1.0/src/limits/tests/operation_scope.rs +105 -0
  364. tididi-0.1.0/src/limits/tests/poll.rs +172 -0
  365. tididi-0.1.0/src/limits/tests/stop_bound.rs +292 -0
  366. tididi-0.1.0/src/limits/tests/support.rs +56 -0
  367. tididi-0.1.0/src/maintain/index.rs +118 -0
  368. tididi-0.1.0/src/maintain/mod.rs +320 -0
  369. tididi-0.1.0/src/maintain/tests/mod.rs +461 -0
  370. tididi-0.1.0/src/maintain/update.rs +208 -0
  371. tididi-0.1.0/src/marginal/fold.rs +121 -0
  372. tididi-0.1.0/src/marginal/leaf.rs +208 -0
  373. tididi-0.1.0/src/marginal/mod.rs +109 -0
  374. tididi-0.1.0/src/marginal/tests/alloc_guard.rs +136 -0
  375. tididi-0.1.0/src/marginal/tests/deadline.rs +178 -0
  376. tididi-0.1.0/src/marginal/tests/mod.rs +5 -0
  377. tididi-0.1.0/src/marginal/tests/primitives.rs +212 -0
  378. tididi-0.1.0/src/marginal/transition.rs +331 -0
  379. tididi-0.1.0/src/query/boolean.rs +306 -0
  380. tididi-0.1.0/src/query/cache.rs +263 -0
  381. tididi-0.1.0/src/query/column_layout.rs +28 -0
  382. tididi-0.1.0/src/query/columns.rs +950 -0
  383. tididi-0.1.0/src/query/count/column.rs +161 -0
  384. tididi-0.1.0/src/query/count/incremental.rs +789 -0
  385. tididi-0.1.0/src/query/count/mod.rs +260 -0
  386. tididi-0.1.0/src/query/count/prepared.rs +337 -0
  387. tididi-0.1.0/src/query/count/tests/column.rs +73 -0
  388. tididi-0.1.0/src/query/count/tests/incremental.rs +221 -0
  389. tididi-0.1.0/src/query/count/tests/prepared.rs +231 -0
  390. tididi-0.1.0/src/query/evaluate.rs +495 -0
  391. tididi-0.1.0/src/query/evaluator.rs +234 -0
  392. tididi-0.1.0/src/query/fold.rs +322 -0
  393. tididi-0.1.0/src/query/mod.rs +41 -0
  394. tididi-0.1.0/src/query/ordered.rs +730 -0
  395. tididi-0.1.0/src/query/product.rs +820 -0
  396. tididi-0.1.0/src/query/sat.rs +28 -0
  397. tididi-0.1.0/src/query/tests/boundary.rs +96 -0
  398. tididi-0.1.0/src/query/tests/columns.rs +437 -0
  399. tididi-0.1.0/src/query/tests/counter_limits.rs +229 -0
  400. tididi-0.1.0/src/query/tests/counting.rs +329 -0
  401. tididi-0.1.0/src/query/tests/evaluation.rs +536 -0
  402. tididi-0.1.0/src/query/tests/evaluator.rs +156 -0
  403. tididi-0.1.0/src/query/tests/leaf_labels.rs +180 -0
  404. tididi-0.1.0/src/query/tests/marginal_evaluation.rs +349 -0
  405. tididi-0.1.0/src/query/tests/mod.rs +36 -0
  406. tididi-0.1.0/src/query/tests/ordered.rs +324 -0
  407. tididi-0.1.0/src/query/tests/owned.rs +90 -0
  408. tididi-0.1.0/src/query/tests/pin_domain.rs +211 -0
  409. tididi-0.1.0/src/query/tests/pinned.rs +457 -0
  410. tididi-0.1.0/src/query/tests/product.rs +243 -0
  411. tididi-0.1.0/src/query/tests/projected.rs +139 -0
  412. tididi-0.1.0/src/query/tests/satisfiability.rs +146 -0
  413. tididi-0.1.0/src/query/tests/streaming.rs +176 -0
  414. tididi-0.1.0/src/query/tests/traverse.rs +125 -0
  415. tididi-0.1.0/src/query/tests/weighted_limits.rs +68 -0
  416. tididi-0.1.0/src/reduce/contract/content_twin.rs +180 -0
  417. tididi-0.1.0/src/reduce/contract/contract_leaf.rs +292 -0
  418. tididi-0.1.0/src/reduce/contract/duplicate_pair/mod.rs +208 -0
  419. tididi-0.1.0/src/reduce/contract/duplicate_pair/scale.rs +178 -0
  420. tididi-0.1.0/src/reduce/contract/fingerprint/groups.rs +382 -0
  421. tididi-0.1.0/src/reduce/contract/fingerprint/listed.rs +165 -0
  422. tididi-0.1.0/src/reduce/contract/fingerprint/mod.rs +473 -0
  423. tididi-0.1.0/src/reduce/contract/fingerprint/tests/groups_match.rs +268 -0
  424. tididi-0.1.0/src/reduce/contract/fingerprint/tests/mix64_reference.rs +15 -0
  425. tididi-0.1.0/src/reduce/contract/fingerprint/tests/mod.rs +6 -0
  426. tididi-0.1.0/src/reduce/contract/fingerprint/tests/signature_arena.rs +98 -0
  427. tididi-0.1.0/src/reduce/contract/fingerprint/tests/table_size_bound.rs +42 -0
  428. tididi-0.1.0/src/reduce/contract/merge/data.rs +196 -0
  429. tididi-0.1.0/src/reduce/contract/merge/mod.rs +182 -0
  430. tididi-0.1.0/src/reduce/contract/merge/plan.rs +276 -0
  431. tididi-0.1.0/src/reduce/contract/merge/rewrite.rs +143 -0
  432. tididi-0.1.0/src/reduce/contract/merge/tests/mod.rs +4 -0
  433. tididi-0.1.0/src/reduce/contract/merge/tests/sweep.rs +280 -0
  434. tididi-0.1.0/src/reduce/contract/mod.rs +20 -0
  435. tididi-0.1.0/src/reduce/contract/pair_fusion/mod.rs +180 -0
  436. tididi-0.1.0/src/reduce/contract/pair_fusion/plan.rs +381 -0
  437. tididi-0.1.0/src/reduce/contract/pair_fusion/rewrite.rs +248 -0
  438. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/bitmap.rs +166 -0
  439. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/fallible.rs +286 -0
  440. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/mod.rs +16 -0
  441. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/support.rs +10 -0
  442. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/weighted/leaf.rs +193 -0
  443. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/weighted.rs +437 -0
  444. tididi-0.1.0/src/reduce/contract/pair_fusion/tests/window.rs +251 -0
  445. tididi-0.1.0/src/reduce/contract/scratch.rs +532 -0
  446. tididi-0.1.0/src/reduce/contract/sweep.rs +553 -0
  447. tididi-0.1.0/src/reduce/contract/tests/content_twin_forking.rs +506 -0
  448. tididi-0.1.0/src/reduce/contract/tests/fusion_twin.rs +161 -0
  449. tididi-0.1.0/src/reduce/contract/tests/inline_denorm.rs +482 -0
  450. tididi-0.1.0/src/reduce/contract/tests/listing.rs +94 -0
  451. tididi-0.1.0/src/reduce/contract/tests/merge_scratch.rs +264 -0
  452. tididi-0.1.0/src/reduce/contract/tests/mod.rs +24 -0
  453. tididi-0.1.0/src/reduce/contract/tests/sweep/deadline.rs +107 -0
  454. tididi-0.1.0/src/reduce/contract/tests/sweep/listed.rs +85 -0
  455. tididi-0.1.0/src/reduce/contract/tests/sweep/mod.rs +4 -0
  456. tididi-0.1.0/src/reduce/driver.rs +182 -0
  457. tididi-0.1.0/src/reduce/mod.rs +123 -0
  458. tididi-0.1.0/src/reduce/prune.rs +1482 -0
  459. tididi-0.1.0/src/reduce/slot_prune/mod.rs +97 -0
  460. tididi-0.1.0/src/reduce/slot_prune/tests/compaction.rs +335 -0
  461. tididi-0.1.0/src/reduce/slot_prune/tests/mod.rs +3 -0
  462. tididi-0.1.0/src/reduce/tests/canonicity.rs +178 -0
  463. tididi-0.1.0/src/reduce/tests/fixpoint.rs +53 -0
  464. tididi-0.1.0/src/reduce/tests/marginal.rs +301 -0
  465. tididi-0.1.0/src/reduce/tests/mod.rs +44 -0
  466. tididi-0.1.0/src/reduce/tests/pair_arena.rs +74 -0
  467. tididi-0.1.0/src/reduce/tests/plans.rs +114 -0
  468. tididi-0.1.0/src/reduce/tests/pruning.rs +564 -0
  469. tididi-0.1.0/src/reduce/tests/twins.rs +345 -0
  470. tididi-0.1.0/src/reduce/tests/twins_budget.rs +424 -0
  471. tididi-0.1.0/src/reduce/tests/twins_inline.rs +296 -0
  472. tididi-0.1.0/src/reduce/tests/whole_diagrams.rs +339 -0
  473. tididi-0.1.0/src/restructure/distinct.rs +330 -0
  474. tididi-0.1.0/src/restructure/embed.rs +1077 -0
  475. tididi-0.1.0/src/restructure/expand.rs +371 -0
  476. tididi-0.1.0/src/restructure/graft.rs +233 -0
  477. tididi-0.1.0/src/restructure/mod.rs +368 -0
  478. tididi-0.1.0/src/restructure/placement.rs +381 -0
  479. tididi-0.1.0/src/restructure/project.rs +267 -0
  480. tididi-0.1.0/src/restructure/relevel.rs +911 -0
  481. tididi-0.1.0/src/restructure/scratch.rs +115 -0
  482. tididi-0.1.0/src/restructure/search/cluster.rs +286 -0
  483. tididi-0.1.0/src/restructure/search/local.rs +356 -0
  484. tididi-0.1.0/src/restructure/search/mod.rs +146 -0
  485. tididi-0.1.0/src/restructure/search/multistart.rs +152 -0
  486. tididi-0.1.0/src/restructure/search/policy.rs +273 -0
  487. tididi-0.1.0/src/restructure/search/pool.rs +564 -0
  488. tididi-0.1.0/src/restructure/search/probe.rs +421 -0
  489. tididi-0.1.0/src/restructure/search/tests/budget.rs +39 -0
  490. tididi-0.1.0/src/restructure/search/tests/cluster/deadline.rs +137 -0
  491. tididi-0.1.0/src/restructure/search/tests/cluster/mod.rs +62 -0
  492. tididi-0.1.0/src/restructure/search/tests/invalidation_partition.rs +207 -0
  493. tididi-0.1.0/src/restructure/search/tests/local/mod.rs +3 -0
  494. tididi-0.1.0/src/restructure/search/tests/local/searches.rs +170 -0
  495. tididi-0.1.0/src/restructure/search/tests/mod.rs +6 -0
  496. tididi-0.1.0/src/restructure/search/tests/multistart.rs +43 -0
  497. tididi-0.1.0/src/restructure/search/tests/policies.rs +330 -0
  498. tididi-0.1.0/src/restructure/search/tests/pool.rs +465 -0
  499. tididi-0.1.0/src/restructure/search/tests/sequences.rs +173 -0
  500. tididi-0.1.0/src/restructure/search/tests/unwind.rs +44 -0
  501. tididi-0.1.0/src/restructure/search/tests/worklists.rs +49 -0
  502. tididi-0.1.0/src/restructure/splice.rs +75 -0
  503. tididi-0.1.0/src/restructure/tag.rs +419 -0
  504. tididi-0.1.0/src/restructure/target.rs +615 -0
  505. tididi-0.1.0/src/restructure/tests/distinct.rs +109 -0
  506. tididi-0.1.0/src/restructure/tests/embed/marginal.rs +220 -0
  507. tididi-0.1.0/src/restructure/tests/embed/mirror.rs +98 -0
  508. tididi-0.1.0/src/restructure/tests/embed/mod.rs +7 -0
  509. tididi-0.1.0/src/restructure/tests/embed/moving.rs +395 -0
  510. tididi-0.1.0/src/restructure/tests/embed/onto.rs +404 -0
  511. tididi-0.1.0/src/restructure/tests/embed/placement.rs +193 -0
  512. tididi-0.1.0/src/restructure/tests/embed/plans.rs +77 -0
  513. tididi-0.1.0/src/restructure/tests/embed/validation.rs +157 -0
  514. tididi-0.1.0/src/restructure/tests/expand.rs +317 -0
  515. tididi-0.1.0/src/restructure/tests/graft/grafting.rs +271 -0
  516. tididi-0.1.0/src/restructure/tests/graft/mod.rs +2 -0
  517. tididi-0.1.0/src/restructure/tests/graft/validation.rs +179 -0
  518. tididi-0.1.0/src/restructure/tests/placement.rs +80 -0
  519. tididi-0.1.0/src/restructure/tests/project.rs +125 -0
  520. tididi-0.1.0/src/restructure/tests/relevel/mod.rs +5 -0
  521. tididi-0.1.0/src/restructure/tests/relevel/outer.rs +119 -0
  522. tididi-0.1.0/src/restructure/tests/relevel/rotation.rs +512 -0
  523. tididi-0.1.0/src/restructure/tests/relevel/sort.rs +49 -0
  524. tididi-0.1.0/src/restructure/tests/scratch.rs +17 -0
  525. tididi-0.1.0/src/restructure/tests/splice.rs +47 -0
  526. tididi-0.1.0/src/restructure/tests/tag.rs +299 -0
  527. tididi-0.1.0/src/restructure/tests/target.rs +320 -0
  528. tididi-0.1.0/src/sort.rs +355 -0
  529. tididi-0.1.0/src/test_helpers/access.rs +126 -0
  530. tididi-0.1.0/src/test_helpers/check/canonicity.rs +56 -0
  531. tididi-0.1.0/src/test_helpers/check/implicit.rs +78 -0
  532. tididi-0.1.0/src/test_helpers/check/marginal.rs +493 -0
  533. tididi-0.1.0/src/test_helpers/check/marginal_counts.rs +45 -0
  534. tididi-0.1.0/src/test_helpers/check/mod.rs +55 -0
  535. tididi-0.1.0/src/test_helpers/check/rotation.rs +48 -0
  536. tididi-0.1.0/src/test_helpers/check/signature.rs +208 -0
  537. tididi-0.1.0/src/test_helpers/check/soundness.rs +130 -0
  538. tididi-0.1.0/src/test_helpers/check/structure.rs +134 -0
  539. tididi-0.1.0/src/test_helpers/check/tests/invariants.rs +484 -0
  540. tididi-0.1.0/src/test_helpers/check/tests/marginal/canonical_form.rs +263 -0
  541. tididi-0.1.0/src/test_helpers/check/tests/marginal/mod.rs +3 -0
  542. tididi-0.1.0/src/test_helpers/check/tests/marginal_counts/mod.rs +1 -0
  543. tididi-0.1.0/src/test_helpers/check/tests/marginal_counts/uniqueness.rs +215 -0
  544. tididi-0.1.0/src/test_helpers/check/tests/mod.rs +4 -0
  545. tididi-0.1.0/src/test_helpers/check/tests/same_function_same_diagram.rs +127 -0
  546. tididi-0.1.0/src/test_helpers/cnf.rs +191 -0
  547. tididi-0.1.0/src/test_helpers/compile.rs +179 -0
  548. tididi-0.1.0/src/test_helpers/diagrams.rs +254 -0
  549. tididi-0.1.0/src/test_helpers/gen.rs +201 -0
  550. tididi-0.1.0/src/test_helpers/implicit.rs +243 -0
  551. tididi-0.1.0/src/test_helpers/mod.rs +62 -0
  552. tididi-0.1.0/src/test_helpers/oracle.rs +608 -0
  553. tididi-0.1.0/src/test_helpers/toy.rs +158 -0
  554. tididi-0.1.0/src/tests/build/checked.rs +155 -0
  555. tididi-0.1.0/src/tests/build/constructors.rs +257 -0
  556. tididi-0.1.0/src/tests/build/mod.rs +4 -0
  557. tididi-0.1.0/src/value/domain/count.rs +351 -0
  558. tididi-0.1.0/src/value/domain/tests/count.rs +154 -0
  559. tididi-0.1.0/src/value/domain/tests/weight/child_views.rs +36 -0
  560. tididi-0.1.0/src/value/domain/tests/weight/mod.rs +2 -0
  561. tididi-0.1.0/src/value/domain/weight.rs +216 -0
  562. tididi-0.1.0/src/value/domain.rs +233 -0
  563. tididi-0.1.0/src/value/fold.rs +413 -0
  564. tididi-0.1.0/src/value/mod.rs +369 -0
  565. tididi-0.1.0/src/value/slots.rs +470 -0
  566. tididi-0.1.0/src/value/stream_cache.rs +102 -0
  567. tididi-0.1.0/src/value/tests/count_vec.rs +435 -0
  568. tididi-0.1.0/src/value/tests/mod.rs +7 -0
  569. tididi-0.1.0/src/value/tests/slots/compaction.rs +34 -0
  570. tididi-0.1.0/src/value/tests/slots/mod.rs +56 -0
  571. tididi-0.1.0/src/value/tests/slots/sum.rs +28 -0
  572. tididi-0.1.0/src/value/tests/stream_cache.rs +113 -0
  573. tididi-0.1.0/src/value/tests/support.rs +44 -0
  574. tididi-0.1.0/src/value/tests/walk.rs +54 -0
  575. tididi-0.1.0/src/vtree/build.rs +691 -0
  576. tididi-0.1.0/src/vtree/expand.rs +69 -0
  577. tididi-0.1.0/src/vtree/graft.rs +205 -0
  578. tididi-0.1.0/src/vtree/mod.rs +123 -0
  579. tididi-0.1.0/src/vtree/node.rs +287 -0
  580. tididi-0.1.0/src/vtree/project.rs +68 -0
  581. tididi-0.1.0/src/vtree/rng.rs +47 -0
  582. tididi-0.1.0/src/vtree/rotate.rs +245 -0
  583. tididi-0.1.0/src/vtree/tests/expand.rs +59 -0
  584. tididi-0.1.0/src/vtree/tests/mod.rs +4 -0
  585. tididi-0.1.0/src/vtree/tests/rotate/mod.rs +32 -0
  586. tididi-0.1.0/src/vtree/tests/rotate/roundtrip.rs +281 -0
  587. tididi-0.1.0/src/vtree/tests/rotate/support.rs +13 -0
  588. tididi-0.1.0/src/vtree/tests/structure.rs +867 -0
  589. tididi-0.1.0/src/vtree/tests/text.rs +100 -0
  590. tididi-0.1.0/src/vtree/tests/topo/mod.rs +45 -0
  591. tididi-0.1.0/src/vtree/tests/topo/support.rs +45 -0
  592. tididi-0.1.0/src/vtree/text.rs +171 -0
  593. tididi-0.1.0/src/vtree/topo.rs +253 -0
  594. tididi-0.1.0/src/vtree/validate.rs +115 -0
  595. tididi-0.1.0/tests/api/checked_queries.rs +33 -0
  596. tididi-0.1.0/tests/api/clause_inputs.rs +74 -0
  597. tididi-0.1.0/tests/api/conformance.rs +168 -0
  598. tididi-0.1.0/tests/api/counter_defaults.rs +113 -0
  599. tididi-0.1.0/tests/api/counter_evidence.rs +175 -0
  600. tididi-0.1.0/tests/api/main.rs +17 -0
  601. tididi-0.1.0/tests/api/model_sets.rs +113 -0
  602. tididi-0.1.0/tests/api/persistence.rs +227 -0
  603. tididi-0.1.0/tests/api/probability.rs +182 -0
  604. tididi-0.1.0/tests/api/quantification.rs +80 -0
  605. tididi-0.1.0/tests/api/reachability.rs +88 -0
  606. tididi-0.1.0/tests/api/structural_edits.rs +57 -0
  607. tididi-0.1.0/tests/api/support.rs +91 -0
  608. tididi-0.1.0/tests/api/table_sequences.rs +111 -0
  609. tididi-0.1.0/tests/api/testing_feature.rs +23 -0
  610. tididi-0.1.0/tests/comment_lint.rs +622 -0
  611. tididi-0.1.0/tests/conformance_cases.py +134 -0
  612. tididi-0.1.0/tests/differential.rs +1613 -0
  613. tididi-0.1.0/tests/example_docs.rs +120 -0
  614. tididi-0.1.0/tests/fixtures/conformance.txt +368 -0
  615. tididi-0.1.0/tests/fixtures/conformance_sessions.txt +314 -0
  616. tididi-0.1.0/tests/package_examples.py +134 -0
  617. tididi-0.1.0/tests/rendered_docs.py +241 -0
  618. tididi-0.1.0/tests/test_release.py +43 -0
  619. tididi-0.1.0/tests/test_scenarios.py +136 -0
  620. tididi-0.1.0/tididi/__init__.py +45 -0
  621. tididi-0.1.0/tididi/__init__.pyi +122 -0
  622. tididi-0.1.0/tididi/py.typed +0 -0
@@ -0,0 +1,47 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, please cite the paper below."
3
+ type: software
4
+ title: "tididi: Tree Decision Diagrams"
5
+ abstract: "A Rust library for Tree Decision Diagrams: canonical vtree-shaped decision diagrams for Boolean functions, with model counting and semiring evaluation."
6
+ license: Apache-2.0
7
+ repository-code: "https://github.com/Tractables/tididi"
8
+ url: "https://tractables.github.io/tididi/tididi/"
9
+ version: 0.1.0
10
+ authors:
11
+ - family-names: "Capelli"
12
+ given-names: "Florent"
13
+ - family-names: "Choi"
14
+ given-names: "YooJung"
15
+ - family-names: "Mengel"
16
+ given-names: "Stefan"
17
+ - family-names: "Muñoz"
18
+ given-names: "Martín"
19
+ - family-names: "Van den Broeck"
20
+ given-names: "Guy"
21
+ affiliation: "Computer Science Department, University of California, Los Angeles"
22
+ keywords:
23
+ - decision diagram
24
+ - model counting
25
+ - knowledge compilation
26
+ - binary decision diagram
27
+ - weighted model counting
28
+ preferred-citation:
29
+ type: article
30
+ title: "A Canonical Generalization of OBDD"
31
+ year: 2026
32
+ journal: "arXiv"
33
+ number: "2604.05537"
34
+ doi: "10.48550/arXiv.2604.05537"
35
+ url: "https://arxiv.org/abs/2604.05537"
36
+ authors:
37
+ - family-names: "Capelli"
38
+ given-names: "Florent"
39
+ - family-names: "Choi"
40
+ given-names: "YooJung"
41
+ - family-names: "Mengel"
42
+ given-names: "Stefan"
43
+ - family-names: "Muñoz"
44
+ given-names: "Martín"
45
+ - family-names: "Van den Broeck"
46
+ given-names: "Guy"
47
+ affiliation: "Computer Science Department, University of California, Los Angeles"
@@ -0,0 +1,121 @@
1
+ # Contributing
2
+
3
+ ## Checks
4
+
5
+ ```sh
6
+ cargo test --all-targets
7
+ cargo test --doc
8
+ cargo clippy --all-targets -- -D warnings
9
+ cargo clippy --release --all-targets -- -D warnings
10
+ RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
11
+ python3 tests/rendered_docs.py --self-test
12
+ python3 tests/rendered_docs.py target/doc --unbundled
13
+ python3 scripts/prepare_docs.py target/doc
14
+ python3 tests/rendered_docs.py target/doc
15
+ python3 tests/package_examples.py --self-test
16
+ python3 scripts/check_scenarios.py
17
+ python3 -m unittest discover -s tests -p test_scenarios.py
18
+ python3 -m unittest discover -s tests -p test_release.py
19
+ python3 scripts/check_release.py
20
+ ```
21
+
22
+ The README snippet matches the tested crate example; `docs/` is compiled into
23
+ rustdoc. Keep walkthrough excerpts in sync with their runnable programs in
24
+ `examples/`. The `tested-example` code
25
+ block class is reserved for excerpts verified by `tests/example_docs.rs`.
26
+ Follow printing excerpts with `Output:` and a `text` block;
27
+ `tests/package_examples.py` checks those blocks against the programs’ output.
28
+
29
+ Changes to diagram operations also need the randomized differential suite,
30
+ with and without debug assertions:
31
+
32
+ ```sh
33
+ cargo test --test differential -- --ignored
34
+ cargo test --release --test differential -- --ignored
35
+ ```
36
+
37
+ Set `TIDIDI_FUZZ_SEED` to replay a run and `TIDIDI_FUZZ_SECONDS` to set its duration.
38
+
39
+ Changes to packaging, examples or their displayed output also need `cargo package`
40
+ followed by `python3 tests/package_examples.py`, which runs each example as a
41
+ standalone consumer of the crate archive.
42
+
43
+ ## Shared teaching scenarios
44
+
45
+ Hidden `scenario:` comments link teaching material to its script and complete
46
+ instance list in [docs/scenarios.md](docs/scenarios.md). When changing a lesson,
47
+ update that script as needed and review its Rust, Python, C and figure instances.
48
+ Then run `python3 scripts/check_scenarios.py --review <scenario-id>` to record
49
+ that review. CI rejects missing links, unregistered lessons and stale reviews;
50
+ it does not establish semantic agreement. Keep running the example checks.
51
+
52
+ ## Python bindings
53
+
54
+ The independent package in `bindings/python` calls this crate through its public
55
+ API. Its [README](bindings/python/README.rst) gives the build and test commands.
56
+ Sphinx Gallery executes the narrative scripts in `bindings/python/examples` to
57
+ produce the tutorials and their output; edit those scripts, not generated pages.
58
+ Keep Python signatures in `tididi/__init__.pyi` aligned with the extension.
59
+ CI tests wheels on Linux, macOS, and Windows, and checks a source-archive install.
60
+
61
+ ## C bindings
62
+
63
+ `bindings/c` calls the public Rust API through an opaque-handle interface. Run
64
+ `python bindings/c/check.py --docs` to verify the generated header, C/C++ consumers,
65
+ installed CMake package and executable guide. Its [README](bindings/c/README.rst)
66
+ lists prerequisites. Edit function contracts in `bindings/c/src`; the header and
67
+ API reference are generated from them. Tutorials include the compiled C sources
68
+ and captured output. CI checks Linux, macOS and Windows.
69
+
70
+ ## Repository conventions
71
+
72
+ - Do not run rustfmt over the crate; it is not rustfmt-formatted.
73
+ - Tests that build diagrams must call `test_helpers::assert_canonical`:
74
+ a correct query result alone does not establish a valid representation.
75
+ - Keep algorithms single-threaded. Callers control parallelism, limits and
76
+ memory probes; the library reads no environment variables and has no
77
+ process-wide state or native dependencies. Consumers need no Cargo features;
78
+ `testing` exposes the generators and oracles in `test_helpers` and keeps its
79
+ invariant checkers in a release build, as stated in the
80
+ [architecture reference](docs/architecture.md#invariants).
81
+ - Return errors for invalid input and refused work. Named operations are
82
+ checked; do not add panicking twins or `try_` aliases.
83
+ - Put each operation's contract on its default entry point. Batch methods
84
+ link to that contract and explain their limit behavior. Guides introduce
85
+ tasks and link to the items instead of repeating their contracts. Introduce
86
+ Boolean expressions with `!`, `&` and `|`; introduce checked calls when
87
+ discussing error handling. Name the shared vtree `vtree`.
88
+ - Public docs describe current behavior; keep benchmark results, development
89
+ history and implementation debates out of them.
90
+ - Put unit tests in a nearby `tests/` directory: for a standalone `foo.rs`,
91
+ `tests/foo.rs` (or `tests/foo/` for several files) declared with a `#[path]`
92
+ module attribute. Implementation directories hold implementation code;
93
+ integration tests go in the crate-root `tests/`. Use fixed seeds and no
94
+ timing assertions. `tests/comment_lint.rs` checks comments and test
95
+ placement; fix a violation rather than adding an exemption.
96
+ - Keep the vtree text format and shared constructors/accessors compatible
97
+ with [vitri](https://github.com/Tractables/vitri).
98
+ - Commit messages must be suitable for publication: no tool footers, session
99
+ links or machine-specific details.
100
+
101
+ [Architecture](docs/architecture.md) documents module responsibilities and
102
+ the representation invariants; add a row to its module table for a new public
103
+ module, and reference its invariants from code rather than restating them.
104
+
105
+ ## Releasing
106
+
107
+ Use a `v<version>` tag matching `Cargo.toml`. Update the versioned documentation
108
+ URL in that manifest and the example/figure links in `docs/` when bumping the
109
+ version; the documentation checks catch mismatches. Publish the crate to
110
+ crates.io for versioned API docs on docs.rs. Publishing the GitHub release
111
+ runs the checks and attaches a bundled HTML archive; it does not publish the
112
+ crate. The archive is kept when the development Pages site changes.
113
+
114
+ ## Cross-language behavior
115
+
116
+ `tests/fixtures/conformance*.txt` contains operation traces, stateful query
117
+ sessions and independent answers shared by the Rust, Python and C test suites. Add semantic regressions
118
+ in `tests/conformance_cases.py`, regenerate with `--write`, and run all three
119
+ suites. Each interpreter checks every assignment, cached evidence counts,
120
+ support and implied literals. Session traces also check ownership transfers, invalid observations, resource
121
+ refusals and retries, with each language checking its own handle lifecycle. `python3 tests/conformance_cases.py` checks fixture freshness.
@@ -0,0 +1,79 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
10
+
11
+ [[package]]
12
+ name = "itoa"
13
+ version = "1.0.18"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
16
+
17
+ [[package]]
18
+ name = "num-bigint"
19
+ version = "0.4.8"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
22
+ dependencies = [
23
+ "num-integer",
24
+ "num-traits",
25
+ ]
26
+
27
+ [[package]]
28
+ name = "num-integer"
29
+ version = "0.1.47"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
32
+ dependencies = [
33
+ "num-traits",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "num-rational"
38
+ version = "0.4.2"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
41
+ dependencies = [
42
+ "num-bigint",
43
+ "num-integer",
44
+ "num-traits",
45
+ ]
46
+
47
+ [[package]]
48
+ name = "num-traits"
49
+ version = "0.2.19"
50
+ source = "registry+https://github.com/rust-lang/crates.io-index"
51
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
52
+ dependencies = [
53
+ "autocfg",
54
+ ]
55
+
56
+ [[package]]
57
+ name = "rustc-hash"
58
+ version = "2.1.3"
59
+ source = "registry+https://github.com/rust-lang/crates.io-index"
60
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
61
+
62
+ [[package]]
63
+ name = "smallvec"
64
+ version = "1.16.0"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "b9be42f50aa861c555654aa3a37f52f4b1074bacf4e48fe0ef7fa584e80f1f0f"
67
+
68
+ [[package]]
69
+ name = "tididi"
70
+ version = "0.1.0"
71
+ dependencies = [
72
+ "itoa",
73
+ "num-bigint",
74
+ "num-rational",
75
+ "num-traits",
76
+ "rustc-hash",
77
+ "smallvec",
78
+ "tididi",
79
+ ]
@@ -0,0 +1,33 @@
1
+ [package]
2
+ name = "tididi"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ rust-version = "1.88"
6
+ description = "Tree Decision Diagrams: canonical vtree-shaped decision diagrams for Boolean functions, with model counting and semiring evaluation"
7
+ license = "Apache-2.0"
8
+ repository = "https://github.com/Tractables/tididi"
9
+ documentation = "https://docs.rs/tididi/0.1.0/tididi/"
10
+ readme = "README.md"
11
+ keywords = ["decision-diagram", "model-counting", "compilation", "bdd", "wmc"]
12
+ categories = ["science", "algorithms", "data-structures"]
13
+ exclude = ["bindings/", ".github/", ".gitignore", "CLAUDE.md", "AGENTS.md", "rust-toolchain.toml"]
14
+
15
+ [features]
16
+ # The oracles, generators and invariant checkers under `test_helpers`, and
17
+ # the synthetic byte charge `Limits::charge_in_flight`. On for
18
+ # this crate's own tests through the dev-dependency below; off for a consumer,
19
+ # whose release build then does not compile them at all.
20
+ testing = []
21
+
22
+ [dependencies]
23
+ num-bigint = "0.4"
24
+ num-rational = "0.4"
25
+ num-traits = "0.2"
26
+ rustc-hash = "2"
27
+ itoa = "1"
28
+ smallvec = { version = "1", features = ["union"] }
29
+
30
+ [dev-dependencies]
31
+ # The crate's own tests, examples and doctests build against it as a consumer
32
+ # would, so this is how they reach `test_helpers`.
33
+ tididi = { path = ".", features = ["testing"] }
tididi-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.