ruby_abc 0.0.3 → 0.1.0

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 (1732) hide show
  1. checksums.yaml +5 -5
  2. data/.yardopts +7 -0
  3. data/LICENSE +51 -52
  4. data/README.md +96 -37
  5. data/bin/ruby_abc +103 -0
  6. data/ext/ruby_abc/extconf.rb +58 -0
  7. data/ext/{ruby_abc.c → ruby_abc/ruby_abc.c} +45 -72
  8. data/ext/ruby_abc/ruby_abc.map +6 -0
  9. data/ext/{ruby_abc_wrapper.c → ruby_abc/ruby_abc_wrapper.c} +0 -0
  10. data/ext/ruby_abc/ruby_abc_wrapper.h +39 -0
  11. data/lib/ruby_abc/version.rb +4 -0
  12. data/lib/ruby_abc.rb +247 -225
  13. data/share/bash_completion/ruby_abc.bash-completion.sh +24 -0
  14. data/share/osu018.genlib +66 -0
  15. data/share/simple.genlib +25 -0
  16. data/test/test_ruby_abc.rb +1 -1
  17. metadata +19 -1727
  18. data/Rakefile +0 -83
  19. data/bin/rubyabc_synthesis +0 -71
  20. data/ext/abc/CMakeLists.txt +0 -103
  21. data/ext/abc/Makefile +0 -213
  22. data/ext/abc/abc.rc +0 -146
  23. data/ext/abc/abcexe.dsp +0 -103
  24. data/ext/abc/abclib.dsp +0 -5948
  25. data/ext/abc/abcspace.dsw +0 -44
  26. data/ext/abc/arch_flags.c +0 -17
  27. data/ext/abc/copyright.txt +0 -23
  28. data/ext/abc/depends.sh +0 -13
  29. data/ext/abc/i10.aig +0 -752
  30. data/ext/abc/lib/pthread.h +0 -1369
  31. data/ext/abc/lib/sched.h +0 -178
  32. data/ext/abc/lib/semaphore.h +0 -166
  33. data/ext/abc/lib/x64/pthreadVC2.dll +0 -0
  34. data/ext/abc/lib/x64/pthreadVC2.lib +0 -0
  35. data/ext/abc/lib/x86/pthreadVC2.dll +0 -0
  36. data/ext/abc/lib/x86/pthreadVC2.lib +0 -0
  37. data/ext/abc/readme.md +0 -111
  38. data/ext/abc/readmeaig +0 -47
  39. data/ext/abc/src/aig/aig/aig.h +0 -713
  40. data/ext/abc/src/aig/aig/aigCanon.c +0 -701
  41. data/ext/abc/src/aig/aig/aigCheck.c +0 -168
  42. data/ext/abc/src/aig/aig/aigCuts.c +0 -673
  43. data/ext/abc/src/aig/aig/aigDfs.c +0 -1136
  44. data/ext/abc/src/aig/aig/aigDoms.c +0 -1154
  45. data/ext/abc/src/aig/aig/aigDup.c +0 -1335
  46. data/ext/abc/src/aig/aig/aigFact.c +0 -734
  47. data/ext/abc/src/aig/aig/aigFanout.c +0 -194
  48. data/ext/abc/src/aig/aig/aigFrames.c +0 -140
  49. data/ext/abc/src/aig/aig/aigInter.c +0 -301
  50. data/ext/abc/src/aig/aig/aigJust.c +0 -316
  51. data/ext/abc/src/aig/aig/aigMan.c +0 -486
  52. data/ext/abc/src/aig/aig/aigMem.c +0 -610
  53. data/ext/abc/src/aig/aig/aigMffc.c +0 -316
  54. data/ext/abc/src/aig/aig/aigObj.c +0 -536
  55. data/ext/abc/src/aig/aig/aigOper.c +0 -606
  56. data/ext/abc/src/aig/aig/aigOrder.c +0 -176
  57. data/ext/abc/src/aig/aig/aigPack.c +0 -404
  58. data/ext/abc/src/aig/aig/aigPart.c +0 -1613
  59. data/ext/abc/src/aig/aig/aigPartReg.c +0 -629
  60. data/ext/abc/src/aig/aig/aigPartSat.c +0 -618
  61. data/ext/abc/src/aig/aig/aigRepar.c +0 -403
  62. data/ext/abc/src/aig/aig/aigRepr.c +0 -559
  63. data/ext/abc/src/aig/aig/aigRet.c +0 -975
  64. data/ext/abc/src/aig/aig/aigRetF.c +0 -214
  65. data/ext/abc/src/aig/aig/aigScl.c +0 -708
  66. data/ext/abc/src/aig/aig/aigShow.c +0 -368
  67. data/ext/abc/src/aig/aig/aigSplit.c +0 -330
  68. data/ext/abc/src/aig/aig/aigTable.c +0 -277
  69. data/ext/abc/src/aig/aig/aigTest.c +0 -39
  70. data/ext/abc/src/aig/aig/aigTiming.c +0 -356
  71. data/ext/abc/src/aig/aig/aigTruth.c +0 -103
  72. data/ext/abc/src/aig/aig/aigTsim.c +0 -526
  73. data/ext/abc/src/aig/aig/aigUtil.c +0 -1575
  74. data/ext/abc/src/aig/aig/aigWin.c +0 -189
  75. data/ext/abc/src/aig/aig/aig_.c +0 -53
  76. data/ext/abc/src/aig/aig/module.make +0 -31
  77. data/ext/abc/src/aig/gia/gia.c +0 -52
  78. data/ext/abc/src/aig/gia/gia.h +0 -1667
  79. data/ext/abc/src/aig/gia/giaAgi.c +0 -238
  80. data/ext/abc/src/aig/gia/giaAig.c +0 -676
  81. data/ext/abc/src/aig/gia/giaAig.h +0 -78
  82. data/ext/abc/src/aig/gia/giaAiger.c +0 -1479
  83. data/ext/abc/src/aig/gia/giaAigerExt.c +0 -326
  84. data/ext/abc/src/aig/gia/giaBalAig.c +0 -1095
  85. data/ext/abc/src/aig/gia/giaBalLut.c +0 -982
  86. data/ext/abc/src/aig/gia/giaBalMap.c +0 -326
  87. data/ext/abc/src/aig/gia/giaBidec.c +0 -305
  88. data/ext/abc/src/aig/gia/giaCCof.c +0 -349
  89. data/ext/abc/src/aig/gia/giaCSat.c +0 -1105
  90. data/ext/abc/src/aig/gia/giaCSatOld.c +0 -804
  91. data/ext/abc/src/aig/gia/giaCTas.c +0 -1790
  92. data/ext/abc/src/aig/gia/giaCTas2.c +0 -208
  93. data/ext/abc/src/aig/gia/giaCex.c +0 -392
  94. data/ext/abc/src/aig/gia/giaClp.c +0 -422
  95. data/ext/abc/src/aig/gia/giaCof.c +0 -1002
  96. data/ext/abc/src/aig/gia/giaCone.c +0 -590
  97. data/ext/abc/src/aig/gia/giaConstr.c +0 -52
  98. data/ext/abc/src/aig/gia/giaCut.c +0 -646
  99. data/ext/abc/src/aig/gia/giaDfs.c +0 -582
  100. data/ext/abc/src/aig/gia/giaDup.c +0 -4791
  101. data/ext/abc/src/aig/gia/giaEdge.c +0 -1000
  102. data/ext/abc/src/aig/gia/giaEmbed.c +0 -1876
  103. data/ext/abc/src/aig/gia/giaEnable.c +0 -650
  104. data/ext/abc/src/aig/gia/giaEquiv.c +0 -2416
  105. data/ext/abc/src/aig/gia/giaEra.c +0 -602
  106. data/ext/abc/src/aig/gia/giaEra2.c +0 -1963
  107. data/ext/abc/src/aig/gia/giaEsop.c +0 -541
  108. data/ext/abc/src/aig/gia/giaFalse.c +0 -552
  109. data/ext/abc/src/aig/gia/giaFanout.c +0 -338
  110. data/ext/abc/src/aig/gia/giaForce.c +0 -1106
  111. data/ext/abc/src/aig/gia/giaFrames.c +0 -996
  112. data/ext/abc/src/aig/gia/giaFront.c +0 -295
  113. data/ext/abc/src/aig/gia/giaFx.c +0 -487
  114. data/ext/abc/src/aig/gia/giaGiarf.c +0 -1079
  115. data/ext/abc/src/aig/gia/giaGig.c +0 -506
  116. data/ext/abc/src/aig/gia/giaGlitch.c +0 -786
  117. data/ext/abc/src/aig/gia/giaHash.c +0 -816
  118. data/ext/abc/src/aig/gia/giaHcd.c +0 -689
  119. data/ext/abc/src/aig/gia/giaIf.c +0 -2536
  120. data/ext/abc/src/aig/gia/giaIff.c +0 -444
  121. data/ext/abc/src/aig/gia/giaIiff.c +0 -62
  122. data/ext/abc/src/aig/gia/giaIiff.h +0 -54
  123. data/ext/abc/src/aig/gia/giaIso.c +0 -1331
  124. data/ext/abc/src/aig/gia/giaIso2.c +0 -776
  125. data/ext/abc/src/aig/gia/giaIso3.c +0 -167
  126. data/ext/abc/src/aig/gia/giaJf.c +0 -1805
  127. data/ext/abc/src/aig/gia/giaKf.c +0 -1341
  128. data/ext/abc/src/aig/gia/giaLf.c +0 -2301
  129. data/ext/abc/src/aig/gia/giaMan.c +0 -1126
  130. data/ext/abc/src/aig/gia/giaMem.c +0 -598
  131. data/ext/abc/src/aig/gia/giaMf.c +0 -1741
  132. data/ext/abc/src/aig/gia/giaMffc.c +0 -313
  133. data/ext/abc/src/aig/gia/giaMfs.c +0 -477
  134. data/ext/abc/src/aig/gia/giaMini.c +0 -574
  135. data/ext/abc/src/aig/gia/giaMuxes.c +0 -915
  136. data/ext/abc/src/aig/gia/giaNf.c +0 -2420
  137. data/ext/abc/src/aig/gia/giaOf.c +0 -1866
  138. data/ext/abc/src/aig/gia/giaPack.c +0 -207
  139. data/ext/abc/src/aig/gia/giaPat.c +0 -135
  140. data/ext/abc/src/aig/gia/giaPf.c +0 -1354
  141. data/ext/abc/src/aig/gia/giaProp.c +0 -176
  142. data/ext/abc/src/aig/gia/giaQbf.c +0 -701
  143. data/ext/abc/src/aig/gia/giaResub.c +0 -292
  144. data/ext/abc/src/aig/gia/giaRetime.c +0 -304
  145. data/ext/abc/src/aig/gia/giaRex.c +0 -545
  146. data/ext/abc/src/aig/gia/giaSat.c +0 -427
  147. data/ext/abc/src/aig/gia/giaSat3.c +0 -136
  148. data/ext/abc/src/aig/gia/giaSatEdge.c +0 -537
  149. data/ext/abc/src/aig/gia/giaSatLE.c +0 -1083
  150. data/ext/abc/src/aig/gia/giaSatLut.c +0 -1225
  151. data/ext/abc/src/aig/gia/giaSatMap.c +0 -554
  152. data/ext/abc/src/aig/gia/giaSatoko.c +0 -274
  153. data/ext/abc/src/aig/gia/giaScl.c +0 -300
  154. data/ext/abc/src/aig/gia/giaScript.c +0 -783
  155. data/ext/abc/src/aig/gia/giaShow.c +0 -1164
  156. data/ext/abc/src/aig/gia/giaShrink.c +0 -154
  157. data/ext/abc/src/aig/gia/giaShrink6.c +0 -492
  158. data/ext/abc/src/aig/gia/giaShrink7.c +0 -373
  159. data/ext/abc/src/aig/gia/giaSim.c +0 -905
  160. data/ext/abc/src/aig/gia/giaSim2.c +0 -706
  161. data/ext/abc/src/aig/gia/giaSort.c +0 -273
  162. data/ext/abc/src/aig/gia/giaSpeedup.c +0 -805
  163. data/ext/abc/src/aig/gia/giaSplit.c +0 -578
  164. data/ext/abc/src/aig/gia/giaStg.c +0 -528
  165. data/ext/abc/src/aig/gia/giaStr.c +0 -1865
  166. data/ext/abc/src/aig/gia/giaSupMin.c +0 -165
  167. data/ext/abc/src/aig/gia/giaSupp.c +0 -886
  168. data/ext/abc/src/aig/gia/giaSweep.c +0 -777
  169. data/ext/abc/src/aig/gia/giaSweeper.c +0 -1185
  170. data/ext/abc/src/aig/gia/giaSwitch.c +0 -829
  171. data/ext/abc/src/aig/gia/giaTim.c +0 -1017
  172. data/ext/abc/src/aig/gia/giaTis.c +0 -213
  173. data/ext/abc/src/aig/gia/giaTruth.c +0 -639
  174. data/ext/abc/src/aig/gia/giaTsim.c +0 -757
  175. data/ext/abc/src/aig/gia/giaUnate.c +0 -255
  176. data/ext/abc/src/aig/gia/giaUtil.c +0 -2136
  177. data/ext/abc/src/aig/gia/module.make +0 -89
  178. data/ext/abc/src/aig/hop/cudd2.c +0 -360
  179. data/ext/abc/src/aig/hop/cudd2.h +0 -86
  180. data/ext/abc/src/aig/hop/hop.h +0 -356
  181. data/ext/abc/src/aig/hop/hopBalance.c +0 -401
  182. data/ext/abc/src/aig/hop/hopCheck.c +0 -115
  183. data/ext/abc/src/aig/hop/hopDfs.c +0 -591
  184. data/ext/abc/src/aig/hop/hopMan.c +0 -169
  185. data/ext/abc/src/aig/hop/hopMem.c +0 -120
  186. data/ext/abc/src/aig/hop/hopObj.c +0 -277
  187. data/ext/abc/src/aig/hop/hopOper.c +0 -378
  188. data/ext/abc/src/aig/hop/hopTable.c +0 -232
  189. data/ext/abc/src/aig/hop/hopTruth.c +0 -274
  190. data/ext/abc/src/aig/hop/hopUtil.c +0 -578
  191. data/ext/abc/src/aig/hop/hop_.c +0 -53
  192. data/ext/abc/src/aig/hop/module.make +0 -10
  193. data/ext/abc/src/aig/ioa/ioa.h +0 -87
  194. data/ext/abc/src/aig/ioa/ioaReadAig.c +0 -465
  195. data/ext/abc/src/aig/ioa/ioaUtil.c +0 -146
  196. data/ext/abc/src/aig/ioa/ioaWriteAig.c +0 -599
  197. data/ext/abc/src/aig/ioa/module.make +0 -3
  198. data/ext/abc/src/aig/ivy/attr.h +0 -418
  199. data/ext/abc/src/aig/ivy/ivy.h +0 -562
  200. data/ext/abc/src/aig/ivy/ivyBalance.c +0 -414
  201. data/ext/abc/src/aig/ivy/ivyCanon.c +0 -149
  202. data/ext/abc/src/aig/ivy/ivyCheck.c +0 -278
  203. data/ext/abc/src/aig/ivy/ivyCut.c +0 -995
  204. data/ext/abc/src/aig/ivy/ivyCutTrav.c +0 -478
  205. data/ext/abc/src/aig/ivy/ivyDfs.c +0 -498
  206. data/ext/abc/src/aig/ivy/ivyDsd.c +0 -831
  207. data/ext/abc/src/aig/ivy/ivyFanout.c +0 -314
  208. data/ext/abc/src/aig/ivy/ivyFastMap.c +0 -1569
  209. data/ext/abc/src/aig/ivy/ivyFraig.c +0 -2972
  210. data/ext/abc/src/aig/ivy/ivyHaig.c +0 -535
  211. data/ext/abc/src/aig/ivy/ivyMan.c +0 -552
  212. data/ext/abc/src/aig/ivy/ivyMem.c +0 -121
  213. data/ext/abc/src/aig/ivy/ivyMulti.c +0 -312
  214. data/ext/abc/src/aig/ivy/ivyMulti8.c +0 -432
  215. data/ext/abc/src/aig/ivy/ivyObj.c +0 -481
  216. data/ext/abc/src/aig/ivy/ivyOper.c +0 -298
  217. data/ext/abc/src/aig/ivy/ivyResyn.c +0 -201
  218. data/ext/abc/src/aig/ivy/ivyRwr.c +0 -618
  219. data/ext/abc/src/aig/ivy/ivyRwrAlg.c +0 -413
  220. data/ext/abc/src/aig/ivy/ivySeq.c +0 -1142
  221. data/ext/abc/src/aig/ivy/ivyShow.c +0 -343
  222. data/ext/abc/src/aig/ivy/ivyTable.c +0 -272
  223. data/ext/abc/src/aig/ivy/ivyUtil.c +0 -824
  224. data/ext/abc/src/aig/ivy/ivy_.c +0 -53
  225. data/ext/abc/src/aig/ivy/module.make +0 -22
  226. data/ext/abc/src/aig/miniaig/abcOper.h +0 -249
  227. data/ext/abc/src/aig/miniaig/miniaig.h +0 -346
  228. data/ext/abc/src/aig/miniaig/minilut.h +0 -288
  229. data/ext/abc/src/aig/miniaig/module.make +0 -1
  230. data/ext/abc/src/aig/miniaig/ndr.h +0 -521
  231. data/ext/abc/src/aig/saig/module.make +0 -26
  232. data/ext/abc/src/aig/saig/saig.h +0 -200
  233. data/ext/abc/src/aig/saig/saigCone.c +0 -181
  234. data/ext/abc/src/aig/saig/saigConstr.c +0 -484
  235. data/ext/abc/src/aig/saig/saigConstr2.c +0 -1013
  236. data/ext/abc/src/aig/saig/saigDual.c +0 -240
  237. data/ext/abc/src/aig/saig/saigDup.c +0 -600
  238. data/ext/abc/src/aig/saig/saigGlaCba.c +0 -840
  239. data/ext/abc/src/aig/saig/saigGlaPba.c +0 -589
  240. data/ext/abc/src/aig/saig/saigGlaPba2.c +0 -558
  241. data/ext/abc/src/aig/saig/saigInd.c +0 -409
  242. data/ext/abc/src/aig/saig/saigIoa.c +0 -405
  243. data/ext/abc/src/aig/saig/saigIso.c +0 -628
  244. data/ext/abc/src/aig/saig/saigIsoFast.c +0 -353
  245. data/ext/abc/src/aig/saig/saigIsoSlow.c +0 -1224
  246. data/ext/abc/src/aig/saig/saigMiter.c +0 -1317
  247. data/ext/abc/src/aig/saig/saigOutDec.c +0 -205
  248. data/ext/abc/src/aig/saig/saigPhase.c +0 -1081
  249. data/ext/abc/src/aig/saig/saigRefSat.c +0 -986
  250. data/ext/abc/src/aig/saig/saigRetFwd.c +0 -248
  251. data/ext/abc/src/aig/saig/saigRetMin.c +0 -705
  252. data/ext/abc/src/aig/saig/saigRetStep.c +0 -236
  253. data/ext/abc/src/aig/saig/saigScl.c +0 -115
  254. data/ext/abc/src/aig/saig/saigSimFast.c +0 -451
  255. data/ext/abc/src/aig/saig/saigSimMv.c +0 -956
  256. data/ext/abc/src/aig/saig/saigSimSeq.c +0 -518
  257. data/ext/abc/src/aig/saig/saigStrSim.c +0 -976
  258. data/ext/abc/src/aig/saig/saigSwitch.c +0 -573
  259. data/ext/abc/src/aig/saig/saigSynch.c +0 -665
  260. data/ext/abc/src/aig/saig/saigTempor.c +0 -256
  261. data/ext/abc/src/aig/saig/saigTrans.c +0 -428
  262. data/ext/abc/src/aig/saig/saigUnfold2.c +0 -497
  263. data/ext/abc/src/aig/saig/saigWnd.c +0 -816
  264. data/ext/abc/src/aig/saig/saig_.c +0 -52
  265. data/ext/abc/src/base/abc/abc.h +0 -1064
  266. data/ext/abc/src/base/abc/abcAig.c +0 -1505
  267. data/ext/abc/src/base/abc/abcBarBuf.c +0 -513
  268. data/ext/abc/src/base/abc/abcBlifMv.c +0 -1167
  269. data/ext/abc/src/base/abc/abcCheck.c +0 -953
  270. data/ext/abc/src/base/abc/abcDfs.c +0 -1910
  271. data/ext/abc/src/base/abc/abcFanOrder.c +0 -652
  272. data/ext/abc/src/base/abc/abcFanio.c +0 -366
  273. data/ext/abc/src/base/abc/abcFunc.c +0 -1273
  274. data/ext/abc/src/base/abc/abcHie.c +0 -843
  275. data/ext/abc/src/base/abc/abcHieCec.c +0 -764
  276. data/ext/abc/src/base/abc/abcHieGia.c +0 -582
  277. data/ext/abc/src/base/abc/abcHieNew.c +0 -1635
  278. data/ext/abc/src/base/abc/abcInt.h +0 -60
  279. data/ext/abc/src/base/abc/abcLatch.c +0 -778
  280. data/ext/abc/src/base/abc/abcLib.c +0 -400
  281. data/ext/abc/src/base/abc/abcMinBase.c +0 -841
  282. data/ext/abc/src/base/abc/abcNames.c +0 -802
  283. data/ext/abc/src/base/abc/abcNetlist.c +0 -511
  284. data/ext/abc/src/base/abc/abcNtk.c +0 -2298
  285. data/ext/abc/src/base/abc/abcObj.c +0 -1075
  286. data/ext/abc/src/base/abc/abcRefs.c +0 -457
  287. data/ext/abc/src/base/abc/abcShow.c +0 -458
  288. data/ext/abc/src/base/abc/abcSop.c +0 -1356
  289. data/ext/abc/src/base/abc/abcUtil.c +0 -3269
  290. data/ext/abc/src/base/abc/abc_.c +0 -52
  291. data/ext/abc/src/base/abc/module.make +0 -23
  292. data/ext/abc/src/base/abci/abc.c +0 -44490
  293. data/ext/abc/src/base/abci/abcAttach.c +0 -409
  294. data/ext/abc/src/base/abci/abcAuto.c +0 -256
  295. data/ext/abc/src/base/abci/abcBalance.c +0 -629
  296. data/ext/abc/src/base/abci/abcBidec.c +0 -156
  297. data/ext/abc/src/base/abci/abcBm.c +0 -2050
  298. data/ext/abc/src/base/abci/abcBmc.c +0 -122
  299. data/ext/abc/src/base/abci/abcCas.c +0 -128
  300. data/ext/abc/src/base/abci/abcCascade.c +0 -1062
  301. data/ext/abc/src/base/abci/abcCollapse.c +0 -957
  302. data/ext/abc/src/base/abci/abcCut.c +0 -700
  303. data/ext/abc/src/base/abci/abcDar.c +0 -4807
  304. data/ext/abc/src/base/abci/abcDarUnfold2.c +0 -69
  305. data/ext/abc/src/base/abci/abcDebug.c +0 -213
  306. data/ext/abc/src/base/abci/abcDec.c +0 -666
  307. data/ext/abc/src/base/abci/abcDetect.c +0 -1264
  308. data/ext/abc/src/base/abci/abcDress.c +0 -214
  309. data/ext/abc/src/base/abci/abcDress2.c +0 -500
  310. data/ext/abc/src/base/abci/abcDress3.c +0 -320
  311. data/ext/abc/src/base/abci/abcDsd.c +0 -710
  312. data/ext/abc/src/base/abci/abcEco.c +0 -58
  313. data/ext/abc/src/base/abci/abcEspresso.c +0 -255
  314. data/ext/abc/src/base/abci/abcExact.c +0 -3024
  315. data/ext/abc/src/base/abci/abcExtract.c +0 -752
  316. data/ext/abc/src/base/abci/abcFlop.c +0 -40
  317. data/ext/abc/src/base/abci/abcFpga.c +0 -288
  318. data/ext/abc/src/base/abci/abcFpgaFast.c +0 -195
  319. data/ext/abc/src/base/abci/abcFraig.c +0 -816
  320. data/ext/abc/src/base/abci/abcFx.c +0 -1207
  321. data/ext/abc/src/base/abci/abcFxu.c +0 -292
  322. data/ext/abc/src/base/abci/abcGen.c +0 -830
  323. data/ext/abc/src/base/abci/abcHaig.c +0 -557
  324. data/ext/abc/src/base/abci/abcIf.c +0 -830
  325. data/ext/abc/src/base/abci/abcIfMux.c +0 -422
  326. data/ext/abc/src/base/abci/abcIfif.c +0 -349
  327. data/ext/abc/src/base/abci/abcIvy.c +0 -1149
  328. data/ext/abc/src/base/abci/abcLog.c +0 -242
  329. data/ext/abc/src/base/abci/abcLut.c +0 -793
  330. data/ext/abc/src/base/abci/abcLutmin.c +0 -785
  331. data/ext/abc/src/base/abci/abcMap.c +0 -1064
  332. data/ext/abc/src/base/abci/abcMeasure.c +0 -483
  333. data/ext/abc/src/base/abci/abcMerge.c +0 -358
  334. data/ext/abc/src/base/abci/abcMffc.c +0 -1252
  335. data/ext/abc/src/base/abci/abcMfs.c +0 -469
  336. data/ext/abc/src/base/abci/abcMini.c +0 -237
  337. data/ext/abc/src/base/abci/abcMiter.c +0 -1196
  338. data/ext/abc/src/base/abci/abcMulti.c +0 -660
  339. data/ext/abc/src/base/abci/abcMv.c +0 -381
  340. data/ext/abc/src/base/abci/abcNpn.c +0 -392
  341. data/ext/abc/src/base/abci/abcNpnSave.c +0 -740
  342. data/ext/abc/src/base/abci/abcNtbdd.c +0 -619
  343. data/ext/abc/src/base/abci/abcOdc.c +0 -1132
  344. data/ext/abc/src/base/abci/abcOrder.c +0 -136
  345. data/ext/abc/src/base/abci/abcPart.c +0 -1206
  346. data/ext/abc/src/base/abci/abcPlace.c +0 -260
  347. data/ext/abc/src/base/abci/abcPrint.c +0 -2008
  348. data/ext/abc/src/base/abci/abcProve.c +0 -354
  349. data/ext/abc/src/base/abci/abcQbf.c +0 -319
  350. data/ext/abc/src/base/abci/abcQuant.c +0 -436
  351. data/ext/abc/src/base/abci/abcReach.c +0 -327
  352. data/ext/abc/src/base/abci/abcRec3.c +0 -1433
  353. data/ext/abc/src/base/abci/abcReconv.c +0 -776
  354. data/ext/abc/src/base/abci/abcRefactor.c +0 -418
  355. data/ext/abc/src/base/abci/abcRenode.c +0 -326
  356. data/ext/abc/src/base/abci/abcReorder.c +0 -117
  357. data/ext/abc/src/base/abci/abcRestruct.c +0 -1511
  358. data/ext/abc/src/base/abci/abcResub.c +0 -1957
  359. data/ext/abc/src/base/abci/abcRewrite.c +0 -420
  360. data/ext/abc/src/base/abci/abcRpo.c +0 -442
  361. data/ext/abc/src/base/abci/abcRr.c +0 -1005
  362. data/ext/abc/src/base/abci/abcSat.c +0 -1020
  363. data/ext/abc/src/base/abci/abcSaucy.c +0 -3346
  364. data/ext/abc/src/base/abci/abcScorr.c +0 -454
  365. data/ext/abc/src/base/abci/abcSense.c +0 -216
  366. data/ext/abc/src/base/abci/abcSpeedup.c +0 -965
  367. data/ext/abc/src/base/abci/abcStrash.c +0 -848
  368. data/ext/abc/src/base/abci/abcSweep.c +0 -1030
  369. data/ext/abc/src/base/abci/abcSymm.c +0 -246
  370. data/ext/abc/src/base/abci/abcTim.c +0 -637
  371. data/ext/abc/src/base/abci/abcTiming.c +0 -1398
  372. data/ext/abc/src/base/abci/abcUnate.c +0 -178
  373. data/ext/abc/src/base/abci/abcUnreach.c +0 -366
  374. data/ext/abc/src/base/abci/abcVerify.c +0 -1109
  375. data/ext/abc/src/base/abci/abcXsim.c +0 -231
  376. data/ext/abc/src/base/abci/abciUnfold2.c +0 -186
  377. data/ext/abc/src/base/abci/fahout_cut.c +0 -358
  378. data/ext/abc/src/base/abci/module.make +0 -75
  379. data/ext/abc/src/base/acb/acb.c +0 -52
  380. data/ext/abc/src/base/acb/acb.h +0 -1038
  381. data/ext/abc/src/base/acb/acbAbc.c +0 -302
  382. data/ext/abc/src/base/acb/acbAig.c +0 -52
  383. data/ext/abc/src/base/acb/acbCom.c +0 -735
  384. data/ext/abc/src/base/acb/acbFunc.c +0 -56
  385. data/ext/abc/src/base/acb/acbMfs.c +0 -1644
  386. data/ext/abc/src/base/acb/acbPar.h +0 -70
  387. data/ext/abc/src/base/acb/acbPush.c +0 -372
  388. data/ext/abc/src/base/acb/acbSets.c +0 -54
  389. data/ext/abc/src/base/acb/acbSets.h +0 -61
  390. data/ext/abc/src/base/acb/acbUtil.c +0 -479
  391. data/ext/abc/src/base/acb/module.make +0 -8
  392. data/ext/abc/src/base/bac/bac.c +0 -52
  393. data/ext/abc/src/base/bac/bac.h +0 -1017
  394. data/ext/abc/src/base/bac/bacBac.c +0 -298
  395. data/ext/abc/src/base/bac/bacBlast.c +0 -587
  396. data/ext/abc/src/base/bac/bacCom.c +0 -728
  397. data/ext/abc/src/base/bac/bacLib.c +0 -52
  398. data/ext/abc/src/base/bac/bacNtk.c +0 -603
  399. data/ext/abc/src/base/bac/bacOper.c +0 -365
  400. data/ext/abc/src/base/bac/bacPrs.h +0 -363
  401. data/ext/abc/src/base/bac/bacPrsBuild.c +0 -356
  402. data/ext/abc/src/base/bac/bacPrsTrans.c +0 -211
  403. data/ext/abc/src/base/bac/bacPtr.c +0 -470
  404. data/ext/abc/src/base/bac/bacPtrAbc.c +0 -486
  405. data/ext/abc/src/base/bac/bacReadBlif.c +0 -453
  406. data/ext/abc/src/base/bac/bacReadSmt.c +0 -42
  407. data/ext/abc/src/base/bac/bacReadVer.c +0 -875
  408. data/ext/abc/src/base/bac/bacWriteBlif.c +0 -236
  409. data/ext/abc/src/base/bac/bacWriteSmt.c +0 -52
  410. data/ext/abc/src/base/bac/bacWriteVer.c +0 -703
  411. data/ext/abc/src/base/bac/module.make +0 -15
  412. data/ext/abc/src/base/cba/cba.c +0 -52
  413. data/ext/abc/src/base/cba/cba.h +0 -1024
  414. data/ext/abc/src/base/cba/cbaBlast.c +0 -1069
  415. data/ext/abc/src/base/cba/cbaCba.c +0 -58
  416. data/ext/abc/src/base/cba/cbaCom.c +0 -731
  417. data/ext/abc/src/base/cba/cbaNtk.c +0 -1183
  418. data/ext/abc/src/base/cba/cbaPrs.h +0 -520
  419. data/ext/abc/src/base/cba/cbaReadBlif.c +0 -646
  420. data/ext/abc/src/base/cba/cbaReadVer.c +0 -2182
  421. data/ext/abc/src/base/cba/cbaTypes.h +0 -169
  422. data/ext/abc/src/base/cba/cbaWriteBlif.c +0 -218
  423. data/ext/abc/src/base/cba/cbaWriteVer.c +0 -1016
  424. data/ext/abc/src/base/cba/module.make +0 -8
  425. data/ext/abc/src/base/cmd/cmd.c +0 -2611
  426. data/ext/abc/src/base/cmd/cmd.h +0 -81
  427. data/ext/abc/src/base/cmd/cmdAlias.c +0 -126
  428. data/ext/abc/src/base/cmd/cmdApi.c +0 -127
  429. data/ext/abc/src/base/cmd/cmdAuto.c +0 -684
  430. data/ext/abc/src/base/cmd/cmdFlag.c +0 -110
  431. data/ext/abc/src/base/cmd/cmdHist.c +0 -180
  432. data/ext/abc/src/base/cmd/cmdInt.h +0 -92
  433. data/ext/abc/src/base/cmd/cmdLoad.c +0 -209
  434. data/ext/abc/src/base/cmd/cmdPlugin.c +0 -773
  435. data/ext/abc/src/base/cmd/cmdStarter.c +0 -259
  436. data/ext/abc/src/base/cmd/cmdUtils.c +0 -756
  437. data/ext/abc/src/base/cmd/module.make +0 -10
  438. data/ext/abc/src/base/exor/exor.c +0 -958
  439. data/ext/abc/src/base/exor/exor.h +0 -189
  440. data/ext/abc/src/base/exor/exorBits.c +0 -425
  441. data/ext/abc/src/base/exor/exorCubes.c +0 -190
  442. data/ext/abc/src/base/exor/exorLink.c +0 -749
  443. data/ext/abc/src/base/exor/exorList.c +0 -1156
  444. data/ext/abc/src/base/exor/exorUtil.c +0 -228
  445. data/ext/abc/src/base/exor/module.make +0 -6
  446. data/ext/abc/src/base/io/io.c +0 -3157
  447. data/ext/abc/src/base/io/ioAbc.h +0 -172
  448. data/ext/abc/src/base/io/ioInt.h +0 -57
  449. data/ext/abc/src/base/io/ioJson.c +0 -270
  450. data/ext/abc/src/base/io/ioReadAiger.c +0 -599
  451. data/ext/abc/src/base/io/ioReadBaf.c +0 -177
  452. data/ext/abc/src/base/io/ioReadBblif.c +0 -348
  453. data/ext/abc/src/base/io/ioReadBench.c +0 -391
  454. data/ext/abc/src/base/io/ioReadBlif.c +0 -1707
  455. data/ext/abc/src/base/io/ioReadBlifAig.c +0 -1019
  456. data/ext/abc/src/base/io/ioReadBlifMv.c +0 -2363
  457. data/ext/abc/src/base/io/ioReadDsd.c +0 -313
  458. data/ext/abc/src/base/io/ioReadEdif.c +0 -240
  459. data/ext/abc/src/base/io/ioReadEqn.c +0 -244
  460. data/ext/abc/src/base/io/ioReadPla.c +0 -600
  461. data/ext/abc/src/base/io/ioReadPlaMo.c +0 -813
  462. data/ext/abc/src/base/io/ioReadVerilog.c +0 -102
  463. data/ext/abc/src/base/io/ioUtil.c +0 -871
  464. data/ext/abc/src/base/io/ioWriteAiger.c +0 -956
  465. data/ext/abc/src/base/io/ioWriteBaf.c +0 -173
  466. data/ext/abc/src/base/io/ioWriteBblif.c +0 -116
  467. data/ext/abc/src/base/io/ioWriteBench.c +0 -340
  468. data/ext/abc/src/base/io/ioWriteBlif.c +0 -1410
  469. data/ext/abc/src/base/io/ioWriteBlifMv.c +0 -476
  470. data/ext/abc/src/base/io/ioWriteBook.c +0 -998
  471. data/ext/abc/src/base/io/ioWriteCnf.c +0 -120
  472. data/ext/abc/src/base/io/ioWriteDot.c +0 -854
  473. data/ext/abc/src/base/io/ioWriteEqn.c +0 -257
  474. data/ext/abc/src/base/io/ioWriteGml.c +0 -121
  475. data/ext/abc/src/base/io/ioWriteList.c +0 -293
  476. data/ext/abc/src/base/io/ioWritePla.c +0 -460
  477. data/ext/abc/src/base/io/ioWriteSmv.c +0 -265
  478. data/ext/abc/src/base/io/ioWriteVerilog.c +0 -662
  479. data/ext/abc/src/base/io/module.make +0 -31
  480. data/ext/abc/src/base/main/abcapis.h +0 -106
  481. data/ext/abc/src/base/main/abcapis_old.h +0 -84
  482. data/ext/abc/src/base/main/libSupport.c +0 -211
  483. data/ext/abc/src/base/main/main.c +0 -12
  484. data/ext/abc/src/base/main/main.h +0 -171
  485. data/ext/abc/src/base/main/mainFrame.c +0 -742
  486. data/ext/abc/src/base/main/mainInit.c +0 -168
  487. data/ext/abc/src/base/main/mainInt.h +0 -207
  488. data/ext/abc/src/base/main/mainLib.c +0 -93
  489. data/ext/abc/src/base/main/mainMC.c +0 -203
  490. data/ext/abc/src/base/main/mainReal.c +0 -386
  491. data/ext/abc/src/base/main/mainUtils.c +0 -294
  492. data/ext/abc/src/base/main/module.make +0 -7
  493. data/ext/abc/src/base/pla/module.make +0 -7
  494. data/ext/abc/src/base/pla/pla.c +0 -52
  495. data/ext/abc/src/base/pla/pla.h +0 -297
  496. data/ext/abc/src/base/pla/plaCom.c +0 -507
  497. data/ext/abc/src/base/pla/plaFxch.c +0 -854
  498. data/ext/abc/src/base/pla/plaHash.c +0 -347
  499. data/ext/abc/src/base/pla/plaMan.c +0 -300
  500. data/ext/abc/src/base/pla/plaMerge.c +0 -55
  501. data/ext/abc/src/base/pla/plaRead.c +0 -224
  502. data/ext/abc/src/base/pla/plaSimple.c +0 -339
  503. data/ext/abc/src/base/pla/plaWrite.c +0 -112
  504. data/ext/abc/src/base/test/module.make +0 -1
  505. data/ext/abc/src/base/test/test.c +0 -70
  506. data/ext/abc/src/base/ver/module.make +0 -4
  507. data/ext/abc/src/base/ver/ver.h +0 -122
  508. data/ext/abc/src/base/ver/verCore.c +0 -3037
  509. data/ext/abc/src/base/ver/verFormula.c +0 -479
  510. data/ext/abc/src/base/ver/verParse.c +0 -131
  511. data/ext/abc/src/base/ver/verStream.c +0 -450
  512. data/ext/abc/src/base/ver/verWords.c +0 -53
  513. data/ext/abc/src/base/ver/ver_.c +0 -53
  514. data/ext/abc/src/base/wlc/module.make +0 -17
  515. data/ext/abc/src/base/wlc/wlc.c +0 -274
  516. data/ext/abc/src/base/wlc/wlc.h +0 -392
  517. data/ext/abc/src/base/wlc/wlcAbc.c +0 -275
  518. data/ext/abc/src/base/wlc/wlcAbs.c +0 -1912
  519. data/ext/abc/src/base/wlc/wlcAbs2.c +0 -410
  520. data/ext/abc/src/base/wlc/wlcBlast.c +0 -1692
  521. data/ext/abc/src/base/wlc/wlcCom.c +0 -1559
  522. data/ext/abc/src/base/wlc/wlcGraft.c +0 -573
  523. data/ext/abc/src/base/wlc/wlcJson.c +0 -54
  524. data/ext/abc/src/base/wlc/wlcNtk.c +0 -1268
  525. data/ext/abc/src/base/wlc/wlcPth.c +0 -173
  526. data/ext/abc/src/base/wlc/wlcReadSmt.c +0 -1784
  527. data/ext/abc/src/base/wlc/wlcReadVer.c +0 -1308
  528. data/ext/abc/src/base/wlc/wlcShow.c +0 -337
  529. data/ext/abc/src/base/wlc/wlcSim.c +0 -251
  530. data/ext/abc/src/base/wlc/wlcStdin.c +0 -255
  531. data/ext/abc/src/base/wlc/wlcUif.c +0 -290
  532. data/ext/abc/src/base/wlc/wlcWin.c +0 -166
  533. data/ext/abc/src/base/wlc/wlcWriteVer.c +0 -450
  534. data/ext/abc/src/bdd/bbr/bbr.h +0 -93
  535. data/ext/abc/src/bdd/bbr/bbrCex.c +0 -172
  536. data/ext/abc/src/bdd/bbr/bbrImage.c +0 -1327
  537. data/ext/abc/src/bdd/bbr/bbrNtbdd.c +0 -218
  538. data/ext/abc/src/bdd/bbr/bbrReach.c +0 -615
  539. data/ext/abc/src/bdd/bbr/bbr_.c +0 -52
  540. data/ext/abc/src/bdd/bbr/module.make +0 -4
  541. data/ext/abc/src/bdd/cas/cas.h +0 -66
  542. data/ext/abc/src/bdd/cas/casCore.c +0 -1265
  543. data/ext/abc/src/bdd/cas/casDec.c +0 -512
  544. data/ext/abc/src/bdd/cas/module.make +0 -3
  545. data/ext/abc/src/bdd/cudd/Makefile +0 -124
  546. data/ext/abc/src/bdd/cudd/cuBdd.make +0 -41
  547. data/ext/abc/src/bdd/cudd/cudd.h +0 -1054
  548. data/ext/abc/src/bdd/cudd/cudd.make +0 -42
  549. data/ext/abc/src/bdd/cudd/cuddAPI.c +0 -4444
  550. data/ext/abc/src/bdd/cudd/cuddAddAbs.c +0 -588
  551. data/ext/abc/src/bdd/cudd/cuddAddApply.c +0 -949
  552. data/ext/abc/src/bdd/cudd/cuddAddFind.c +0 -316
  553. data/ext/abc/src/bdd/cudd/cuddAddInv.c +0 -209
  554. data/ext/abc/src/bdd/cudd/cuddAddIte.c +0 -647
  555. data/ext/abc/src/bdd/cudd/cuddAddNeg.c +0 -296
  556. data/ext/abc/src/bdd/cudd/cuddAddWalsh.c +0 -399
  557. data/ext/abc/src/bdd/cudd/cuddAndAbs.c +0 -384
  558. data/ext/abc/src/bdd/cudd/cuddAnneal.c +0 -822
  559. data/ext/abc/src/bdd/cudd/cuddApa.c +0 -979
  560. data/ext/abc/src/bdd/cudd/cuddApprox.c +0 -2213
  561. data/ext/abc/src/bdd/cudd/cuddBddAbs.c +0 -725
  562. data/ext/abc/src/bdd/cudd/cuddBddCorr.c +0 -515
  563. data/ext/abc/src/bdd/cudd/cuddBddIte.c +0 -1328
  564. data/ext/abc/src/bdd/cudd/cuddBridge.c +0 -1021
  565. data/ext/abc/src/bdd/cudd/cuddCache.c +0 -1100
  566. data/ext/abc/src/bdd/cudd/cuddCheck.c +0 -887
  567. data/ext/abc/src/bdd/cudd/cuddClip.c +0 -566
  568. data/ext/abc/src/bdd/cudd/cuddCof.c +0 -335
  569. data/ext/abc/src/bdd/cudd/cuddCompose.c +0 -1760
  570. data/ext/abc/src/bdd/cudd/cuddDecomp.c +0 -2185
  571. data/ext/abc/src/bdd/cudd/cuddEssent.c +0 -1475
  572. data/ext/abc/src/bdd/cudd/cuddExact.c +0 -1028
  573. data/ext/abc/src/bdd/cudd/cuddExport.c +0 -1384
  574. data/ext/abc/src/bdd/cudd/cuddGenCof.c +0 -2175
  575. data/ext/abc/src/bdd/cudd/cuddGenetic.c +0 -957
  576. data/ext/abc/src/bdd/cudd/cuddGroup.c +0 -2173
  577. data/ext/abc/src/bdd/cudd/cuddHarwell.c +0 -576
  578. data/ext/abc/src/bdd/cudd/cuddInit.c +0 -319
  579. data/ext/abc/src/bdd/cudd/cuddInt.h +0 -1232
  580. data/ext/abc/src/bdd/cudd/cuddInteract.c +0 -437
  581. data/ext/abc/src/bdd/cudd/cuddLCache.c +0 -1465
  582. data/ext/abc/src/bdd/cudd/cuddLevelQ.c +0 -569
  583. data/ext/abc/src/bdd/cudd/cuddLinear.c +0 -1373
  584. data/ext/abc/src/bdd/cudd/cuddLiteral.c +0 -272
  585. data/ext/abc/src/bdd/cudd/cuddMatMult.c +0 -715
  586. data/ext/abc/src/bdd/cudd/cuddPriority.c +0 -2035
  587. data/ext/abc/src/bdd/cudd/cuddRead.c +0 -525
  588. data/ext/abc/src/bdd/cudd/cuddRef.c +0 -816
  589. data/ext/abc/src/bdd/cudd/cuddReorder.c +0 -2143
  590. data/ext/abc/src/bdd/cudd/cuddSat.c +0 -1338
  591. data/ext/abc/src/bdd/cudd/cuddSign.c +0 -326
  592. data/ext/abc/src/bdd/cudd/cuddSolve.c +0 -374
  593. data/ext/abc/src/bdd/cudd/cuddSplit.c +0 -694
  594. data/ext/abc/src/bdd/cudd/cuddSubsetHB.c +0 -1337
  595. data/ext/abc/src/bdd/cudd/cuddSubsetSP.c +0 -1657
  596. data/ext/abc/src/bdd/cudd/cuddSymmetry.c +0 -1706
  597. data/ext/abc/src/bdd/cudd/cuddTable.c +0 -3179
  598. data/ext/abc/src/bdd/cudd/cuddUtil.c +0 -3929
  599. data/ext/abc/src/bdd/cudd/cuddWindow.c +0 -1031
  600. data/ext/abc/src/bdd/cudd/cuddZddCount.c +0 -357
  601. data/ext/abc/src/bdd/cudd/cuddZddFuncs.c +0 -1638
  602. data/ext/abc/src/bdd/cudd/cuddZddGroup.c +0 -1344
  603. data/ext/abc/src/bdd/cudd/cuddZddIsop.c +0 -919
  604. data/ext/abc/src/bdd/cudd/cuddZddLin.c +0 -975
  605. data/ext/abc/src/bdd/cudd/cuddZddMisc.c +0 -286
  606. data/ext/abc/src/bdd/cudd/cuddZddPort.c +0 -389
  607. data/ext/abc/src/bdd/cudd/cuddZddReord.c +0 -1668
  608. data/ext/abc/src/bdd/cudd/cuddZddSetop.c +0 -1166
  609. data/ext/abc/src/bdd/cudd/cuddZddSymm.c +0 -1707
  610. data/ext/abc/src/bdd/cudd/cuddZddUtil.c +0 -1071
  611. data/ext/abc/src/bdd/cudd/license +0 -32
  612. data/ext/abc/src/bdd/cudd/module.make +0 -61
  613. data/ext/abc/src/bdd/cudd/r7x8.1.mat +0 -53
  614. data/ext/abc/src/bdd/cudd/r7x8.1.out +0 -377
  615. data/ext/abc/src/bdd/cudd/testcudd.c +0 -1073
  616. data/ext/abc/src/bdd/dsd/dsd.h +0 -134
  617. data/ext/abc/src/bdd/dsd/dsdApi.c +0 -102
  618. data/ext/abc/src/bdd/dsd/dsdCheck.c +0 -319
  619. data/ext/abc/src/bdd/dsd/dsdInt.h +0 -99
  620. data/ext/abc/src/bdd/dsd/dsdLocal.c +0 -342
  621. data/ext/abc/src/bdd/dsd/dsdMan.c +0 -119
  622. data/ext/abc/src/bdd/dsd/dsdProc.c +0 -1613
  623. data/ext/abc/src/bdd/dsd/dsdTree.c +0 -1181
  624. data/ext/abc/src/bdd/dsd/module.make +0 -6
  625. data/ext/abc/src/bdd/epd/epd.c +0 -1347
  626. data/ext/abc/src/bdd/epd/epd.h +0 -196
  627. data/ext/abc/src/bdd/epd/module.make +0 -1
  628. data/ext/abc/src/bdd/extrab/extraBdd.h +0 -317
  629. data/ext/abc/src/bdd/extrab/extraBddAuto.c +0 -1563
  630. data/ext/abc/src/bdd/extrab/extraBddCas.c +0 -1235
  631. data/ext/abc/src/bdd/extrab/extraBddImage.c +0 -1162
  632. data/ext/abc/src/bdd/extrab/extraBddKmap.c +0 -876
  633. data/ext/abc/src/bdd/extrab/extraBddMisc.c +0 -2591
  634. data/ext/abc/src/bdd/extrab/extraBddSymm.c +0 -1474
  635. data/ext/abc/src/bdd/extrab/extraBddThresh.c +0 -693
  636. data/ext/abc/src/bdd/extrab/extraBddTime.c +0 -660
  637. data/ext/abc/src/bdd/extrab/extraBddUnate.c +0 -646
  638. data/ext/abc/src/bdd/extrab/module.make +0 -9
  639. data/ext/abc/src/bdd/llb/llb.c +0 -52
  640. data/ext/abc/src/bdd/llb/llb.h +0 -96
  641. data/ext/abc/src/bdd/llb/llb1Cluster.c +0 -356
  642. data/ext/abc/src/bdd/llb/llb1Constr.c +0 -313
  643. data/ext/abc/src/bdd/llb/llb1Core.c +0 -222
  644. data/ext/abc/src/bdd/llb/llb1Group.c +0 -474
  645. data/ext/abc/src/bdd/llb/llb1Hint.c +0 -226
  646. data/ext/abc/src/bdd/llb/llb1Man.c +0 -218
  647. data/ext/abc/src/bdd/llb/llb1Matrix.c +0 -430
  648. data/ext/abc/src/bdd/llb/llb1Pivot.c +0 -254
  649. data/ext/abc/src/bdd/llb/llb1Reach.c +0 -904
  650. data/ext/abc/src/bdd/llb/llb1Sched.c +0 -257
  651. data/ext/abc/src/bdd/llb/llb2Bad.c +0 -138
  652. data/ext/abc/src/bdd/llb/llb2Core.c +0 -777
  653. data/ext/abc/src/bdd/llb/llb2Driver.c +0 -222
  654. data/ext/abc/src/bdd/llb/llb2Dump.c +0 -104
  655. data/ext/abc/src/bdd/llb/llb2Flow.c +0 -1376
  656. data/ext/abc/src/bdd/llb/llb2Image.c +0 -482
  657. data/ext/abc/src/bdd/llb/llb3Image.c +0 -1095
  658. data/ext/abc/src/bdd/llb/llb3Nonlin.c +0 -872
  659. data/ext/abc/src/bdd/llb/llb4Cex.c +0 -320
  660. data/ext/abc/src/bdd/llb/llb4Cluster.c +0 -452
  661. data/ext/abc/src/bdd/llb/llb4Image.c +0 -863
  662. data/ext/abc/src/bdd/llb/llb4Map.c +0 -123
  663. data/ext/abc/src/bdd/llb/llb4Nonlin.c +0 -1185
  664. data/ext/abc/src/bdd/llb/llb4Sweep.c +0 -589
  665. data/ext/abc/src/bdd/llb/llbInt.h +0 -212
  666. data/ext/abc/src/bdd/llb/module.make +0 -22
  667. data/ext/abc/src/bdd/mtr/module.make +0 -2
  668. data/ext/abc/src/bdd/mtr/mtr.h +0 -187
  669. data/ext/abc/src/bdd/mtr/mtrBasic.c +0 -453
  670. data/ext/abc/src/bdd/mtr/mtrGroup.c +0 -734
  671. data/ext/abc/src/bdd/mtr/mtrInt.h +0 -94
  672. data/ext/abc/src/bdd/reo/module.make +0 -8
  673. data/ext/abc/src/bdd/reo/reo.h +0 -234
  674. data/ext/abc/src/bdd/reo/reoApi.c +0 -294
  675. data/ext/abc/src/bdd/reo/reoCore.c +0 -441
  676. data/ext/abc/src/bdd/reo/reoProfile.c +0 -370
  677. data/ext/abc/src/bdd/reo/reoShuffle.c +0 -230
  678. data/ext/abc/src/bdd/reo/reoSift.c +0 -346
  679. data/ext/abc/src/bdd/reo/reoSwap.c +0 -905
  680. data/ext/abc/src/bdd/reo/reoTest.c +0 -256
  681. data/ext/abc/src/bdd/reo/reoTransfer.c +0 -206
  682. data/ext/abc/src/bdd/reo/reoUnits.c +0 -190
  683. data/ext/abc/src/bool/bdc/bdc.h +0 -98
  684. data/ext/abc/src/bool/bdc/bdcCore.c +0 -374
  685. data/ext/abc/src/bool/bdc/bdcDec.c +0 -751
  686. data/ext/abc/src/bool/bdc/bdcInt.h +0 -165
  687. data/ext/abc/src/bool/bdc/bdcSpfd.c +0 -1184
  688. data/ext/abc/src/bool/bdc/bdcTable.c +0 -134
  689. data/ext/abc/src/bool/bdc/bdc_.c +0 -54
  690. data/ext/abc/src/bool/bdc/module.make +0 -5
  691. data/ext/abc/src/bool/dec/dec.h +0 -725
  692. data/ext/abc/src/bool/dec/decAbc.c +0 -358
  693. data/ext/abc/src/bool/dec/decFactor.c +0 -403
  694. data/ext/abc/src/bool/dec/decMan.c +0 -88
  695. data/ext/abc/src/bool/dec/decPrint.c +0 -289
  696. data/ext/abc/src/bool/dec/decUtil.c +0 -148
  697. data/ext/abc/src/bool/dec/module.make +0 -5
  698. data/ext/abc/src/bool/deco/deco.h +0 -714
  699. data/ext/abc/src/bool/deco/module.make +0 -1
  700. data/ext/abc/src/bool/kit/cloud.c +0 -993
  701. data/ext/abc/src/bool/kit/cloud.h +0 -254
  702. data/ext/abc/src/bool/kit/kit.h +0 -655
  703. data/ext/abc/src/bool/kit/kitAig.c +0 -126
  704. data/ext/abc/src/bool/kit/kitBdd.c +0 -243
  705. data/ext/abc/src/bool/kit/kitCloud.c +0 -378
  706. data/ext/abc/src/bool/kit/kitDec.c +0 -343
  707. data/ext/abc/src/bool/kit/kitDsd.c +0 -3285
  708. data/ext/abc/src/bool/kit/kitFactor.c +0 -344
  709. data/ext/abc/src/bool/kit/kitGraph.c +0 -402
  710. data/ext/abc/src/bool/kit/kitHop.c +0 -200
  711. data/ext/abc/src/bool/kit/kitIsop.c +0 -365
  712. data/ext/abc/src/bool/kit/kitPerm.c +0 -357
  713. data/ext/abc/src/bool/kit/kitPla.c +0 -535
  714. data/ext/abc/src/bool/kit/kitSop.c +0 -579
  715. data/ext/abc/src/bool/kit/kitTruth.c +0 -2224
  716. data/ext/abc/src/bool/kit/kit_.c +0 -53
  717. data/ext/abc/src/bool/kit/module.make +0 -11
  718. data/ext/abc/src/bool/lucky/lucky.c +0 -705
  719. data/ext/abc/src/bool/lucky/lucky.h +0 -44
  720. data/ext/abc/src/bool/lucky/luckyFast16.c +0 -872
  721. data/ext/abc/src/bool/lucky/luckyFast6.c +0 -285
  722. data/ext/abc/src/bool/lucky/luckyInt.h +0 -136
  723. data/ext/abc/src/bool/lucky/luckyRead.c +0 -333
  724. data/ext/abc/src/bool/lucky/luckySimple.c +0 -307
  725. data/ext/abc/src/bool/lucky/luckySwap.c +0 -402
  726. data/ext/abc/src/bool/lucky/luckySwapIJ.c +0 -102
  727. data/ext/abc/src/bool/lucky/module.make +0 -7
  728. data/ext/abc/src/bool/rpo/literal.h +0 -297
  729. data/ext/abc/src/bool/rpo/module.make +0 -1
  730. data/ext/abc/src/bool/rpo/rpo.c +0 -383
  731. data/ext/abc/src/bool/rpo/rpo.h +0 -61
  732. data/ext/abc/src/bool/rsb/module.make +0 -2
  733. data/ext/abc/src/bool/rsb/rsb.h +0 -65
  734. data/ext/abc/src/bool/rsb/rsbDec6.c +0 -770
  735. data/ext/abc/src/bool/rsb/rsbInt.h +0 -84
  736. data/ext/abc/src/bool/rsb/rsbMan.c +0 -99
  737. data/ext/abc/src/demo.c +0 -181
  738. data/ext/abc/src/generic.c +0 -52
  739. data/ext/abc/src/generic.h +0 -63
  740. data/ext/abc/src/map/amap/amap.h +0 -97
  741. data/ext/abc/src/map/amap/amapCore.c +0 -110
  742. data/ext/abc/src/map/amap/amapGraph.c +0 -399
  743. data/ext/abc/src/map/amap/amapInt.h +0 -376
  744. data/ext/abc/src/map/amap/amapLib.c +0 -374
  745. data/ext/abc/src/map/amap/amapLiberty.c +0 -1103
  746. data/ext/abc/src/map/amap/amapMan.c +0 -104
  747. data/ext/abc/src/map/amap/amapMatch.c +0 -622
  748. data/ext/abc/src/map/amap/amapMerge.c +0 -541
  749. data/ext/abc/src/map/amap/amapOutput.c +0 -186
  750. data/ext/abc/src/map/amap/amapParse.c +0 -480
  751. data/ext/abc/src/map/amap/amapPerm.c +0 -380
  752. data/ext/abc/src/map/amap/amapRead.c +0 -494
  753. data/ext/abc/src/map/amap/amapRule.c +0 -462
  754. data/ext/abc/src/map/amap/amapUniq.c +0 -317
  755. data/ext/abc/src/map/amap/module.make +0 -13
  756. data/ext/abc/src/map/cov/cov.h +0 -109
  757. data/ext/abc/src/map/cov/covBuild.c +0 -544
  758. data/ext/abc/src/map/cov/covCore.c +0 -1030
  759. data/ext/abc/src/map/cov/covInt.h +0 -654
  760. data/ext/abc/src/map/cov/covMan.c +0 -149
  761. data/ext/abc/src/map/cov/covMinEsop.c +0 -304
  762. data/ext/abc/src/map/cov/covMinMan.c +0 -118
  763. data/ext/abc/src/map/cov/covMinSop.c +0 -620
  764. data/ext/abc/src/map/cov/covMinUtil.c +0 -343
  765. data/ext/abc/src/map/cov/covTest.c +0 -422
  766. data/ext/abc/src/map/cov/module.make +0 -7
  767. data/ext/abc/src/map/fpga/fpga.c +0 -288
  768. data/ext/abc/src/map/fpga/fpga.h +0 -175
  769. data/ext/abc/src/map/fpga/fpgaCore.c +0 -194
  770. data/ext/abc/src/map/fpga/fpgaCreate.c +0 -584
  771. data/ext/abc/src/map/fpga/fpgaCut.c +0 -1186
  772. data/ext/abc/src/map/fpga/fpgaCutUtils.c +0 -476
  773. data/ext/abc/src/map/fpga/fpgaFanout.c +0 -146
  774. data/ext/abc/src/map/fpga/fpgaGENERIC.c +0 -51
  775. data/ext/abc/src/map/fpga/fpgaInt.h +0 -389
  776. data/ext/abc/src/map/fpga/fpgaLib.c +0 -255
  777. data/ext/abc/src/map/fpga/fpgaMatch.c +0 -800
  778. data/ext/abc/src/map/fpga/fpgaSwitch.c +0 -156
  779. data/ext/abc/src/map/fpga/fpgaTime.c +0 -267
  780. data/ext/abc/src/map/fpga/fpgaTruth.c +0 -171
  781. data/ext/abc/src/map/fpga/fpgaUtils.c +0 -990
  782. data/ext/abc/src/map/fpga/fpgaVec.c +0 -413
  783. data/ext/abc/src/map/fpga/module.make +0 -13
  784. data/ext/abc/src/map/if/if.h +0 -689
  785. data/ext/abc/src/map/if/ifCache.c +0 -100
  786. data/ext/abc/src/map/if/ifCheck.c +0 -204
  787. data/ext/abc/src/map/if/ifCom.c +0 -372
  788. data/ext/abc/src/map/if/ifCore.c +0 -200
  789. data/ext/abc/src/map/if/ifCount.h +0 -521
  790. data/ext/abc/src/map/if/ifCut.c +0 -1479
  791. data/ext/abc/src/map/if/ifData2.c +0 -52
  792. data/ext/abc/src/map/if/ifDec07.c +0 -1125
  793. data/ext/abc/src/map/if/ifDec08.c +0 -507
  794. data/ext/abc/src/map/if/ifDec10.c +0 -506
  795. data/ext/abc/src/map/if/ifDec16.c +0 -2374
  796. data/ext/abc/src/map/if/ifDec75.c +0 -341
  797. data/ext/abc/src/map/if/ifDelay.c +0 -447
  798. data/ext/abc/src/map/if/ifDsd.c +0 -2838
  799. data/ext/abc/src/map/if/ifLibBox.c +0 -401
  800. data/ext/abc/src/map/if/ifLibLut.c +0 -505
  801. data/ext/abc/src/map/if/ifMan.c +0 -720
  802. data/ext/abc/src/map/if/ifMap.c +0 -680
  803. data/ext/abc/src/map/if/ifMatch2.c +0 -62
  804. data/ext/abc/src/map/if/ifReduce.c +0 -466
  805. data/ext/abc/src/map/if/ifSat.c +0 -548
  806. data/ext/abc/src/map/if/ifSelect.c +0 -601
  807. data/ext/abc/src/map/if/ifSeq.c +0 -397
  808. data/ext/abc/src/map/if/ifTest.c +0 -352
  809. data/ext/abc/src/map/if/ifTime.c +0 -525
  810. data/ext/abc/src/map/if/ifTruth.c +0 -339
  811. data/ext/abc/src/map/if/ifTune.c +0 -1452
  812. data/ext/abc/src/map/if/ifUtil.c +0 -632
  813. data/ext/abc/src/map/if/if_.c +0 -52
  814. data/ext/abc/src/map/if/module.make +0 -26
  815. data/ext/abc/src/map/mapper/mapper.c +0 -185
  816. data/ext/abc/src/map/mapper/mapper.h +0 -201
  817. data/ext/abc/src/map/mapper/mapperCanon.c +0 -277
  818. data/ext/abc/src/map/mapper/mapperCore.c +0 -231
  819. data/ext/abc/src/map/mapper/mapperCreate.c +0 -587
  820. data/ext/abc/src/map/mapper/mapperCut.c +0 -1178
  821. data/ext/abc/src/map/mapper/mapperCutUtils.c +0 -279
  822. data/ext/abc/src/map/mapper/mapperFanout.c +0 -146
  823. data/ext/abc/src/map/mapper/mapperInt.h +0 -469
  824. data/ext/abc/src/map/mapper/mapperLib.c +0 -258
  825. data/ext/abc/src/map/mapper/mapperMatch.c +0 -664
  826. data/ext/abc/src/map/mapper/mapperRefs.c +0 -540
  827. data/ext/abc/src/map/mapper/mapperSuper.c +0 -456
  828. data/ext/abc/src/map/mapper/mapperSwitch.c +0 -229
  829. data/ext/abc/src/map/mapper/mapperTable.c +0 -407
  830. data/ext/abc/src/map/mapper/mapperTime.c +0 -459
  831. data/ext/abc/src/map/mapper/mapperTree.c +0 -1042
  832. data/ext/abc/src/map/mapper/mapperTruth.c +0 -315
  833. data/ext/abc/src/map/mapper/mapperUtils.c +0 -898
  834. data/ext/abc/src/map/mapper/mapperVec.c +0 -344
  835. data/ext/abc/src/map/mapper/module.make +0 -17
  836. data/ext/abc/src/map/mio/exp.h +0 -343
  837. data/ext/abc/src/map/mio/mio.c +0 -728
  838. data/ext/abc/src/map/mio/mio.h +0 -242
  839. data/ext/abc/src/map/mio/mioApi.c +0 -254
  840. data/ext/abc/src/map/mio/mioForm.c +0 -307
  841. data/ext/abc/src/map/mio/mioFunc.c +0 -327
  842. data/ext/abc/src/map/mio/mioInt.h +0 -160
  843. data/ext/abc/src/map/mio/mioParse.c +0 -504
  844. data/ext/abc/src/map/mio/mioRead.c +0 -780
  845. data/ext/abc/src/map/mio/mioSop.c +0 -333
  846. data/ext/abc/src/map/mio/mioUtils.c +0 -1752
  847. data/ext/abc/src/map/mio/module.make +0 -7
  848. data/ext/abc/src/map/mpm/module.make +0 -11
  849. data/ext/abc/src/map/mpm/mpm.c +0 -55
  850. data/ext/abc/src/map/mpm/mpm.h +0 -98
  851. data/ext/abc/src/map/mpm/mpmAbc.c +0 -350
  852. data/ext/abc/src/map/mpm/mpmCore.c +0 -115
  853. data/ext/abc/src/map/mpm/mpmDsd.c +0 -1055
  854. data/ext/abc/src/map/mpm/mpmGates.c +0 -307
  855. data/ext/abc/src/map/mpm/mpmInt.h +0 -265
  856. data/ext/abc/src/map/mpm/mpmLib.c +0 -74
  857. data/ext/abc/src/map/mpm/mpmMan.c +0 -207
  858. data/ext/abc/src/map/mpm/mpmMap.c +0 -872
  859. data/ext/abc/src/map/mpm/mpmMig.c +0 -204
  860. data/ext/abc/src/map/mpm/mpmMig.h +0 -358
  861. data/ext/abc/src/map/mpm/mpmPre.c +0 -1029
  862. data/ext/abc/src/map/mpm/mpmTruth.c +0 -239
  863. data/ext/abc/src/map/mpm/mpmUtil.c +0 -52
  864. data/ext/abc/src/map/scl/module.make +0 -11
  865. data/ext/abc/src/map/scl/scl.c +0 -2042
  866. data/ext/abc/src/map/scl/scl.h +0 -58
  867. data/ext/abc/src/map/scl/sclBufSize.c +0 -518
  868. data/ext/abc/src/map/scl/sclBuffer.c +0 -1010
  869. data/ext/abc/src/map/scl/sclCon.h +0 -293
  870. data/ext/abc/src/map/scl/sclDnsize.c +0 -378
  871. data/ext/abc/src/map/scl/sclLib.h +0 -770
  872. data/ext/abc/src/map/scl/sclLibScl.c +0 -848
  873. data/ext/abc/src/map/scl/sclLibUtil.c +0 -1078
  874. data/ext/abc/src/map/scl/sclLiberty.c +0 -1697
  875. data/ext/abc/src/map/scl/sclLoad.c +0 -238
  876. data/ext/abc/src/map/scl/sclSize.c +0 -915
  877. data/ext/abc/src/map/scl/sclSize.h +0 -594
  878. data/ext/abc/src/map/scl/sclTime.h +0 -234
  879. data/ext/abc/src/map/scl/sclUpsize.c +0 -1045
  880. data/ext/abc/src/map/scl/sclUtil.c +0 -320
  881. data/ext/abc/src/map/super/module.make +0 -3
  882. data/ext/abc/src/map/super/super.c +0 -333
  883. data/ext/abc/src/map/super/super.h +0 -62
  884. data/ext/abc/src/map/super/superAnd.c +0 -701
  885. data/ext/abc/src/map/super/superGENERIC.c +0 -51
  886. data/ext/abc/src/map/super/superGate.c +0 -1473
  887. data/ext/abc/src/map/super/superInt.h +0 -64
  888. data/ext/abc/src/map/super/superWrite.c +0 -81
  889. data/ext/abc/src/misc/avl/avl.c +0 -621
  890. data/ext/abc/src/misc/avl/avl.doc +0 -166
  891. data/ext/abc/src/misc/avl/avl.h +0 -91
  892. data/ext/abc/src/misc/bar/bar.c +0 -193
  893. data/ext/abc/src/misc/bar/bar.h +0 -78
  894. data/ext/abc/src/misc/bar/module.make +0 -1
  895. data/ext/abc/src/misc/bbl/bblif.c +0 -1518
  896. data/ext/abc/src/misc/bbl/bblif.h +0 -285
  897. data/ext/abc/src/misc/bbl/module.make +0 -1
  898. data/ext/abc/src/misc/bzlib/CHANGES +0 -319
  899. data/ext/abc/src/misc/bzlib/LICENSE +0 -42
  900. data/ext/abc/src/misc/bzlib/blocksort.c +0 -1098
  901. data/ext/abc/src/misc/bzlib/bzip2.txt +0 -391
  902. data/ext/abc/src/misc/bzlib/bzlib.c +0 -1588
  903. data/ext/abc/src/misc/bzlib/bzlib.h +0 -287
  904. data/ext/abc/src/misc/bzlib/bzlib_private.h +0 -513
  905. data/ext/abc/src/misc/bzlib/compress.c +0 -677
  906. data/ext/abc/src/misc/bzlib/crctable.c +0 -109
  907. data/ext/abc/src/misc/bzlib/decompress.c +0 -631
  908. data/ext/abc/src/misc/bzlib/huffman.c +0 -210
  909. data/ext/abc/src/misc/bzlib/link.txt +0 -2
  910. data/ext/abc/src/misc/bzlib/manual.html +0 -2540
  911. data/ext/abc/src/misc/bzlib/module.make +0 -7
  912. data/ext/abc/src/misc/bzlib/randtable.c +0 -89
  913. data/ext/abc/src/misc/espresso/cofactor.c +0 -389
  914. data/ext/abc/src/misc/espresso/cols.c +0 -319
  915. data/ext/abc/src/misc/espresso/compl.c +0 -685
  916. data/ext/abc/src/misc/espresso/contain.c +0 -450
  917. data/ext/abc/src/misc/espresso/cubehack.c +0 -143
  918. data/ext/abc/src/misc/espresso/cubestr.c +0 -157
  919. data/ext/abc/src/misc/espresso/cvrin.c +0 -816
  920. data/ext/abc/src/misc/espresso/cvrm.c +0 -544
  921. data/ext/abc/src/misc/espresso/cvrmisc.c +0 -147
  922. data/ext/abc/src/misc/espresso/cvrout.c +0 -614
  923. data/ext/abc/src/misc/espresso/dominate.c +0 -103
  924. data/ext/abc/src/misc/espresso/equiv.c +0 -99
  925. data/ext/abc/src/misc/espresso/espresso.c +0 -144
  926. data/ext/abc/src/misc/espresso/espresso.h +0 -786
  927. data/ext/abc/src/misc/espresso/essen.c +0 -184
  928. data/ext/abc/src/misc/espresso/exact.c +0 -186
  929. data/ext/abc/src/misc/espresso/expand.c +0 -700
  930. data/ext/abc/src/misc/espresso/gasp.c +0 -233
  931. data/ext/abc/src/misc/espresso/gimpel.c +0 -112
  932. data/ext/abc/src/misc/espresso/globals.c +0 -81
  933. data/ext/abc/src/misc/espresso/hack.c +0 -646
  934. data/ext/abc/src/misc/espresso/indep.c +0 -139
  935. data/ext/abc/src/misc/espresso/irred.c +0 -445
  936. data/ext/abc/src/misc/espresso/main.c +0 -751
  937. data/ext/abc/src/misc/espresso/main.h +0 -122
  938. data/ext/abc/src/misc/espresso/map.c +0 -122
  939. data/ext/abc/src/misc/espresso/matrix.c +0 -579
  940. data/ext/abc/src/misc/espresso/mincov.c +0 -383
  941. data/ext/abc/src/misc/espresso/mincov.h +0 -11
  942. data/ext/abc/src/misc/espresso/mincov_int.h +0 -55
  943. data/ext/abc/src/misc/espresso/module.make +0 -39
  944. data/ext/abc/src/misc/espresso/opo.c +0 -629
  945. data/ext/abc/src/misc/espresso/pair.c +0 -685
  946. data/ext/abc/src/misc/espresso/part.c +0 -127
  947. data/ext/abc/src/misc/espresso/primes.c +0 -175
  948. data/ext/abc/src/misc/espresso/reduce.c +0 -263
  949. data/ext/abc/src/misc/espresso/rows.c +0 -319
  950. data/ext/abc/src/misc/espresso/set.c +0 -825
  951. data/ext/abc/src/misc/espresso/setc.c +0 -488
  952. data/ext/abc/src/misc/espresso/sharp.c +0 -252
  953. data/ext/abc/src/misc/espresso/sminterf.c +0 -49
  954. data/ext/abc/src/misc/espresso/solution.c +0 -119
  955. data/ext/abc/src/misc/espresso/sparse.c +0 -151
  956. data/ext/abc/src/misc/espresso/sparse.h +0 -143
  957. data/ext/abc/src/misc/espresso/sparse_int.h +0 -121
  958. data/ext/abc/src/misc/espresso/unate.c +0 -446
  959. data/ext/abc/src/misc/espresso/util_old.h +0 -309
  960. data/ext/abc/src/misc/espresso/verify.c +0 -198
  961. data/ext/abc/src/misc/extra/extra.h +0 -417
  962. data/ext/abc/src/misc/extra/extraUtilBitMatrix.c +0 -420
  963. data/ext/abc/src/misc/extra/extraUtilCanon.c +0 -691
  964. data/ext/abc/src/misc/extra/extraUtilCube.c +0 -279
  965. data/ext/abc/src/misc/extra/extraUtilDsd.c +0 -1271
  966. data/ext/abc/src/misc/extra/extraUtilEnum.c +0 -680
  967. data/ext/abc/src/misc/extra/extraUtilFile.c +0 -887
  968. data/ext/abc/src/misc/extra/extraUtilMemory.c +0 -628
  969. data/ext/abc/src/misc/extra/extraUtilMisc.c +0 -2580
  970. data/ext/abc/src/misc/extra/extraUtilPerm.c +0 -933
  971. data/ext/abc/src/misc/extra/extraUtilPrime.c +0 -602
  972. data/ext/abc/src/misc/extra/extraUtilProgress.c +0 -185
  973. data/ext/abc/src/misc/extra/extraUtilReader.c +0 -390
  974. data/ext/abc/src/misc/extra/extraUtilSupp.c +0 -532
  975. data/ext/abc/src/misc/extra/extraUtilTruth.c +0 -1153
  976. data/ext/abc/src/misc/extra/extraUtilUtil.c +0 -421
  977. data/ext/abc/src/misc/extra/extraZddTrunc.c +0 -338
  978. data/ext/abc/src/misc/extra/module.make +0 -14
  979. data/ext/abc/src/misc/hash/hash.h +0 -70
  980. data/ext/abc/src/misc/hash/hashFlt.h +0 -339
  981. data/ext/abc/src/misc/hash/hashGen.h +0 -367
  982. data/ext/abc/src/misc/hash/hashInt.h +0 -302
  983. data/ext/abc/src/misc/hash/hashPtr.h +0 -339
  984. data/ext/abc/src/misc/hash/module.make +0 -1
  985. data/ext/abc/src/misc/mem/mem.c +0 -605
  986. data/ext/abc/src/misc/mem/mem.h +0 -75
  987. data/ext/abc/src/misc/mem/mem2.h +0 -271
  988. data/ext/abc/src/misc/mem/module.make +0 -1
  989. data/ext/abc/src/misc/mvc/module.make +0 -15
  990. data/ext/abc/src/misc/mvc/mvc.c +0 -51
  991. data/ext/abc/src/misc/mvc/mvc.h +0 -739
  992. data/ext/abc/src/misc/mvc/mvcApi.c +0 -238
  993. data/ext/abc/src/misc/mvc/mvcCompare.c +0 -374
  994. data/ext/abc/src/misc/mvc/mvcContain.c +0 -178
  995. data/ext/abc/src/misc/mvc/mvcCover.c +0 -256
  996. data/ext/abc/src/misc/mvc/mvcCube.c +0 -180
  997. data/ext/abc/src/misc/mvc/mvcDivide.c +0 -442
  998. data/ext/abc/src/misc/mvc/mvcDivisor.c +0 -95
  999. data/ext/abc/src/misc/mvc/mvcList.c +0 -367
  1000. data/ext/abc/src/misc/mvc/mvcLits.c +0 -350
  1001. data/ext/abc/src/misc/mvc/mvcMan.c +0 -82
  1002. data/ext/abc/src/misc/mvc/mvcOpAlg.c +0 -168
  1003. data/ext/abc/src/misc/mvc/mvcOpBool.c +0 -156
  1004. data/ext/abc/src/misc/mvc/mvcPrint.c +0 -225
  1005. data/ext/abc/src/misc/mvc/mvcSort.c +0 -146
  1006. data/ext/abc/src/misc/mvc/mvcUtils.c +0 -873
  1007. data/ext/abc/src/misc/nm/module.make +0 -2
  1008. data/ext/abc/src/misc/nm/nm.h +0 -96
  1009. data/ext/abc/src/misc/nm/nmApi.c +0 -278
  1010. data/ext/abc/src/misc/nm/nmInt.h +0 -94
  1011. data/ext/abc/src/misc/nm/nmTable.c +0 -310
  1012. data/ext/abc/src/misc/parse/module.make +0 -2
  1013. data/ext/abc/src/misc/parse/parse.h +0 -62
  1014. data/ext/abc/src/misc/parse/parseCore.c +0 -536
  1015. data/ext/abc/src/misc/parse/parseEqn.c +0 -362
  1016. data/ext/abc/src/misc/parse/parseInt.h +0 -77
  1017. data/ext/abc/src/misc/parse/parseStack.c +0 -248
  1018. data/ext/abc/src/misc/st/module.make +0 -2
  1019. data/ext/abc/src/misc/st/st.c +0 -561
  1020. data/ext/abc/src/misc/st/st.h +0 -121
  1021. data/ext/abc/src/misc/st/stmm.c +0 -627
  1022. data/ext/abc/src/misc/st/stmm.h +0 -147
  1023. data/ext/abc/src/misc/tim/module.make +0 -5
  1024. data/ext/abc/src/misc/tim/tim.c +0 -39
  1025. data/ext/abc/src/misc/tim/tim.h +0 -184
  1026. data/ext/abc/src/misc/tim/timBox.c +0 -326
  1027. data/ext/abc/src/misc/tim/timDump.c +0 -201
  1028. data/ext/abc/src/misc/tim/timInt.h +0 -148
  1029. data/ext/abc/src/misc/tim/timMan.c +0 -807
  1030. data/ext/abc/src/misc/tim/timTime.c +0 -267
  1031. data/ext/abc/src/misc/tim/timTrav.c +0 -185
  1032. data/ext/abc/src/misc/util/abc_global.h +0 -416
  1033. data/ext/abc/src/misc/util/abc_namespaces.h +0 -58
  1034. data/ext/abc/src/misc/util/module.make +0 -8
  1035. data/ext/abc/src/misc/util/utilBridge.c +0 -564
  1036. data/ext/abc/src/misc/util/utilCex.c +0 -574
  1037. data/ext/abc/src/misc/util/utilCex.h +0 -84
  1038. data/ext/abc/src/misc/util/utilColor.c +0 -124
  1039. data/ext/abc/src/misc/util/utilDouble.h +0 -222
  1040. data/ext/abc/src/misc/util/utilFile.c +0 -221
  1041. data/ext/abc/src/misc/util/utilFloat.h +0 -226
  1042. data/ext/abc/src/misc/util/utilIsop.c +0 -1139
  1043. data/ext/abc/src/misc/util/utilMem.c +0 -341
  1044. data/ext/abc/src/misc/util/utilMem.h +0 -73
  1045. data/ext/abc/src/misc/util/utilNam.c +0 -622
  1046. data/ext/abc/src/misc/util/utilNam.h +0 -80
  1047. data/ext/abc/src/misc/util/utilSignal.c +0 -68
  1048. data/ext/abc/src/misc/util/utilSignal.h +0 -58
  1049. data/ext/abc/src/misc/util/utilSort.c +0 -789
  1050. data/ext/abc/src/misc/util/utilTruth.h +0 -3076
  1051. data/ext/abc/src/misc/util/util_hack.h +0 -46
  1052. data/ext/abc/src/misc/vec/module.make +0 -1
  1053. data/ext/abc/src/misc/vec/vec.h +0 -74
  1054. data/ext/abc/src/misc/vec/vecAtt.h +0 -298
  1055. data/ext/abc/src/misc/vec/vecBit.h +0 -636
  1056. data/ext/abc/src/misc/vec/vecFlt.h +0 -826
  1057. data/ext/abc/src/misc/vec/vecHash.h +0 -280
  1058. data/ext/abc/src/misc/vec/vecHsh.h +0 -590
  1059. data/ext/abc/src/misc/vec/vecInt.h +0 -2078
  1060. data/ext/abc/src/misc/vec/vecMem.h +0 -431
  1061. data/ext/abc/src/misc/vec/vecPtr.h +0 -1160
  1062. data/ext/abc/src/misc/vec/vecQue.h +0 -374
  1063. data/ext/abc/src/misc/vec/vecSet.h +0 -299
  1064. data/ext/abc/src/misc/vec/vecStr.h +0 -1072
  1065. data/ext/abc/src/misc/vec/vecVec.h +0 -646
  1066. data/ext/abc/src/misc/vec/vecWec.h +0 -738
  1067. data/ext/abc/src/misc/vec/vecWrd.h +0 -1205
  1068. data/ext/abc/src/misc/zlib/README +0 -115
  1069. data/ext/abc/src/misc/zlib/adler32.c +0 -168
  1070. data/ext/abc/src/misc/zlib/algorithm.txt +0 -209
  1071. data/ext/abc/src/misc/zlib/compress_.c +0 -76
  1072. data/ext/abc/src/misc/zlib/crc32.c +0 -433
  1073. data/ext/abc/src/misc/zlib/crc32.h +0 -445
  1074. data/ext/abc/src/misc/zlib/deflate.c +0 -1784
  1075. data/ext/abc/src/misc/zlib/deflate.h +0 -346
  1076. data/ext/abc/src/misc/zlib/gzclose.c +0 -33
  1077. data/ext/abc/src/misc/zlib/gzguts.h +0 -147
  1078. data/ext/abc/src/misc/zlib/gzlib.c +0 -517
  1079. data/ext/abc/src/misc/zlib/gzread.c +0 -641
  1080. data/ext/abc/src/misc/zlib/gzwrite.c +0 -520
  1081. data/ext/abc/src/misc/zlib/infback.c +0 -631
  1082. data/ext/abc/src/misc/zlib/inffast.c +0 -351
  1083. data/ext/abc/src/misc/zlib/inffast.h +0 -15
  1084. data/ext/abc/src/misc/zlib/inffixed.h +0 -98
  1085. data/ext/abc/src/misc/zlib/inflate.c +0 -1457
  1086. data/ext/abc/src/misc/zlib/inflate.h +0 -126
  1087. data/ext/abc/src/misc/zlib/inftrees.c +0 -337
  1088. data/ext/abc/src/misc/zlib/inftrees.h +0 -66
  1089. data/ext/abc/src/misc/zlib/license +0 -31
  1090. data/ext/abc/src/misc/zlib/link.txt +0 -1
  1091. data/ext/abc/src/misc/zlib/module.make +0 -15
  1092. data/ext/abc/src/misc/zlib/trees.c +0 -1216
  1093. data/ext/abc/src/misc/zlib/trees.h +0 -132
  1094. data/ext/abc/src/misc/zlib/uncompr.c +0 -67
  1095. data/ext/abc/src/misc/zlib/zconf.h +0 -432
  1096. data/ext/abc/src/misc/zlib/zlib.h +0 -1619
  1097. data/ext/abc/src/misc/zlib/zutil.c +0 -318
  1098. data/ext/abc/src/misc/zlib/zutil.h +0 -288
  1099. data/ext/abc/src/opt/cgt/cgt.h +0 -87
  1100. data/ext/abc/src/opt/cgt/cgtAig.c +0 -601
  1101. data/ext/abc/src/opt/cgt/cgtCore.c +0 -328
  1102. data/ext/abc/src/opt/cgt/cgtDecide.c +0 -300
  1103. data/ext/abc/src/opt/cgt/cgtInt.h +0 -123
  1104. data/ext/abc/src/opt/cgt/cgtMan.c +0 -179
  1105. data/ext/abc/src/opt/cgt/cgtSat.c +0 -98
  1106. data/ext/abc/src/opt/cgt/module.make +0 -5
  1107. data/ext/abc/src/opt/csw/csw.h +0 -69
  1108. data/ext/abc/src/opt/csw/cswCore.c +0 -100
  1109. data/ext/abc/src/opt/csw/cswCut.c +0 -608
  1110. data/ext/abc/src/opt/csw/cswInt.h +0 -160
  1111. data/ext/abc/src/opt/csw/cswMan.c +0 -130
  1112. data/ext/abc/src/opt/csw/cswTable.c +0 -166
  1113. data/ext/abc/src/opt/csw/csw_.c +0 -53
  1114. data/ext/abc/src/opt/csw/module.make +0 -4
  1115. data/ext/abc/src/opt/cut/abcCut.c +0 -498
  1116. data/ext/abc/src/opt/cut/cut.h +0 -172
  1117. data/ext/abc/src/opt/cut/cutApi.c +0 -202
  1118. data/ext/abc/src/opt/cut/cutCut.c +0 -364
  1119. data/ext/abc/src/opt/cut/cutExpand.c +0 -189
  1120. data/ext/abc/src/opt/cut/cutInt.h +0 -165
  1121. data/ext/abc/src/opt/cut/cutList.h +0 -215
  1122. data/ext/abc/src/opt/cut/cutMan.c +0 -320
  1123. data/ext/abc/src/opt/cut/cutMerge.c +0 -662
  1124. data/ext/abc/src/opt/cut/cutNode.c +0 -1004
  1125. data/ext/abc/src/opt/cut/cutOracle.c +0 -424
  1126. data/ext/abc/src/opt/cut/cutPre22.c +0 -994
  1127. data/ext/abc/src/opt/cut/cutSeq.c +0 -232
  1128. data/ext/abc/src/opt/cut/cutTruth.c +0 -232
  1129. data/ext/abc/src/opt/cut/module.make +0 -9
  1130. data/ext/abc/src/opt/dar/dar.h +0 -116
  1131. data/ext/abc/src/opt/dar/darBalance.c +0 -761
  1132. data/ext/abc/src/opt/dar/darCore.c +0 -348
  1133. data/ext/abc/src/opt/dar/darCut.c +0 -837
  1134. data/ext/abc/src/opt/dar/darData.c +0 -11294
  1135. data/ext/abc/src/opt/dar/darInt.h +0 -169
  1136. data/ext/abc/src/opt/dar/darLib.c +0 -1341
  1137. data/ext/abc/src/opt/dar/darMan.c +0 -174
  1138. data/ext/abc/src/opt/dar/darPrec.c +0 -394
  1139. data/ext/abc/src/opt/dar/darRefact.c +0 -639
  1140. data/ext/abc/src/opt/dar/darResub.c +0 -53
  1141. data/ext/abc/src/opt/dar/darScript.c +0 -911
  1142. data/ext/abc/src/opt/dar/dar_.c +0 -53
  1143. data/ext/abc/src/opt/dar/module.make +0 -9
  1144. data/ext/abc/src/opt/dau/dau.c +0 -53
  1145. data/ext/abc/src/opt/dau/dau.h +0 -125
  1146. data/ext/abc/src/opt/dau/dauArray.c +0 -257
  1147. data/ext/abc/src/opt/dau/dauCanon.c +0 -1202
  1148. data/ext/abc/src/opt/dau/dauCore.c +0 -112
  1149. data/ext/abc/src/opt/dau/dauDivs.c +0 -111
  1150. data/ext/abc/src/opt/dau/dauDsd.c +0 -2098
  1151. data/ext/abc/src/opt/dau/dauDsd2.c +0 -660
  1152. data/ext/abc/src/opt/dau/dauEnum.c +0 -253
  1153. data/ext/abc/src/opt/dau/dauGia.c +0 -573
  1154. data/ext/abc/src/opt/dau/dauInt.h +0 -70
  1155. data/ext/abc/src/opt/dau/dauMerge.c +0 -824
  1156. data/ext/abc/src/opt/dau/dauNonDsd.c +0 -903
  1157. data/ext/abc/src/opt/dau/dauTree.c +0 -2022
  1158. data/ext/abc/src/opt/dau/module.make +0 -9
  1159. data/ext/abc/src/opt/dsc/dsc.c +0 -525
  1160. data/ext/abc/src/opt/dsc/dsc.h +0 -91
  1161. data/ext/abc/src/opt/dsc/module.make +0 -1
  1162. data/ext/abc/src/opt/fret/fretFlow.c +0 -700
  1163. data/ext/abc/src/opt/fret/fretInit.c +0 -1343
  1164. data/ext/abc/src/opt/fret/fretMain.c +0 -1383
  1165. data/ext/abc/src/opt/fret/fretTime.c +0 -766
  1166. data/ext/abc/src/opt/fret/fretime.h +0 -212
  1167. data/ext/abc/src/opt/fret/module.make +0 -5
  1168. data/ext/abc/src/opt/fsim/fsim.h +0 -101
  1169. data/ext/abc/src/opt/fsim/fsimCore.c +0 -88
  1170. data/ext/abc/src/opt/fsim/fsimFront.c +0 -369
  1171. data/ext/abc/src/opt/fsim/fsimInt.h +0 -138
  1172. data/ext/abc/src/opt/fsim/fsimMan.c +0 -212
  1173. data/ext/abc/src/opt/fsim/fsimSim.c +0 -569
  1174. data/ext/abc/src/opt/fsim/fsimSwitch.c +0 -40
  1175. data/ext/abc/src/opt/fsim/fsimTsim.c +0 -416
  1176. data/ext/abc/src/opt/fsim/module.make +0 -6
  1177. data/ext/abc/src/opt/fxch/Fxch.c +0 -266
  1178. data/ext/abc/src/opt/fxch/Fxch.h +0 -229
  1179. data/ext/abc/src/opt/fxch/FxchDiv.c +0 -485
  1180. data/ext/abc/src/opt/fxch/FxchMan.c +0 -785
  1181. data/ext/abc/src/opt/fxch/FxchSCHashTable.c +0 -382
  1182. data/ext/abc/src/opt/fxch/module.make +0 -4
  1183. data/ext/abc/src/opt/fxu/fxu.c +0 -260
  1184. data/ext/abc/src/opt/fxu/fxu.h +0 -97
  1185. data/ext/abc/src/opt/fxu/fxuCreate.c +0 -447
  1186. data/ext/abc/src/opt/fxu/fxuHeapD.c +0 -450
  1187. data/ext/abc/src/opt/fxu/fxuHeapS.c +0 -449
  1188. data/ext/abc/src/opt/fxu/fxuInt.h +0 -545
  1189. data/ext/abc/src/opt/fxu/fxuList.c +0 -527
  1190. data/ext/abc/src/opt/fxu/fxuMatrix.c +0 -377
  1191. data/ext/abc/src/opt/fxu/fxuPair.c +0 -560
  1192. data/ext/abc/src/opt/fxu/fxuPrint.c +0 -202
  1193. data/ext/abc/src/opt/fxu/fxuReduce.c +0 -213
  1194. data/ext/abc/src/opt/fxu/fxuSelect.c +0 -608
  1195. data/ext/abc/src/opt/fxu/fxuSingle.c +0 -289
  1196. data/ext/abc/src/opt/fxu/fxuUpdate.c +0 -811
  1197. data/ext/abc/src/opt/fxu/module.make +0 -12
  1198. data/ext/abc/src/opt/lpk/lpk.h +0 -88
  1199. data/ext/abc/src/opt/lpk/lpkAbcDec.c +0 -294
  1200. data/ext/abc/src/opt/lpk/lpkAbcDsd.c +0 -617
  1201. data/ext/abc/src/opt/lpk/lpkAbcMux.c +0 -240
  1202. data/ext/abc/src/opt/lpk/lpkAbcUtil.c +0 -249
  1203. data/ext/abc/src/opt/lpk/lpkCore.c +0 -694
  1204. data/ext/abc/src/opt/lpk/lpkCut.c +0 -689
  1205. data/ext/abc/src/opt/lpk/lpkInt.h +0 -250
  1206. data/ext/abc/src/opt/lpk/lpkMan.c +0 -127
  1207. data/ext/abc/src/opt/lpk/lpkMap.c +0 -210
  1208. data/ext/abc/src/opt/lpk/lpkMulti.c +0 -513
  1209. data/ext/abc/src/opt/lpk/lpkMux.c +0 -252
  1210. data/ext/abc/src/opt/lpk/lpkSets.c +0 -445
  1211. data/ext/abc/src/opt/lpk/lpk_.c +0 -53
  1212. data/ext/abc/src/opt/lpk/module.make +0 -11
  1213. data/ext/abc/src/opt/mfs/mfs.h +0 -89
  1214. data/ext/abc/src/opt/mfs/mfsCore.c +0 -596
  1215. data/ext/abc/src/opt/mfs/mfsCore_.c +0 -394
  1216. data/ext/abc/src/opt/mfs/mfsDiv.c +0 -309
  1217. data/ext/abc/src/opt/mfs/mfsGia.c +0 -301
  1218. data/ext/abc/src/opt/mfs/mfsInt.h +0 -192
  1219. data/ext/abc/src/opt/mfs/mfsInter.c +0 -398
  1220. data/ext/abc/src/opt/mfs/mfsMan.c +0 -202
  1221. data/ext/abc/src/opt/mfs/mfsResub.c +0 -622
  1222. data/ext/abc/src/opt/mfs/mfsResub_.c +0 -567
  1223. data/ext/abc/src/opt/mfs/mfsSat.c +0 -182
  1224. data/ext/abc/src/opt/mfs/mfsStrash.c +0 -406
  1225. data/ext/abc/src/opt/mfs/mfsWin.c +0 -117
  1226. data/ext/abc/src/opt/mfs/mfs_.c +0 -52
  1227. data/ext/abc/src/opt/mfs/module.make +0 -8
  1228. data/ext/abc/src/opt/nwk/module.make +0 -14
  1229. data/ext/abc/src/opt/nwk/ntlnwk.h +0 -113
  1230. data/ext/abc/src/opt/nwk/nwk.h +0 -307
  1231. data/ext/abc/src/opt/nwk/nwkAig.c +0 -299
  1232. data/ext/abc/src/opt/nwk/nwkBidec.c +0 -177
  1233. data/ext/abc/src/opt/nwk/nwkCheck.c +0 -76
  1234. data/ext/abc/src/opt/nwk/nwkDfs.c +0 -664
  1235. data/ext/abc/src/opt/nwk/nwkFanio.c +0 -320
  1236. data/ext/abc/src/opt/nwk/nwkFlow.c +0 -606
  1237. data/ext/abc/src/opt/nwk/nwkFlow_depth.c +0 -631
  1238. data/ext/abc/src/opt/nwk/nwkMan.c +0 -278
  1239. data/ext/abc/src/opt/nwk/nwkMap.c +0 -396
  1240. data/ext/abc/src/opt/nwk/nwkMerge.c +0 -1046
  1241. data/ext/abc/src/opt/nwk/nwkMerge.h +0 -153
  1242. data/ext/abc/src/opt/nwk/nwkObj.c +0 -204
  1243. data/ext/abc/src/opt/nwk/nwkSpeedup.c +0 -382
  1244. data/ext/abc/src/opt/nwk/nwkStrash.c +0 -149
  1245. data/ext/abc/src/opt/nwk/nwkTiming.c +0 -894
  1246. data/ext/abc/src/opt/nwk/nwkUtil.c +0 -644
  1247. data/ext/abc/src/opt/nwk/nwk_.c +0 -52
  1248. data/ext/abc/src/opt/res/module.make +0 -7
  1249. data/ext/abc/src/opt/res/res.h +0 -79
  1250. data/ext/abc/src/opt/res/resCore.c +0 -427
  1251. data/ext/abc/src/opt/res/resDivs.c +0 -290
  1252. data/ext/abc/src/opt/res/resFilter.c +0 -439
  1253. data/ext/abc/src/opt/res/resInt.h +0 -141
  1254. data/ext/abc/src/opt/res/resSat.c +0 -414
  1255. data/ext/abc/src/opt/res/resSim.c +0 -795
  1256. data/ext/abc/src/opt/res/resSim_old.c +0 -526
  1257. data/ext/abc/src/opt/res/resStrash.c +0 -122
  1258. data/ext/abc/src/opt/res/resWin.c +0 -490
  1259. data/ext/abc/src/opt/res/res_.c +0 -55
  1260. data/ext/abc/src/opt/ret/module.make +0 -8
  1261. data/ext/abc/src/opt/ret/retArea.c +0 -554
  1262. data/ext/abc/src/opt/ret/retCore.c +0 -138
  1263. data/ext/abc/src/opt/ret/retDelay.c +0 -315
  1264. data/ext/abc/src/opt/ret/retFlow.c +0 -789
  1265. data/ext/abc/src/opt/ret/retIncrem.c +0 -480
  1266. data/ext/abc/src/opt/ret/retInit.c +0 -355
  1267. data/ext/abc/src/opt/ret/retInt.h +0 -88
  1268. data/ext/abc/src/opt/ret/retLvalue.c +0 -402
  1269. data/ext/abc/src/opt/ret/ret_.c +0 -53
  1270. data/ext/abc/src/opt/rwr/module.make +0 -7
  1271. data/ext/abc/src/opt/rwr/rwr.h +0 -173
  1272. data/ext/abc/src/opt/rwr/rwrDec.c +0 -155
  1273. data/ext/abc/src/opt/rwr/rwrEva.c +0 -599
  1274. data/ext/abc/src/opt/rwr/rwrExp.c +0 -336
  1275. data/ext/abc/src/opt/rwr/rwrLib.c +0 -367
  1276. data/ext/abc/src/opt/rwr/rwrMan.c +0 -323
  1277. data/ext/abc/src/opt/rwr/rwrPrint.c +0 -271
  1278. data/ext/abc/src/opt/rwr/rwrTemp.c +0 -126
  1279. data/ext/abc/src/opt/rwr/rwrUtil.c +0 -661
  1280. data/ext/abc/src/opt/rwt/module.make +0 -3
  1281. data/ext/abc/src/opt/rwt/rwt.h +0 -165
  1282. data/ext/abc/src/opt/rwt/rwtDec.c +0 -155
  1283. data/ext/abc/src/opt/rwt/rwtMan.c +0 -363
  1284. data/ext/abc/src/opt/rwt/rwtUtil.c +0 -663
  1285. data/ext/abc/src/opt/sbd/module.make +0 -9
  1286. data/ext/abc/src/opt/sbd/sbd.c +0 -122
  1287. data/ext/abc/src/opt/sbd/sbd.h +0 -82
  1288. data/ext/abc/src/opt/sbd/sbdCnf.c +0 -147
  1289. data/ext/abc/src/opt/sbd/sbdCore.c +0 -2229
  1290. data/ext/abc/src/opt/sbd/sbdCut.c +0 -872
  1291. data/ext/abc/src/opt/sbd/sbdCut2.c +0 -431
  1292. data/ext/abc/src/opt/sbd/sbdInt.h +0 -125
  1293. data/ext/abc/src/opt/sbd/sbdLut.c +0 -311
  1294. data/ext/abc/src/opt/sbd/sbdPath.c +0 -197
  1295. data/ext/abc/src/opt/sbd/sbdSat.c +0 -793
  1296. data/ext/abc/src/opt/sbd/sbdSim.c +0 -310
  1297. data/ext/abc/src/opt/sbd/sbdWin.c +0 -464
  1298. data/ext/abc/src/opt/sfm/module.make +0 -10
  1299. data/ext/abc/src/opt/sfm/sfm.h +0 -107
  1300. data/ext/abc/src/opt/sfm/sfmArea.c +0 -380
  1301. data/ext/abc/src/opt/sfm/sfmCnf.c +0 -179
  1302. data/ext/abc/src/opt/sfm/sfmCore.c +0 -306
  1303. data/ext/abc/src/opt/sfm/sfmDec.c +0 -2168
  1304. data/ext/abc/src/opt/sfm/sfmInt.h +0 -254
  1305. data/ext/abc/src/opt/sfm/sfmLib.c +0 -766
  1306. data/ext/abc/src/opt/sfm/sfmMit.c +0 -73
  1307. data/ext/abc/src/opt/sfm/sfmNtk.c +0 -381
  1308. data/ext/abc/src/opt/sfm/sfmSat.c +0 -273
  1309. data/ext/abc/src/opt/sfm/sfmTim.c +0 -458
  1310. data/ext/abc/src/opt/sfm/sfmWin.c +0 -481
  1311. data/ext/abc/src/opt/sim/module.make +0 -9
  1312. data/ext/abc/src/opt/sim/sim.h +0 -237
  1313. data/ext/abc/src/opt/sim/simMan.c +0 -293
  1314. data/ext/abc/src/opt/sim/simSat.c +0 -53
  1315. data/ext/abc/src/opt/sim/simSeq.c +0 -176
  1316. data/ext/abc/src/opt/sim/simSupp.c +0 -603
  1317. data/ext/abc/src/opt/sim/simSwitch.c +0 -112
  1318. data/ext/abc/src/opt/sim/simSym.c +0 -148
  1319. data/ext/abc/src/opt/sim/simSymSat.c +0 -205
  1320. data/ext/abc/src/opt/sim/simSymSim.c +0 -178
  1321. data/ext/abc/src/opt/sim/simSymStr.c +0 -493
  1322. data/ext/abc/src/opt/sim/simUtils.c +0 -718
  1323. data/ext/abc/src/phys/place/Makefile +0 -30
  1324. data/ext/abc/src/phys/place/README +0 -50
  1325. data/ext/abc/src/phys/place/hpwl +0 -57
  1326. data/ext/abc/src/phys/place/libhmetis.h +0 -39
  1327. data/ext/abc/src/phys/place/module.make +0 -10
  1328. data/ext/abc/src/phys/place/place_base.c +0 -350
  1329. data/ext/abc/src/phys/place/place_base.h +0 -145
  1330. data/ext/abc/src/phys/place/place_bin.c +0 -282
  1331. data/ext/abc/src/phys/place/place_genqp.c +0 -314
  1332. data/ext/abc/src/phys/place/place_gordian.c +0 -165
  1333. data/ext/abc/src/phys/place/place_gordian.h +0 -86
  1334. data/ext/abc/src/phys/place/place_inc.c +0 -111
  1335. data/ext/abc/src/phys/place/place_io.c +0 -99
  1336. data/ext/abc/src/phys/place/place_legalize.c +0 -28
  1337. data/ext/abc/src/phys/place/place_pads.c +0 -146
  1338. data/ext/abc/src/phys/place/place_partition.c +0 -1140
  1339. data/ext/abc/src/phys/place/place_qpsolver.c +0 -1275
  1340. data/ext/abc/src/phys/place/place_qpsolver.h +0 -139
  1341. data/ext/abc/src/phys/place/place_test.c +0 -365
  1342. data/ext/abc/src/proof/abs/abs.c +0 -52
  1343. data/ext/abc/src/proof/abs/abs.h +0 -177
  1344. data/ext/abc/src/proof/abs/absDup.c +0 -445
  1345. data/ext/abc/src/proof/abs/absGla.c +0 -1901
  1346. data/ext/abc/src/proof/abs/absGlaOld.c +0 -1956
  1347. data/ext/abc/src/proof/abs/absIter.c +0 -148
  1348. data/ext/abc/src/proof/abs/absOldCex.c +0 -873
  1349. data/ext/abc/src/proof/abs/absOldRef.c +0 -474
  1350. data/ext/abc/src/proof/abs/absOldSat.c +0 -986
  1351. data/ext/abc/src/proof/abs/absOldSim.c +0 -477
  1352. data/ext/abc/src/proof/abs/absOut.c +0 -458
  1353. data/ext/abc/src/proof/abs/absPth.c +0 -205
  1354. data/ext/abc/src/proof/abs/absRef.c +0 -751
  1355. data/ext/abc/src/proof/abs/absRef.h +0 -129
  1356. data/ext/abc/src/proof/abs/absRefJ.c +0 -916
  1357. data/ext/abc/src/proof/abs/absRefJ.h +0 -67
  1358. data/ext/abc/src/proof/abs/absRefSelect.c +0 -309
  1359. data/ext/abc/src/proof/abs/absRpm.c +0 -874
  1360. data/ext/abc/src/proof/abs/absRpmOld.c +0 -201
  1361. data/ext/abc/src/proof/abs/absUtil.c +0 -257
  1362. data/ext/abc/src/proof/abs/absVta.c +0 -1764
  1363. data/ext/abc/src/proof/abs/module.make +0 -16
  1364. data/ext/abc/src/proof/acec/acec.c +0 -52
  1365. data/ext/abc/src/proof/acec/acec.h +0 -98
  1366. data/ext/abc/src/proof/acec/acec2Mult.c +0 -1211
  1367. data/ext/abc/src/proof/acec/acecBo.c +0 -216
  1368. data/ext/abc/src/proof/acec/acecCl.c +0 -445
  1369. data/ext/abc/src/proof/acec/acecCo.c +0 -429
  1370. data/ext/abc/src/proof/acec/acecCore.c +0 -553
  1371. data/ext/abc/src/proof/acec/acecCover.c +0 -263
  1372. data/ext/abc/src/proof/acec/acecFadds.c +0 -1247
  1373. data/ext/abc/src/proof/acec/acecInt.h +0 -105
  1374. data/ext/abc/src/proof/acec/acecMult.c +0 -623
  1375. data/ext/abc/src/proof/acec/acecNorm.c +0 -226
  1376. data/ext/abc/src/proof/acec/acecOrder.c +0 -254
  1377. data/ext/abc/src/proof/acec/acecPa.c +0 -277
  1378. data/ext/abc/src/proof/acec/acecPo.c +0 -655
  1379. data/ext/abc/src/proof/acec/acecPolyn.c +0 -445
  1380. data/ext/abc/src/proof/acec/acecPool.c +0 -428
  1381. data/ext/abc/src/proof/acec/acecRe.c +0 -602
  1382. data/ext/abc/src/proof/acec/acecSt.c +0 -422
  1383. data/ext/abc/src/proof/acec/acecStruct.c +0 -271
  1384. data/ext/abc/src/proof/acec/acecTree.c +0 -783
  1385. data/ext/abc/src/proof/acec/acecUtil.c +0 -122
  1386. data/ext/abc/src/proof/acec/acecXor.c +0 -434
  1387. data/ext/abc/src/proof/acec/module.make +0 -19
  1388. data/ext/abc/src/proof/cec/cec.c +0 -53
  1389. data/ext/abc/src/proof/cec/cec.h +0 -240
  1390. data/ext/abc/src/proof/cec/cecCec.c +0 -580
  1391. data/ext/abc/src/proof/cec/cecChoice.c +0 -410
  1392. data/ext/abc/src/proof/cec/cecClass.c +0 -931
  1393. data/ext/abc/src/proof/cec/cecCore.c +0 -554
  1394. data/ext/abc/src/proof/cec/cecCorr.c +0 -1229
  1395. data/ext/abc/src/proof/cec/cecInt.h +0 -227
  1396. data/ext/abc/src/proof/cec/cecIso.c +0 -375
  1397. data/ext/abc/src/proof/cec/cecMan.c +0 -297
  1398. data/ext/abc/src/proof/cec/cecPat.c +0 -578
  1399. data/ext/abc/src/proof/cec/cecSat.c +0 -1040
  1400. data/ext/abc/src/proof/cec/cecSatG.c +0 -1048
  1401. data/ext/abc/src/proof/cec/cecSeq.c +0 -449
  1402. data/ext/abc/src/proof/cec/cecSim.c +0 -53
  1403. data/ext/abc/src/proof/cec/cecSimBack.c +0 -194
  1404. data/ext/abc/src/proof/cec/cecSolve.c +0 -1107
  1405. data/ext/abc/src/proof/cec/cecSplit.c +0 -849
  1406. data/ext/abc/src/proof/cec/cecSweep.c +0 -301
  1407. data/ext/abc/src/proof/cec/cecSynth.c +0 -433
  1408. data/ext/abc/src/proof/cec/module.make +0 -15
  1409. data/ext/abc/src/proof/dch/dch.h +0 -91
  1410. data/ext/abc/src/proof/dch/dchAig.c +0 -119
  1411. data/ext/abc/src/proof/dch/dchChoice.c +0 -552
  1412. data/ext/abc/src/proof/dch/dchClass.c +0 -611
  1413. data/ext/abc/src/proof/dch/dchCnf.c +0 -334
  1414. data/ext/abc/src/proof/dch/dchCore.c +0 -161
  1415. data/ext/abc/src/proof/dch/dchInt.h +0 -170
  1416. data/ext/abc/src/proof/dch/dchMan.c +0 -191
  1417. data/ext/abc/src/proof/dch/dchSat.c +0 -167
  1418. data/ext/abc/src/proof/dch/dchSim.c +0 -297
  1419. data/ext/abc/src/proof/dch/dchSimSat.c +0 -260
  1420. data/ext/abc/src/proof/dch/dchSweep.c +0 -146
  1421. data/ext/abc/src/proof/dch/module.make +0 -10
  1422. data/ext/abc/src/proof/fra/fra.h +0 -389
  1423. data/ext/abc/src/proof/fra/fraBmc.c +0 -453
  1424. data/ext/abc/src/proof/fra/fraCec.c +0 -574
  1425. data/ext/abc/src/proof/fra/fraClass.c +0 -862
  1426. data/ext/abc/src/proof/fra/fraClau.c +0 -745
  1427. data/ext/abc/src/proof/fra/fraClaus.c +0 -1877
  1428. data/ext/abc/src/proof/fra/fraCnf.c +0 -289
  1429. data/ext/abc/src/proof/fra/fraCore.c +0 -490
  1430. data/ext/abc/src/proof/fra/fraHot.c +0 -476
  1431. data/ext/abc/src/proof/fra/fraImp.c +0 -732
  1432. data/ext/abc/src/proof/fra/fraInd.c +0 -712
  1433. data/ext/abc/src/proof/fra/fraIndVer.c +0 -166
  1434. data/ext/abc/src/proof/fra/fraLcr.c +0 -708
  1435. data/ext/abc/src/proof/fra/fraMan.c +0 -314
  1436. data/ext/abc/src/proof/fra/fraPart.c +0 -269
  1437. data/ext/abc/src/proof/fra/fraSat.c +0 -571
  1438. data/ext/abc/src/proof/fra/fraSec.c +0 -693
  1439. data/ext/abc/src/proof/fra/fraSim.c +0 -1173
  1440. data/ext/abc/src/proof/fra/fra_.c +0 -53
  1441. data/ext/abc/src/proof/fra/module.make +0 -17
  1442. data/ext/abc/src/proof/fraig/fraig.h +0 -257
  1443. data/ext/abc/src/proof/fraig/fraigApi.c +0 -299
  1444. data/ext/abc/src/proof/fraig/fraigCanon.c +0 -223
  1445. data/ext/abc/src/proof/fraig/fraigChoice.c +0 -246
  1446. data/ext/abc/src/proof/fraig/fraigFanout.c +0 -180
  1447. data/ext/abc/src/proof/fraig/fraigFeed.c +0 -914
  1448. data/ext/abc/src/proof/fraig/fraigInt.h +0 -436
  1449. data/ext/abc/src/proof/fraig/fraigMan.c +0 -546
  1450. data/ext/abc/src/proof/fraig/fraigMem.c +0 -251
  1451. data/ext/abc/src/proof/fraig/fraigNode.c +0 -319
  1452. data/ext/abc/src/proof/fraig/fraigPrime.c +0 -113
  1453. data/ext/abc/src/proof/fraig/fraigSat.c +0 -1463
  1454. data/ext/abc/src/proof/fraig/fraigTable.c +0 -664
  1455. data/ext/abc/src/proof/fraig/fraigUtil.c +0 -1039
  1456. data/ext/abc/src/proof/fraig/fraigVec.c +0 -550
  1457. data/ext/abc/src/proof/fraig/module.make +0 -12
  1458. data/ext/abc/src/proof/int/int.h +0 -96
  1459. data/ext/abc/src/proof/int/intCheck.c +0 -305
  1460. data/ext/abc/src/proof/int/intContain.c +0 -341
  1461. data/ext/abc/src/proof/int/intCore.c +0 -412
  1462. data/ext/abc/src/proof/int/intCtrex.c +0 -168
  1463. data/ext/abc/src/proof/int/intDup.c +0 -184
  1464. data/ext/abc/src/proof/int/intFrames.c +0 -124
  1465. data/ext/abc/src/proof/int/intInt.h +0 -143
  1466. data/ext/abc/src/proof/int/intInter.c +0 -145
  1467. data/ext/abc/src/proof/int/intM114.c +0 -323
  1468. data/ext/abc/src/proof/int/intM114p.c +0 -443
  1469. data/ext/abc/src/proof/int/intMan.c +0 -165
  1470. data/ext/abc/src/proof/int/intUtil.c +0 -108
  1471. data/ext/abc/src/proof/int/module.make +0 -10
  1472. data/ext/abc/src/proof/int2/int2.h +0 -90
  1473. data/ext/abc/src/proof/int2/int2Bmc.c +0 -355
  1474. data/ext/abc/src/proof/int2/int2Core.c +0 -335
  1475. data/ext/abc/src/proof/int2/int2Int.h +0 -164
  1476. data/ext/abc/src/proof/int2/int2Refine.c +0 -154
  1477. data/ext/abc/src/proof/int2/int2Util.c +0 -152
  1478. data/ext/abc/src/proof/int2/module.make +0 -4
  1479. data/ext/abc/src/proof/live/arenaViolation.c +0 -549
  1480. data/ext/abc/src/proof/live/combination.c +0 -463
  1481. data/ext/abc/src/proof/live/disjunctiveMonotone.c +0 -757
  1482. data/ext/abc/src/proof/live/kLiveConstraints.c +0 -177
  1483. data/ext/abc/src/proof/live/kliveness.c +0 -816
  1484. data/ext/abc/src/proof/live/liveness.c +0 -2575
  1485. data/ext/abc/src/proof/live/liveness_sim.c +0 -849
  1486. data/ext/abc/src/proof/live/ltl_parser.c +0 -839
  1487. data/ext/abc/src/proof/live/module.make +0 -9
  1488. data/ext/abc/src/proof/live/monotone.c +0 -507
  1489. data/ext/abc/src/proof/pdr/module.make +0 -10
  1490. data/ext/abc/src/proof/pdr/pdr.c +0 -53
  1491. data/ext/abc/src/proof/pdr/pdr.h +0 -109
  1492. data/ext/abc/src/proof/pdr/pdrClass.c +0 -223
  1493. data/ext/abc/src/proof/pdr/pdrCnf.c +0 -455
  1494. data/ext/abc/src/proof/pdr/pdrCore.c +0 -1451
  1495. data/ext/abc/src/proof/pdr/pdrIncr.c +0 -1046
  1496. data/ext/abc/src/proof/pdr/pdrInt.h +0 -275
  1497. data/ext/abc/src/proof/pdr/pdrInv.c +0 -985
  1498. data/ext/abc/src/proof/pdr/pdrMan.c +0 -549
  1499. data/ext/abc/src/proof/pdr/pdrSat.c +0 -395
  1500. data/ext/abc/src/proof/pdr/pdrTsim.c +0 -502
  1501. data/ext/abc/src/proof/pdr/pdrTsim2.c +0 -550
  1502. data/ext/abc/src/proof/pdr/pdrTsim3.c +0 -361
  1503. data/ext/abc/src/proof/pdr/pdrUtil.c +0 -800
  1504. data/ext/abc/src/proof/ssc/module.make +0 -5
  1505. data/ext/abc/src/proof/ssc/ssc.h +0 -78
  1506. data/ext/abc/src/proof/ssc/sscClass.c +0 -326
  1507. data/ext/abc/src/proof/ssc/sscCore.c +0 -469
  1508. data/ext/abc/src/proof/ssc/sscInt.h +0 -135
  1509. data/ext/abc/src/proof/ssc/sscSat.c +0 -430
  1510. data/ext/abc/src/proof/ssc/sscSim.c +0 -364
  1511. data/ext/abc/src/proof/ssc/sscUtil.c +0 -173
  1512. data/ext/abc/src/proof/ssw/module.make +0 -20
  1513. data/ext/abc/src/proof/ssw/ssw.h +0 -170
  1514. data/ext/abc/src/proof/ssw/sswAig.c +0 -258
  1515. data/ext/abc/src/proof/ssw/sswBmc.c +0 -224
  1516. data/ext/abc/src/proof/ssw/sswClass.c +0 -1170
  1517. data/ext/abc/src/proof/ssw/sswCnf.c +0 -427
  1518. data/ext/abc/src/proof/ssw/sswConstr.c +0 -718
  1519. data/ext/abc/src/proof/ssw/sswCore.c +0 -539
  1520. data/ext/abc/src/proof/ssw/sswDyn.c +0 -491
  1521. data/ext/abc/src/proof/ssw/sswFilter.c +0 -493
  1522. data/ext/abc/src/proof/ssw/sswInt.h +0 -302
  1523. data/ext/abc/src/proof/ssw/sswIslands.c +0 -598
  1524. data/ext/abc/src/proof/ssw/sswLcorr.c +0 -337
  1525. data/ext/abc/src/proof/ssw/sswMan.c +0 -217
  1526. data/ext/abc/src/proof/ssw/sswPairs.c +0 -480
  1527. data/ext/abc/src/proof/ssw/sswPart.c +0 -140
  1528. data/ext/abc/src/proof/ssw/sswRarity.c +0 -1385
  1529. data/ext/abc/src/proof/ssw/sswRarity2.c +0 -518
  1530. data/ext/abc/src/proof/ssw/sswSat.c +0 -307
  1531. data/ext/abc/src/proof/ssw/sswSemi.c +0 -323
  1532. data/ext/abc/src/proof/ssw/sswSim.c +0 -1406
  1533. data/ext/abc/src/proof/ssw/sswSimSat.c +0 -124
  1534. data/ext/abc/src/proof/ssw/sswSweep.c +0 -440
  1535. data/ext/abc/src/proof/ssw/sswUnique.c +0 -196
  1536. data/ext/abc/src/sat/bmc/bmc.c +0 -52
  1537. data/ext/abc/src/sat/bmc/bmc.h +0 -205
  1538. data/ext/abc/src/sat/bmc/bmcBCore.c +0 -273
  1539. data/ext/abc/src/sat/bmc/bmcBmc.c +0 -377
  1540. data/ext/abc/src/sat/bmc/bmcBmc2.c +0 -944
  1541. data/ext/abc/src/sat/bmc/bmcBmc3.c +0 -1893
  1542. data/ext/abc/src/sat/bmc/bmcBmcAnd.c +0 -1100
  1543. data/ext/abc/src/sat/bmc/bmcBmcG.c +0 -455
  1544. data/ext/abc/src/sat/bmc/bmcBmcS.c +0 -940
  1545. data/ext/abc/src/sat/bmc/bmcBmci.c +0 -344
  1546. data/ext/abc/src/sat/bmc/bmcCexCare.c +0 -476
  1547. data/ext/abc/src/sat/bmc/bmcCexCut.c +0 -537
  1548. data/ext/abc/src/sat/bmc/bmcCexDepth.c +0 -373
  1549. data/ext/abc/src/sat/bmc/bmcCexMin1.c +0 -578
  1550. data/ext/abc/src/sat/bmc/bmcCexMin2.c +0 -363
  1551. data/ext/abc/src/sat/bmc/bmcCexTools.c +0 -852
  1552. data/ext/abc/src/sat/bmc/bmcChain.c +0 -396
  1553. data/ext/abc/src/sat/bmc/bmcClp.c +0 -1548
  1554. data/ext/abc/src/sat/bmc/bmcEco.c +0 -312
  1555. data/ext/abc/src/sat/bmc/bmcEnum.c +0 -223
  1556. data/ext/abc/src/sat/bmc/bmcExpand.c +0 -172
  1557. data/ext/abc/src/sat/bmc/bmcFault.c +0 -1710
  1558. data/ext/abc/src/sat/bmc/bmcFx.c +0 -725
  1559. data/ext/abc/src/sat/bmc/bmcGen.c +0 -193
  1560. data/ext/abc/src/sat/bmc/bmcICheck.c +0 -540
  1561. data/ext/abc/src/sat/bmc/bmcInse.c +0 -345
  1562. data/ext/abc/src/sat/bmc/bmcLoad.c +0 -212
  1563. data/ext/abc/src/sat/bmc/bmcMaj.c +0 -745
  1564. data/ext/abc/src/sat/bmc/bmcMaj2.c +0 -852
  1565. data/ext/abc/src/sat/bmc/bmcMaxi.c +0 -282
  1566. data/ext/abc/src/sat/bmc/bmcMesh.c +0 -433
  1567. data/ext/abc/src/sat/bmc/bmcMesh2.c +0 -449
  1568. data/ext/abc/src/sat/bmc/bmcMulti.c +0 -296
  1569. data/ext/abc/src/sat/bmc/bmcUnroll.c +0 -505
  1570. data/ext/abc/src/sat/bmc/module.make +0 -31
  1571. data/ext/abc/src/sat/bsat/license +0 -21
  1572. data/ext/abc/src/sat/bsat/module.make +0 -14
  1573. data/ext/abc/src/sat/bsat/satChecker.c +0 -193
  1574. data/ext/abc/src/sat/bsat/satClause.h +0 -476
  1575. data/ext/abc/src/sat/bsat/satInter.c +0 -1077
  1576. data/ext/abc/src/sat/bsat/satInterA.c +0 -1090
  1577. data/ext/abc/src/sat/bsat/satInterB.c +0 -1115
  1578. data/ext/abc/src/sat/bsat/satInterP.c +0 -1096
  1579. data/ext/abc/src/sat/bsat/satMem.c +0 -583
  1580. data/ext/abc/src/sat/bsat/satMem.h +0 -85
  1581. data/ext/abc/src/sat/bsat/satProof.c +0 -934
  1582. data/ext/abc/src/sat/bsat/satProof2.h +0 -327
  1583. data/ext/abc/src/sat/bsat/satSolver.c +0 -2417
  1584. data/ext/abc/src/sat/bsat/satSolver.h +0 -639
  1585. data/ext/abc/src/sat/bsat/satSolver2.c +0 -1998
  1586. data/ext/abc/src/sat/bsat/satSolver2.h +0 -377
  1587. data/ext/abc/src/sat/bsat/satSolver2i.c +0 -242
  1588. data/ext/abc/src/sat/bsat/satSolver3.c +0 -2299
  1589. data/ext/abc/src/sat/bsat/satSolver3.h +0 -622
  1590. data/ext/abc/src/sat/bsat/satStore.c +0 -469
  1591. data/ext/abc/src/sat/bsat/satStore.h +0 -158
  1592. data/ext/abc/src/sat/bsat/satTrace.c +0 -112
  1593. data/ext/abc/src/sat/bsat/satTruth.c +0 -299
  1594. data/ext/abc/src/sat/bsat/satTruth.h +0 -89
  1595. data/ext/abc/src/sat/bsat/satUtil.c +0 -358
  1596. data/ext/abc/src/sat/bsat/satVec.h +0 -161
  1597. data/ext/abc/src/sat/bsat2/AbcApi.cpp +0 -59
  1598. data/ext/abc/src/sat/bsat2/Alg.h +0 -84
  1599. data/ext/abc/src/sat/bsat2/Alloc.h +0 -131
  1600. data/ext/abc/src/sat/bsat2/Dimacs.h +0 -89
  1601. data/ext/abc/src/sat/bsat2/Heap.h +0 -149
  1602. data/ext/abc/src/sat/bsat2/IntTypes.h +0 -47
  1603. data/ext/abc/src/sat/bsat2/LICENSE +0 -21
  1604. data/ext/abc/src/sat/bsat2/MainSat.cpp +0 -197
  1605. data/ext/abc/src/sat/bsat2/MainSimp.cpp +0 -206
  1606. data/ext/abc/src/sat/bsat2/Map.h +0 -193
  1607. data/ext/abc/src/sat/bsat2/Options.cpp +0 -93
  1608. data/ext/abc/src/sat/bsat2/Options.h +0 -387
  1609. data/ext/abc/src/sat/bsat2/ParseUtils.h +0 -122
  1610. data/ext/abc/src/sat/bsat2/Queue.h +0 -69
  1611. data/ext/abc/src/sat/bsat2/README +0 -24
  1612. data/ext/abc/src/sat/bsat2/ReleaseNotes-2.2.0.txt +0 -79
  1613. data/ext/abc/src/sat/bsat2/SimpSolver.cpp +0 -720
  1614. data/ext/abc/src/sat/bsat2/SimpSolver.h +0 -197
  1615. data/ext/abc/src/sat/bsat2/Solver.cpp +0 -924
  1616. data/ext/abc/src/sat/bsat2/Solver.h +0 -373
  1617. data/ext/abc/src/sat/bsat2/SolverTypes.h +0 -407
  1618. data/ext/abc/src/sat/bsat2/Sort.h +0 -98
  1619. data/ext/abc/src/sat/bsat2/System.cpp +0 -95
  1620. data/ext/abc/src/sat/bsat2/System.h +0 -60
  1621. data/ext/abc/src/sat/bsat2/Vec.h +0 -130
  1622. data/ext/abc/src/sat/bsat2/XAlloc.h +0 -45
  1623. data/ext/abc/src/sat/bsat2/module.make +0 -7
  1624. data/ext/abc/src/sat/bsat2/pstdint.h +0 -813
  1625. data/ext/abc/src/sat/cnf/cnf.h +0 -202
  1626. data/ext/abc/src/sat/cnf/cnfCore.c +0 -290
  1627. data/ext/abc/src/sat/cnf/cnfCut.c +0 -376
  1628. data/ext/abc/src/sat/cnf/cnfData.c +0 -4789
  1629. data/ext/abc/src/sat/cnf/cnfFast.c +0 -697
  1630. data/ext/abc/src/sat/cnf/cnfMan.c +0 -726
  1631. data/ext/abc/src/sat/cnf/cnfMap.c +0 -362
  1632. data/ext/abc/src/sat/cnf/cnfPost.c +0 -238
  1633. data/ext/abc/src/sat/cnf/cnfUtil.c +0 -479
  1634. data/ext/abc/src/sat/cnf/cnfWrite.c +0 -806
  1635. data/ext/abc/src/sat/cnf/cnf_.c +0 -53
  1636. data/ext/abc/src/sat/cnf/module.make +0 -9
  1637. data/ext/abc/src/sat/csat/csat_apis.c +0 -778
  1638. data/ext/abc/src/sat/csat/csat_apis.h +0 -226
  1639. data/ext/abc/src/sat/csat/module.make +0 -1
  1640. data/ext/abc/src/sat/glucose/AbcGlucose.cpp +0 -1372
  1641. data/ext/abc/src/sat/glucose/AbcGlucose.h +0 -110
  1642. data/ext/abc/src/sat/glucose/AbcGlucoseCmd.cpp +0 -144
  1643. data/ext/abc/src/sat/glucose/Alg.h +0 -84
  1644. data/ext/abc/src/sat/glucose/Alloc.h +0 -132
  1645. data/ext/abc/src/sat/glucose/BoundedQueue.h +0 -110
  1646. data/ext/abc/src/sat/glucose/Constants.h +0 -33
  1647. data/ext/abc/src/sat/glucose/Dimacs.h +0 -89
  1648. data/ext/abc/src/sat/glucose/Glucose.cpp +0 -1493
  1649. data/ext/abc/src/sat/glucose/Heap.h +0 -150
  1650. data/ext/abc/src/sat/glucose/IntTypes.h +0 -47
  1651. data/ext/abc/src/sat/glucose/Map.h +0 -193
  1652. data/ext/abc/src/sat/glucose/Options.cpp +0 -92
  1653. data/ext/abc/src/sat/glucose/Options.h +0 -388
  1654. data/ext/abc/src/sat/glucose/ParseUtils.h +0 -151
  1655. data/ext/abc/src/sat/glucose/Queue.h +0 -69
  1656. data/ext/abc/src/sat/glucose/SimpSolver.cpp +0 -774
  1657. data/ext/abc/src/sat/glucose/SimpSolver.h +0 -204
  1658. data/ext/abc/src/sat/glucose/Solver.h +0 -491
  1659. data/ext/abc/src/sat/glucose/SolverTypes.h +0 -434
  1660. data/ext/abc/src/sat/glucose/Sort.h +0 -98
  1661. data/ext/abc/src/sat/glucose/System.cpp +0 -95
  1662. data/ext/abc/src/sat/glucose/System.h +0 -60
  1663. data/ext/abc/src/sat/glucose/Vec.h +0 -130
  1664. data/ext/abc/src/sat/glucose/XAlloc.h +0 -47
  1665. data/ext/abc/src/sat/glucose/module.make +0 -6
  1666. data/ext/abc/src/sat/glucose/pstdint.h +0 -919
  1667. data/ext/abc/src/sat/glucose/stdint.h +0 -1628
  1668. data/ext/abc/src/sat/lsat/solver.h +0 -132
  1669. data/ext/abc/src/sat/msat/module.make +0 -13
  1670. data/ext/abc/src/sat/msat/msat.h +0 -168
  1671. data/ext/abc/src/sat/msat/msatActivity.c +0 -165
  1672. data/ext/abc/src/sat/msat/msatClause.c +0 -537
  1673. data/ext/abc/src/sat/msat/msatClauseVec.c +0 -237
  1674. data/ext/abc/src/sat/msat/msatInt.h +0 -295
  1675. data/ext/abc/src/sat/msat/msatMem.c +0 -534
  1676. data/ext/abc/src/sat/msat/msatOrderH.c +0 -415
  1677. data/ext/abc/src/sat/msat/msatOrderJ.c +0 -477
  1678. data/ext/abc/src/sat/msat/msatQueue.c +0 -162
  1679. data/ext/abc/src/sat/msat/msatRead.c +0 -274
  1680. data/ext/abc/src/sat/msat/msatSolverApi.c +0 -505
  1681. data/ext/abc/src/sat/msat/msatSolverCore.c +0 -215
  1682. data/ext/abc/src/sat/msat/msatSolverIo.c +0 -182
  1683. data/ext/abc/src/sat/msat/msatSolverSearch.c +0 -634
  1684. data/ext/abc/src/sat/msat/msatSort.c +0 -178
  1685. data/ext/abc/src/sat/msat/msatVec.c +0 -500
  1686. data/ext/abc/src/sat/proof/pr.c +0 -1264
  1687. data/ext/abc/src/sat/proof/pr.h +0 -69
  1688. data/ext/abc/src/sat/proof/stats.txt +0 -66
  1689. data/ext/abc/src/sat/psat/m114p.h +0 -47
  1690. data/ext/abc/src/sat/psat/m114p_types.h +0 -13
  1691. data/ext/abc/src/sat/psat/module.make +0 -1
  1692. data/ext/abc/src/sat/satoko/LICENSE +0 -22
  1693. data/ext/abc/src/sat/satoko/act_clause.h +0 -43
  1694. data/ext/abc/src/sat/satoko/act_var.h +0 -53
  1695. data/ext/abc/src/sat/satoko/cdb.h +0 -106
  1696. data/ext/abc/src/sat/satoko/clause.h +0 -77
  1697. data/ext/abc/src/sat/satoko/cnf_reader.c +0 -157
  1698. data/ext/abc/src/sat/satoko/module.make +0 -3
  1699. data/ext/abc/src/sat/satoko/satoko.h +0 -147
  1700. data/ext/abc/src/sat/satoko/solver.c +0 -771
  1701. data/ext/abc/src/sat/satoko/solver.h +0 -260
  1702. data/ext/abc/src/sat/satoko/solver_api.c +0 -669
  1703. data/ext/abc/src/sat/satoko/types.h +0 -39
  1704. data/ext/abc/src/sat/satoko/utils/b_queue.h +0 -81
  1705. data/ext/abc/src/sat/satoko/utils/heap.h +0 -178
  1706. data/ext/abc/src/sat/satoko/utils/mem.h +0 -23
  1707. data/ext/abc/src/sat/satoko/utils/misc.h +0 -35
  1708. data/ext/abc/src/sat/satoko/utils/sdbl.h +0 -133
  1709. data/ext/abc/src/sat/satoko/utils/sort.h +0 -65
  1710. data/ext/abc/src/sat/satoko/utils/vec/vec_char.h +0 -260
  1711. data/ext/abc/src/sat/satoko/utils/vec/vec_flt.h +0 -246
  1712. data/ext/abc/src/sat/satoko/utils/vec/vec_int.h +0 -240
  1713. data/ext/abc/src/sat/satoko/utils/vec/vec_sdbl.h +0 -253
  1714. data/ext/abc/src/sat/satoko/utils/vec/vec_uint.h +0 -268
  1715. data/ext/abc/src/sat/satoko/watch_list.h +0 -203
  1716. data/ext/abc/src/sat/xsat/license +0 -39
  1717. data/ext/abc/src/sat/xsat/module.make +0 -3
  1718. data/ext/abc/src/sat/xsat/xsat.h +0 -59
  1719. data/ext/abc/src/sat/xsat/xsatBQueue.h +0 -190
  1720. data/ext/abc/src/sat/xsat/xsatClause.h +0 -109
  1721. data/ext/abc/src/sat/xsat/xsatCnfReader.c +0 -236
  1722. data/ext/abc/src/sat/xsat/xsatHeap.h +0 -330
  1723. data/ext/abc/src/sat/xsat/xsatMemory.h +0 -222
  1724. data/ext/abc/src/sat/xsat/xsatSolver.c +0 -1003
  1725. data/ext/abc/src/sat/xsat/xsatSolver.h +0 -248
  1726. data/ext/abc/src/sat/xsat/xsatSolverAPI.c +0 -346
  1727. data/ext/abc/src/sat/xsat/xsatUtils.h +0 -106
  1728. data/ext/abc/src/sat/xsat/xsatWatchList.h +0 -269
  1729. data/ext/abc/src/starter.c +0 -190
  1730. data/ext/abc/src/template.c +0 -111
  1731. data/ext/extconf.rb +0 -14
  1732. data/ext/ruby_abc_wrapper.h +0 -13
@@ -1,2173 +0,0 @@
1
- /**CFile***********************************************************************
2
-
3
- FileName [cuddGroup.c]
4
-
5
- PackageName [cudd]
6
-
7
- Synopsis [Functions for group sifting.]
8
-
9
- Description [External procedures included in this file:
10
- <ul>
11
- <li> Cudd_MakeTreeNode()
12
- </ul>
13
- Internal procedures included in this file:
14
- <ul>
15
- <li> cuddTreeSifting()
16
- </ul>
17
- Static procedures included in this module:
18
- <ul>
19
- <li> ddTreeSiftingAux()
20
- <li> ddCountInternalMtrNodes()
21
- <li> ddReorderChildren()
22
- <li> ddFindNodeHiLo()
23
- <li> ddUniqueCompareGroup()
24
- <li> ddGroupSifting()
25
- <li> ddCreateGroup()
26
- <li> ddGroupSiftingAux()
27
- <li> ddGroupSiftingUp()
28
- <li> ddGroupSiftingDown()
29
- <li> ddGroupMove()
30
- <li> ddGroupMoveBackward()
31
- <li> ddGroupSiftingBackward()
32
- <li> ddMergeGroups()
33
- <li> ddDissolveGroup()
34
- <li> ddNoCheck()
35
- <li> ddSecDiffCheck()
36
- <li> ddExtSymmCheck()
37
- <li> ddVarGroupCheck()
38
- <li> ddSetVarHandled()
39
- <li> ddResetVarHandled()
40
- <li> ddIsVarHandled()
41
- </ul>]
42
-
43
- Author [Shipra Panda, Fabio Somenzi]
44
-
45
- Copyright [Copyright (c) 1995-2004, Regents of the University of Colorado
46
-
47
- All rights reserved.
48
-
49
- Redistribution and use in source and binary forms, with or without
50
- modification, are permitted provided that the following conditions
51
- are met:
52
-
53
- Redistributions of source code must retain the above copyright
54
- notice, this list of conditions and the following disclaimer.
55
-
56
- Redistributions in binary form must reproduce the above copyright
57
- notice, this list of conditions and the following disclaimer in the
58
- documentation and/or other materials provided with the distribution.
59
-
60
- Neither the name of the University of Colorado nor the names of its
61
- contributors may be used to endorse or promote products derived from
62
- this software without specific prior written permission.
63
-
64
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
65
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
66
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
67
- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
68
- COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
69
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
70
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
71
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
72
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
73
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
74
- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
75
- POSSIBILITY OF SUCH DAMAGE.]
76
-
77
- ******************************************************************************/
78
-
79
- #include "misc/util/util_hack.h"
80
- #include "cuddInt.h"
81
-
82
- ABC_NAMESPACE_IMPL_START
83
-
84
-
85
-
86
- /*---------------------------------------------------------------------------*/
87
- /* Constant declarations */
88
- /*---------------------------------------------------------------------------*/
89
-
90
- /* Constants for lazy sifting */
91
- #define DD_NORMAL_SIFT 0
92
- #define DD_LAZY_SIFT 1
93
-
94
- /* Constants for sifting up and down */
95
- #define DD_SIFT_DOWN 0
96
- #define DD_SIFT_UP 1
97
-
98
- /*---------------------------------------------------------------------------*/
99
- /* Stucture declarations */
100
- /*---------------------------------------------------------------------------*/
101
-
102
- /*---------------------------------------------------------------------------*/
103
- /* Type declarations */
104
- /*---------------------------------------------------------------------------*/
105
-
106
- typedef int (*DD_CHKFP)(DdManager *, int, int);
107
-
108
- /*---------------------------------------------------------------------------*/
109
- /* Variable declarations */
110
- /*---------------------------------------------------------------------------*/
111
-
112
- #ifndef lint
113
- static char rcsid[] DD_UNUSED = "$Id: cuddGroup.c,v 1.44 2009/02/21 18:24:10 fabio Exp $";
114
- #endif
115
-
116
- static int *entry;
117
- extern int ddTotalNumberSwapping;
118
- #ifdef DD_STATS
119
- extern int ddTotalNISwaps;
120
- static int extsymmcalls;
121
- static int extsymm;
122
- static int secdiffcalls;
123
- static int secdiff;
124
- static int secdiffmisfire;
125
- #endif
126
- #ifdef DD_DEBUG
127
- static int pr = 0; /* flag to enable printing while debugging */
128
- /* by depositing a 1 into it */
129
- #endif
130
- static unsigned int originalSize;
131
-
132
- /*---------------------------------------------------------------------------*/
133
- /* Macro declarations */
134
- /*---------------------------------------------------------------------------*/
135
-
136
- /**AutomaticStart*************************************************************/
137
-
138
- /*---------------------------------------------------------------------------*/
139
- /* Static function prototypes */
140
- /*---------------------------------------------------------------------------*/
141
-
142
- static int ddTreeSiftingAux (DdManager *table, MtrNode *treenode, Cudd_ReorderingType method);
143
- #ifdef DD_STATS
144
- static int ddCountInternalMtrNodes (DdManager *table, MtrNode *treenode);
145
- #endif
146
- static int ddReorderChildren (DdManager *table, MtrNode *treenode, Cudd_ReorderingType method);
147
- static void ddFindNodeHiLo (DdManager *table, MtrNode *treenode, int *lower, int *upper);
148
- static int ddUniqueCompareGroup (int *ptrX, int *ptrY);
149
- static int ddGroupSifting (DdManager *table, int lower, int upper, DD_CHKFP checkFunction, int lazyFlag);
150
- static void ddCreateGroup (DdManager *table, int x, int y);
151
- static int ddGroupSiftingAux (DdManager *table, int x, int xLow, int xHigh, DD_CHKFP checkFunction, int lazyFlag);
152
- static int ddGroupSiftingUp (DdManager *table, int y, int xLow, DD_CHKFP checkFunction, Move **moves);
153
- static int ddGroupSiftingDown (DdManager *table, int x, int xHigh, DD_CHKFP checkFunction, Move **moves);
154
- static int ddGroupMove (DdManager *table, int x, int y, Move **moves);
155
- static int ddGroupMoveBackward (DdManager *table, int x, int y);
156
- static int ddGroupSiftingBackward (DdManager *table, Move *moves, int size, int upFlag, int lazyFlag);
157
- static void ddMergeGroups (DdManager *table, MtrNode *treenode, int low, int high);
158
- static void ddDissolveGroup (DdManager *table, int x, int y);
159
- static int ddNoCheck (DdManager *table, int x, int y);
160
- static int ddSecDiffCheck (DdManager *table, int x, int y);
161
- static int ddExtSymmCheck (DdManager *table, int x, int y);
162
- static int ddVarGroupCheck (DdManager * table, int x, int y);
163
- static int ddSetVarHandled (DdManager *dd, int index);
164
- static int ddResetVarHandled (DdManager *dd, int index);
165
- static int ddIsVarHandled (DdManager *dd, int index);
166
-
167
- /**AutomaticEnd***************************************************************/
168
-
169
- /*---------------------------------------------------------------------------*/
170
- /* Definition of exported functions */
171
- /*---------------------------------------------------------------------------*/
172
-
173
-
174
- /**Function********************************************************************
175
-
176
- Synopsis [Creates a new variable group.]
177
-
178
- Description [Creates a new variable group. The group starts at
179
- variable and contains size variables. The parameter low is the index
180
- of the first variable. If the variable already exists, its current
181
- position in the order is known to the manager. If the variable does
182
- not exist yet, the position is assumed to be the same as the index.
183
- The group tree is created if it does not exist yet.
184
- Returns a pointer to the group if successful; NULL otherwise.]
185
-
186
- SideEffects [The variable tree is changed.]
187
-
188
- SeeAlso [Cudd_MakeZddTreeNode]
189
-
190
- ******************************************************************************/
191
- MtrNode *
192
- Cudd_MakeTreeNode(
193
- DdManager * dd /* manager */,
194
- unsigned int low /* index of the first group variable */,
195
- unsigned int size /* number of variables in the group */,
196
- unsigned int type /* MTR_DEFAULT or MTR_FIXED */)
197
- {
198
- MtrNode *group;
199
- MtrNode *tree;
200
- unsigned int level;
201
-
202
- /* If the variable does not exist yet, the position is assumed to be
203
- ** the same as the index. Therefore, applications that rely on
204
- ** Cudd_bddNewVarAtLevel or Cudd_addNewVarAtLevel to create new
205
- ** variables have to create the variables before they group them.
206
- */
207
- level = (low < (unsigned int) dd->size) ? dd->perm[low] : low;
208
-
209
- if (level + size - 1> (int) MTR_MAXHIGH)
210
- return(NULL);
211
-
212
- /* If the tree does not exist yet, create it. */
213
- tree = dd->tree;
214
- if (tree == NULL) {
215
- dd->tree = tree = Mtr_InitGroupTree(0, dd->size);
216
- if (tree == NULL)
217
- return(NULL);
218
- tree->index = dd->invperm[0];
219
- }
220
-
221
- /* Extend the upper bound of the tree if necessary. This allows the
222
- ** application to create groups even before the variables are created.
223
- */
224
- tree->size = ddMax(tree->size, ddMax(level + size, (unsigned) dd->size));
225
-
226
- /* Create the group. */
227
- group = Mtr_MakeGroup(tree, level, size, type);
228
- if (group == NULL)
229
- return(NULL);
230
-
231
- /* Initialize the index field to the index of the variable currently
232
- ** in position low. This field will be updated by the reordering
233
- ** procedure to provide a handle to the group once it has been moved.
234
- */
235
- group->index = (MtrHalfWord) low;
236
-
237
- return(group);
238
-
239
- } /* end of Cudd_MakeTreeNode */
240
-
241
-
242
- /*---------------------------------------------------------------------------*/
243
- /* Definition of internal functions */
244
- /*---------------------------------------------------------------------------*/
245
-
246
-
247
- /**Function********************************************************************
248
-
249
- Synopsis [Tree sifting algorithm.]
250
-
251
- Description [Tree sifting algorithm. Assumes that a tree representing
252
- a group hierarchy is passed as a parameter. It then reorders each
253
- group in postorder fashion by calling ddTreeSiftingAux. Assumes that
254
- no dead nodes are present. Returns 1 if successful; 0 otherwise.]
255
-
256
- SideEffects [None]
257
-
258
- ******************************************************************************/
259
- int
260
- cuddTreeSifting(
261
- DdManager * table /* DD table */,
262
- Cudd_ReorderingType method /* reordering method for the groups of leaves */)
263
- {
264
- int i;
265
- int nvars;
266
- int result;
267
- int tempTree;
268
-
269
- /* If no tree is provided we create a temporary one in which all
270
- ** variables are in a single group. After reordering this tree is
271
- ** destroyed.
272
- */
273
- tempTree = table->tree == NULL;
274
- if (tempTree) {
275
- table->tree = Mtr_InitGroupTree(0,table->size);
276
- table->tree->index = table->invperm[0];
277
- }
278
- nvars = table->size;
279
-
280
- #ifdef DD_DEBUG
281
- if (pr > 0 && !tempTree) (void) fprintf(table->out,"cuddTreeSifting:");
282
- Mtr_PrintGroups(table->tree,pr <= 0);
283
- #endif
284
-
285
- #ifdef DD_STATS
286
- extsymmcalls = 0;
287
- extsymm = 0;
288
- secdiffcalls = 0;
289
- secdiff = 0;
290
- secdiffmisfire = 0;
291
-
292
- (void) fprintf(table->out,"\n");
293
- if (!tempTree)
294
- (void) fprintf(table->out,"#:IM_NODES %8d: group tree nodes\n",
295
- ddCountInternalMtrNodes(table,table->tree));
296
- #endif
297
-
298
- /* Initialize the group of each subtable to itself. Initially
299
- ** there are no groups. Groups are created according to the tree
300
- ** structure in postorder fashion.
301
- */
302
- for (i = 0; i < nvars; i++)
303
- table->subtables[i].next = i;
304
-
305
-
306
- /* Reorder. */
307
- result = ddTreeSiftingAux(table, table->tree, method);
308
-
309
- #ifdef DD_STATS /* print stats */
310
- if (!tempTree && method == CUDD_REORDER_GROUP_SIFT &&
311
- (table->groupcheck == CUDD_GROUP_CHECK7 ||
312
- table->groupcheck == CUDD_GROUP_CHECK5)) {
313
- (void) fprintf(table->out,"\nextsymmcalls = %d\n",extsymmcalls);
314
- (void) fprintf(table->out,"extsymm = %d",extsymm);
315
- }
316
- if (!tempTree && method == CUDD_REORDER_GROUP_SIFT &&
317
- table->groupcheck == CUDD_GROUP_CHECK7) {
318
- (void) fprintf(table->out,"\nsecdiffcalls = %d\n",secdiffcalls);
319
- (void) fprintf(table->out,"secdiff = %d\n",secdiff);
320
- (void) fprintf(table->out,"secdiffmisfire = %d",secdiffmisfire);
321
- }
322
- #endif
323
-
324
- if (tempTree)
325
- Cudd_FreeTree(table);
326
- return(result);
327
-
328
- } /* end of cuddTreeSifting */
329
-
330
-
331
- /*---------------------------------------------------------------------------*/
332
- /* Definition of static functions */
333
- /*---------------------------------------------------------------------------*/
334
-
335
-
336
- /**Function********************************************************************
337
-
338
- Synopsis [Visits the group tree and reorders each group.]
339
-
340
- Description [Recursively visits the group tree and reorders each
341
- group in postorder fashion. Returns 1 if successful; 0 otherwise.]
342
-
343
- SideEffects [None]
344
-
345
- ******************************************************************************/
346
- static int
347
- ddTreeSiftingAux(
348
- DdManager * table,
349
- MtrNode * treenode,
350
- Cudd_ReorderingType method)
351
- {
352
- MtrNode *auxnode;
353
- int res;
354
- Cudd_AggregationType saveCheck;
355
-
356
- #ifdef DD_DEBUG
357
- Mtr_PrintGroups(treenode,1);
358
- #endif
359
-
360
- auxnode = treenode;
361
- while (auxnode != NULL) {
362
- if (auxnode->child != NULL) {
363
- if (!ddTreeSiftingAux(table, auxnode->child, method))
364
- return(0);
365
- saveCheck = table->groupcheck;
366
- table->groupcheck = CUDD_NO_CHECK;
367
- if (method != CUDD_REORDER_LAZY_SIFT)
368
- res = ddReorderChildren(table, auxnode, CUDD_REORDER_GROUP_SIFT);
369
- else
370
- res = ddReorderChildren(table, auxnode, CUDD_REORDER_LAZY_SIFT);
371
- table->groupcheck = saveCheck;
372
-
373
- if (res == 0)
374
- return(0);
375
- } else if (auxnode->size > 1) {
376
- if (!ddReorderChildren(table, auxnode, method))
377
- return(0);
378
- }
379
- auxnode = auxnode->younger;
380
- }
381
-
382
- return(1);
383
-
384
- } /* end of ddTreeSiftingAux */
385
-
386
-
387
- #ifdef DD_STATS
388
- /**Function********************************************************************
389
-
390
- Synopsis [Counts the number of internal nodes of the group tree.]
391
-
392
- Description [Counts the number of internal nodes of the group tree.
393
- Returns the count.]
394
-
395
- SideEffects [None]
396
-
397
- ******************************************************************************/
398
- static int
399
- ddCountInternalMtrNodes(
400
- DdManager * table,
401
- MtrNode * treenode)
402
- {
403
- MtrNode *auxnode;
404
- int count,nodeCount;
405
-
406
-
407
- nodeCount = 0;
408
- auxnode = treenode;
409
- while (auxnode != NULL) {
410
- if (!(MTR_TEST(auxnode,MTR_TERMINAL))) {
411
- nodeCount++;
412
- count = ddCountInternalMtrNodes(table,auxnode->child);
413
- nodeCount += count;
414
- }
415
- auxnode = auxnode->younger;
416
- }
417
-
418
- return(nodeCount);
419
-
420
- } /* end of ddCountInternalMtrNodes */
421
- #endif
422
-
423
-
424
- /**Function********************************************************************
425
-
426
- Synopsis [Reorders the children of a group tree node according to
427
- the options.]
428
-
429
- Description [Reorders the children of a group tree node according to
430
- the options. After reordering puts all the variables in the group
431
- and/or its descendents in a single group. This allows hierarchical
432
- reordering. If the variables in the group do not exist yet, simply
433
- does nothing. Returns 1 if successful; 0 otherwise.]
434
-
435
- SideEffects [None]
436
-
437
- ******************************************************************************/
438
- static int
439
- ddReorderChildren(
440
- DdManager * table,
441
- MtrNode * treenode,
442
- Cudd_ReorderingType method)
443
- {
444
- int lower;
445
- int upper = -1;
446
- int result;
447
- unsigned int initialSize;
448
-
449
- ddFindNodeHiLo(table,treenode,&lower,&upper);
450
- /* If upper == -1 these variables do not exist yet. */
451
- if (upper == -1)
452
- return(1);
453
-
454
- if (treenode->flags == MTR_FIXED) {
455
- result = 1;
456
- } else {
457
- #ifdef DD_STATS
458
- (void) fprintf(table->out," ");
459
- #endif
460
- switch (method) {
461
- case CUDD_REORDER_RANDOM:
462
- case CUDD_REORDER_RANDOM_PIVOT:
463
- result = cuddSwapping(table,lower,upper,method);
464
- break;
465
- case CUDD_REORDER_SIFT:
466
- result = cuddSifting(table,lower,upper);
467
- break;
468
- case CUDD_REORDER_SIFT_CONVERGE:
469
- do {
470
- initialSize = table->keys - table->isolated;
471
- result = cuddSifting(table,lower,upper);
472
- if (initialSize <= table->keys - table->isolated)
473
- break;
474
- #ifdef DD_STATS
475
- else
476
- (void) fprintf(table->out,"\n");
477
- #endif
478
- } while (result != 0);
479
- break;
480
- case CUDD_REORDER_SYMM_SIFT:
481
- result = cuddSymmSifting(table,lower,upper);
482
- break;
483
- case CUDD_REORDER_SYMM_SIFT_CONV:
484
- result = cuddSymmSiftingConv(table,lower,upper);
485
- break;
486
- case CUDD_REORDER_GROUP_SIFT:
487
- if (table->groupcheck == CUDD_NO_CHECK) {
488
- result = ddGroupSifting(table,lower,upper,ddNoCheck,
489
- DD_NORMAL_SIFT);
490
- } else if (table->groupcheck == CUDD_GROUP_CHECK5) {
491
- result = ddGroupSifting(table,lower,upper,ddExtSymmCheck,
492
- DD_NORMAL_SIFT);
493
- } else if (table->groupcheck == CUDD_GROUP_CHECK7) {
494
- result = ddGroupSifting(table,lower,upper,ddExtSymmCheck,
495
- DD_NORMAL_SIFT);
496
- } else {
497
- (void) fprintf(table->err,
498
- "Unknown group ckecking method\n");
499
- result = 0;
500
- }
501
- break;
502
- case CUDD_REORDER_GROUP_SIFT_CONV:
503
- do {
504
- initialSize = table->keys - table->isolated;
505
- if (table->groupcheck == CUDD_NO_CHECK) {
506
- result = ddGroupSifting(table,lower,upper,ddNoCheck,
507
- DD_NORMAL_SIFT);
508
- } else if (table->groupcheck == CUDD_GROUP_CHECK5) {
509
- result = ddGroupSifting(table,lower,upper,ddExtSymmCheck,
510
- DD_NORMAL_SIFT);
511
- } else if (table->groupcheck == CUDD_GROUP_CHECK7) {
512
- result = ddGroupSifting(table,lower,upper,ddExtSymmCheck,
513
- DD_NORMAL_SIFT);
514
- } else {
515
- (void) fprintf(table->err,
516
- "Unknown group ckecking method\n");
517
- result = 0;
518
- }
519
- #ifdef DD_STATS
520
- (void) fprintf(table->out,"\n");
521
- #endif
522
- result = cuddWindowReorder(table,lower,upper,
523
- CUDD_REORDER_WINDOW4);
524
- if (initialSize <= table->keys - table->isolated)
525
- break;
526
- #ifdef DD_STATS
527
- else
528
- (void) fprintf(table->out,"\n");
529
- #endif
530
- } while (result != 0);
531
- break;
532
- case CUDD_REORDER_WINDOW2:
533
- case CUDD_REORDER_WINDOW3:
534
- case CUDD_REORDER_WINDOW4:
535
- case CUDD_REORDER_WINDOW2_CONV:
536
- case CUDD_REORDER_WINDOW3_CONV:
537
- case CUDD_REORDER_WINDOW4_CONV:
538
- result = cuddWindowReorder(table,lower,upper,method);
539
- break;
540
- case CUDD_REORDER_ANNEALING:
541
- result = cuddAnnealing(table,lower,upper);
542
- break;
543
- case CUDD_REORDER_GENETIC:
544
- result = cuddGa(table,lower,upper);
545
- break;
546
- case CUDD_REORDER_LINEAR:
547
- result = cuddLinearAndSifting(table,lower,upper);
548
- break;
549
- case CUDD_REORDER_LINEAR_CONVERGE:
550
- do {
551
- initialSize = table->keys - table->isolated;
552
- result = cuddLinearAndSifting(table,lower,upper);
553
- if (initialSize <= table->keys - table->isolated)
554
- break;
555
- #ifdef DD_STATS
556
- else
557
- (void) fprintf(table->out,"\n");
558
- #endif
559
- } while (result != 0);
560
- break;
561
- case CUDD_REORDER_EXACT:
562
- result = cuddExact(table,lower,upper);
563
- break;
564
- case CUDD_REORDER_LAZY_SIFT:
565
- result = ddGroupSifting(table,lower,upper,ddVarGroupCheck,
566
- DD_LAZY_SIFT);
567
- break;
568
- default:
569
- return(0);
570
- }
571
- }
572
-
573
- /* Create a single group for all the variables that were sifted,
574
- ** so that they will be treated as a single block by successive
575
- ** invocations of ddGroupSifting.
576
- */
577
- ddMergeGroups(table,treenode,lower,upper);
578
-
579
- #ifdef DD_DEBUG
580
- if (pr > 0) (void) fprintf(table->out,"ddReorderChildren:");
581
- #endif
582
-
583
- return(result);
584
-
585
- } /* end of ddReorderChildren */
586
-
587
-
588
- /**Function********************************************************************
589
-
590
- Synopsis [Finds the lower and upper bounds of the group represented
591
- by treenode.]
592
-
593
- Description [Finds the lower and upper bounds of the group
594
- represented by treenode. From the index and size fields we need to
595
- derive the current positions, and find maximum and minimum.]
596
-
597
- SideEffects [The bounds are returned as side effects.]
598
-
599
- SeeAlso []
600
-
601
- ******************************************************************************/
602
- static void
603
- ddFindNodeHiLo(
604
- DdManager * table,
605
- MtrNode * treenode,
606
- int * lower,
607
- int * upper)
608
- {
609
- int low;
610
- int high;
611
-
612
- /* Check whether no variables in this group already exist.
613
- ** If so, return immediately. The calling procedure will know from
614
- ** the values of upper that no reordering is needed.
615
- */
616
- if ((int) treenode->low >= table->size) {
617
- *lower = table->size;
618
- *upper = -1;
619
- return;
620
- }
621
-
622
- *lower = low = (unsigned int) table->perm[treenode->index];
623
- high = (int) (low + treenode->size - 1);
624
-
625
- if (high >= table->size) {
626
- /* This is the case of a partially existing group. The aim is to
627
- ** reorder as many variables as safely possible. If the tree
628
- ** node is terminal, we just reorder the subset of the group
629
- ** that is currently in existence. If the group has
630
- ** subgroups, then we only reorder those subgroups that are
631
- ** fully instantiated. This way we avoid breaking up a group.
632
- */
633
- MtrNode *auxnode = treenode->child;
634
- if (auxnode == NULL) {
635
- *upper = (unsigned int) table->size - 1;
636
- } else {
637
- /* Search the subgroup that strands the table->size line.
638
- ** If the first group starts at 0 and goes past table->size
639
- ** upper will get -1, thus correctly signaling that no reordering
640
- ** should take place.
641
- */
642
- while (auxnode != NULL) {
643
- int thisLower = table->perm[auxnode->low];
644
- int thisUpper = thisLower + auxnode->size - 1;
645
- if (thisUpper >= table->size && thisLower < table->size)
646
- *upper = (unsigned int) thisLower - 1;
647
- auxnode = auxnode->younger;
648
- }
649
- }
650
- } else {
651
- /* Normal case: All the variables of the group exist. */
652
- *upper = (unsigned int) high;
653
- }
654
-
655
- #ifdef DD_DEBUG
656
- /* Make sure that all variables in group are contiguous. */
657
- assert(treenode->size >= *upper - *lower + 1);
658
- #endif
659
-
660
- return;
661
-
662
- } /* end of ddFindNodeHiLo */
663
-
664
-
665
- /**Function********************************************************************
666
-
667
- Synopsis [Comparison function used by qsort.]
668
-
669
- Description [Comparison function used by qsort to order the variables
670
- according to the number of keys in the subtables. Returns the
671
- difference in number of keys between the two variables being
672
- compared.]
673
-
674
- SideEffects [None]
675
-
676
- ******************************************************************************/
677
- static int
678
- ddUniqueCompareGroup(
679
- int * ptrX,
680
- int * ptrY)
681
- {
682
- #if 0
683
- if (entry[*ptrY] == entry[*ptrX]) {
684
- return((*ptrX) - (*ptrY));
685
- }
686
- #endif
687
- return(entry[*ptrY] - entry[*ptrX]);
688
-
689
- } /* end of ddUniqueCompareGroup */
690
-
691
-
692
- /**Function********************************************************************
693
-
694
- Synopsis [Sifts from treenode->low to treenode->high.]
695
-
696
- Description [Sifts from treenode->low to treenode->high. If
697
- croupcheck == CUDD_GROUP_CHECK7, it checks for group creation at the
698
- end of the initial sifting. If a group is created, it is then sifted
699
- again. After sifting one variable, the group that contains it is
700
- dissolved. Returns 1 in case of success; 0 otherwise.]
701
-
702
- SideEffects [None]
703
-
704
- ******************************************************************************/
705
- static int
706
- ddGroupSifting(
707
- DdManager * table,
708
- int lower,
709
- int upper,
710
- DD_CHKFP checkFunction,
711
- int lazyFlag)
712
- {
713
- int *var;
714
- int i,j,x,xInit;
715
- int nvars;
716
- int classes;
717
- int result;
718
- int *sifted;
719
- int merged;
720
- int dissolve;
721
- #ifdef DD_STATS
722
- unsigned previousSize;
723
- #endif
724
- int xindex;
725
-
726
- nvars = table->size;
727
-
728
- /* Order variables to sift. */
729
- entry = NULL;
730
- sifted = NULL;
731
- var = ABC_ALLOC(int,nvars);
732
- if (var == NULL) {
733
- table->errorCode = CUDD_MEMORY_OUT;
734
- goto ddGroupSiftingOutOfMem;
735
- }
736
- entry = ABC_ALLOC(int,nvars);
737
- if (entry == NULL) {
738
- table->errorCode = CUDD_MEMORY_OUT;
739
- goto ddGroupSiftingOutOfMem;
740
- }
741
- sifted = ABC_ALLOC(int,nvars);
742
- if (sifted == NULL) {
743
- table->errorCode = CUDD_MEMORY_OUT;
744
- goto ddGroupSiftingOutOfMem;
745
- }
746
-
747
- /* Here we consider only one representative for each group. */
748
- for (i = 0, classes = 0; i < nvars; i++) {
749
- sifted[i] = 0;
750
- x = table->perm[i];
751
- if ((unsigned) x >= table->subtables[x].next) {
752
- entry[i] = table->subtables[x].keys;
753
- var[classes] = i;
754
- classes++;
755
- }
756
- }
757
-
758
- qsort((void *)var,classes,sizeof(int),
759
- (DD_QSFP) ddUniqueCompareGroup);
760
-
761
- if (lazyFlag) {
762
- for (i = 0; i < nvars; i ++) {
763
- ddResetVarHandled(table, i);
764
- }
765
- }
766
-
767
- /* Now sift. */
768
- for (i = 0; i < ddMin(table->siftMaxVar,classes); i++) {
769
- if (ddTotalNumberSwapping >= table->siftMaxSwap)
770
- break;
771
- xindex = var[i];
772
- if (sifted[xindex] == 1) /* variable already sifted as part of group */
773
- continue;
774
- x = table->perm[xindex]; /* find current level of this variable */
775
-
776
- if (x < lower || x > upper || table->subtables[x].bindVar == 1)
777
- continue;
778
- #ifdef DD_STATS
779
- previousSize = table->keys - table->isolated;
780
- #endif
781
- #ifdef DD_DEBUG
782
- /* x is bottom of group */
783
- assert((unsigned) x >= table->subtables[x].next);
784
- #endif
785
- if ((unsigned) x == table->subtables[x].next) {
786
- dissolve = 1;
787
- result = ddGroupSiftingAux(table,x,lower,upper,checkFunction,
788
- lazyFlag);
789
- } else {
790
- dissolve = 0;
791
- result = ddGroupSiftingAux(table,x,lower,upper,ddNoCheck,lazyFlag);
792
- }
793
- if (!result) goto ddGroupSiftingOutOfMem;
794
-
795
- /* check for aggregation */
796
- merged = 0;
797
- if (lazyFlag == 0 && table->groupcheck == CUDD_GROUP_CHECK7) {
798
- x = table->perm[xindex]; /* find current level */
799
- if ((unsigned) x == table->subtables[x].next) { /* not part of a group */
800
- if (x != upper && sifted[table->invperm[x+1]] == 0 &&
801
- (unsigned) x+1 == table->subtables[x+1].next) {
802
- if (ddSecDiffCheck(table,x,x+1)) {
803
- merged =1;
804
- ddCreateGroup(table,x,x+1);
805
- }
806
- }
807
- if (x != lower && sifted[table->invperm[x-1]] == 0 &&
808
- (unsigned) x-1 == table->subtables[x-1].next) {
809
- if (ddSecDiffCheck(table,x-1,x)) {
810
- merged =1;
811
- ddCreateGroup(table,x-1,x);
812
- }
813
- }
814
- }
815
- }
816
-
817
- if (merged) { /* a group was created */
818
- /* move x to bottom of group */
819
- while ((unsigned) x < table->subtables[x].next)
820
- x = table->subtables[x].next;
821
- /* sift */
822
- result = ddGroupSiftingAux(table,x,lower,upper,ddNoCheck,lazyFlag);
823
- if (!result) goto ddGroupSiftingOutOfMem;
824
- #ifdef DD_STATS
825
- if (table->keys < previousSize + table->isolated) {
826
- (void) fprintf(table->out,"_");
827
- } else if (table->keys > previousSize + table->isolated) {
828
- (void) fprintf(table->out,"^");
829
- } else {
830
- (void) fprintf(table->out,"*");
831
- }
832
- fflush(table->out);
833
- } else {
834
- if (table->keys < previousSize + table->isolated) {
835
- (void) fprintf(table->out,"-");
836
- } else if (table->keys > previousSize + table->isolated) {
837
- (void) fprintf(table->out,"+");
838
- } else {
839
- (void) fprintf(table->out,"=");
840
- }
841
- fflush(table->out);
842
- #endif
843
- }
844
-
845
- /* Mark variables in the group just sifted. */
846
- x = table->perm[xindex];
847
- if ((unsigned) x != table->subtables[x].next) {
848
- xInit = x;
849
- do {
850
- j = table->invperm[x];
851
- sifted[j] = 1;
852
- x = table->subtables[x].next;
853
- } while (x != xInit);
854
-
855
- /* Dissolve the group if it was created. */
856
- if (lazyFlag == 0 && dissolve) {
857
- do {
858
- j = table->subtables[x].next;
859
- table->subtables[x].next = x;
860
- x = j;
861
- } while (x != xInit);
862
- }
863
- }
864
-
865
- #ifdef DD_DEBUG
866
- if (pr > 0) (void) fprintf(table->out,"ddGroupSifting:");
867
- #endif
868
-
869
- if (lazyFlag) ddSetVarHandled(table, xindex);
870
- } /* for */
871
-
872
- ABC_FREE(sifted);
873
- ABC_FREE(var);
874
- ABC_FREE(entry);
875
-
876
- return(1);
877
-
878
- ddGroupSiftingOutOfMem:
879
- if (entry != NULL) ABC_FREE(entry);
880
- if (var != NULL) ABC_FREE(var);
881
- if (sifted != NULL) ABC_FREE(sifted);
882
-
883
- return(0);
884
-
885
- } /* end of ddGroupSifting */
886
-
887
-
888
- /**Function********************************************************************
889
-
890
- Synopsis [Creates a group encompassing variables from x to y in the
891
- DD table.]
892
-
893
- Description [Creates a group encompassing variables from x to y in the
894
- DD table. In the current implementation it must be y == x+1.
895
- Returns 1 in case of success; 0 otherwise.]
896
-
897
- SideEffects [None]
898
-
899
- ******************************************************************************/
900
- static void
901
- ddCreateGroup(
902
- DdManager * table,
903
- int x,
904
- int y)
905
- {
906
- int gybot;
907
-
908
- #ifdef DD_DEBUG
909
- assert(y == x+1);
910
- #endif
911
-
912
- /* Find bottom of second group. */
913
- gybot = y;
914
- while ((unsigned) gybot < table->subtables[gybot].next)
915
- gybot = table->subtables[gybot].next;
916
-
917
- /* Link groups. */
918
- table->subtables[x].next = y;
919
- table->subtables[gybot].next = x;
920
-
921
- return;
922
-
923
- } /* ddCreateGroup */
924
-
925
-
926
- /**Function********************************************************************
927
-
928
- Synopsis [Sifts one variable up and down until it has taken all
929
- positions. Checks for aggregation.]
930
-
931
- Description [Sifts one variable up and down until it has taken all
932
- positions. Checks for aggregation. There may be at most two sweeps,
933
- even if the group grows. Assumes that x is either an isolated
934
- variable, or it is the bottom of a group. All groups may not have
935
- been found. The variable being moved is returned to the best position
936
- seen during sifting. Returns 1 in case of success; 0 otherwise.]
937
-
938
- SideEffects [None]
939
-
940
- ******************************************************************************/
941
- static int
942
- ddGroupSiftingAux(
943
- DdManager * table,
944
- int x,
945
- int xLow,
946
- int xHigh,
947
- DD_CHKFP checkFunction,
948
- int lazyFlag)
949
- {
950
- Move *move;
951
- Move *moves; /* list of moves */
952
- int initialSize;
953
- int result;
954
- int y;
955
- int topbot;
956
-
957
- #ifdef DD_DEBUG
958
- if (pr > 0) (void) fprintf(table->out,
959
- "ddGroupSiftingAux from %d to %d\n",xLow,xHigh);
960
- assert((unsigned) x >= table->subtables[x].next); /* x is bottom of group */
961
- #endif
962
-
963
- initialSize = table->keys - table->isolated;
964
- moves = NULL;
965
-
966
- originalSize = initialSize; /* for lazy sifting */
967
-
968
- /* If we have a singleton, we check for aggregation in both
969
- ** directions before we sift.
970
- */
971
- if ((unsigned) x == table->subtables[x].next) {
972
- /* Will go down first, unless x == xHigh:
973
- ** Look for aggregation above x.
974
- */
975
- for (y = x; y > xLow; y--) {
976
- if (!checkFunction(table,y-1,y))
977
- break;
978
- topbot = table->subtables[y-1].next; /* find top of y-1's group */
979
- table->subtables[y-1].next = y;
980
- table->subtables[x].next = topbot; /* x is bottom of group so its */
981
- /* next is top of y-1's group */
982
- y = topbot + 1; /* add 1 for y--; new y is top of group */
983
- }
984
- /* Will go up first unless x == xlow:
985
- ** Look for aggregation below x.
986
- */
987
- for (y = x; y < xHigh; y++) {
988
- if (!checkFunction(table,y,y+1))
989
- break;
990
- /* find bottom of y+1's group */
991
- topbot = y + 1;
992
- while ((unsigned) topbot < table->subtables[topbot].next) {
993
- topbot = table->subtables[topbot].next;
994
- }
995
- table->subtables[topbot].next = table->subtables[y].next;
996
- table->subtables[y].next = y + 1;
997
- y = topbot - 1; /* subtract 1 for y++; new y is bottom of group */
998
- }
999
- }
1000
-
1001
- /* Now x may be in the middle of a group.
1002
- ** Find bottom of x's group.
1003
- */
1004
- while ((unsigned) x < table->subtables[x].next)
1005
- x = table->subtables[x].next;
1006
-
1007
- if (x == xLow) { /* Sift down */
1008
- #ifdef DD_DEBUG
1009
- /* x must be a singleton */
1010
- assert((unsigned) x == table->subtables[x].next);
1011
- #endif
1012
- if (x == xHigh) return(1); /* just one variable */
1013
-
1014
- if (!ddGroupSiftingDown(table,x,xHigh,checkFunction,&moves))
1015
- goto ddGroupSiftingAuxOutOfMem;
1016
- /* at this point x == xHigh, unless early term */
1017
-
1018
- /* move backward and stop at best position */
1019
- result = ddGroupSiftingBackward(table,moves,initialSize,
1020
- DD_SIFT_DOWN,lazyFlag);
1021
- #ifdef DD_DEBUG
1022
- assert(table->keys - table->isolated <= (unsigned) initialSize);
1023
- #endif
1024
- if (!result) goto ddGroupSiftingAuxOutOfMem;
1025
-
1026
- } else if (cuddNextHigh(table,x) > xHigh) { /* Sift up */
1027
- #ifdef DD_DEBUG
1028
- /* x is bottom of group */
1029
- assert((unsigned) x >= table->subtables[x].next);
1030
- #endif
1031
- /* Find top of x's group */
1032
- x = table->subtables[x].next;
1033
-
1034
- if (!ddGroupSiftingUp(table,x,xLow,checkFunction,&moves))
1035
- goto ddGroupSiftingAuxOutOfMem;
1036
- /* at this point x == xLow, unless early term */
1037
-
1038
- /* move backward and stop at best position */
1039
- result = ddGroupSiftingBackward(table,moves,initialSize,
1040
- DD_SIFT_UP,lazyFlag);
1041
- #ifdef DD_DEBUG
1042
- assert(table->keys - table->isolated <= (unsigned) initialSize);
1043
- #endif
1044
- if (!result) goto ddGroupSiftingAuxOutOfMem;
1045
-
1046
- } else if (x - xLow > xHigh - x) { /* must go down first: shorter */
1047
- if (!ddGroupSiftingDown(table,x,xHigh,checkFunction,&moves))
1048
- goto ddGroupSiftingAuxOutOfMem;
1049
- /* at this point x == xHigh, unless early term */
1050
-
1051
- /* Find top of group */
1052
- if (moves) {
1053
- x = moves->y;
1054
- }
1055
- while ((unsigned) x < table->subtables[x].next)
1056
- x = table->subtables[x].next;
1057
- x = table->subtables[x].next;
1058
- #ifdef DD_DEBUG
1059
- /* x should be the top of a group */
1060
- assert((unsigned) x <= table->subtables[x].next);
1061
- #endif
1062
-
1063
- if (!ddGroupSiftingUp(table,x,xLow,checkFunction,&moves))
1064
- goto ddGroupSiftingAuxOutOfMem;
1065
-
1066
- /* move backward and stop at best position */
1067
- result = ddGroupSiftingBackward(table,moves,initialSize,
1068
- DD_SIFT_UP,lazyFlag);
1069
- #ifdef DD_DEBUG
1070
- assert(table->keys - table->isolated <= (unsigned) initialSize);
1071
- #endif
1072
- if (!result) goto ddGroupSiftingAuxOutOfMem;
1073
-
1074
- } else { /* moving up first: shorter */
1075
- /* Find top of x's group */
1076
- x = table->subtables[x].next;
1077
-
1078
- if (!ddGroupSiftingUp(table,x,xLow,checkFunction,&moves))
1079
- goto ddGroupSiftingAuxOutOfMem;
1080
- /* at this point x == xHigh, unless early term */
1081
-
1082
- if (moves) {
1083
- x = moves->x;
1084
- }
1085
- while ((unsigned) x < table->subtables[x].next)
1086
- x = table->subtables[x].next;
1087
- #ifdef DD_DEBUG
1088
- /* x is bottom of a group */
1089
- assert((unsigned) x >= table->subtables[x].next);
1090
- #endif
1091
-
1092
- if (!ddGroupSiftingDown(table,x,xHigh,checkFunction,&moves))
1093
- goto ddGroupSiftingAuxOutOfMem;
1094
-
1095
- /* move backward and stop at best position */
1096
- result = ddGroupSiftingBackward(table,moves,initialSize,
1097
- DD_SIFT_DOWN,lazyFlag);
1098
- #ifdef DD_DEBUG
1099
- assert(table->keys - table->isolated <= (unsigned) initialSize);
1100
- #endif
1101
- if (!result) goto ddGroupSiftingAuxOutOfMem;
1102
- }
1103
-
1104
- while (moves != NULL) {
1105
- move = moves->next;
1106
- cuddDeallocMove(table, moves);
1107
- moves = move;
1108
- }
1109
-
1110
- return(1);
1111
-
1112
- ddGroupSiftingAuxOutOfMem:
1113
- while (moves != NULL) {
1114
- move = moves->next;
1115
- cuddDeallocMove(table, moves);
1116
- moves = move;
1117
- }
1118
-
1119
- return(0);
1120
-
1121
- } /* end of ddGroupSiftingAux */
1122
-
1123
-
1124
- /**Function********************************************************************
1125
-
1126
- Synopsis [Sifts up a variable until either it reaches position xLow
1127
- or the size of the DD heap increases too much.]
1128
-
1129
- Description [Sifts up a variable until either it reaches position
1130
- xLow or the size of the DD heap increases too much. Assumes that y is
1131
- the top of a group (or a singleton). Checks y for aggregation to the
1132
- adjacent variables. Records all the moves that are appended to the
1133
- list of moves received as input and returned as a side effect.
1134
- Returns 1 in case of success; 0 otherwise.]
1135
-
1136
- SideEffects [None]
1137
-
1138
- ******************************************************************************/
1139
- static int
1140
- ddGroupSiftingUp(
1141
- DdManager * table,
1142
- int y,
1143
- int xLow,
1144
- DD_CHKFP checkFunction,
1145
- Move ** moves)
1146
- {
1147
- Move *move;
1148
- int x;
1149
- int size;
1150
- int i;
1151
- int gxtop,gybot;
1152
- int limitSize;
1153
- int xindex, yindex;
1154
- int zindex;
1155
- int z;
1156
- int isolated;
1157
- int L; /* lower bound on DD size */
1158
- #ifdef DD_DEBUG
1159
- int checkL;
1160
- #endif
1161
-
1162
- yindex = table->invperm[y];
1163
-
1164
- /* Initialize the lower bound.
1165
- ** The part of the DD below the bottom of y's group will not change.
1166
- ** The part of the DD above y that does not interact with any
1167
- ** variable of y's group will not change.
1168
- ** The rest may vanish in the best case, except for
1169
- ** the nodes at level xLow, which will not vanish, regardless.
1170
- ** What we use here is not really a lower bound, because we ignore
1171
- ** the interactions with all variables except y.
1172
- */
1173
- limitSize = L = table->keys - table->isolated;
1174
- gybot = y;
1175
- while ((unsigned) gybot < table->subtables[gybot].next)
1176
- gybot = table->subtables[gybot].next;
1177
- for (z = xLow + 1; z <= gybot; z++) {
1178
- zindex = table->invperm[z];
1179
- if (zindex == yindex || cuddTestInteract(table,zindex,yindex)) {
1180
- isolated = table->vars[zindex]->ref == 1;
1181
- L -= table->subtables[z].keys - isolated;
1182
- }
1183
- }
1184
-
1185
- x = cuddNextLow(table,y);
1186
- while (x >= xLow && L <= limitSize) {
1187
- #ifdef DD_DEBUG
1188
- gybot = y;
1189
- while ((unsigned) gybot < table->subtables[gybot].next)
1190
- gybot = table->subtables[gybot].next;
1191
- checkL = table->keys - table->isolated;
1192
- for (z = xLow + 1; z <= gybot; z++) {
1193
- zindex = table->invperm[z];
1194
- if (zindex == yindex || cuddTestInteract(table,zindex,yindex)) {
1195
- isolated = table->vars[zindex]->ref == 1;
1196
- checkL -= table->subtables[z].keys - isolated;
1197
- }
1198
- }
1199
- if (pr > 0 && L != checkL) {
1200
- (void) fprintf(table->out,
1201
- "Inaccurate lower bound: L = %d checkL = %d\n",
1202
- L, checkL);
1203
- }
1204
- #endif
1205
- gxtop = table->subtables[x].next;
1206
- if (checkFunction(table,x,y)) {
1207
- /* Group found, attach groups */
1208
- table->subtables[x].next = y;
1209
- i = table->subtables[y].next;
1210
- while (table->subtables[i].next != (unsigned) y)
1211
- i = table->subtables[i].next;
1212
- table->subtables[i].next = gxtop;
1213
- move = (Move *)cuddDynamicAllocNode(table);
1214
- if (move == NULL) goto ddGroupSiftingUpOutOfMem;
1215
- move->x = x;
1216
- move->y = y;
1217
- move->flags = MTR_NEWNODE;
1218
- move->size = table->keys - table->isolated;
1219
- move->next = *moves;
1220
- *moves = move;
1221
- } else if (table->subtables[x].next == (unsigned) x &&
1222
- table->subtables[y].next == (unsigned) y) {
1223
- /* x and y are self groups */
1224
- xindex = table->invperm[x];
1225
- size = cuddSwapInPlace(table,x,y);
1226
- #ifdef DD_DEBUG
1227
- assert(table->subtables[x].next == (unsigned) x);
1228
- assert(table->subtables[y].next == (unsigned) y);
1229
- #endif
1230
- if (size == 0) goto ddGroupSiftingUpOutOfMem;
1231
- /* Update the lower bound. */
1232
- if (cuddTestInteract(table,xindex,yindex)) {
1233
- isolated = table->vars[xindex]->ref == 1;
1234
- L += table->subtables[y].keys - isolated;
1235
- }
1236
- move = (Move *)cuddDynamicAllocNode(table);
1237
- if (move == NULL) goto ddGroupSiftingUpOutOfMem;
1238
- move->x = x;
1239
- move->y = y;
1240
- move->flags = MTR_DEFAULT;
1241
- move->size = size;
1242
- move->next = *moves;
1243
- *moves = move;
1244
-
1245
- #ifdef DD_DEBUG
1246
- if (pr > 0) (void) fprintf(table->out,
1247
- "ddGroupSiftingUp (2 single groups):\n");
1248
- #endif
1249
- if ((double) size > (double) limitSize * table->maxGrowth)
1250
- return(1);
1251
- if (size < limitSize) limitSize = size;
1252
- } else { /* Group move */
1253
- size = ddGroupMove(table,x,y,moves);
1254
- if (size == 0) goto ddGroupSiftingUpOutOfMem;
1255
- /* Update the lower bound. */
1256
- z = (*moves)->y;
1257
- do {
1258
- zindex = table->invperm[z];
1259
- if (cuddTestInteract(table,zindex,yindex)) {
1260
- isolated = table->vars[zindex]->ref == 1;
1261
- L += table->subtables[z].keys - isolated;
1262
- }
1263
- z = table->subtables[z].next;
1264
- } while (z != (int) (*moves)->y);
1265
- if ((double) size > (double) limitSize * table->maxGrowth)
1266
- return(1);
1267
- if (size < limitSize) limitSize = size;
1268
- }
1269
- y = gxtop;
1270
- x = cuddNextLow(table,y);
1271
- }
1272
-
1273
- return(1);
1274
-
1275
- ddGroupSiftingUpOutOfMem:
1276
- while (*moves != NULL) {
1277
- move = (*moves)->next;
1278
- cuddDeallocMove(table, *moves);
1279
- *moves = move;
1280
- }
1281
- return(0);
1282
-
1283
- } /* end of ddGroupSiftingUp */
1284
-
1285
-
1286
- /**Function********************************************************************
1287
-
1288
- Synopsis [Sifts down a variable until it reaches position xHigh.]
1289
-
1290
- Description [Sifts down a variable until it reaches position xHigh.
1291
- Assumes that x is the bottom of a group (or a singleton). Records
1292
- all the moves. Returns 1 in case of success; 0 otherwise.]
1293
-
1294
- SideEffects [None]
1295
-
1296
- ******************************************************************************/
1297
- static int
1298
- ddGroupSiftingDown(
1299
- DdManager * table,
1300
- int x,
1301
- int xHigh,
1302
- DD_CHKFP checkFunction,
1303
- Move ** moves)
1304
- {
1305
- Move *move;
1306
- int y;
1307
- int size;
1308
- int limitSize;
1309
- int gxtop,gybot;
1310
- int R; /* upper bound on node decrease */
1311
- int xindex, yindex;
1312
- int isolated, allVars;
1313
- int z;
1314
- int zindex;
1315
- #ifdef DD_DEBUG
1316
- int checkR;
1317
- #endif
1318
-
1319
- /* If the group consists of simple variables, there is no point in
1320
- ** sifting it down. This check is redundant if the projection functions
1321
- ** do not have external references, because the computation of the
1322
- ** lower bound takes care of the problem. It is necessary otherwise to
1323
- ** prevent the sifting down of simple variables. */
1324
- y = x;
1325
- allVars = 1;
1326
- do {
1327
- if (table->subtables[y].keys != 1) {
1328
- allVars = 0;
1329
- break;
1330
- }
1331
- y = table->subtables[y].next;
1332
- } while (table->subtables[y].next != (unsigned) x);
1333
- if (allVars)
1334
- return(1);
1335
-
1336
- /* Initialize R. */
1337
- xindex = table->invperm[x];
1338
- gxtop = table->subtables[x].next;
1339
- limitSize = size = table->keys - table->isolated;
1340
- R = 0;
1341
- for (z = xHigh; z > gxtop; z--) {
1342
- zindex = table->invperm[z];
1343
- if (zindex == xindex || cuddTestInteract(table,xindex,zindex)) {
1344
- isolated = table->vars[zindex]->ref == 1;
1345
- R += table->subtables[z].keys - isolated;
1346
- }
1347
- }
1348
-
1349
- y = cuddNextHigh(table,x);
1350
- while (y <= xHigh && size - R < limitSize) {
1351
- #ifdef DD_DEBUG
1352
- gxtop = table->subtables[x].next;
1353
- checkR = 0;
1354
- for (z = xHigh; z > gxtop; z--) {
1355
- zindex = table->invperm[z];
1356
- if (zindex == xindex || cuddTestInteract(table,xindex,zindex)) {
1357
- isolated = table->vars[zindex]->ref == 1;
1358
- checkR += table->subtables[z].keys - isolated;
1359
- }
1360
- }
1361
- assert(R >= checkR);
1362
- #endif
1363
- /* Find bottom of y group. */
1364
- gybot = table->subtables[y].next;
1365
- while (table->subtables[gybot].next != (unsigned) y)
1366
- gybot = table->subtables[gybot].next;
1367
-
1368
- if (checkFunction(table,x,y)) {
1369
- /* Group found: attach groups and record move. */
1370
- gxtop = table->subtables[x].next;
1371
- table->subtables[x].next = y;
1372
- table->subtables[gybot].next = gxtop;
1373
- move = (Move *)cuddDynamicAllocNode(table);
1374
- if (move == NULL) goto ddGroupSiftingDownOutOfMem;
1375
- move->x = x;
1376
- move->y = y;
1377
- move->flags = MTR_NEWNODE;
1378
- move->size = table->keys - table->isolated;
1379
- move->next = *moves;
1380
- *moves = move;
1381
- } else if (table->subtables[x].next == (unsigned) x &&
1382
- table->subtables[y].next == (unsigned) y) {
1383
- /* x and y are self groups */
1384
- /* Update upper bound on node decrease. */
1385
- yindex = table->invperm[y];
1386
- if (cuddTestInteract(table,xindex,yindex)) {
1387
- isolated = table->vars[yindex]->ref == 1;
1388
- R -= table->subtables[y].keys - isolated;
1389
- }
1390
- size = cuddSwapInPlace(table,x,y);
1391
- #ifdef DD_DEBUG
1392
- assert(table->subtables[x].next == (unsigned) x);
1393
- assert(table->subtables[y].next == (unsigned) y);
1394
- #endif
1395
- if (size == 0) goto ddGroupSiftingDownOutOfMem;
1396
-
1397
- /* Record move. */
1398
- move = (Move *) cuddDynamicAllocNode(table);
1399
- if (move == NULL) goto ddGroupSiftingDownOutOfMem;
1400
- move->x = x;
1401
- move->y = y;
1402
- move->flags = MTR_DEFAULT;
1403
- move->size = size;
1404
- move->next = *moves;
1405
- *moves = move;
1406
-
1407
- #ifdef DD_DEBUG
1408
- if (pr > 0) (void) fprintf(table->out,
1409
- "ddGroupSiftingDown (2 single groups):\n");
1410
- #endif
1411
- if ((double) size > (double) limitSize * table->maxGrowth)
1412
- return(1);
1413
- if (size < limitSize) limitSize = size;
1414
-
1415
- x = y;
1416
- y = cuddNextHigh(table,x);
1417
- } else { /* Group move */
1418
- /* Update upper bound on node decrease: first phase. */
1419
- gxtop = table->subtables[x].next;
1420
- z = gxtop + 1;
1421
- do {
1422
- zindex = table->invperm[z];
1423
- if (zindex == xindex || cuddTestInteract(table,xindex,zindex)) {
1424
- isolated = table->vars[zindex]->ref == 1;
1425
- R -= table->subtables[z].keys - isolated;
1426
- }
1427
- z++;
1428
- } while (z <= gybot);
1429
- size = ddGroupMove(table,x,y,moves);
1430
- if (size == 0) goto ddGroupSiftingDownOutOfMem;
1431
- if ((double) size > (double) limitSize * table->maxGrowth)
1432
- return(1);
1433
- if (size < limitSize) limitSize = size;
1434
-
1435
- /* Update upper bound on node decrease: second phase. */
1436
- gxtop = table->subtables[gybot].next;
1437
- for (z = gxtop + 1; z <= gybot; z++) {
1438
- zindex = table->invperm[z];
1439
- if (zindex == xindex || cuddTestInteract(table,xindex,zindex)) {
1440
- isolated = table->vars[zindex]->ref == 1;
1441
- R += table->subtables[z].keys - isolated;
1442
- }
1443
- }
1444
- }
1445
- x = gybot;
1446
- y = cuddNextHigh(table,x);
1447
- }
1448
-
1449
- return(1);
1450
-
1451
- ddGroupSiftingDownOutOfMem:
1452
- while (*moves != NULL) {
1453
- move = (*moves)->next;
1454
- cuddDeallocMove(table, *moves);
1455
- *moves = move;
1456
- }
1457
-
1458
- return(0);
1459
-
1460
- } /* end of ddGroupSiftingDown */
1461
-
1462
-
1463
- /**Function********************************************************************
1464
-
1465
- Synopsis [Swaps two groups and records the move.]
1466
-
1467
- Description [Swaps two groups and records the move. Returns the
1468
- number of keys in the DD table in case of success; 0 otherwise.]
1469
-
1470
- SideEffects [None]
1471
-
1472
- ******************************************************************************/
1473
- static int
1474
- ddGroupMove(
1475
- DdManager * table,
1476
- int x,
1477
- int y,
1478
- Move ** moves)
1479
- {
1480
- Move *move;
1481
- int size;
1482
- int i,j,xtop,xbot,xsize,ytop,ybot,ysize,newxtop;
1483
- int swapx = -1,swapy = -1;
1484
- #if defined(DD_DEBUG) && defined(DD_VERBOSE)
1485
- int initialSize,bestSize;
1486
- #endif
1487
-
1488
- #ifdef DD_DEBUG
1489
- /* We assume that x < y */
1490
- assert(x < y);
1491
- #endif
1492
- /* Find top, bottom, and size for the two groups. */
1493
- xbot = x;
1494
- xtop = table->subtables[x].next;
1495
- xsize = xbot - xtop + 1;
1496
- ybot = y;
1497
- while ((unsigned) ybot < table->subtables[ybot].next)
1498
- ybot = table->subtables[ybot].next;
1499
- ytop = y;
1500
- ysize = ybot - ytop + 1;
1501
-
1502
- #if defined(DD_DEBUG) && defined(DD_VERBOSE)
1503
- initialSize = bestSize = table->keys - table->isolated;
1504
- #endif
1505
- /* Sift the variables of the second group up through the first group */
1506
- for (i = 1; i <= ysize; i++) {
1507
- for (j = 1; j <= xsize; j++) {
1508
- size = cuddSwapInPlace(table,x,y);
1509
- if (size == 0) goto ddGroupMoveOutOfMem;
1510
- #if defined(DD_DEBUG) && defined(DD_VERBOSE)
1511
- if (size < bestSize)
1512
- bestSize = size;
1513
- #endif
1514
- swapx = x; swapy = y;
1515
- y = x;
1516
- x = cuddNextLow(table,y);
1517
- }
1518
- y = ytop + i;
1519
- x = cuddNextLow(table,y);
1520
- }
1521
- #if defined(DD_DEBUG) && defined(DD_VERBOSE)
1522
- if ((bestSize < initialSize) && (bestSize < size))
1523
- (void) fprintf(table->out,"Missed local minimum: initialSize:%d bestSize:%d finalSize:%d\n",initialSize,bestSize,size);
1524
- #endif
1525
-
1526
- /* fix groups */
1527
- y = xtop; /* ytop is now where xtop used to be */
1528
- for (i = 0; i < ysize - 1; i++) {
1529
- table->subtables[y].next = cuddNextHigh(table,y);
1530
- y = cuddNextHigh(table,y);
1531
- }
1532
- table->subtables[y].next = xtop; /* y is bottom of its group, join */
1533
- /* it to top of its group */
1534
- x = cuddNextHigh(table,y);
1535
- newxtop = x;
1536
- for (i = 0; i < xsize - 1; i++) {
1537
- table->subtables[x].next = cuddNextHigh(table,x);
1538
- x = cuddNextHigh(table,x);
1539
- }
1540
- table->subtables[x].next = newxtop; /* x is bottom of its group, join */
1541
- /* it to top of its group */
1542
- #ifdef DD_DEBUG
1543
- if (pr > 0) (void) fprintf(table->out,"ddGroupMove:\n");
1544
- #endif
1545
-
1546
- /* Store group move */
1547
- move = (Move *) cuddDynamicAllocNode(table);
1548
- if (move == NULL) goto ddGroupMoveOutOfMem;
1549
- move->x = swapx;
1550
- move->y = swapy;
1551
- move->flags = MTR_DEFAULT;
1552
- move->size = table->keys - table->isolated;
1553
- move->next = *moves;
1554
- *moves = move;
1555
-
1556
- return(table->keys - table->isolated);
1557
-
1558
- ddGroupMoveOutOfMem:
1559
- while (*moves != NULL) {
1560
- move = (*moves)->next;
1561
- cuddDeallocMove(table, *moves);
1562
- *moves = move;
1563
- }
1564
- return(0);
1565
-
1566
- } /* end of ddGroupMove */
1567
-
1568
-
1569
- /**Function********************************************************************
1570
-
1571
- Synopsis [Undoes the swap two groups.]
1572
-
1573
- Description [Undoes the swap two groups. Returns 1 in case of
1574
- success; 0 otherwise.]
1575
-
1576
- SideEffects [None]
1577
-
1578
- ******************************************************************************/
1579
- static int
1580
- ddGroupMoveBackward(
1581
- DdManager * table,
1582
- int x,
1583
- int y)
1584
- {
1585
- int size;
1586
- int i,j,xtop,xbot,xsize,ytop,ybot,ysize,newxtop;
1587
-
1588
-
1589
- #ifdef DD_DEBUG
1590
- /* We assume that x < y */
1591
- assert(x < y);
1592
- #endif
1593
-
1594
- /* Find top, bottom, and size for the two groups. */
1595
- xbot = x;
1596
- xtop = table->subtables[x].next;
1597
- xsize = xbot - xtop + 1;
1598
- ybot = y;
1599
- while ((unsigned) ybot < table->subtables[ybot].next)
1600
- ybot = table->subtables[ybot].next;
1601
- ytop = y;
1602
- ysize = ybot - ytop + 1;
1603
-
1604
- /* Sift the variables of the second group up through the first group */
1605
- for (i = 1; i <= ysize; i++) {
1606
- for (j = 1; j <= xsize; j++) {
1607
- size = cuddSwapInPlace(table,x,y);
1608
- if (size == 0)
1609
- return(0);
1610
- y = x;
1611
- x = cuddNextLow(table,y);
1612
- }
1613
- y = ytop + i;
1614
- x = cuddNextLow(table,y);
1615
- }
1616
-
1617
- /* fix groups */
1618
- y = xtop;
1619
- for (i = 0; i < ysize - 1; i++) {
1620
- table->subtables[y].next = cuddNextHigh(table,y);
1621
- y = cuddNextHigh(table,y);
1622
- }
1623
- table->subtables[y].next = xtop; /* y is bottom of its group, join */
1624
- /* to its top */
1625
- x = cuddNextHigh(table,y);
1626
- newxtop = x;
1627
- for (i = 0; i < xsize - 1; i++) {
1628
- table->subtables[x].next = cuddNextHigh(table,x);
1629
- x = cuddNextHigh(table,x);
1630
- }
1631
- table->subtables[x].next = newxtop; /* x is bottom of its group, join */
1632
- /* to its top */
1633
- #ifdef DD_DEBUG
1634
- if (pr > 0) (void) fprintf(table->out,"ddGroupMoveBackward:\n");
1635
- #endif
1636
-
1637
- return(1);
1638
-
1639
- } /* end of ddGroupMoveBackward */
1640
-
1641
-
1642
- /**Function********************************************************************
1643
-
1644
- Synopsis [Determines the best position for a variables and returns
1645
- it there.]
1646
-
1647
- Description [Determines the best position for a variables and returns
1648
- it there. Returns 1 in case of success; 0 otherwise.]
1649
-
1650
- SideEffects [None]
1651
-
1652
- ******************************************************************************/
1653
- static int
1654
- ddGroupSiftingBackward(
1655
- DdManager * table,
1656
- Move * moves,
1657
- int size,
1658
- int upFlag,
1659
- int lazyFlag)
1660
- {
1661
- Move *move;
1662
- int res;
1663
- Move *end_move = NULL;
1664
- int diff, tmp_diff;
1665
- int index;
1666
- unsigned int pairlev;
1667
-
1668
- if (lazyFlag) {
1669
- end_move = NULL;
1670
-
1671
- /* Find the minimum size, and the earliest position at which it
1672
- ** was achieved. */
1673
- for (move = moves; move != NULL; move = move->next) {
1674
- if (move->size < size) {
1675
- size = move->size;
1676
- end_move = move;
1677
- } else if (move->size == size) {
1678
- if (end_move == NULL) end_move = move;
1679
- }
1680
- }
1681
-
1682
- /* Find among the moves that give minimum size the one that
1683
- ** minimizes the distance from the corresponding variable. */
1684
- if (moves != NULL) {
1685
- diff = Cudd_ReadSize(table) + 1;
1686
- index = (upFlag == 1) ?
1687
- table->invperm[moves->x] : table->invperm[moves->y];
1688
- pairlev =
1689
- (unsigned) table->perm[Cudd_bddReadPairIndex(table, index)];
1690
-
1691
- for (move = moves; move != NULL; move = move->next) {
1692
- if (move->size == size) {
1693
- if (upFlag == 1) {
1694
- tmp_diff = (move->x > pairlev) ?
1695
- move->x - pairlev : pairlev - move->x;
1696
- } else {
1697
- tmp_diff = (move->y > pairlev) ?
1698
- move->y - pairlev : pairlev - move->y;
1699
- }
1700
- if (tmp_diff < diff) {
1701
- diff = tmp_diff;
1702
- end_move = move;
1703
- }
1704
- }
1705
- }
1706
- }
1707
- } else {
1708
- /* Find the minimum size. */
1709
- for (move = moves; move != NULL; move = move->next) {
1710
- if (move->size < size) {
1711
- size = move->size;
1712
- }
1713
- }
1714
- }
1715
-
1716
- /* In case of lazy sifting, end_move identifies the position at
1717
- ** which we want to stop. Otherwise, we stop as soon as we meet
1718
- ** the minimum size. */
1719
- for (move = moves; move != NULL; move = move->next) {
1720
- if (lazyFlag) {
1721
- if (move == end_move) return(1);
1722
- } else {
1723
- if (move->size == size) return(1);
1724
- }
1725
- if ((table->subtables[move->x].next == move->x) &&
1726
- (table->subtables[move->y].next == move->y)) {
1727
- res = cuddSwapInPlace(table,(int)move->x,(int)move->y);
1728
- if (!res) return(0);
1729
- #ifdef DD_DEBUG
1730
- if (pr > 0) (void) fprintf(table->out,"ddGroupSiftingBackward:\n");
1731
- assert(table->subtables[move->x].next == move->x);
1732
- assert(table->subtables[move->y].next == move->y);
1733
- #endif
1734
- } else { /* Group move necessary */
1735
- if (move->flags == MTR_NEWNODE) {
1736
- ddDissolveGroup(table,(int)move->x,(int)move->y);
1737
- } else {
1738
- res = ddGroupMoveBackward(table,(int)move->x,(int)move->y);
1739
- if (!res) return(0);
1740
- }
1741
- }
1742
-
1743
- }
1744
-
1745
- return(1);
1746
-
1747
- } /* end of ddGroupSiftingBackward */
1748
-
1749
-
1750
- /**Function********************************************************************
1751
-
1752
- Synopsis [Merges groups in the DD table.]
1753
-
1754
- Description [Creates a single group from low to high and adjusts the
1755
- index field of the tree node.]
1756
-
1757
- SideEffects [None]
1758
-
1759
- ******************************************************************************/
1760
- static void
1761
- ddMergeGroups(
1762
- DdManager * table,
1763
- MtrNode * treenode,
1764
- int low,
1765
- int high)
1766
- {
1767
- int i;
1768
- MtrNode *auxnode;
1769
- int saveindex;
1770
- int newindex;
1771
-
1772
- /* Merge all variables from low to high in one group, unless
1773
- ** this is the topmost group. In such a case we do not merge lest
1774
- ** we lose the symmetry information. */
1775
- if (treenode != table->tree) {
1776
- for (i = low; i < high; i++)
1777
- table->subtables[i].next = i+1;
1778
- table->subtables[high].next = low;
1779
- }
1780
-
1781
- /* Adjust the index fields of the tree nodes. If a node is the
1782
- ** first child of its parent, then the parent may also need adjustment. */
1783
- saveindex = treenode->index;
1784
- newindex = table->invperm[low];
1785
- auxnode = treenode;
1786
- do {
1787
- auxnode->index = newindex;
1788
- if (auxnode->parent == NULL ||
1789
- (int) auxnode->parent->index != saveindex)
1790
- break;
1791
- auxnode = auxnode->parent;
1792
- } while (1);
1793
- return;
1794
-
1795
- } /* end of ddMergeGroups */
1796
-
1797
-
1798
- /**Function********************************************************************
1799
-
1800
- Synopsis [Dissolves a group in the DD table.]
1801
-
1802
- Description [x and y are variables in a group to be cut in two. The cut
1803
- is to pass between x and y.]
1804
-
1805
- SideEffects [None]
1806
-
1807
- ******************************************************************************/
1808
- static void
1809
- ddDissolveGroup(
1810
- DdManager * table,
1811
- int x,
1812
- int y)
1813
- {
1814
- int topx;
1815
- int boty;
1816
-
1817
- /* find top and bottom of the two groups */
1818
- boty = y;
1819
- while ((unsigned) boty < table->subtables[boty].next)
1820
- boty = table->subtables[boty].next;
1821
-
1822
- topx = table->subtables[boty].next;
1823
-
1824
- table->subtables[boty].next = y;
1825
- table->subtables[x].next = topx;
1826
-
1827
- return;
1828
-
1829
- } /* end of ddDissolveGroup */
1830
-
1831
-
1832
- /**Function********************************************************************
1833
-
1834
- Synopsis [Pretends to check two variables for aggregation.]
1835
-
1836
- Description [Pretends to check two variables for aggregation. Always
1837
- returns 0.]
1838
-
1839
- SideEffects [None]
1840
-
1841
- ******************************************************************************/
1842
- static int
1843
- ddNoCheck(
1844
- DdManager * table,
1845
- int x,
1846
- int y)
1847
- {
1848
- return(0);
1849
-
1850
- } /* end of ddNoCheck */
1851
-
1852
-
1853
- /**Function********************************************************************
1854
-
1855
- Synopsis [Checks two variables for aggregation.]
1856
-
1857
- Description [Checks two variables for aggregation. The check is based
1858
- on the second difference of the number of nodes as a function of the
1859
- layer. If the second difference is lower than a given threshold
1860
- (typically negative) then the two variables should be aggregated.
1861
- Returns 1 if the two variables pass the test; 0 otherwise.]
1862
-
1863
- SideEffects [None]
1864
-
1865
- ******************************************************************************/
1866
- static int
1867
- ddSecDiffCheck(
1868
- DdManager * table,
1869
- int x,
1870
- int y)
1871
- {
1872
- double Nx,Nx_1;
1873
- double Sx;
1874
- double threshold;
1875
- int xindex,yindex;
1876
-
1877
- if (x==0) return(0);
1878
-
1879
- #ifdef DD_STATS
1880
- secdiffcalls++;
1881
- #endif
1882
- Nx = (double) table->subtables[x].keys;
1883
- Nx_1 = (double) table->subtables[x-1].keys;
1884
- Sx = (table->subtables[y].keys/Nx) - (Nx/Nx_1);
1885
-
1886
- threshold = table->recomb / 100.0;
1887
- if (Sx < threshold) {
1888
- xindex = table->invperm[x];
1889
- yindex = table->invperm[y];
1890
- if (cuddTestInteract(table,xindex,yindex)) {
1891
- #if defined(DD_DEBUG) && defined(DD_VERBOSE)
1892
- (void) fprintf(table->out,
1893
- "Second difference for %d = %g Pos(%d)\n",
1894
- table->invperm[x],Sx,x);
1895
- #endif
1896
- #ifdef DD_STATS
1897
- secdiff++;
1898
- #endif
1899
- return(1);
1900
- } else {
1901
- #ifdef DD_STATS
1902
- secdiffmisfire++;
1903
- #endif
1904
- return(0);
1905
- }
1906
-
1907
- }
1908
- return(0);
1909
-
1910
- } /* end of ddSecDiffCheck */
1911
-
1912
-
1913
- /**Function********************************************************************
1914
-
1915
- Synopsis [Checks for extended symmetry of x and y.]
1916
-
1917
- Description [Checks for extended symmetry of x and y. Returns 1 in
1918
- case of extended symmetry; 0 otherwise.]
1919
-
1920
- SideEffects [None]
1921
-
1922
- ******************************************************************************/
1923
- static int
1924
- ddExtSymmCheck(
1925
- DdManager * table,
1926
- int x,
1927
- int y)
1928
- {
1929
- DdNode *f,*f0,*f1,*f01,*f00,*f11,*f10;
1930
- DdNode *one;
1931
- unsigned comple; /* f0 is complemented */
1932
- int notproj; /* f is not a projection function */
1933
- int arccount; /* number of arcs from layer x to layer y */
1934
- int TotalRefCount; /* total reference count of layer y minus 1 */
1935
- int counter; /* number of nodes of layer x that are allowed */
1936
- /* to violate extended symmetry conditions */
1937
- int arccounter; /* number of arcs into layer y that are allowed */
1938
- /* to come from layers other than x */
1939
- int i;
1940
- int xindex;
1941
- int yindex;
1942
- int res;
1943
- int slots;
1944
- DdNodePtr *list;
1945
- DdNode *sentinel = &(table->sentinel);
1946
-
1947
- xindex = table->invperm[x];
1948
- yindex = table->invperm[y];
1949
-
1950
- /* If the two variables do not interact, we do not want to merge them. */
1951
- if (!cuddTestInteract(table,xindex,yindex))
1952
- return(0);
1953
-
1954
- #ifdef DD_DEBUG
1955
- /* Checks that x and y do not contain just the projection functions.
1956
- ** With the test on interaction, these test become redundant,
1957
- ** because an isolated projection function does not interact with
1958
- ** any other variable.
1959
- */
1960
- if (table->subtables[x].keys == 1) {
1961
- assert(table->vars[xindex]->ref != 1);
1962
- }
1963
- if (table->subtables[y].keys == 1) {
1964
- assert(table->vars[yindex]->ref != 1);
1965
- }
1966
- #endif
1967
-
1968
- #ifdef DD_STATS
1969
- extsymmcalls++;
1970
- #endif
1971
-
1972
- arccount = 0;
1973
- counter = (int) (table->subtables[x].keys *
1974
- (table->symmviolation/100.0) + 0.5);
1975
- one = DD_ONE(table);
1976
-
1977
- slots = table->subtables[x].slots;
1978
- list = table->subtables[x].nodelist;
1979
- for (i = 0; i < slots; i++) {
1980
- f = list[i];
1981
- while (f != sentinel) {
1982
- /* Find f1, f0, f11, f10, f01, f00. */
1983
- f1 = cuddT(f);
1984
- f0 = Cudd_Regular(cuddE(f));
1985
- comple = Cudd_IsComplement(cuddE(f));
1986
- notproj = f1 != one || f0 != one || f->ref != (DdHalfWord) 1;
1987
- if (f1->index == (unsigned) yindex) {
1988
- arccount++;
1989
- f11 = cuddT(f1); f10 = cuddE(f1);
1990
- } else {
1991
- if ((int) f0->index != yindex) {
1992
- /* If f is an isolated projection function it is
1993
- ** allowed to bypass layer y.
1994
- */
1995
- if (notproj) {
1996
- if (counter == 0)
1997
- return(0);
1998
- counter--; /* f bypasses layer y */
1999
- }
2000
- }
2001
- f11 = f10 = f1;
2002
- }
2003
- if ((int) f0->index == yindex) {
2004
- arccount++;
2005
- f01 = cuddT(f0); f00 = cuddE(f0);
2006
- } else {
2007
- f01 = f00 = f0;
2008
- }
2009
- if (comple) {
2010
- f01 = Cudd_Not(f01);
2011
- f00 = Cudd_Not(f00);
2012
- }
2013
-
2014
- /* Unless we are looking at a projection function
2015
- ** without external references except the one from the
2016
- ** table, we insist that f01 == f10 or f11 == f00
2017
- */
2018
- if (notproj) {
2019
- if (f01 != f10 && f11 != f00) {
2020
- if (counter == 0)
2021
- return(0);
2022
- counter--;
2023
- }
2024
- }
2025
-
2026
- f = f->next;
2027
- } /* while */
2028
- } /* for */
2029
-
2030
- /* Calculate the total reference counts of y */
2031
- TotalRefCount = -1; /* -1 for projection function */
2032
- slots = table->subtables[y].slots;
2033
- list = table->subtables[y].nodelist;
2034
- for (i = 0; i < slots; i++) {
2035
- f = list[i];
2036
- while (f != sentinel) {
2037
- TotalRefCount += f->ref;
2038
- f = f->next;
2039
- }
2040
- }
2041
-
2042
- arccounter = (int) (table->subtables[y].keys *
2043
- (table->arcviolation/100.0) + 0.5);
2044
- res = arccount >= TotalRefCount - arccounter;
2045
-
2046
- #if defined(DD_DEBUG) && defined(DD_VERBOSE)
2047
- if (res) {
2048
- (void) fprintf(table->out,
2049
- "Found extended symmetry! x = %d\ty = %d\tPos(%d,%d)\n",
2050
- xindex,yindex,x,y);
2051
- }
2052
- #endif
2053
-
2054
- #ifdef DD_STATS
2055
- if (res)
2056
- extsymm++;
2057
- #endif
2058
- return(res);
2059
-
2060
- } /* end ddExtSymmCheck */
2061
-
2062
-
2063
- /**Function********************************************************************
2064
-
2065
- Synopsis [Checks for grouping of x and y.]
2066
-
2067
- Description [Checks for grouping of x and y. Returns 1 in
2068
- case of grouping; 0 otherwise. This function is used for lazy sifting.]
2069
-
2070
- SideEffects [None]
2071
-
2072
- ******************************************************************************/
2073
- static int
2074
- ddVarGroupCheck(
2075
- DdManager * table,
2076
- int x,
2077
- int y)
2078
- {
2079
- int xindex = table->invperm[x];
2080
- int yindex = table->invperm[y];
2081
-
2082
- if (Cudd_bddIsVarToBeUngrouped(table, xindex)) return(0);
2083
-
2084
- if (Cudd_bddReadPairIndex(table, xindex) == yindex) {
2085
- if (ddIsVarHandled(table, xindex) ||
2086
- ddIsVarHandled(table, yindex)) {
2087
- if (Cudd_bddIsVarToBeGrouped(table, xindex) ||
2088
- Cudd_bddIsVarToBeGrouped(table, yindex) ) {
2089
- if (table->keys - table->isolated <= originalSize) {
2090
- return(1);
2091
- }
2092
- }
2093
- }
2094
- }
2095
-
2096
- return(0);
2097
-
2098
- } /* end of ddVarGroupCheck */
2099
-
2100
-
2101
- /**Function********************************************************************
2102
-
2103
- Synopsis [Sets a variable to already handled.]
2104
-
2105
- Description [Sets a variable to already handled. This function is used
2106
- for lazy sifting.]
2107
-
2108
- SideEffects [none]
2109
-
2110
- SeeAlso []
2111
-
2112
- ******************************************************************************/
2113
- static int
2114
- ddSetVarHandled(
2115
- DdManager *dd,
2116
- int index)
2117
- {
2118
- if (index >= dd->size || index < 0) return(0);
2119
- dd->subtables[dd->perm[index]].varHandled = 1;
2120
- return(1);
2121
-
2122
- } /* end of ddSetVarHandled */
2123
-
2124
-
2125
- /**Function********************************************************************
2126
-
2127
- Synopsis [Resets a variable to be processed.]
2128
-
2129
- Description [Resets a variable to be processed. This function is used
2130
- for lazy sifting.]
2131
-
2132
- SideEffects [none]
2133
-
2134
- SeeAlso []
2135
-
2136
- ******************************************************************************/
2137
- static int
2138
- ddResetVarHandled(
2139
- DdManager *dd,
2140
- int index)
2141
- {
2142
- if (index >= dd->size || index < 0) return(0);
2143
- dd->subtables[dd->perm[index]].varHandled = 0;
2144
- return(1);
2145
-
2146
- } /* end of ddResetVarHandled */
2147
-
2148
-
2149
- /**Function********************************************************************
2150
-
2151
- Synopsis [Checks whether a variables is already handled.]
2152
-
2153
- Description [Checks whether a variables is already handled. This
2154
- function is used for lazy sifting.]
2155
-
2156
- SideEffects [none]
2157
-
2158
- SeeAlso []
2159
-
2160
- ******************************************************************************/
2161
- static int
2162
- ddIsVarHandled(
2163
- DdManager *dd,
2164
- int index)
2165
- {
2166
- if (index >= dd->size || index < 0) return(-1);
2167
- return dd->subtables[dd->perm[index]].varHandled;
2168
-
2169
- } /* end of ddIsVarHandled */
2170
-
2171
-
2172
- ABC_NAMESPACE_IMPL_END
2173
-