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