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.
- checksums.yaml +5 -5
- data/.yardopts +7 -0
- data/LICENSE +51 -52
- data/README.md +48 -28
- data/bin/ruby_abc +83 -66
- data/ext/ruby_abc/extconf.rb +58 -0
- data/ext/{ruby_abc.c → ruby_abc/ruby_abc.c} +38 -70
- data/ext/ruby_abc/ruby_abc.map +6 -0
- data/ext/{ruby_abc_wrapper.c → ruby_abc/ruby_abc_wrapper.c} +0 -0
- data/ext/ruby_abc/ruby_abc_wrapper.h +39 -0
- data/lib/ruby_abc/version.rb +4 -0
- data/lib/ruby_abc.rb +247 -230
- data/share/bash_completion/ruby_abc.bash-completion.sh +24 -0
- data/share/osu018.genlib +66 -0
- data/share/simple.genlib +25 -0
- metadata +17 -1725
- data/Rakefile +0 -87
- data/ext/abc/CMakeLists.txt +0 -103
- data/ext/abc/Makefile +0 -213
- data/ext/abc/abc.rc +0 -146
- data/ext/abc/abcexe.dsp +0 -103
- data/ext/abc/abclib.dsp +0 -5948
- data/ext/abc/abcspace.dsw +0 -44
- data/ext/abc/arch_flags.c +0 -17
- data/ext/abc/copyright.txt +0 -23
- data/ext/abc/depends.sh +0 -13
- data/ext/abc/i10.aig +0 -752
- data/ext/abc/lib/pthread.h +0 -1369
- data/ext/abc/lib/sched.h +0 -178
- data/ext/abc/lib/semaphore.h +0 -166
- data/ext/abc/lib/x64/pthreadVC2.dll +0 -0
- data/ext/abc/lib/x64/pthreadVC2.lib +0 -0
- data/ext/abc/lib/x86/pthreadVC2.dll +0 -0
- data/ext/abc/lib/x86/pthreadVC2.lib +0 -0
- data/ext/abc/readme.md +0 -111
- data/ext/abc/readmeaig +0 -47
- data/ext/abc/src/aig/aig/aig.h +0 -713
- data/ext/abc/src/aig/aig/aigCanon.c +0 -701
- data/ext/abc/src/aig/aig/aigCheck.c +0 -168
- data/ext/abc/src/aig/aig/aigCuts.c +0 -673
- data/ext/abc/src/aig/aig/aigDfs.c +0 -1136
- data/ext/abc/src/aig/aig/aigDoms.c +0 -1154
- data/ext/abc/src/aig/aig/aigDup.c +0 -1335
- data/ext/abc/src/aig/aig/aigFact.c +0 -734
- data/ext/abc/src/aig/aig/aigFanout.c +0 -194
- data/ext/abc/src/aig/aig/aigFrames.c +0 -140
- data/ext/abc/src/aig/aig/aigInter.c +0 -301
- data/ext/abc/src/aig/aig/aigJust.c +0 -316
- data/ext/abc/src/aig/aig/aigMan.c +0 -486
- data/ext/abc/src/aig/aig/aigMem.c +0 -610
- data/ext/abc/src/aig/aig/aigMffc.c +0 -316
- data/ext/abc/src/aig/aig/aigObj.c +0 -536
- data/ext/abc/src/aig/aig/aigOper.c +0 -606
- data/ext/abc/src/aig/aig/aigOrder.c +0 -176
- data/ext/abc/src/aig/aig/aigPack.c +0 -404
- data/ext/abc/src/aig/aig/aigPart.c +0 -1613
- data/ext/abc/src/aig/aig/aigPartReg.c +0 -629
- data/ext/abc/src/aig/aig/aigPartSat.c +0 -618
- data/ext/abc/src/aig/aig/aigRepar.c +0 -403
- data/ext/abc/src/aig/aig/aigRepr.c +0 -559
- data/ext/abc/src/aig/aig/aigRet.c +0 -975
- data/ext/abc/src/aig/aig/aigRetF.c +0 -214
- data/ext/abc/src/aig/aig/aigScl.c +0 -708
- data/ext/abc/src/aig/aig/aigShow.c +0 -368
- data/ext/abc/src/aig/aig/aigSplit.c +0 -330
- data/ext/abc/src/aig/aig/aigTable.c +0 -277
- data/ext/abc/src/aig/aig/aigTest.c +0 -39
- data/ext/abc/src/aig/aig/aigTiming.c +0 -356
- data/ext/abc/src/aig/aig/aigTruth.c +0 -103
- data/ext/abc/src/aig/aig/aigTsim.c +0 -526
- data/ext/abc/src/aig/aig/aigUtil.c +0 -1575
- data/ext/abc/src/aig/aig/aigWin.c +0 -189
- data/ext/abc/src/aig/aig/aig_.c +0 -53
- data/ext/abc/src/aig/aig/module.make +0 -31
- data/ext/abc/src/aig/gia/gia.c +0 -52
- data/ext/abc/src/aig/gia/gia.h +0 -1667
- data/ext/abc/src/aig/gia/giaAgi.c +0 -238
- data/ext/abc/src/aig/gia/giaAig.c +0 -676
- data/ext/abc/src/aig/gia/giaAig.h +0 -78
- data/ext/abc/src/aig/gia/giaAiger.c +0 -1479
- data/ext/abc/src/aig/gia/giaAigerExt.c +0 -326
- data/ext/abc/src/aig/gia/giaBalAig.c +0 -1095
- data/ext/abc/src/aig/gia/giaBalLut.c +0 -982
- data/ext/abc/src/aig/gia/giaBalMap.c +0 -326
- data/ext/abc/src/aig/gia/giaBidec.c +0 -305
- data/ext/abc/src/aig/gia/giaCCof.c +0 -349
- data/ext/abc/src/aig/gia/giaCSat.c +0 -1105
- data/ext/abc/src/aig/gia/giaCSatOld.c +0 -804
- data/ext/abc/src/aig/gia/giaCTas.c +0 -1790
- data/ext/abc/src/aig/gia/giaCTas2.c +0 -208
- data/ext/abc/src/aig/gia/giaCex.c +0 -392
- data/ext/abc/src/aig/gia/giaClp.c +0 -422
- data/ext/abc/src/aig/gia/giaCof.c +0 -1002
- data/ext/abc/src/aig/gia/giaCone.c +0 -590
- data/ext/abc/src/aig/gia/giaConstr.c +0 -52
- data/ext/abc/src/aig/gia/giaCut.c +0 -646
- data/ext/abc/src/aig/gia/giaDfs.c +0 -582
- data/ext/abc/src/aig/gia/giaDup.c +0 -4791
- data/ext/abc/src/aig/gia/giaEdge.c +0 -1000
- data/ext/abc/src/aig/gia/giaEmbed.c +0 -1876
- data/ext/abc/src/aig/gia/giaEnable.c +0 -650
- data/ext/abc/src/aig/gia/giaEquiv.c +0 -2416
- data/ext/abc/src/aig/gia/giaEra.c +0 -602
- data/ext/abc/src/aig/gia/giaEra2.c +0 -1963
- data/ext/abc/src/aig/gia/giaEsop.c +0 -541
- data/ext/abc/src/aig/gia/giaFalse.c +0 -552
- data/ext/abc/src/aig/gia/giaFanout.c +0 -338
- data/ext/abc/src/aig/gia/giaForce.c +0 -1106
- data/ext/abc/src/aig/gia/giaFrames.c +0 -996
- data/ext/abc/src/aig/gia/giaFront.c +0 -295
- data/ext/abc/src/aig/gia/giaFx.c +0 -487
- data/ext/abc/src/aig/gia/giaGiarf.c +0 -1079
- data/ext/abc/src/aig/gia/giaGig.c +0 -506
- data/ext/abc/src/aig/gia/giaGlitch.c +0 -786
- data/ext/abc/src/aig/gia/giaHash.c +0 -816
- data/ext/abc/src/aig/gia/giaHcd.c +0 -689
- data/ext/abc/src/aig/gia/giaIf.c +0 -2536
- data/ext/abc/src/aig/gia/giaIff.c +0 -444
- data/ext/abc/src/aig/gia/giaIiff.c +0 -62
- data/ext/abc/src/aig/gia/giaIiff.h +0 -54
- data/ext/abc/src/aig/gia/giaIso.c +0 -1331
- data/ext/abc/src/aig/gia/giaIso2.c +0 -776
- data/ext/abc/src/aig/gia/giaIso3.c +0 -167
- data/ext/abc/src/aig/gia/giaJf.c +0 -1805
- data/ext/abc/src/aig/gia/giaKf.c +0 -1341
- data/ext/abc/src/aig/gia/giaLf.c +0 -2301
- data/ext/abc/src/aig/gia/giaMan.c +0 -1126
- data/ext/abc/src/aig/gia/giaMem.c +0 -598
- data/ext/abc/src/aig/gia/giaMf.c +0 -1741
- data/ext/abc/src/aig/gia/giaMffc.c +0 -313
- data/ext/abc/src/aig/gia/giaMfs.c +0 -477
- data/ext/abc/src/aig/gia/giaMini.c +0 -574
- data/ext/abc/src/aig/gia/giaMuxes.c +0 -915
- data/ext/abc/src/aig/gia/giaNf.c +0 -2420
- data/ext/abc/src/aig/gia/giaOf.c +0 -1866
- data/ext/abc/src/aig/gia/giaPack.c +0 -207
- data/ext/abc/src/aig/gia/giaPat.c +0 -135
- data/ext/abc/src/aig/gia/giaPf.c +0 -1354
- data/ext/abc/src/aig/gia/giaProp.c +0 -176
- data/ext/abc/src/aig/gia/giaQbf.c +0 -701
- data/ext/abc/src/aig/gia/giaResub.c +0 -292
- data/ext/abc/src/aig/gia/giaRetime.c +0 -304
- data/ext/abc/src/aig/gia/giaRex.c +0 -545
- data/ext/abc/src/aig/gia/giaSat.c +0 -427
- data/ext/abc/src/aig/gia/giaSat3.c +0 -136
- data/ext/abc/src/aig/gia/giaSatEdge.c +0 -537
- data/ext/abc/src/aig/gia/giaSatLE.c +0 -1083
- data/ext/abc/src/aig/gia/giaSatLut.c +0 -1225
- data/ext/abc/src/aig/gia/giaSatMap.c +0 -554
- data/ext/abc/src/aig/gia/giaSatoko.c +0 -274
- data/ext/abc/src/aig/gia/giaScl.c +0 -300
- data/ext/abc/src/aig/gia/giaScript.c +0 -783
- data/ext/abc/src/aig/gia/giaShow.c +0 -1164
- data/ext/abc/src/aig/gia/giaShrink.c +0 -154
- data/ext/abc/src/aig/gia/giaShrink6.c +0 -492
- data/ext/abc/src/aig/gia/giaShrink7.c +0 -373
- data/ext/abc/src/aig/gia/giaSim.c +0 -905
- data/ext/abc/src/aig/gia/giaSim2.c +0 -706
- data/ext/abc/src/aig/gia/giaSort.c +0 -273
- data/ext/abc/src/aig/gia/giaSpeedup.c +0 -805
- data/ext/abc/src/aig/gia/giaSplit.c +0 -578
- data/ext/abc/src/aig/gia/giaStg.c +0 -528
- data/ext/abc/src/aig/gia/giaStr.c +0 -1865
- data/ext/abc/src/aig/gia/giaSupMin.c +0 -165
- data/ext/abc/src/aig/gia/giaSupp.c +0 -886
- data/ext/abc/src/aig/gia/giaSweep.c +0 -777
- data/ext/abc/src/aig/gia/giaSweeper.c +0 -1185
- data/ext/abc/src/aig/gia/giaSwitch.c +0 -829
- data/ext/abc/src/aig/gia/giaTim.c +0 -1017
- data/ext/abc/src/aig/gia/giaTis.c +0 -213
- data/ext/abc/src/aig/gia/giaTruth.c +0 -639
- data/ext/abc/src/aig/gia/giaTsim.c +0 -757
- data/ext/abc/src/aig/gia/giaUnate.c +0 -255
- data/ext/abc/src/aig/gia/giaUtil.c +0 -2136
- data/ext/abc/src/aig/gia/module.make +0 -89
- data/ext/abc/src/aig/hop/cudd2.c +0 -360
- data/ext/abc/src/aig/hop/cudd2.h +0 -86
- data/ext/abc/src/aig/hop/hop.h +0 -356
- data/ext/abc/src/aig/hop/hopBalance.c +0 -401
- data/ext/abc/src/aig/hop/hopCheck.c +0 -115
- data/ext/abc/src/aig/hop/hopDfs.c +0 -591
- data/ext/abc/src/aig/hop/hopMan.c +0 -169
- data/ext/abc/src/aig/hop/hopMem.c +0 -120
- data/ext/abc/src/aig/hop/hopObj.c +0 -277
- data/ext/abc/src/aig/hop/hopOper.c +0 -378
- data/ext/abc/src/aig/hop/hopTable.c +0 -232
- data/ext/abc/src/aig/hop/hopTruth.c +0 -274
- data/ext/abc/src/aig/hop/hopUtil.c +0 -578
- data/ext/abc/src/aig/hop/hop_.c +0 -53
- data/ext/abc/src/aig/hop/module.make +0 -10
- data/ext/abc/src/aig/ioa/ioa.h +0 -87
- data/ext/abc/src/aig/ioa/ioaReadAig.c +0 -465
- data/ext/abc/src/aig/ioa/ioaUtil.c +0 -146
- data/ext/abc/src/aig/ioa/ioaWriteAig.c +0 -599
- data/ext/abc/src/aig/ioa/module.make +0 -3
- data/ext/abc/src/aig/ivy/attr.h +0 -418
- data/ext/abc/src/aig/ivy/ivy.h +0 -562
- data/ext/abc/src/aig/ivy/ivyBalance.c +0 -414
- data/ext/abc/src/aig/ivy/ivyCanon.c +0 -149
- data/ext/abc/src/aig/ivy/ivyCheck.c +0 -278
- data/ext/abc/src/aig/ivy/ivyCut.c +0 -995
- data/ext/abc/src/aig/ivy/ivyCutTrav.c +0 -478
- data/ext/abc/src/aig/ivy/ivyDfs.c +0 -498
- data/ext/abc/src/aig/ivy/ivyDsd.c +0 -831
- data/ext/abc/src/aig/ivy/ivyFanout.c +0 -314
- data/ext/abc/src/aig/ivy/ivyFastMap.c +0 -1569
- data/ext/abc/src/aig/ivy/ivyFraig.c +0 -2972
- data/ext/abc/src/aig/ivy/ivyHaig.c +0 -535
- data/ext/abc/src/aig/ivy/ivyMan.c +0 -552
- data/ext/abc/src/aig/ivy/ivyMem.c +0 -121
- data/ext/abc/src/aig/ivy/ivyMulti.c +0 -312
- data/ext/abc/src/aig/ivy/ivyMulti8.c +0 -432
- data/ext/abc/src/aig/ivy/ivyObj.c +0 -481
- data/ext/abc/src/aig/ivy/ivyOper.c +0 -298
- data/ext/abc/src/aig/ivy/ivyResyn.c +0 -201
- data/ext/abc/src/aig/ivy/ivyRwr.c +0 -618
- data/ext/abc/src/aig/ivy/ivyRwrAlg.c +0 -413
- data/ext/abc/src/aig/ivy/ivySeq.c +0 -1142
- data/ext/abc/src/aig/ivy/ivyShow.c +0 -343
- data/ext/abc/src/aig/ivy/ivyTable.c +0 -272
- data/ext/abc/src/aig/ivy/ivyUtil.c +0 -824
- data/ext/abc/src/aig/ivy/ivy_.c +0 -53
- data/ext/abc/src/aig/ivy/module.make +0 -22
- data/ext/abc/src/aig/miniaig/abcOper.h +0 -249
- data/ext/abc/src/aig/miniaig/miniaig.h +0 -346
- data/ext/abc/src/aig/miniaig/minilut.h +0 -288
- data/ext/abc/src/aig/miniaig/module.make +0 -1
- data/ext/abc/src/aig/miniaig/ndr.h +0 -521
- data/ext/abc/src/aig/saig/module.make +0 -26
- data/ext/abc/src/aig/saig/saig.h +0 -200
- data/ext/abc/src/aig/saig/saigCone.c +0 -181
- data/ext/abc/src/aig/saig/saigConstr.c +0 -484
- data/ext/abc/src/aig/saig/saigConstr2.c +0 -1013
- data/ext/abc/src/aig/saig/saigDual.c +0 -240
- data/ext/abc/src/aig/saig/saigDup.c +0 -600
- data/ext/abc/src/aig/saig/saigGlaCba.c +0 -840
- data/ext/abc/src/aig/saig/saigGlaPba.c +0 -589
- data/ext/abc/src/aig/saig/saigGlaPba2.c +0 -558
- data/ext/abc/src/aig/saig/saigInd.c +0 -409
- data/ext/abc/src/aig/saig/saigIoa.c +0 -405
- data/ext/abc/src/aig/saig/saigIso.c +0 -628
- data/ext/abc/src/aig/saig/saigIsoFast.c +0 -353
- data/ext/abc/src/aig/saig/saigIsoSlow.c +0 -1224
- data/ext/abc/src/aig/saig/saigMiter.c +0 -1317
- data/ext/abc/src/aig/saig/saigOutDec.c +0 -205
- data/ext/abc/src/aig/saig/saigPhase.c +0 -1081
- data/ext/abc/src/aig/saig/saigRefSat.c +0 -986
- data/ext/abc/src/aig/saig/saigRetFwd.c +0 -248
- data/ext/abc/src/aig/saig/saigRetMin.c +0 -705
- data/ext/abc/src/aig/saig/saigRetStep.c +0 -236
- data/ext/abc/src/aig/saig/saigScl.c +0 -115
- data/ext/abc/src/aig/saig/saigSimFast.c +0 -451
- data/ext/abc/src/aig/saig/saigSimMv.c +0 -956
- data/ext/abc/src/aig/saig/saigSimSeq.c +0 -518
- data/ext/abc/src/aig/saig/saigStrSim.c +0 -976
- data/ext/abc/src/aig/saig/saigSwitch.c +0 -573
- data/ext/abc/src/aig/saig/saigSynch.c +0 -665
- data/ext/abc/src/aig/saig/saigTempor.c +0 -256
- data/ext/abc/src/aig/saig/saigTrans.c +0 -428
- data/ext/abc/src/aig/saig/saigUnfold2.c +0 -497
- data/ext/abc/src/aig/saig/saigWnd.c +0 -816
- data/ext/abc/src/aig/saig/saig_.c +0 -52
- data/ext/abc/src/base/abc/abc.h +0 -1064
- data/ext/abc/src/base/abc/abcAig.c +0 -1505
- data/ext/abc/src/base/abc/abcBarBuf.c +0 -513
- data/ext/abc/src/base/abc/abcBlifMv.c +0 -1167
- data/ext/abc/src/base/abc/abcCheck.c +0 -953
- data/ext/abc/src/base/abc/abcDfs.c +0 -1910
- data/ext/abc/src/base/abc/abcFanOrder.c +0 -652
- data/ext/abc/src/base/abc/abcFanio.c +0 -366
- data/ext/abc/src/base/abc/abcFunc.c +0 -1273
- data/ext/abc/src/base/abc/abcHie.c +0 -843
- data/ext/abc/src/base/abc/abcHieCec.c +0 -764
- data/ext/abc/src/base/abc/abcHieGia.c +0 -582
- data/ext/abc/src/base/abc/abcHieNew.c +0 -1635
- data/ext/abc/src/base/abc/abcInt.h +0 -60
- data/ext/abc/src/base/abc/abcLatch.c +0 -778
- data/ext/abc/src/base/abc/abcLib.c +0 -400
- data/ext/abc/src/base/abc/abcMinBase.c +0 -841
- data/ext/abc/src/base/abc/abcNames.c +0 -802
- data/ext/abc/src/base/abc/abcNetlist.c +0 -511
- data/ext/abc/src/base/abc/abcNtk.c +0 -2298
- data/ext/abc/src/base/abc/abcObj.c +0 -1075
- data/ext/abc/src/base/abc/abcRefs.c +0 -457
- data/ext/abc/src/base/abc/abcShow.c +0 -458
- data/ext/abc/src/base/abc/abcSop.c +0 -1356
- data/ext/abc/src/base/abc/abcUtil.c +0 -3269
- data/ext/abc/src/base/abc/abc_.c +0 -52
- data/ext/abc/src/base/abc/module.make +0 -23
- data/ext/abc/src/base/abci/abc.c +0 -44490
- data/ext/abc/src/base/abci/abcAttach.c +0 -409
- data/ext/abc/src/base/abci/abcAuto.c +0 -256
- data/ext/abc/src/base/abci/abcBalance.c +0 -629
- data/ext/abc/src/base/abci/abcBidec.c +0 -156
- data/ext/abc/src/base/abci/abcBm.c +0 -2050
- data/ext/abc/src/base/abci/abcBmc.c +0 -122
- data/ext/abc/src/base/abci/abcCas.c +0 -128
- data/ext/abc/src/base/abci/abcCascade.c +0 -1062
- data/ext/abc/src/base/abci/abcCollapse.c +0 -957
- data/ext/abc/src/base/abci/abcCut.c +0 -700
- data/ext/abc/src/base/abci/abcDar.c +0 -4807
- data/ext/abc/src/base/abci/abcDarUnfold2.c +0 -69
- data/ext/abc/src/base/abci/abcDebug.c +0 -213
- data/ext/abc/src/base/abci/abcDec.c +0 -666
- data/ext/abc/src/base/abci/abcDetect.c +0 -1264
- data/ext/abc/src/base/abci/abcDress.c +0 -214
- data/ext/abc/src/base/abci/abcDress2.c +0 -500
- data/ext/abc/src/base/abci/abcDress3.c +0 -320
- data/ext/abc/src/base/abci/abcDsd.c +0 -710
- data/ext/abc/src/base/abci/abcEco.c +0 -58
- data/ext/abc/src/base/abci/abcEspresso.c +0 -255
- data/ext/abc/src/base/abci/abcExact.c +0 -3024
- data/ext/abc/src/base/abci/abcExtract.c +0 -752
- data/ext/abc/src/base/abci/abcFlop.c +0 -40
- data/ext/abc/src/base/abci/abcFpga.c +0 -288
- data/ext/abc/src/base/abci/abcFpgaFast.c +0 -195
- data/ext/abc/src/base/abci/abcFraig.c +0 -816
- data/ext/abc/src/base/abci/abcFx.c +0 -1207
- data/ext/abc/src/base/abci/abcFxu.c +0 -292
- data/ext/abc/src/base/abci/abcGen.c +0 -830
- data/ext/abc/src/base/abci/abcHaig.c +0 -557
- data/ext/abc/src/base/abci/abcIf.c +0 -830
- data/ext/abc/src/base/abci/abcIfMux.c +0 -422
- data/ext/abc/src/base/abci/abcIfif.c +0 -349
- data/ext/abc/src/base/abci/abcIvy.c +0 -1149
- data/ext/abc/src/base/abci/abcLog.c +0 -242
- data/ext/abc/src/base/abci/abcLut.c +0 -793
- data/ext/abc/src/base/abci/abcLutmin.c +0 -785
- data/ext/abc/src/base/abci/abcMap.c +0 -1064
- data/ext/abc/src/base/abci/abcMeasure.c +0 -483
- data/ext/abc/src/base/abci/abcMerge.c +0 -358
- data/ext/abc/src/base/abci/abcMffc.c +0 -1252
- data/ext/abc/src/base/abci/abcMfs.c +0 -469
- data/ext/abc/src/base/abci/abcMini.c +0 -237
- data/ext/abc/src/base/abci/abcMiter.c +0 -1196
- data/ext/abc/src/base/abci/abcMulti.c +0 -660
- data/ext/abc/src/base/abci/abcMv.c +0 -381
- data/ext/abc/src/base/abci/abcNpn.c +0 -392
- data/ext/abc/src/base/abci/abcNpnSave.c +0 -740
- data/ext/abc/src/base/abci/abcNtbdd.c +0 -619
- data/ext/abc/src/base/abci/abcOdc.c +0 -1132
- data/ext/abc/src/base/abci/abcOrder.c +0 -136
- data/ext/abc/src/base/abci/abcPart.c +0 -1206
- data/ext/abc/src/base/abci/abcPlace.c +0 -260
- data/ext/abc/src/base/abci/abcPrint.c +0 -2008
- data/ext/abc/src/base/abci/abcProve.c +0 -354
- data/ext/abc/src/base/abci/abcQbf.c +0 -319
- data/ext/abc/src/base/abci/abcQuant.c +0 -436
- data/ext/abc/src/base/abci/abcReach.c +0 -327
- data/ext/abc/src/base/abci/abcRec3.c +0 -1433
- data/ext/abc/src/base/abci/abcReconv.c +0 -776
- data/ext/abc/src/base/abci/abcRefactor.c +0 -418
- data/ext/abc/src/base/abci/abcRenode.c +0 -326
- data/ext/abc/src/base/abci/abcReorder.c +0 -117
- data/ext/abc/src/base/abci/abcRestruct.c +0 -1511
- data/ext/abc/src/base/abci/abcResub.c +0 -1957
- data/ext/abc/src/base/abci/abcRewrite.c +0 -420
- data/ext/abc/src/base/abci/abcRpo.c +0 -442
- data/ext/abc/src/base/abci/abcRr.c +0 -1005
- data/ext/abc/src/base/abci/abcSat.c +0 -1020
- data/ext/abc/src/base/abci/abcSaucy.c +0 -3346
- data/ext/abc/src/base/abci/abcScorr.c +0 -454
- data/ext/abc/src/base/abci/abcSense.c +0 -216
- data/ext/abc/src/base/abci/abcSpeedup.c +0 -965
- data/ext/abc/src/base/abci/abcStrash.c +0 -848
- data/ext/abc/src/base/abci/abcSweep.c +0 -1030
- data/ext/abc/src/base/abci/abcSymm.c +0 -246
- data/ext/abc/src/base/abci/abcTim.c +0 -637
- data/ext/abc/src/base/abci/abcTiming.c +0 -1398
- data/ext/abc/src/base/abci/abcUnate.c +0 -178
- data/ext/abc/src/base/abci/abcUnreach.c +0 -366
- data/ext/abc/src/base/abci/abcVerify.c +0 -1109
- data/ext/abc/src/base/abci/abcXsim.c +0 -231
- data/ext/abc/src/base/abci/abciUnfold2.c +0 -186
- data/ext/abc/src/base/abci/fahout_cut.c +0 -358
- data/ext/abc/src/base/abci/module.make +0 -75
- data/ext/abc/src/base/acb/acb.c +0 -52
- data/ext/abc/src/base/acb/acb.h +0 -1038
- data/ext/abc/src/base/acb/acbAbc.c +0 -302
- data/ext/abc/src/base/acb/acbAig.c +0 -52
- data/ext/abc/src/base/acb/acbCom.c +0 -735
- data/ext/abc/src/base/acb/acbFunc.c +0 -56
- data/ext/abc/src/base/acb/acbMfs.c +0 -1644
- data/ext/abc/src/base/acb/acbPar.h +0 -70
- data/ext/abc/src/base/acb/acbPush.c +0 -372
- data/ext/abc/src/base/acb/acbSets.c +0 -54
- data/ext/abc/src/base/acb/acbSets.h +0 -61
- data/ext/abc/src/base/acb/acbUtil.c +0 -479
- data/ext/abc/src/base/acb/module.make +0 -8
- data/ext/abc/src/base/bac/bac.c +0 -52
- data/ext/abc/src/base/bac/bac.h +0 -1017
- data/ext/abc/src/base/bac/bacBac.c +0 -298
- data/ext/abc/src/base/bac/bacBlast.c +0 -587
- data/ext/abc/src/base/bac/bacCom.c +0 -728
- data/ext/abc/src/base/bac/bacLib.c +0 -52
- data/ext/abc/src/base/bac/bacNtk.c +0 -603
- data/ext/abc/src/base/bac/bacOper.c +0 -365
- data/ext/abc/src/base/bac/bacPrs.h +0 -363
- data/ext/abc/src/base/bac/bacPrsBuild.c +0 -356
- data/ext/abc/src/base/bac/bacPrsTrans.c +0 -211
- data/ext/abc/src/base/bac/bacPtr.c +0 -470
- data/ext/abc/src/base/bac/bacPtrAbc.c +0 -486
- data/ext/abc/src/base/bac/bacReadBlif.c +0 -453
- data/ext/abc/src/base/bac/bacReadSmt.c +0 -42
- data/ext/abc/src/base/bac/bacReadVer.c +0 -875
- data/ext/abc/src/base/bac/bacWriteBlif.c +0 -236
- data/ext/abc/src/base/bac/bacWriteSmt.c +0 -52
- data/ext/abc/src/base/bac/bacWriteVer.c +0 -703
- data/ext/abc/src/base/bac/module.make +0 -15
- data/ext/abc/src/base/cba/cba.c +0 -52
- data/ext/abc/src/base/cba/cba.h +0 -1024
- data/ext/abc/src/base/cba/cbaBlast.c +0 -1069
- data/ext/abc/src/base/cba/cbaCba.c +0 -58
- data/ext/abc/src/base/cba/cbaCom.c +0 -731
- data/ext/abc/src/base/cba/cbaNtk.c +0 -1183
- data/ext/abc/src/base/cba/cbaPrs.h +0 -520
- data/ext/abc/src/base/cba/cbaReadBlif.c +0 -646
- data/ext/abc/src/base/cba/cbaReadVer.c +0 -2182
- data/ext/abc/src/base/cba/cbaTypes.h +0 -169
- data/ext/abc/src/base/cba/cbaWriteBlif.c +0 -218
- data/ext/abc/src/base/cba/cbaWriteVer.c +0 -1016
- data/ext/abc/src/base/cba/module.make +0 -8
- data/ext/abc/src/base/cmd/cmd.c +0 -2611
- data/ext/abc/src/base/cmd/cmd.h +0 -81
- data/ext/abc/src/base/cmd/cmdAlias.c +0 -126
- data/ext/abc/src/base/cmd/cmdApi.c +0 -127
- data/ext/abc/src/base/cmd/cmdAuto.c +0 -684
- data/ext/abc/src/base/cmd/cmdFlag.c +0 -110
- data/ext/abc/src/base/cmd/cmdHist.c +0 -180
- data/ext/abc/src/base/cmd/cmdInt.h +0 -92
- data/ext/abc/src/base/cmd/cmdLoad.c +0 -209
- data/ext/abc/src/base/cmd/cmdPlugin.c +0 -773
- data/ext/abc/src/base/cmd/cmdStarter.c +0 -259
- data/ext/abc/src/base/cmd/cmdUtils.c +0 -756
- data/ext/abc/src/base/cmd/module.make +0 -10
- data/ext/abc/src/base/exor/exor.c +0 -958
- data/ext/abc/src/base/exor/exor.h +0 -189
- data/ext/abc/src/base/exor/exorBits.c +0 -425
- data/ext/abc/src/base/exor/exorCubes.c +0 -190
- data/ext/abc/src/base/exor/exorLink.c +0 -749
- data/ext/abc/src/base/exor/exorList.c +0 -1156
- data/ext/abc/src/base/exor/exorUtil.c +0 -228
- data/ext/abc/src/base/exor/module.make +0 -6
- data/ext/abc/src/base/io/io.c +0 -3157
- data/ext/abc/src/base/io/ioAbc.h +0 -172
- data/ext/abc/src/base/io/ioInt.h +0 -57
- data/ext/abc/src/base/io/ioJson.c +0 -270
- data/ext/abc/src/base/io/ioReadAiger.c +0 -599
- data/ext/abc/src/base/io/ioReadBaf.c +0 -177
- data/ext/abc/src/base/io/ioReadBblif.c +0 -348
- data/ext/abc/src/base/io/ioReadBench.c +0 -391
- data/ext/abc/src/base/io/ioReadBlif.c +0 -1707
- data/ext/abc/src/base/io/ioReadBlifAig.c +0 -1019
- data/ext/abc/src/base/io/ioReadBlifMv.c +0 -2363
- data/ext/abc/src/base/io/ioReadDsd.c +0 -313
- data/ext/abc/src/base/io/ioReadEdif.c +0 -240
- data/ext/abc/src/base/io/ioReadEqn.c +0 -244
- data/ext/abc/src/base/io/ioReadPla.c +0 -600
- data/ext/abc/src/base/io/ioReadPlaMo.c +0 -813
- data/ext/abc/src/base/io/ioReadVerilog.c +0 -102
- data/ext/abc/src/base/io/ioUtil.c +0 -871
- data/ext/abc/src/base/io/ioWriteAiger.c +0 -956
- data/ext/abc/src/base/io/ioWriteBaf.c +0 -173
- data/ext/abc/src/base/io/ioWriteBblif.c +0 -116
- data/ext/abc/src/base/io/ioWriteBench.c +0 -340
- data/ext/abc/src/base/io/ioWriteBlif.c +0 -1410
- data/ext/abc/src/base/io/ioWriteBlifMv.c +0 -476
- data/ext/abc/src/base/io/ioWriteBook.c +0 -998
- data/ext/abc/src/base/io/ioWriteCnf.c +0 -120
- data/ext/abc/src/base/io/ioWriteDot.c +0 -854
- data/ext/abc/src/base/io/ioWriteEqn.c +0 -257
- data/ext/abc/src/base/io/ioWriteGml.c +0 -121
- data/ext/abc/src/base/io/ioWriteList.c +0 -293
- data/ext/abc/src/base/io/ioWritePla.c +0 -460
- data/ext/abc/src/base/io/ioWriteSmv.c +0 -265
- data/ext/abc/src/base/io/ioWriteVerilog.c +0 -662
- data/ext/abc/src/base/io/module.make +0 -31
- data/ext/abc/src/base/main/abcapis.h +0 -106
- data/ext/abc/src/base/main/abcapis_old.h +0 -84
- data/ext/abc/src/base/main/libSupport.c +0 -211
- data/ext/abc/src/base/main/main.c +0 -12
- data/ext/abc/src/base/main/main.h +0 -171
- data/ext/abc/src/base/main/mainFrame.c +0 -742
- data/ext/abc/src/base/main/mainInit.c +0 -168
- data/ext/abc/src/base/main/mainInt.h +0 -207
- data/ext/abc/src/base/main/mainLib.c +0 -93
- data/ext/abc/src/base/main/mainMC.c +0 -203
- data/ext/abc/src/base/main/mainReal.c +0 -386
- data/ext/abc/src/base/main/mainUtils.c +0 -294
- data/ext/abc/src/base/main/module.make +0 -7
- data/ext/abc/src/base/pla/module.make +0 -7
- data/ext/abc/src/base/pla/pla.c +0 -52
- data/ext/abc/src/base/pla/pla.h +0 -297
- data/ext/abc/src/base/pla/plaCom.c +0 -507
- data/ext/abc/src/base/pla/plaFxch.c +0 -854
- data/ext/abc/src/base/pla/plaHash.c +0 -347
- data/ext/abc/src/base/pla/plaMan.c +0 -300
- data/ext/abc/src/base/pla/plaMerge.c +0 -55
- data/ext/abc/src/base/pla/plaRead.c +0 -224
- data/ext/abc/src/base/pla/plaSimple.c +0 -339
- data/ext/abc/src/base/pla/plaWrite.c +0 -112
- data/ext/abc/src/base/test/module.make +0 -1
- data/ext/abc/src/base/test/test.c +0 -70
- data/ext/abc/src/base/ver/module.make +0 -4
- data/ext/abc/src/base/ver/ver.h +0 -122
- data/ext/abc/src/base/ver/verCore.c +0 -3037
- data/ext/abc/src/base/ver/verFormula.c +0 -479
- data/ext/abc/src/base/ver/verParse.c +0 -131
- data/ext/abc/src/base/ver/verStream.c +0 -450
- data/ext/abc/src/base/ver/verWords.c +0 -53
- data/ext/abc/src/base/ver/ver_.c +0 -53
- data/ext/abc/src/base/wlc/module.make +0 -17
- data/ext/abc/src/base/wlc/wlc.c +0 -274
- data/ext/abc/src/base/wlc/wlc.h +0 -392
- data/ext/abc/src/base/wlc/wlcAbc.c +0 -275
- data/ext/abc/src/base/wlc/wlcAbs.c +0 -1912
- data/ext/abc/src/base/wlc/wlcAbs2.c +0 -410
- data/ext/abc/src/base/wlc/wlcBlast.c +0 -1692
- data/ext/abc/src/base/wlc/wlcCom.c +0 -1559
- data/ext/abc/src/base/wlc/wlcGraft.c +0 -573
- data/ext/abc/src/base/wlc/wlcJson.c +0 -54
- data/ext/abc/src/base/wlc/wlcNtk.c +0 -1268
- data/ext/abc/src/base/wlc/wlcPth.c +0 -173
- data/ext/abc/src/base/wlc/wlcReadSmt.c +0 -1784
- data/ext/abc/src/base/wlc/wlcReadVer.c +0 -1308
- data/ext/abc/src/base/wlc/wlcShow.c +0 -337
- data/ext/abc/src/base/wlc/wlcSim.c +0 -251
- data/ext/abc/src/base/wlc/wlcStdin.c +0 -255
- data/ext/abc/src/base/wlc/wlcUif.c +0 -290
- data/ext/abc/src/base/wlc/wlcWin.c +0 -166
- data/ext/abc/src/base/wlc/wlcWriteVer.c +0 -450
- data/ext/abc/src/bdd/bbr/bbr.h +0 -93
- data/ext/abc/src/bdd/bbr/bbrCex.c +0 -172
- data/ext/abc/src/bdd/bbr/bbrImage.c +0 -1327
- data/ext/abc/src/bdd/bbr/bbrNtbdd.c +0 -218
- data/ext/abc/src/bdd/bbr/bbrReach.c +0 -615
- data/ext/abc/src/bdd/bbr/bbr_.c +0 -52
- data/ext/abc/src/bdd/bbr/module.make +0 -4
- data/ext/abc/src/bdd/cas/cas.h +0 -66
- data/ext/abc/src/bdd/cas/casCore.c +0 -1265
- data/ext/abc/src/bdd/cas/casDec.c +0 -512
- data/ext/abc/src/bdd/cas/module.make +0 -3
- data/ext/abc/src/bdd/cudd/Makefile +0 -124
- data/ext/abc/src/bdd/cudd/cuBdd.make +0 -41
- data/ext/abc/src/bdd/cudd/cudd.h +0 -1054
- data/ext/abc/src/bdd/cudd/cudd.make +0 -42
- data/ext/abc/src/bdd/cudd/cuddAPI.c +0 -4444
- data/ext/abc/src/bdd/cudd/cuddAddAbs.c +0 -588
- data/ext/abc/src/bdd/cudd/cuddAddApply.c +0 -949
- data/ext/abc/src/bdd/cudd/cuddAddFind.c +0 -316
- data/ext/abc/src/bdd/cudd/cuddAddInv.c +0 -209
- data/ext/abc/src/bdd/cudd/cuddAddIte.c +0 -647
- data/ext/abc/src/bdd/cudd/cuddAddNeg.c +0 -296
- data/ext/abc/src/bdd/cudd/cuddAddWalsh.c +0 -399
- data/ext/abc/src/bdd/cudd/cuddAndAbs.c +0 -384
- data/ext/abc/src/bdd/cudd/cuddAnneal.c +0 -822
- data/ext/abc/src/bdd/cudd/cuddApa.c +0 -979
- data/ext/abc/src/bdd/cudd/cuddApprox.c +0 -2213
- data/ext/abc/src/bdd/cudd/cuddBddAbs.c +0 -725
- data/ext/abc/src/bdd/cudd/cuddBddCorr.c +0 -515
- data/ext/abc/src/bdd/cudd/cuddBddIte.c +0 -1328
- data/ext/abc/src/bdd/cudd/cuddBridge.c +0 -1021
- data/ext/abc/src/bdd/cudd/cuddCache.c +0 -1100
- data/ext/abc/src/bdd/cudd/cuddCheck.c +0 -887
- data/ext/abc/src/bdd/cudd/cuddClip.c +0 -566
- data/ext/abc/src/bdd/cudd/cuddCof.c +0 -335
- data/ext/abc/src/bdd/cudd/cuddCompose.c +0 -1760
- data/ext/abc/src/bdd/cudd/cuddDecomp.c +0 -2185
- data/ext/abc/src/bdd/cudd/cuddEssent.c +0 -1475
- data/ext/abc/src/bdd/cudd/cuddExact.c +0 -1028
- data/ext/abc/src/bdd/cudd/cuddExport.c +0 -1384
- data/ext/abc/src/bdd/cudd/cuddGenCof.c +0 -2175
- data/ext/abc/src/bdd/cudd/cuddGenetic.c +0 -957
- data/ext/abc/src/bdd/cudd/cuddGroup.c +0 -2173
- data/ext/abc/src/bdd/cudd/cuddHarwell.c +0 -576
- data/ext/abc/src/bdd/cudd/cuddInit.c +0 -319
- data/ext/abc/src/bdd/cudd/cuddInt.h +0 -1232
- data/ext/abc/src/bdd/cudd/cuddInteract.c +0 -437
- data/ext/abc/src/bdd/cudd/cuddLCache.c +0 -1465
- data/ext/abc/src/bdd/cudd/cuddLevelQ.c +0 -569
- data/ext/abc/src/bdd/cudd/cuddLinear.c +0 -1373
- data/ext/abc/src/bdd/cudd/cuddLiteral.c +0 -272
- data/ext/abc/src/bdd/cudd/cuddMatMult.c +0 -715
- data/ext/abc/src/bdd/cudd/cuddPriority.c +0 -2035
- data/ext/abc/src/bdd/cudd/cuddRead.c +0 -525
- data/ext/abc/src/bdd/cudd/cuddRef.c +0 -816
- data/ext/abc/src/bdd/cudd/cuddReorder.c +0 -2143
- data/ext/abc/src/bdd/cudd/cuddSat.c +0 -1338
- data/ext/abc/src/bdd/cudd/cuddSign.c +0 -326
- data/ext/abc/src/bdd/cudd/cuddSolve.c +0 -374
- data/ext/abc/src/bdd/cudd/cuddSplit.c +0 -694
- data/ext/abc/src/bdd/cudd/cuddSubsetHB.c +0 -1337
- data/ext/abc/src/bdd/cudd/cuddSubsetSP.c +0 -1657
- data/ext/abc/src/bdd/cudd/cuddSymmetry.c +0 -1706
- data/ext/abc/src/bdd/cudd/cuddTable.c +0 -3179
- data/ext/abc/src/bdd/cudd/cuddUtil.c +0 -3929
- data/ext/abc/src/bdd/cudd/cuddWindow.c +0 -1031
- data/ext/abc/src/bdd/cudd/cuddZddCount.c +0 -357
- data/ext/abc/src/bdd/cudd/cuddZddFuncs.c +0 -1638
- data/ext/abc/src/bdd/cudd/cuddZddGroup.c +0 -1344
- data/ext/abc/src/bdd/cudd/cuddZddIsop.c +0 -919
- data/ext/abc/src/bdd/cudd/cuddZddLin.c +0 -975
- data/ext/abc/src/bdd/cudd/cuddZddMisc.c +0 -286
- data/ext/abc/src/bdd/cudd/cuddZddPort.c +0 -389
- data/ext/abc/src/bdd/cudd/cuddZddReord.c +0 -1668
- data/ext/abc/src/bdd/cudd/cuddZddSetop.c +0 -1166
- data/ext/abc/src/bdd/cudd/cuddZddSymm.c +0 -1707
- data/ext/abc/src/bdd/cudd/cuddZddUtil.c +0 -1071
- data/ext/abc/src/bdd/cudd/license +0 -32
- data/ext/abc/src/bdd/cudd/module.make +0 -61
- data/ext/abc/src/bdd/cudd/r7x8.1.mat +0 -53
- data/ext/abc/src/bdd/cudd/r7x8.1.out +0 -377
- data/ext/abc/src/bdd/cudd/testcudd.c +0 -1073
- data/ext/abc/src/bdd/dsd/dsd.h +0 -134
- data/ext/abc/src/bdd/dsd/dsdApi.c +0 -102
- data/ext/abc/src/bdd/dsd/dsdCheck.c +0 -319
- data/ext/abc/src/bdd/dsd/dsdInt.h +0 -99
- data/ext/abc/src/bdd/dsd/dsdLocal.c +0 -342
- data/ext/abc/src/bdd/dsd/dsdMan.c +0 -119
- data/ext/abc/src/bdd/dsd/dsdProc.c +0 -1613
- data/ext/abc/src/bdd/dsd/dsdTree.c +0 -1181
- data/ext/abc/src/bdd/dsd/module.make +0 -6
- data/ext/abc/src/bdd/epd/epd.c +0 -1347
- data/ext/abc/src/bdd/epd/epd.h +0 -196
- data/ext/abc/src/bdd/epd/module.make +0 -1
- data/ext/abc/src/bdd/extrab/extraBdd.h +0 -317
- data/ext/abc/src/bdd/extrab/extraBddAuto.c +0 -1563
- data/ext/abc/src/bdd/extrab/extraBddCas.c +0 -1235
- data/ext/abc/src/bdd/extrab/extraBddImage.c +0 -1162
- data/ext/abc/src/bdd/extrab/extraBddKmap.c +0 -876
- data/ext/abc/src/bdd/extrab/extraBddMisc.c +0 -2591
- data/ext/abc/src/bdd/extrab/extraBddSymm.c +0 -1474
- data/ext/abc/src/bdd/extrab/extraBddThresh.c +0 -693
- data/ext/abc/src/bdd/extrab/extraBddTime.c +0 -660
- data/ext/abc/src/bdd/extrab/extraBddUnate.c +0 -646
- data/ext/abc/src/bdd/extrab/module.make +0 -9
- data/ext/abc/src/bdd/llb/llb.c +0 -52
- data/ext/abc/src/bdd/llb/llb.h +0 -96
- data/ext/abc/src/bdd/llb/llb1Cluster.c +0 -356
- data/ext/abc/src/bdd/llb/llb1Constr.c +0 -313
- data/ext/abc/src/bdd/llb/llb1Core.c +0 -222
- data/ext/abc/src/bdd/llb/llb1Group.c +0 -474
- data/ext/abc/src/bdd/llb/llb1Hint.c +0 -226
- data/ext/abc/src/bdd/llb/llb1Man.c +0 -218
- data/ext/abc/src/bdd/llb/llb1Matrix.c +0 -430
- data/ext/abc/src/bdd/llb/llb1Pivot.c +0 -254
- data/ext/abc/src/bdd/llb/llb1Reach.c +0 -904
- data/ext/abc/src/bdd/llb/llb1Sched.c +0 -257
- data/ext/abc/src/bdd/llb/llb2Bad.c +0 -138
- data/ext/abc/src/bdd/llb/llb2Core.c +0 -777
- data/ext/abc/src/bdd/llb/llb2Driver.c +0 -222
- data/ext/abc/src/bdd/llb/llb2Dump.c +0 -104
- data/ext/abc/src/bdd/llb/llb2Flow.c +0 -1376
- data/ext/abc/src/bdd/llb/llb2Image.c +0 -482
- data/ext/abc/src/bdd/llb/llb3Image.c +0 -1095
- data/ext/abc/src/bdd/llb/llb3Nonlin.c +0 -872
- data/ext/abc/src/bdd/llb/llb4Cex.c +0 -320
- data/ext/abc/src/bdd/llb/llb4Cluster.c +0 -452
- data/ext/abc/src/bdd/llb/llb4Image.c +0 -863
- data/ext/abc/src/bdd/llb/llb4Map.c +0 -123
- data/ext/abc/src/bdd/llb/llb4Nonlin.c +0 -1185
- data/ext/abc/src/bdd/llb/llb4Sweep.c +0 -589
- data/ext/abc/src/bdd/llb/llbInt.h +0 -212
- data/ext/abc/src/bdd/llb/module.make +0 -22
- data/ext/abc/src/bdd/mtr/module.make +0 -2
- data/ext/abc/src/bdd/mtr/mtr.h +0 -187
- data/ext/abc/src/bdd/mtr/mtrBasic.c +0 -453
- data/ext/abc/src/bdd/mtr/mtrGroup.c +0 -734
- data/ext/abc/src/bdd/mtr/mtrInt.h +0 -94
- data/ext/abc/src/bdd/reo/module.make +0 -8
- data/ext/abc/src/bdd/reo/reo.h +0 -234
- data/ext/abc/src/bdd/reo/reoApi.c +0 -294
- data/ext/abc/src/bdd/reo/reoCore.c +0 -441
- data/ext/abc/src/bdd/reo/reoProfile.c +0 -370
- data/ext/abc/src/bdd/reo/reoShuffle.c +0 -230
- data/ext/abc/src/bdd/reo/reoSift.c +0 -346
- data/ext/abc/src/bdd/reo/reoSwap.c +0 -905
- data/ext/abc/src/bdd/reo/reoTest.c +0 -256
- data/ext/abc/src/bdd/reo/reoTransfer.c +0 -206
- data/ext/abc/src/bdd/reo/reoUnits.c +0 -190
- data/ext/abc/src/bool/bdc/bdc.h +0 -98
- data/ext/abc/src/bool/bdc/bdcCore.c +0 -374
- data/ext/abc/src/bool/bdc/bdcDec.c +0 -751
- data/ext/abc/src/bool/bdc/bdcInt.h +0 -165
- data/ext/abc/src/bool/bdc/bdcSpfd.c +0 -1184
- data/ext/abc/src/bool/bdc/bdcTable.c +0 -134
- data/ext/abc/src/bool/bdc/bdc_.c +0 -54
- data/ext/abc/src/bool/bdc/module.make +0 -5
- data/ext/abc/src/bool/dec/dec.h +0 -725
- data/ext/abc/src/bool/dec/decAbc.c +0 -358
- data/ext/abc/src/bool/dec/decFactor.c +0 -403
- data/ext/abc/src/bool/dec/decMan.c +0 -88
- data/ext/abc/src/bool/dec/decPrint.c +0 -289
- data/ext/abc/src/bool/dec/decUtil.c +0 -148
- data/ext/abc/src/bool/dec/module.make +0 -5
- data/ext/abc/src/bool/deco/deco.h +0 -714
- data/ext/abc/src/bool/deco/module.make +0 -1
- data/ext/abc/src/bool/kit/cloud.c +0 -993
- data/ext/abc/src/bool/kit/cloud.h +0 -254
- data/ext/abc/src/bool/kit/kit.h +0 -655
- data/ext/abc/src/bool/kit/kitAig.c +0 -126
- data/ext/abc/src/bool/kit/kitBdd.c +0 -243
- data/ext/abc/src/bool/kit/kitCloud.c +0 -378
- data/ext/abc/src/bool/kit/kitDec.c +0 -343
- data/ext/abc/src/bool/kit/kitDsd.c +0 -3285
- data/ext/abc/src/bool/kit/kitFactor.c +0 -344
- data/ext/abc/src/bool/kit/kitGraph.c +0 -402
- data/ext/abc/src/bool/kit/kitHop.c +0 -200
- data/ext/abc/src/bool/kit/kitIsop.c +0 -365
- data/ext/abc/src/bool/kit/kitPerm.c +0 -357
- data/ext/abc/src/bool/kit/kitPla.c +0 -535
- data/ext/abc/src/bool/kit/kitSop.c +0 -579
- data/ext/abc/src/bool/kit/kitTruth.c +0 -2224
- data/ext/abc/src/bool/kit/kit_.c +0 -53
- data/ext/abc/src/bool/kit/module.make +0 -11
- data/ext/abc/src/bool/lucky/lucky.c +0 -705
- data/ext/abc/src/bool/lucky/lucky.h +0 -44
- data/ext/abc/src/bool/lucky/luckyFast16.c +0 -872
- data/ext/abc/src/bool/lucky/luckyFast6.c +0 -285
- data/ext/abc/src/bool/lucky/luckyInt.h +0 -136
- data/ext/abc/src/bool/lucky/luckyRead.c +0 -333
- data/ext/abc/src/bool/lucky/luckySimple.c +0 -307
- data/ext/abc/src/bool/lucky/luckySwap.c +0 -402
- data/ext/abc/src/bool/lucky/luckySwapIJ.c +0 -102
- data/ext/abc/src/bool/lucky/module.make +0 -7
- data/ext/abc/src/bool/rpo/literal.h +0 -297
- data/ext/abc/src/bool/rpo/module.make +0 -1
- data/ext/abc/src/bool/rpo/rpo.c +0 -383
- data/ext/abc/src/bool/rpo/rpo.h +0 -61
- data/ext/abc/src/bool/rsb/module.make +0 -2
- data/ext/abc/src/bool/rsb/rsb.h +0 -65
- data/ext/abc/src/bool/rsb/rsbDec6.c +0 -770
- data/ext/abc/src/bool/rsb/rsbInt.h +0 -84
- data/ext/abc/src/bool/rsb/rsbMan.c +0 -99
- data/ext/abc/src/demo.c +0 -181
- data/ext/abc/src/generic.c +0 -52
- data/ext/abc/src/generic.h +0 -63
- data/ext/abc/src/map/amap/amap.h +0 -97
- data/ext/abc/src/map/amap/amapCore.c +0 -110
- data/ext/abc/src/map/amap/amapGraph.c +0 -399
- data/ext/abc/src/map/amap/amapInt.h +0 -376
- data/ext/abc/src/map/amap/amapLib.c +0 -374
- data/ext/abc/src/map/amap/amapLiberty.c +0 -1103
- data/ext/abc/src/map/amap/amapMan.c +0 -104
- data/ext/abc/src/map/amap/amapMatch.c +0 -622
- data/ext/abc/src/map/amap/amapMerge.c +0 -541
- data/ext/abc/src/map/amap/amapOutput.c +0 -186
- data/ext/abc/src/map/amap/amapParse.c +0 -480
- data/ext/abc/src/map/amap/amapPerm.c +0 -380
- data/ext/abc/src/map/amap/amapRead.c +0 -494
- data/ext/abc/src/map/amap/amapRule.c +0 -462
- data/ext/abc/src/map/amap/amapUniq.c +0 -317
- data/ext/abc/src/map/amap/module.make +0 -13
- data/ext/abc/src/map/cov/cov.h +0 -109
- data/ext/abc/src/map/cov/covBuild.c +0 -544
- data/ext/abc/src/map/cov/covCore.c +0 -1030
- data/ext/abc/src/map/cov/covInt.h +0 -654
- data/ext/abc/src/map/cov/covMan.c +0 -149
- data/ext/abc/src/map/cov/covMinEsop.c +0 -304
- data/ext/abc/src/map/cov/covMinMan.c +0 -118
- data/ext/abc/src/map/cov/covMinSop.c +0 -620
- data/ext/abc/src/map/cov/covMinUtil.c +0 -343
- data/ext/abc/src/map/cov/covTest.c +0 -422
- data/ext/abc/src/map/cov/module.make +0 -7
- data/ext/abc/src/map/fpga/fpga.c +0 -288
- data/ext/abc/src/map/fpga/fpga.h +0 -175
- data/ext/abc/src/map/fpga/fpgaCore.c +0 -194
- data/ext/abc/src/map/fpga/fpgaCreate.c +0 -584
- data/ext/abc/src/map/fpga/fpgaCut.c +0 -1186
- data/ext/abc/src/map/fpga/fpgaCutUtils.c +0 -476
- data/ext/abc/src/map/fpga/fpgaFanout.c +0 -146
- data/ext/abc/src/map/fpga/fpgaGENERIC.c +0 -51
- data/ext/abc/src/map/fpga/fpgaInt.h +0 -389
- data/ext/abc/src/map/fpga/fpgaLib.c +0 -255
- data/ext/abc/src/map/fpga/fpgaMatch.c +0 -800
- data/ext/abc/src/map/fpga/fpgaSwitch.c +0 -156
- data/ext/abc/src/map/fpga/fpgaTime.c +0 -267
- data/ext/abc/src/map/fpga/fpgaTruth.c +0 -171
- data/ext/abc/src/map/fpga/fpgaUtils.c +0 -990
- data/ext/abc/src/map/fpga/fpgaVec.c +0 -413
- data/ext/abc/src/map/fpga/module.make +0 -13
- data/ext/abc/src/map/if/if.h +0 -689
- data/ext/abc/src/map/if/ifCache.c +0 -100
- data/ext/abc/src/map/if/ifCheck.c +0 -204
- data/ext/abc/src/map/if/ifCom.c +0 -372
- data/ext/abc/src/map/if/ifCore.c +0 -200
- data/ext/abc/src/map/if/ifCount.h +0 -521
- data/ext/abc/src/map/if/ifCut.c +0 -1479
- data/ext/abc/src/map/if/ifData2.c +0 -52
- data/ext/abc/src/map/if/ifDec07.c +0 -1125
- data/ext/abc/src/map/if/ifDec08.c +0 -507
- data/ext/abc/src/map/if/ifDec10.c +0 -506
- data/ext/abc/src/map/if/ifDec16.c +0 -2374
- data/ext/abc/src/map/if/ifDec75.c +0 -341
- data/ext/abc/src/map/if/ifDelay.c +0 -447
- data/ext/abc/src/map/if/ifDsd.c +0 -2838
- data/ext/abc/src/map/if/ifLibBox.c +0 -401
- data/ext/abc/src/map/if/ifLibLut.c +0 -505
- data/ext/abc/src/map/if/ifMan.c +0 -720
- data/ext/abc/src/map/if/ifMap.c +0 -680
- data/ext/abc/src/map/if/ifMatch2.c +0 -62
- data/ext/abc/src/map/if/ifReduce.c +0 -466
- data/ext/abc/src/map/if/ifSat.c +0 -548
- data/ext/abc/src/map/if/ifSelect.c +0 -601
- data/ext/abc/src/map/if/ifSeq.c +0 -397
- data/ext/abc/src/map/if/ifTest.c +0 -352
- data/ext/abc/src/map/if/ifTime.c +0 -525
- data/ext/abc/src/map/if/ifTruth.c +0 -339
- data/ext/abc/src/map/if/ifTune.c +0 -1452
- data/ext/abc/src/map/if/ifUtil.c +0 -632
- data/ext/abc/src/map/if/if_.c +0 -52
- data/ext/abc/src/map/if/module.make +0 -26
- data/ext/abc/src/map/mapper/mapper.c +0 -185
- data/ext/abc/src/map/mapper/mapper.h +0 -201
- data/ext/abc/src/map/mapper/mapperCanon.c +0 -277
- data/ext/abc/src/map/mapper/mapperCore.c +0 -231
- data/ext/abc/src/map/mapper/mapperCreate.c +0 -587
- data/ext/abc/src/map/mapper/mapperCut.c +0 -1178
- data/ext/abc/src/map/mapper/mapperCutUtils.c +0 -279
- data/ext/abc/src/map/mapper/mapperFanout.c +0 -146
- data/ext/abc/src/map/mapper/mapperInt.h +0 -469
- data/ext/abc/src/map/mapper/mapperLib.c +0 -258
- data/ext/abc/src/map/mapper/mapperMatch.c +0 -664
- data/ext/abc/src/map/mapper/mapperRefs.c +0 -540
- data/ext/abc/src/map/mapper/mapperSuper.c +0 -456
- data/ext/abc/src/map/mapper/mapperSwitch.c +0 -229
- data/ext/abc/src/map/mapper/mapperTable.c +0 -407
- data/ext/abc/src/map/mapper/mapperTime.c +0 -459
- data/ext/abc/src/map/mapper/mapperTree.c +0 -1042
- data/ext/abc/src/map/mapper/mapperTruth.c +0 -315
- data/ext/abc/src/map/mapper/mapperUtils.c +0 -898
- data/ext/abc/src/map/mapper/mapperVec.c +0 -344
- data/ext/abc/src/map/mapper/module.make +0 -17
- data/ext/abc/src/map/mio/exp.h +0 -343
- data/ext/abc/src/map/mio/mio.c +0 -728
- data/ext/abc/src/map/mio/mio.h +0 -242
- data/ext/abc/src/map/mio/mioApi.c +0 -254
- data/ext/abc/src/map/mio/mioForm.c +0 -307
- data/ext/abc/src/map/mio/mioFunc.c +0 -327
- data/ext/abc/src/map/mio/mioInt.h +0 -160
- data/ext/abc/src/map/mio/mioParse.c +0 -504
- data/ext/abc/src/map/mio/mioRead.c +0 -780
- data/ext/abc/src/map/mio/mioSop.c +0 -333
- data/ext/abc/src/map/mio/mioUtils.c +0 -1752
- data/ext/abc/src/map/mio/module.make +0 -7
- data/ext/abc/src/map/mpm/module.make +0 -11
- data/ext/abc/src/map/mpm/mpm.c +0 -55
- data/ext/abc/src/map/mpm/mpm.h +0 -98
- data/ext/abc/src/map/mpm/mpmAbc.c +0 -350
- data/ext/abc/src/map/mpm/mpmCore.c +0 -115
- data/ext/abc/src/map/mpm/mpmDsd.c +0 -1055
- data/ext/abc/src/map/mpm/mpmGates.c +0 -307
- data/ext/abc/src/map/mpm/mpmInt.h +0 -265
- data/ext/abc/src/map/mpm/mpmLib.c +0 -74
- data/ext/abc/src/map/mpm/mpmMan.c +0 -207
- data/ext/abc/src/map/mpm/mpmMap.c +0 -872
- data/ext/abc/src/map/mpm/mpmMig.c +0 -204
- data/ext/abc/src/map/mpm/mpmMig.h +0 -358
- data/ext/abc/src/map/mpm/mpmPre.c +0 -1029
- data/ext/abc/src/map/mpm/mpmTruth.c +0 -239
- data/ext/abc/src/map/mpm/mpmUtil.c +0 -52
- data/ext/abc/src/map/scl/module.make +0 -11
- data/ext/abc/src/map/scl/scl.c +0 -2042
- data/ext/abc/src/map/scl/scl.h +0 -58
- data/ext/abc/src/map/scl/sclBufSize.c +0 -518
- data/ext/abc/src/map/scl/sclBuffer.c +0 -1010
- data/ext/abc/src/map/scl/sclCon.h +0 -293
- data/ext/abc/src/map/scl/sclDnsize.c +0 -378
- data/ext/abc/src/map/scl/sclLib.h +0 -770
- data/ext/abc/src/map/scl/sclLibScl.c +0 -848
- data/ext/abc/src/map/scl/sclLibUtil.c +0 -1078
- data/ext/abc/src/map/scl/sclLiberty.c +0 -1697
- data/ext/abc/src/map/scl/sclLoad.c +0 -238
- data/ext/abc/src/map/scl/sclSize.c +0 -915
- data/ext/abc/src/map/scl/sclSize.h +0 -594
- data/ext/abc/src/map/scl/sclTime.h +0 -234
- data/ext/abc/src/map/scl/sclUpsize.c +0 -1045
- data/ext/abc/src/map/scl/sclUtil.c +0 -320
- data/ext/abc/src/map/super/module.make +0 -3
- data/ext/abc/src/map/super/super.c +0 -333
- data/ext/abc/src/map/super/super.h +0 -62
- data/ext/abc/src/map/super/superAnd.c +0 -701
- data/ext/abc/src/map/super/superGENERIC.c +0 -51
- data/ext/abc/src/map/super/superGate.c +0 -1473
- data/ext/abc/src/map/super/superInt.h +0 -64
- data/ext/abc/src/map/super/superWrite.c +0 -81
- data/ext/abc/src/misc/avl/avl.c +0 -621
- data/ext/abc/src/misc/avl/avl.doc +0 -166
- data/ext/abc/src/misc/avl/avl.h +0 -91
- data/ext/abc/src/misc/bar/bar.c +0 -193
- data/ext/abc/src/misc/bar/bar.h +0 -78
- data/ext/abc/src/misc/bar/module.make +0 -1
- data/ext/abc/src/misc/bbl/bblif.c +0 -1518
- data/ext/abc/src/misc/bbl/bblif.h +0 -285
- data/ext/abc/src/misc/bbl/module.make +0 -1
- data/ext/abc/src/misc/bzlib/CHANGES +0 -319
- data/ext/abc/src/misc/bzlib/LICENSE +0 -42
- data/ext/abc/src/misc/bzlib/blocksort.c +0 -1098
- data/ext/abc/src/misc/bzlib/bzip2.txt +0 -391
- data/ext/abc/src/misc/bzlib/bzlib.c +0 -1588
- data/ext/abc/src/misc/bzlib/bzlib.h +0 -287
- data/ext/abc/src/misc/bzlib/bzlib_private.h +0 -513
- data/ext/abc/src/misc/bzlib/compress.c +0 -677
- data/ext/abc/src/misc/bzlib/crctable.c +0 -109
- data/ext/abc/src/misc/bzlib/decompress.c +0 -631
- data/ext/abc/src/misc/bzlib/huffman.c +0 -210
- data/ext/abc/src/misc/bzlib/link.txt +0 -2
- data/ext/abc/src/misc/bzlib/manual.html +0 -2540
- data/ext/abc/src/misc/bzlib/module.make +0 -7
- data/ext/abc/src/misc/bzlib/randtable.c +0 -89
- data/ext/abc/src/misc/espresso/cofactor.c +0 -389
- data/ext/abc/src/misc/espresso/cols.c +0 -319
- data/ext/abc/src/misc/espresso/compl.c +0 -685
- data/ext/abc/src/misc/espresso/contain.c +0 -450
- data/ext/abc/src/misc/espresso/cubehack.c +0 -143
- data/ext/abc/src/misc/espresso/cubestr.c +0 -157
- data/ext/abc/src/misc/espresso/cvrin.c +0 -816
- data/ext/abc/src/misc/espresso/cvrm.c +0 -544
- data/ext/abc/src/misc/espresso/cvrmisc.c +0 -147
- data/ext/abc/src/misc/espresso/cvrout.c +0 -614
- data/ext/abc/src/misc/espresso/dominate.c +0 -103
- data/ext/abc/src/misc/espresso/equiv.c +0 -99
- data/ext/abc/src/misc/espresso/espresso.c +0 -144
- data/ext/abc/src/misc/espresso/espresso.h +0 -786
- data/ext/abc/src/misc/espresso/essen.c +0 -184
- data/ext/abc/src/misc/espresso/exact.c +0 -186
- data/ext/abc/src/misc/espresso/expand.c +0 -700
- data/ext/abc/src/misc/espresso/gasp.c +0 -233
- data/ext/abc/src/misc/espresso/gimpel.c +0 -112
- data/ext/abc/src/misc/espresso/globals.c +0 -81
- data/ext/abc/src/misc/espresso/hack.c +0 -646
- data/ext/abc/src/misc/espresso/indep.c +0 -139
- data/ext/abc/src/misc/espresso/irred.c +0 -445
- data/ext/abc/src/misc/espresso/main.c +0 -751
- data/ext/abc/src/misc/espresso/main.h +0 -122
- data/ext/abc/src/misc/espresso/map.c +0 -122
- data/ext/abc/src/misc/espresso/matrix.c +0 -579
- data/ext/abc/src/misc/espresso/mincov.c +0 -383
- data/ext/abc/src/misc/espresso/mincov.h +0 -11
- data/ext/abc/src/misc/espresso/mincov_int.h +0 -55
- data/ext/abc/src/misc/espresso/module.make +0 -39
- data/ext/abc/src/misc/espresso/opo.c +0 -629
- data/ext/abc/src/misc/espresso/pair.c +0 -685
- data/ext/abc/src/misc/espresso/part.c +0 -127
- data/ext/abc/src/misc/espresso/primes.c +0 -175
- data/ext/abc/src/misc/espresso/reduce.c +0 -263
- data/ext/abc/src/misc/espresso/rows.c +0 -319
- data/ext/abc/src/misc/espresso/set.c +0 -825
- data/ext/abc/src/misc/espresso/setc.c +0 -488
- data/ext/abc/src/misc/espresso/sharp.c +0 -252
- data/ext/abc/src/misc/espresso/sminterf.c +0 -49
- data/ext/abc/src/misc/espresso/solution.c +0 -119
- data/ext/abc/src/misc/espresso/sparse.c +0 -151
- data/ext/abc/src/misc/espresso/sparse.h +0 -143
- data/ext/abc/src/misc/espresso/sparse_int.h +0 -121
- data/ext/abc/src/misc/espresso/unate.c +0 -446
- data/ext/abc/src/misc/espresso/util_old.h +0 -309
- data/ext/abc/src/misc/espresso/verify.c +0 -198
- data/ext/abc/src/misc/extra/extra.h +0 -417
- data/ext/abc/src/misc/extra/extraUtilBitMatrix.c +0 -420
- data/ext/abc/src/misc/extra/extraUtilCanon.c +0 -691
- data/ext/abc/src/misc/extra/extraUtilCube.c +0 -279
- data/ext/abc/src/misc/extra/extraUtilDsd.c +0 -1271
- data/ext/abc/src/misc/extra/extraUtilEnum.c +0 -680
- data/ext/abc/src/misc/extra/extraUtilFile.c +0 -887
- data/ext/abc/src/misc/extra/extraUtilMemory.c +0 -628
- data/ext/abc/src/misc/extra/extraUtilMisc.c +0 -2580
- data/ext/abc/src/misc/extra/extraUtilPerm.c +0 -933
- data/ext/abc/src/misc/extra/extraUtilPrime.c +0 -602
- data/ext/abc/src/misc/extra/extraUtilProgress.c +0 -185
- data/ext/abc/src/misc/extra/extraUtilReader.c +0 -390
- data/ext/abc/src/misc/extra/extraUtilSupp.c +0 -532
- data/ext/abc/src/misc/extra/extraUtilTruth.c +0 -1153
- data/ext/abc/src/misc/extra/extraUtilUtil.c +0 -421
- data/ext/abc/src/misc/extra/extraZddTrunc.c +0 -338
- data/ext/abc/src/misc/extra/module.make +0 -14
- data/ext/abc/src/misc/hash/hash.h +0 -70
- data/ext/abc/src/misc/hash/hashFlt.h +0 -339
- data/ext/abc/src/misc/hash/hashGen.h +0 -367
- data/ext/abc/src/misc/hash/hashInt.h +0 -302
- data/ext/abc/src/misc/hash/hashPtr.h +0 -339
- data/ext/abc/src/misc/hash/module.make +0 -1
- data/ext/abc/src/misc/mem/mem.c +0 -605
- data/ext/abc/src/misc/mem/mem.h +0 -75
- data/ext/abc/src/misc/mem/mem2.h +0 -271
- data/ext/abc/src/misc/mem/module.make +0 -1
- data/ext/abc/src/misc/mvc/module.make +0 -15
- data/ext/abc/src/misc/mvc/mvc.c +0 -51
- data/ext/abc/src/misc/mvc/mvc.h +0 -739
- data/ext/abc/src/misc/mvc/mvcApi.c +0 -238
- data/ext/abc/src/misc/mvc/mvcCompare.c +0 -374
- data/ext/abc/src/misc/mvc/mvcContain.c +0 -178
- data/ext/abc/src/misc/mvc/mvcCover.c +0 -256
- data/ext/abc/src/misc/mvc/mvcCube.c +0 -180
- data/ext/abc/src/misc/mvc/mvcDivide.c +0 -442
- data/ext/abc/src/misc/mvc/mvcDivisor.c +0 -95
- data/ext/abc/src/misc/mvc/mvcList.c +0 -367
- data/ext/abc/src/misc/mvc/mvcLits.c +0 -350
- data/ext/abc/src/misc/mvc/mvcMan.c +0 -82
- data/ext/abc/src/misc/mvc/mvcOpAlg.c +0 -168
- data/ext/abc/src/misc/mvc/mvcOpBool.c +0 -156
- data/ext/abc/src/misc/mvc/mvcPrint.c +0 -225
- data/ext/abc/src/misc/mvc/mvcSort.c +0 -146
- data/ext/abc/src/misc/mvc/mvcUtils.c +0 -873
- data/ext/abc/src/misc/nm/module.make +0 -2
- data/ext/abc/src/misc/nm/nm.h +0 -96
- data/ext/abc/src/misc/nm/nmApi.c +0 -278
- data/ext/abc/src/misc/nm/nmInt.h +0 -94
- data/ext/abc/src/misc/nm/nmTable.c +0 -310
- data/ext/abc/src/misc/parse/module.make +0 -2
- data/ext/abc/src/misc/parse/parse.h +0 -62
- data/ext/abc/src/misc/parse/parseCore.c +0 -536
- data/ext/abc/src/misc/parse/parseEqn.c +0 -362
- data/ext/abc/src/misc/parse/parseInt.h +0 -77
- data/ext/abc/src/misc/parse/parseStack.c +0 -248
- data/ext/abc/src/misc/st/module.make +0 -2
- data/ext/abc/src/misc/st/st.c +0 -561
- data/ext/abc/src/misc/st/st.h +0 -121
- data/ext/abc/src/misc/st/stmm.c +0 -627
- data/ext/abc/src/misc/st/stmm.h +0 -147
- data/ext/abc/src/misc/tim/module.make +0 -5
- data/ext/abc/src/misc/tim/tim.c +0 -39
- data/ext/abc/src/misc/tim/tim.h +0 -184
- data/ext/abc/src/misc/tim/timBox.c +0 -326
- data/ext/abc/src/misc/tim/timDump.c +0 -201
- data/ext/abc/src/misc/tim/timInt.h +0 -148
- data/ext/abc/src/misc/tim/timMan.c +0 -807
- data/ext/abc/src/misc/tim/timTime.c +0 -267
- data/ext/abc/src/misc/tim/timTrav.c +0 -185
- data/ext/abc/src/misc/util/abc_global.h +0 -416
- data/ext/abc/src/misc/util/abc_namespaces.h +0 -58
- data/ext/abc/src/misc/util/module.make +0 -8
- data/ext/abc/src/misc/util/utilBridge.c +0 -564
- data/ext/abc/src/misc/util/utilCex.c +0 -574
- data/ext/abc/src/misc/util/utilCex.h +0 -84
- data/ext/abc/src/misc/util/utilColor.c +0 -124
- data/ext/abc/src/misc/util/utilDouble.h +0 -222
- data/ext/abc/src/misc/util/utilFile.c +0 -221
- data/ext/abc/src/misc/util/utilFloat.h +0 -226
- data/ext/abc/src/misc/util/utilIsop.c +0 -1139
- data/ext/abc/src/misc/util/utilMem.c +0 -341
- data/ext/abc/src/misc/util/utilMem.h +0 -73
- data/ext/abc/src/misc/util/utilNam.c +0 -622
- data/ext/abc/src/misc/util/utilNam.h +0 -80
- data/ext/abc/src/misc/util/utilSignal.c +0 -68
- data/ext/abc/src/misc/util/utilSignal.h +0 -58
- data/ext/abc/src/misc/util/utilSort.c +0 -789
- data/ext/abc/src/misc/util/utilTruth.h +0 -3076
- data/ext/abc/src/misc/util/util_hack.h +0 -46
- data/ext/abc/src/misc/vec/module.make +0 -1
- data/ext/abc/src/misc/vec/vec.h +0 -74
- data/ext/abc/src/misc/vec/vecAtt.h +0 -298
- data/ext/abc/src/misc/vec/vecBit.h +0 -636
- data/ext/abc/src/misc/vec/vecFlt.h +0 -826
- data/ext/abc/src/misc/vec/vecHash.h +0 -280
- data/ext/abc/src/misc/vec/vecHsh.h +0 -590
- data/ext/abc/src/misc/vec/vecInt.h +0 -2078
- data/ext/abc/src/misc/vec/vecMem.h +0 -431
- data/ext/abc/src/misc/vec/vecPtr.h +0 -1160
- data/ext/abc/src/misc/vec/vecQue.h +0 -374
- data/ext/abc/src/misc/vec/vecSet.h +0 -299
- data/ext/abc/src/misc/vec/vecStr.h +0 -1072
- data/ext/abc/src/misc/vec/vecVec.h +0 -646
- data/ext/abc/src/misc/vec/vecWec.h +0 -738
- data/ext/abc/src/misc/vec/vecWrd.h +0 -1205
- data/ext/abc/src/misc/zlib/README +0 -115
- data/ext/abc/src/misc/zlib/adler32.c +0 -168
- data/ext/abc/src/misc/zlib/algorithm.txt +0 -209
- data/ext/abc/src/misc/zlib/compress_.c +0 -76
- data/ext/abc/src/misc/zlib/crc32.c +0 -433
- data/ext/abc/src/misc/zlib/crc32.h +0 -445
- data/ext/abc/src/misc/zlib/deflate.c +0 -1784
- data/ext/abc/src/misc/zlib/deflate.h +0 -346
- data/ext/abc/src/misc/zlib/gzclose.c +0 -33
- data/ext/abc/src/misc/zlib/gzguts.h +0 -147
- data/ext/abc/src/misc/zlib/gzlib.c +0 -517
- data/ext/abc/src/misc/zlib/gzread.c +0 -641
- data/ext/abc/src/misc/zlib/gzwrite.c +0 -520
- data/ext/abc/src/misc/zlib/infback.c +0 -631
- data/ext/abc/src/misc/zlib/inffast.c +0 -351
- data/ext/abc/src/misc/zlib/inffast.h +0 -15
- data/ext/abc/src/misc/zlib/inffixed.h +0 -98
- data/ext/abc/src/misc/zlib/inflate.c +0 -1457
- data/ext/abc/src/misc/zlib/inflate.h +0 -126
- data/ext/abc/src/misc/zlib/inftrees.c +0 -337
- data/ext/abc/src/misc/zlib/inftrees.h +0 -66
- data/ext/abc/src/misc/zlib/license +0 -31
- data/ext/abc/src/misc/zlib/link.txt +0 -1
- data/ext/abc/src/misc/zlib/module.make +0 -15
- data/ext/abc/src/misc/zlib/trees.c +0 -1216
- data/ext/abc/src/misc/zlib/trees.h +0 -132
- data/ext/abc/src/misc/zlib/uncompr.c +0 -67
- data/ext/abc/src/misc/zlib/zconf.h +0 -432
- data/ext/abc/src/misc/zlib/zlib.h +0 -1619
- data/ext/abc/src/misc/zlib/zutil.c +0 -318
- data/ext/abc/src/misc/zlib/zutil.h +0 -288
- data/ext/abc/src/opt/cgt/cgt.h +0 -87
- data/ext/abc/src/opt/cgt/cgtAig.c +0 -601
- data/ext/abc/src/opt/cgt/cgtCore.c +0 -328
- data/ext/abc/src/opt/cgt/cgtDecide.c +0 -300
- data/ext/abc/src/opt/cgt/cgtInt.h +0 -123
- data/ext/abc/src/opt/cgt/cgtMan.c +0 -179
- data/ext/abc/src/opt/cgt/cgtSat.c +0 -98
- data/ext/abc/src/opt/cgt/module.make +0 -5
- data/ext/abc/src/opt/csw/csw.h +0 -69
- data/ext/abc/src/opt/csw/cswCore.c +0 -100
- data/ext/abc/src/opt/csw/cswCut.c +0 -608
- data/ext/abc/src/opt/csw/cswInt.h +0 -160
- data/ext/abc/src/opt/csw/cswMan.c +0 -130
- data/ext/abc/src/opt/csw/cswTable.c +0 -166
- data/ext/abc/src/opt/csw/csw_.c +0 -53
- data/ext/abc/src/opt/csw/module.make +0 -4
- data/ext/abc/src/opt/cut/abcCut.c +0 -498
- data/ext/abc/src/opt/cut/cut.h +0 -172
- data/ext/abc/src/opt/cut/cutApi.c +0 -202
- data/ext/abc/src/opt/cut/cutCut.c +0 -364
- data/ext/abc/src/opt/cut/cutExpand.c +0 -189
- data/ext/abc/src/opt/cut/cutInt.h +0 -165
- data/ext/abc/src/opt/cut/cutList.h +0 -215
- data/ext/abc/src/opt/cut/cutMan.c +0 -320
- data/ext/abc/src/opt/cut/cutMerge.c +0 -662
- data/ext/abc/src/opt/cut/cutNode.c +0 -1004
- data/ext/abc/src/opt/cut/cutOracle.c +0 -424
- data/ext/abc/src/opt/cut/cutPre22.c +0 -994
- data/ext/abc/src/opt/cut/cutSeq.c +0 -232
- data/ext/abc/src/opt/cut/cutTruth.c +0 -232
- data/ext/abc/src/opt/cut/module.make +0 -9
- data/ext/abc/src/opt/dar/dar.h +0 -116
- data/ext/abc/src/opt/dar/darBalance.c +0 -761
- data/ext/abc/src/opt/dar/darCore.c +0 -348
- data/ext/abc/src/opt/dar/darCut.c +0 -837
- data/ext/abc/src/opt/dar/darData.c +0 -11294
- data/ext/abc/src/opt/dar/darInt.h +0 -169
- data/ext/abc/src/opt/dar/darLib.c +0 -1341
- data/ext/abc/src/opt/dar/darMan.c +0 -174
- data/ext/abc/src/opt/dar/darPrec.c +0 -394
- data/ext/abc/src/opt/dar/darRefact.c +0 -639
- data/ext/abc/src/opt/dar/darResub.c +0 -53
- data/ext/abc/src/opt/dar/darScript.c +0 -911
- data/ext/abc/src/opt/dar/dar_.c +0 -53
- data/ext/abc/src/opt/dar/module.make +0 -9
- data/ext/abc/src/opt/dau/dau.c +0 -53
- data/ext/abc/src/opt/dau/dau.h +0 -125
- data/ext/abc/src/opt/dau/dauArray.c +0 -257
- data/ext/abc/src/opt/dau/dauCanon.c +0 -1202
- data/ext/abc/src/opt/dau/dauCore.c +0 -112
- data/ext/abc/src/opt/dau/dauDivs.c +0 -111
- data/ext/abc/src/opt/dau/dauDsd.c +0 -2098
- data/ext/abc/src/opt/dau/dauDsd2.c +0 -660
- data/ext/abc/src/opt/dau/dauEnum.c +0 -253
- data/ext/abc/src/opt/dau/dauGia.c +0 -573
- data/ext/abc/src/opt/dau/dauInt.h +0 -70
- data/ext/abc/src/opt/dau/dauMerge.c +0 -824
- data/ext/abc/src/opt/dau/dauNonDsd.c +0 -903
- data/ext/abc/src/opt/dau/dauTree.c +0 -2022
- data/ext/abc/src/opt/dau/module.make +0 -9
- data/ext/abc/src/opt/dsc/dsc.c +0 -525
- data/ext/abc/src/opt/dsc/dsc.h +0 -91
- data/ext/abc/src/opt/dsc/module.make +0 -1
- data/ext/abc/src/opt/fret/fretFlow.c +0 -700
- data/ext/abc/src/opt/fret/fretInit.c +0 -1343
- data/ext/abc/src/opt/fret/fretMain.c +0 -1383
- data/ext/abc/src/opt/fret/fretTime.c +0 -766
- data/ext/abc/src/opt/fret/fretime.h +0 -212
- data/ext/abc/src/opt/fret/module.make +0 -5
- data/ext/abc/src/opt/fsim/fsim.h +0 -101
- data/ext/abc/src/opt/fsim/fsimCore.c +0 -88
- data/ext/abc/src/opt/fsim/fsimFront.c +0 -369
- data/ext/abc/src/opt/fsim/fsimInt.h +0 -138
- data/ext/abc/src/opt/fsim/fsimMan.c +0 -212
- data/ext/abc/src/opt/fsim/fsimSim.c +0 -569
- data/ext/abc/src/opt/fsim/fsimSwitch.c +0 -40
- data/ext/abc/src/opt/fsim/fsimTsim.c +0 -416
- data/ext/abc/src/opt/fsim/module.make +0 -6
- data/ext/abc/src/opt/fxch/Fxch.c +0 -266
- data/ext/abc/src/opt/fxch/Fxch.h +0 -229
- data/ext/abc/src/opt/fxch/FxchDiv.c +0 -485
- data/ext/abc/src/opt/fxch/FxchMan.c +0 -785
- data/ext/abc/src/opt/fxch/FxchSCHashTable.c +0 -382
- data/ext/abc/src/opt/fxch/module.make +0 -4
- data/ext/abc/src/opt/fxu/fxu.c +0 -260
- data/ext/abc/src/opt/fxu/fxu.h +0 -97
- data/ext/abc/src/opt/fxu/fxuCreate.c +0 -447
- data/ext/abc/src/opt/fxu/fxuHeapD.c +0 -450
- data/ext/abc/src/opt/fxu/fxuHeapS.c +0 -449
- data/ext/abc/src/opt/fxu/fxuInt.h +0 -545
- data/ext/abc/src/opt/fxu/fxuList.c +0 -527
- data/ext/abc/src/opt/fxu/fxuMatrix.c +0 -377
- data/ext/abc/src/opt/fxu/fxuPair.c +0 -560
- data/ext/abc/src/opt/fxu/fxuPrint.c +0 -202
- data/ext/abc/src/opt/fxu/fxuReduce.c +0 -213
- data/ext/abc/src/opt/fxu/fxuSelect.c +0 -608
- data/ext/abc/src/opt/fxu/fxuSingle.c +0 -289
- data/ext/abc/src/opt/fxu/fxuUpdate.c +0 -811
- data/ext/abc/src/opt/fxu/module.make +0 -12
- data/ext/abc/src/opt/lpk/lpk.h +0 -88
- data/ext/abc/src/opt/lpk/lpkAbcDec.c +0 -294
- data/ext/abc/src/opt/lpk/lpkAbcDsd.c +0 -617
- data/ext/abc/src/opt/lpk/lpkAbcMux.c +0 -240
- data/ext/abc/src/opt/lpk/lpkAbcUtil.c +0 -249
- data/ext/abc/src/opt/lpk/lpkCore.c +0 -694
- data/ext/abc/src/opt/lpk/lpkCut.c +0 -689
- data/ext/abc/src/opt/lpk/lpkInt.h +0 -250
- data/ext/abc/src/opt/lpk/lpkMan.c +0 -127
- data/ext/abc/src/opt/lpk/lpkMap.c +0 -210
- data/ext/abc/src/opt/lpk/lpkMulti.c +0 -513
- data/ext/abc/src/opt/lpk/lpkMux.c +0 -252
- data/ext/abc/src/opt/lpk/lpkSets.c +0 -445
- data/ext/abc/src/opt/lpk/lpk_.c +0 -53
- data/ext/abc/src/opt/lpk/module.make +0 -11
- data/ext/abc/src/opt/mfs/mfs.h +0 -89
- data/ext/abc/src/opt/mfs/mfsCore.c +0 -596
- data/ext/abc/src/opt/mfs/mfsCore_.c +0 -394
- data/ext/abc/src/opt/mfs/mfsDiv.c +0 -309
- data/ext/abc/src/opt/mfs/mfsGia.c +0 -301
- data/ext/abc/src/opt/mfs/mfsInt.h +0 -192
- data/ext/abc/src/opt/mfs/mfsInter.c +0 -398
- data/ext/abc/src/opt/mfs/mfsMan.c +0 -202
- data/ext/abc/src/opt/mfs/mfsResub.c +0 -622
- data/ext/abc/src/opt/mfs/mfsResub_.c +0 -567
- data/ext/abc/src/opt/mfs/mfsSat.c +0 -182
- data/ext/abc/src/opt/mfs/mfsStrash.c +0 -406
- data/ext/abc/src/opt/mfs/mfsWin.c +0 -117
- data/ext/abc/src/opt/mfs/mfs_.c +0 -52
- data/ext/abc/src/opt/mfs/module.make +0 -8
- data/ext/abc/src/opt/nwk/module.make +0 -14
- data/ext/abc/src/opt/nwk/ntlnwk.h +0 -113
- data/ext/abc/src/opt/nwk/nwk.h +0 -307
- data/ext/abc/src/opt/nwk/nwkAig.c +0 -299
- data/ext/abc/src/opt/nwk/nwkBidec.c +0 -177
- data/ext/abc/src/opt/nwk/nwkCheck.c +0 -76
- data/ext/abc/src/opt/nwk/nwkDfs.c +0 -664
- data/ext/abc/src/opt/nwk/nwkFanio.c +0 -320
- data/ext/abc/src/opt/nwk/nwkFlow.c +0 -606
- data/ext/abc/src/opt/nwk/nwkFlow_depth.c +0 -631
- data/ext/abc/src/opt/nwk/nwkMan.c +0 -278
- data/ext/abc/src/opt/nwk/nwkMap.c +0 -396
- data/ext/abc/src/opt/nwk/nwkMerge.c +0 -1046
- data/ext/abc/src/opt/nwk/nwkMerge.h +0 -153
- data/ext/abc/src/opt/nwk/nwkObj.c +0 -204
- data/ext/abc/src/opt/nwk/nwkSpeedup.c +0 -382
- data/ext/abc/src/opt/nwk/nwkStrash.c +0 -149
- data/ext/abc/src/opt/nwk/nwkTiming.c +0 -894
- data/ext/abc/src/opt/nwk/nwkUtil.c +0 -644
- data/ext/abc/src/opt/nwk/nwk_.c +0 -52
- data/ext/abc/src/opt/res/module.make +0 -7
- data/ext/abc/src/opt/res/res.h +0 -79
- data/ext/abc/src/opt/res/resCore.c +0 -427
- data/ext/abc/src/opt/res/resDivs.c +0 -290
- data/ext/abc/src/opt/res/resFilter.c +0 -439
- data/ext/abc/src/opt/res/resInt.h +0 -141
- data/ext/abc/src/opt/res/resSat.c +0 -414
- data/ext/abc/src/opt/res/resSim.c +0 -795
- data/ext/abc/src/opt/res/resSim_old.c +0 -526
- data/ext/abc/src/opt/res/resStrash.c +0 -122
- data/ext/abc/src/opt/res/resWin.c +0 -490
- data/ext/abc/src/opt/res/res_.c +0 -55
- data/ext/abc/src/opt/ret/module.make +0 -8
- data/ext/abc/src/opt/ret/retArea.c +0 -554
- data/ext/abc/src/opt/ret/retCore.c +0 -138
- data/ext/abc/src/opt/ret/retDelay.c +0 -315
- data/ext/abc/src/opt/ret/retFlow.c +0 -789
- data/ext/abc/src/opt/ret/retIncrem.c +0 -480
- data/ext/abc/src/opt/ret/retInit.c +0 -355
- data/ext/abc/src/opt/ret/retInt.h +0 -88
- data/ext/abc/src/opt/ret/retLvalue.c +0 -402
- data/ext/abc/src/opt/ret/ret_.c +0 -53
- data/ext/abc/src/opt/rwr/module.make +0 -7
- data/ext/abc/src/opt/rwr/rwr.h +0 -173
- data/ext/abc/src/opt/rwr/rwrDec.c +0 -155
- data/ext/abc/src/opt/rwr/rwrEva.c +0 -599
- data/ext/abc/src/opt/rwr/rwrExp.c +0 -336
- data/ext/abc/src/opt/rwr/rwrLib.c +0 -367
- data/ext/abc/src/opt/rwr/rwrMan.c +0 -323
- data/ext/abc/src/opt/rwr/rwrPrint.c +0 -271
- data/ext/abc/src/opt/rwr/rwrTemp.c +0 -126
- data/ext/abc/src/opt/rwr/rwrUtil.c +0 -661
- data/ext/abc/src/opt/rwt/module.make +0 -3
- data/ext/abc/src/opt/rwt/rwt.h +0 -165
- data/ext/abc/src/opt/rwt/rwtDec.c +0 -155
- data/ext/abc/src/opt/rwt/rwtMan.c +0 -363
- data/ext/abc/src/opt/rwt/rwtUtil.c +0 -663
- data/ext/abc/src/opt/sbd/module.make +0 -9
- data/ext/abc/src/opt/sbd/sbd.c +0 -122
- data/ext/abc/src/opt/sbd/sbd.h +0 -82
- data/ext/abc/src/opt/sbd/sbdCnf.c +0 -147
- data/ext/abc/src/opt/sbd/sbdCore.c +0 -2229
- data/ext/abc/src/opt/sbd/sbdCut.c +0 -872
- data/ext/abc/src/opt/sbd/sbdCut2.c +0 -431
- data/ext/abc/src/opt/sbd/sbdInt.h +0 -125
- data/ext/abc/src/opt/sbd/sbdLut.c +0 -311
- data/ext/abc/src/opt/sbd/sbdPath.c +0 -197
- data/ext/abc/src/opt/sbd/sbdSat.c +0 -793
- data/ext/abc/src/opt/sbd/sbdSim.c +0 -310
- data/ext/abc/src/opt/sbd/sbdWin.c +0 -464
- data/ext/abc/src/opt/sfm/module.make +0 -10
- data/ext/abc/src/opt/sfm/sfm.h +0 -107
- data/ext/abc/src/opt/sfm/sfmArea.c +0 -380
- data/ext/abc/src/opt/sfm/sfmCnf.c +0 -179
- data/ext/abc/src/opt/sfm/sfmCore.c +0 -306
- data/ext/abc/src/opt/sfm/sfmDec.c +0 -2168
- data/ext/abc/src/opt/sfm/sfmInt.h +0 -254
- data/ext/abc/src/opt/sfm/sfmLib.c +0 -766
- data/ext/abc/src/opt/sfm/sfmMit.c +0 -73
- data/ext/abc/src/opt/sfm/sfmNtk.c +0 -381
- data/ext/abc/src/opt/sfm/sfmSat.c +0 -273
- data/ext/abc/src/opt/sfm/sfmTim.c +0 -458
- data/ext/abc/src/opt/sfm/sfmWin.c +0 -481
- data/ext/abc/src/opt/sim/module.make +0 -9
- data/ext/abc/src/opt/sim/sim.h +0 -237
- data/ext/abc/src/opt/sim/simMan.c +0 -293
- data/ext/abc/src/opt/sim/simSat.c +0 -53
- data/ext/abc/src/opt/sim/simSeq.c +0 -176
- data/ext/abc/src/opt/sim/simSupp.c +0 -603
- data/ext/abc/src/opt/sim/simSwitch.c +0 -112
- data/ext/abc/src/opt/sim/simSym.c +0 -148
- data/ext/abc/src/opt/sim/simSymSat.c +0 -205
- data/ext/abc/src/opt/sim/simSymSim.c +0 -178
- data/ext/abc/src/opt/sim/simSymStr.c +0 -493
- data/ext/abc/src/opt/sim/simUtils.c +0 -718
- data/ext/abc/src/phys/place/Makefile +0 -30
- data/ext/abc/src/phys/place/README +0 -50
- data/ext/abc/src/phys/place/hpwl +0 -57
- data/ext/abc/src/phys/place/libhmetis.h +0 -39
- data/ext/abc/src/phys/place/module.make +0 -10
- data/ext/abc/src/phys/place/place_base.c +0 -350
- data/ext/abc/src/phys/place/place_base.h +0 -145
- data/ext/abc/src/phys/place/place_bin.c +0 -282
- data/ext/abc/src/phys/place/place_genqp.c +0 -314
- data/ext/abc/src/phys/place/place_gordian.c +0 -165
- data/ext/abc/src/phys/place/place_gordian.h +0 -86
- data/ext/abc/src/phys/place/place_inc.c +0 -111
- data/ext/abc/src/phys/place/place_io.c +0 -99
- data/ext/abc/src/phys/place/place_legalize.c +0 -28
- data/ext/abc/src/phys/place/place_pads.c +0 -146
- data/ext/abc/src/phys/place/place_partition.c +0 -1140
- data/ext/abc/src/phys/place/place_qpsolver.c +0 -1275
- data/ext/abc/src/phys/place/place_qpsolver.h +0 -139
- data/ext/abc/src/phys/place/place_test.c +0 -365
- data/ext/abc/src/proof/abs/abs.c +0 -52
- data/ext/abc/src/proof/abs/abs.h +0 -177
- data/ext/abc/src/proof/abs/absDup.c +0 -445
- data/ext/abc/src/proof/abs/absGla.c +0 -1901
- data/ext/abc/src/proof/abs/absGlaOld.c +0 -1956
- data/ext/abc/src/proof/abs/absIter.c +0 -148
- data/ext/abc/src/proof/abs/absOldCex.c +0 -873
- data/ext/abc/src/proof/abs/absOldRef.c +0 -474
- data/ext/abc/src/proof/abs/absOldSat.c +0 -986
- data/ext/abc/src/proof/abs/absOldSim.c +0 -477
- data/ext/abc/src/proof/abs/absOut.c +0 -458
- data/ext/abc/src/proof/abs/absPth.c +0 -205
- data/ext/abc/src/proof/abs/absRef.c +0 -751
- data/ext/abc/src/proof/abs/absRef.h +0 -129
- data/ext/abc/src/proof/abs/absRefJ.c +0 -916
- data/ext/abc/src/proof/abs/absRefJ.h +0 -67
- data/ext/abc/src/proof/abs/absRefSelect.c +0 -309
- data/ext/abc/src/proof/abs/absRpm.c +0 -874
- data/ext/abc/src/proof/abs/absRpmOld.c +0 -201
- data/ext/abc/src/proof/abs/absUtil.c +0 -257
- data/ext/abc/src/proof/abs/absVta.c +0 -1764
- data/ext/abc/src/proof/abs/module.make +0 -16
- data/ext/abc/src/proof/acec/acec.c +0 -52
- data/ext/abc/src/proof/acec/acec.h +0 -98
- data/ext/abc/src/proof/acec/acec2Mult.c +0 -1211
- data/ext/abc/src/proof/acec/acecBo.c +0 -216
- data/ext/abc/src/proof/acec/acecCl.c +0 -445
- data/ext/abc/src/proof/acec/acecCo.c +0 -429
- data/ext/abc/src/proof/acec/acecCore.c +0 -553
- data/ext/abc/src/proof/acec/acecCover.c +0 -263
- data/ext/abc/src/proof/acec/acecFadds.c +0 -1247
- data/ext/abc/src/proof/acec/acecInt.h +0 -105
- data/ext/abc/src/proof/acec/acecMult.c +0 -623
- data/ext/abc/src/proof/acec/acecNorm.c +0 -226
- data/ext/abc/src/proof/acec/acecOrder.c +0 -254
- data/ext/abc/src/proof/acec/acecPa.c +0 -277
- data/ext/abc/src/proof/acec/acecPo.c +0 -655
- data/ext/abc/src/proof/acec/acecPolyn.c +0 -445
- data/ext/abc/src/proof/acec/acecPool.c +0 -428
- data/ext/abc/src/proof/acec/acecRe.c +0 -602
- data/ext/abc/src/proof/acec/acecSt.c +0 -422
- data/ext/abc/src/proof/acec/acecStruct.c +0 -271
- data/ext/abc/src/proof/acec/acecTree.c +0 -783
- data/ext/abc/src/proof/acec/acecUtil.c +0 -122
- data/ext/abc/src/proof/acec/acecXor.c +0 -434
- data/ext/abc/src/proof/acec/module.make +0 -19
- data/ext/abc/src/proof/cec/cec.c +0 -53
- data/ext/abc/src/proof/cec/cec.h +0 -240
- data/ext/abc/src/proof/cec/cecCec.c +0 -580
- data/ext/abc/src/proof/cec/cecChoice.c +0 -410
- data/ext/abc/src/proof/cec/cecClass.c +0 -931
- data/ext/abc/src/proof/cec/cecCore.c +0 -554
- data/ext/abc/src/proof/cec/cecCorr.c +0 -1229
- data/ext/abc/src/proof/cec/cecInt.h +0 -227
- data/ext/abc/src/proof/cec/cecIso.c +0 -375
- data/ext/abc/src/proof/cec/cecMan.c +0 -297
- data/ext/abc/src/proof/cec/cecPat.c +0 -578
- data/ext/abc/src/proof/cec/cecSat.c +0 -1040
- data/ext/abc/src/proof/cec/cecSatG.c +0 -1048
- data/ext/abc/src/proof/cec/cecSeq.c +0 -449
- data/ext/abc/src/proof/cec/cecSim.c +0 -53
- data/ext/abc/src/proof/cec/cecSimBack.c +0 -194
- data/ext/abc/src/proof/cec/cecSolve.c +0 -1107
- data/ext/abc/src/proof/cec/cecSplit.c +0 -849
- data/ext/abc/src/proof/cec/cecSweep.c +0 -301
- data/ext/abc/src/proof/cec/cecSynth.c +0 -433
- data/ext/abc/src/proof/cec/module.make +0 -15
- data/ext/abc/src/proof/dch/dch.h +0 -91
- data/ext/abc/src/proof/dch/dchAig.c +0 -119
- data/ext/abc/src/proof/dch/dchChoice.c +0 -552
- data/ext/abc/src/proof/dch/dchClass.c +0 -611
- data/ext/abc/src/proof/dch/dchCnf.c +0 -334
- data/ext/abc/src/proof/dch/dchCore.c +0 -161
- data/ext/abc/src/proof/dch/dchInt.h +0 -170
- data/ext/abc/src/proof/dch/dchMan.c +0 -191
- data/ext/abc/src/proof/dch/dchSat.c +0 -167
- data/ext/abc/src/proof/dch/dchSim.c +0 -297
- data/ext/abc/src/proof/dch/dchSimSat.c +0 -260
- data/ext/abc/src/proof/dch/dchSweep.c +0 -146
- data/ext/abc/src/proof/dch/module.make +0 -10
- data/ext/abc/src/proof/fra/fra.h +0 -389
- data/ext/abc/src/proof/fra/fraBmc.c +0 -453
- data/ext/abc/src/proof/fra/fraCec.c +0 -574
- data/ext/abc/src/proof/fra/fraClass.c +0 -862
- data/ext/abc/src/proof/fra/fraClau.c +0 -745
- data/ext/abc/src/proof/fra/fraClaus.c +0 -1877
- data/ext/abc/src/proof/fra/fraCnf.c +0 -289
- data/ext/abc/src/proof/fra/fraCore.c +0 -490
- data/ext/abc/src/proof/fra/fraHot.c +0 -476
- data/ext/abc/src/proof/fra/fraImp.c +0 -732
- data/ext/abc/src/proof/fra/fraInd.c +0 -712
- data/ext/abc/src/proof/fra/fraIndVer.c +0 -166
- data/ext/abc/src/proof/fra/fraLcr.c +0 -708
- data/ext/abc/src/proof/fra/fraMan.c +0 -314
- data/ext/abc/src/proof/fra/fraPart.c +0 -269
- data/ext/abc/src/proof/fra/fraSat.c +0 -571
- data/ext/abc/src/proof/fra/fraSec.c +0 -693
- data/ext/abc/src/proof/fra/fraSim.c +0 -1173
- data/ext/abc/src/proof/fra/fra_.c +0 -53
- data/ext/abc/src/proof/fra/module.make +0 -17
- data/ext/abc/src/proof/fraig/fraig.h +0 -257
- data/ext/abc/src/proof/fraig/fraigApi.c +0 -299
- data/ext/abc/src/proof/fraig/fraigCanon.c +0 -223
- data/ext/abc/src/proof/fraig/fraigChoice.c +0 -246
- data/ext/abc/src/proof/fraig/fraigFanout.c +0 -180
- data/ext/abc/src/proof/fraig/fraigFeed.c +0 -914
- data/ext/abc/src/proof/fraig/fraigInt.h +0 -436
- data/ext/abc/src/proof/fraig/fraigMan.c +0 -546
- data/ext/abc/src/proof/fraig/fraigMem.c +0 -251
- data/ext/abc/src/proof/fraig/fraigNode.c +0 -319
- data/ext/abc/src/proof/fraig/fraigPrime.c +0 -113
- data/ext/abc/src/proof/fraig/fraigSat.c +0 -1463
- data/ext/abc/src/proof/fraig/fraigTable.c +0 -664
- data/ext/abc/src/proof/fraig/fraigUtil.c +0 -1039
- data/ext/abc/src/proof/fraig/fraigVec.c +0 -550
- data/ext/abc/src/proof/fraig/module.make +0 -12
- data/ext/abc/src/proof/int/int.h +0 -96
- data/ext/abc/src/proof/int/intCheck.c +0 -305
- data/ext/abc/src/proof/int/intContain.c +0 -341
- data/ext/abc/src/proof/int/intCore.c +0 -412
- data/ext/abc/src/proof/int/intCtrex.c +0 -168
- data/ext/abc/src/proof/int/intDup.c +0 -184
- data/ext/abc/src/proof/int/intFrames.c +0 -124
- data/ext/abc/src/proof/int/intInt.h +0 -143
- data/ext/abc/src/proof/int/intInter.c +0 -145
- data/ext/abc/src/proof/int/intM114.c +0 -323
- data/ext/abc/src/proof/int/intM114p.c +0 -443
- data/ext/abc/src/proof/int/intMan.c +0 -165
- data/ext/abc/src/proof/int/intUtil.c +0 -108
- data/ext/abc/src/proof/int/module.make +0 -10
- data/ext/abc/src/proof/int2/int2.h +0 -90
- data/ext/abc/src/proof/int2/int2Bmc.c +0 -355
- data/ext/abc/src/proof/int2/int2Core.c +0 -335
- data/ext/abc/src/proof/int2/int2Int.h +0 -164
- data/ext/abc/src/proof/int2/int2Refine.c +0 -154
- data/ext/abc/src/proof/int2/int2Util.c +0 -152
- data/ext/abc/src/proof/int2/module.make +0 -4
- data/ext/abc/src/proof/live/arenaViolation.c +0 -549
- data/ext/abc/src/proof/live/combination.c +0 -463
- data/ext/abc/src/proof/live/disjunctiveMonotone.c +0 -757
- data/ext/abc/src/proof/live/kLiveConstraints.c +0 -177
- data/ext/abc/src/proof/live/kliveness.c +0 -816
- data/ext/abc/src/proof/live/liveness.c +0 -2575
- data/ext/abc/src/proof/live/liveness_sim.c +0 -849
- data/ext/abc/src/proof/live/ltl_parser.c +0 -839
- data/ext/abc/src/proof/live/module.make +0 -9
- data/ext/abc/src/proof/live/monotone.c +0 -507
- data/ext/abc/src/proof/pdr/module.make +0 -10
- data/ext/abc/src/proof/pdr/pdr.c +0 -53
- data/ext/abc/src/proof/pdr/pdr.h +0 -109
- data/ext/abc/src/proof/pdr/pdrClass.c +0 -223
- data/ext/abc/src/proof/pdr/pdrCnf.c +0 -455
- data/ext/abc/src/proof/pdr/pdrCore.c +0 -1451
- data/ext/abc/src/proof/pdr/pdrIncr.c +0 -1046
- data/ext/abc/src/proof/pdr/pdrInt.h +0 -275
- data/ext/abc/src/proof/pdr/pdrInv.c +0 -985
- data/ext/abc/src/proof/pdr/pdrMan.c +0 -549
- data/ext/abc/src/proof/pdr/pdrSat.c +0 -395
- data/ext/abc/src/proof/pdr/pdrTsim.c +0 -502
- data/ext/abc/src/proof/pdr/pdrTsim2.c +0 -550
- data/ext/abc/src/proof/pdr/pdrTsim3.c +0 -361
- data/ext/abc/src/proof/pdr/pdrUtil.c +0 -800
- data/ext/abc/src/proof/ssc/module.make +0 -5
- data/ext/abc/src/proof/ssc/ssc.h +0 -78
- data/ext/abc/src/proof/ssc/sscClass.c +0 -326
- data/ext/abc/src/proof/ssc/sscCore.c +0 -469
- data/ext/abc/src/proof/ssc/sscInt.h +0 -135
- data/ext/abc/src/proof/ssc/sscSat.c +0 -430
- data/ext/abc/src/proof/ssc/sscSim.c +0 -364
- data/ext/abc/src/proof/ssc/sscUtil.c +0 -173
- data/ext/abc/src/proof/ssw/module.make +0 -20
- data/ext/abc/src/proof/ssw/ssw.h +0 -170
- data/ext/abc/src/proof/ssw/sswAig.c +0 -258
- data/ext/abc/src/proof/ssw/sswBmc.c +0 -224
- data/ext/abc/src/proof/ssw/sswClass.c +0 -1170
- data/ext/abc/src/proof/ssw/sswCnf.c +0 -427
- data/ext/abc/src/proof/ssw/sswConstr.c +0 -718
- data/ext/abc/src/proof/ssw/sswCore.c +0 -539
- data/ext/abc/src/proof/ssw/sswDyn.c +0 -491
- data/ext/abc/src/proof/ssw/sswFilter.c +0 -493
- data/ext/abc/src/proof/ssw/sswInt.h +0 -302
- data/ext/abc/src/proof/ssw/sswIslands.c +0 -598
- data/ext/abc/src/proof/ssw/sswLcorr.c +0 -337
- data/ext/abc/src/proof/ssw/sswMan.c +0 -217
- data/ext/abc/src/proof/ssw/sswPairs.c +0 -480
- data/ext/abc/src/proof/ssw/sswPart.c +0 -140
- data/ext/abc/src/proof/ssw/sswRarity.c +0 -1385
- data/ext/abc/src/proof/ssw/sswRarity2.c +0 -518
- data/ext/abc/src/proof/ssw/sswSat.c +0 -307
- data/ext/abc/src/proof/ssw/sswSemi.c +0 -323
- data/ext/abc/src/proof/ssw/sswSim.c +0 -1406
- data/ext/abc/src/proof/ssw/sswSimSat.c +0 -124
- data/ext/abc/src/proof/ssw/sswSweep.c +0 -440
- data/ext/abc/src/proof/ssw/sswUnique.c +0 -196
- data/ext/abc/src/sat/bmc/bmc.c +0 -52
- data/ext/abc/src/sat/bmc/bmc.h +0 -205
- data/ext/abc/src/sat/bmc/bmcBCore.c +0 -273
- data/ext/abc/src/sat/bmc/bmcBmc.c +0 -377
- data/ext/abc/src/sat/bmc/bmcBmc2.c +0 -944
- data/ext/abc/src/sat/bmc/bmcBmc3.c +0 -1893
- data/ext/abc/src/sat/bmc/bmcBmcAnd.c +0 -1100
- data/ext/abc/src/sat/bmc/bmcBmcG.c +0 -455
- data/ext/abc/src/sat/bmc/bmcBmcS.c +0 -940
- data/ext/abc/src/sat/bmc/bmcBmci.c +0 -344
- data/ext/abc/src/sat/bmc/bmcCexCare.c +0 -476
- data/ext/abc/src/sat/bmc/bmcCexCut.c +0 -537
- data/ext/abc/src/sat/bmc/bmcCexDepth.c +0 -373
- data/ext/abc/src/sat/bmc/bmcCexMin1.c +0 -578
- data/ext/abc/src/sat/bmc/bmcCexMin2.c +0 -363
- data/ext/abc/src/sat/bmc/bmcCexTools.c +0 -852
- data/ext/abc/src/sat/bmc/bmcChain.c +0 -396
- data/ext/abc/src/sat/bmc/bmcClp.c +0 -1548
- data/ext/abc/src/sat/bmc/bmcEco.c +0 -312
- data/ext/abc/src/sat/bmc/bmcEnum.c +0 -223
- data/ext/abc/src/sat/bmc/bmcExpand.c +0 -172
- data/ext/abc/src/sat/bmc/bmcFault.c +0 -1710
- data/ext/abc/src/sat/bmc/bmcFx.c +0 -725
- data/ext/abc/src/sat/bmc/bmcGen.c +0 -193
- data/ext/abc/src/sat/bmc/bmcICheck.c +0 -540
- data/ext/abc/src/sat/bmc/bmcInse.c +0 -345
- data/ext/abc/src/sat/bmc/bmcLoad.c +0 -212
- data/ext/abc/src/sat/bmc/bmcMaj.c +0 -745
- data/ext/abc/src/sat/bmc/bmcMaj2.c +0 -852
- data/ext/abc/src/sat/bmc/bmcMaxi.c +0 -282
- data/ext/abc/src/sat/bmc/bmcMesh.c +0 -433
- data/ext/abc/src/sat/bmc/bmcMesh2.c +0 -449
- data/ext/abc/src/sat/bmc/bmcMulti.c +0 -296
- data/ext/abc/src/sat/bmc/bmcUnroll.c +0 -505
- data/ext/abc/src/sat/bmc/module.make +0 -31
- data/ext/abc/src/sat/bsat/license +0 -21
- data/ext/abc/src/sat/bsat/module.make +0 -14
- data/ext/abc/src/sat/bsat/satChecker.c +0 -193
- data/ext/abc/src/sat/bsat/satClause.h +0 -476
- data/ext/abc/src/sat/bsat/satInter.c +0 -1077
- data/ext/abc/src/sat/bsat/satInterA.c +0 -1090
- data/ext/abc/src/sat/bsat/satInterB.c +0 -1115
- data/ext/abc/src/sat/bsat/satInterP.c +0 -1096
- data/ext/abc/src/sat/bsat/satMem.c +0 -583
- data/ext/abc/src/sat/bsat/satMem.h +0 -85
- data/ext/abc/src/sat/bsat/satProof.c +0 -934
- data/ext/abc/src/sat/bsat/satProof2.h +0 -327
- data/ext/abc/src/sat/bsat/satSolver.c +0 -2417
- data/ext/abc/src/sat/bsat/satSolver.h +0 -639
- data/ext/abc/src/sat/bsat/satSolver2.c +0 -1998
- data/ext/abc/src/sat/bsat/satSolver2.h +0 -377
- data/ext/abc/src/sat/bsat/satSolver2i.c +0 -242
- data/ext/abc/src/sat/bsat/satSolver3.c +0 -2299
- data/ext/abc/src/sat/bsat/satSolver3.h +0 -622
- data/ext/abc/src/sat/bsat/satStore.c +0 -469
- data/ext/abc/src/sat/bsat/satStore.h +0 -158
- data/ext/abc/src/sat/bsat/satTrace.c +0 -112
- data/ext/abc/src/sat/bsat/satTruth.c +0 -299
- data/ext/abc/src/sat/bsat/satTruth.h +0 -89
- data/ext/abc/src/sat/bsat/satUtil.c +0 -358
- data/ext/abc/src/sat/bsat/satVec.h +0 -161
- data/ext/abc/src/sat/bsat2/AbcApi.cpp +0 -59
- data/ext/abc/src/sat/bsat2/Alg.h +0 -84
- data/ext/abc/src/sat/bsat2/Alloc.h +0 -131
- data/ext/abc/src/sat/bsat2/Dimacs.h +0 -89
- data/ext/abc/src/sat/bsat2/Heap.h +0 -149
- data/ext/abc/src/sat/bsat2/IntTypes.h +0 -47
- data/ext/abc/src/sat/bsat2/LICENSE +0 -21
- data/ext/abc/src/sat/bsat2/MainSat.cpp +0 -197
- data/ext/abc/src/sat/bsat2/MainSimp.cpp +0 -206
- data/ext/abc/src/sat/bsat2/Map.h +0 -193
- data/ext/abc/src/sat/bsat2/Options.cpp +0 -93
- data/ext/abc/src/sat/bsat2/Options.h +0 -387
- data/ext/abc/src/sat/bsat2/ParseUtils.h +0 -122
- data/ext/abc/src/sat/bsat2/Queue.h +0 -69
- data/ext/abc/src/sat/bsat2/README +0 -24
- data/ext/abc/src/sat/bsat2/ReleaseNotes-2.2.0.txt +0 -79
- data/ext/abc/src/sat/bsat2/SimpSolver.cpp +0 -720
- data/ext/abc/src/sat/bsat2/SimpSolver.h +0 -197
- data/ext/abc/src/sat/bsat2/Solver.cpp +0 -924
- data/ext/abc/src/sat/bsat2/Solver.h +0 -373
- data/ext/abc/src/sat/bsat2/SolverTypes.h +0 -407
- data/ext/abc/src/sat/bsat2/Sort.h +0 -98
- data/ext/abc/src/sat/bsat2/System.cpp +0 -95
- data/ext/abc/src/sat/bsat2/System.h +0 -60
- data/ext/abc/src/sat/bsat2/Vec.h +0 -130
- data/ext/abc/src/sat/bsat2/XAlloc.h +0 -45
- data/ext/abc/src/sat/bsat2/module.make +0 -7
- data/ext/abc/src/sat/bsat2/pstdint.h +0 -813
- data/ext/abc/src/sat/cnf/cnf.h +0 -202
- data/ext/abc/src/sat/cnf/cnfCore.c +0 -290
- data/ext/abc/src/sat/cnf/cnfCut.c +0 -376
- data/ext/abc/src/sat/cnf/cnfData.c +0 -4789
- data/ext/abc/src/sat/cnf/cnfFast.c +0 -697
- data/ext/abc/src/sat/cnf/cnfMan.c +0 -726
- data/ext/abc/src/sat/cnf/cnfMap.c +0 -362
- data/ext/abc/src/sat/cnf/cnfPost.c +0 -238
- data/ext/abc/src/sat/cnf/cnfUtil.c +0 -479
- data/ext/abc/src/sat/cnf/cnfWrite.c +0 -806
- data/ext/abc/src/sat/cnf/cnf_.c +0 -53
- data/ext/abc/src/sat/cnf/module.make +0 -9
- data/ext/abc/src/sat/csat/csat_apis.c +0 -778
- data/ext/abc/src/sat/csat/csat_apis.h +0 -226
- data/ext/abc/src/sat/csat/module.make +0 -1
- data/ext/abc/src/sat/glucose/AbcGlucose.cpp +0 -1372
- data/ext/abc/src/sat/glucose/AbcGlucose.h +0 -110
- data/ext/abc/src/sat/glucose/AbcGlucoseCmd.cpp +0 -144
- data/ext/abc/src/sat/glucose/Alg.h +0 -84
- data/ext/abc/src/sat/glucose/Alloc.h +0 -132
- data/ext/abc/src/sat/glucose/BoundedQueue.h +0 -110
- data/ext/abc/src/sat/glucose/Constants.h +0 -33
- data/ext/abc/src/sat/glucose/Dimacs.h +0 -89
- data/ext/abc/src/sat/glucose/Glucose.cpp +0 -1493
- data/ext/abc/src/sat/glucose/Heap.h +0 -150
- data/ext/abc/src/sat/glucose/IntTypes.h +0 -47
- data/ext/abc/src/sat/glucose/Map.h +0 -193
- data/ext/abc/src/sat/glucose/Options.cpp +0 -92
- data/ext/abc/src/sat/glucose/Options.h +0 -388
- data/ext/abc/src/sat/glucose/ParseUtils.h +0 -151
- data/ext/abc/src/sat/glucose/Queue.h +0 -69
- data/ext/abc/src/sat/glucose/SimpSolver.cpp +0 -774
- data/ext/abc/src/sat/glucose/SimpSolver.h +0 -204
- data/ext/abc/src/sat/glucose/Solver.h +0 -491
- data/ext/abc/src/sat/glucose/SolverTypes.h +0 -434
- data/ext/abc/src/sat/glucose/Sort.h +0 -98
- data/ext/abc/src/sat/glucose/System.cpp +0 -95
- data/ext/abc/src/sat/glucose/System.h +0 -60
- data/ext/abc/src/sat/glucose/Vec.h +0 -130
- data/ext/abc/src/sat/glucose/XAlloc.h +0 -47
- data/ext/abc/src/sat/glucose/module.make +0 -6
- data/ext/abc/src/sat/glucose/pstdint.h +0 -919
- data/ext/abc/src/sat/glucose/stdint.h +0 -1628
- data/ext/abc/src/sat/lsat/solver.h +0 -132
- data/ext/abc/src/sat/msat/module.make +0 -13
- data/ext/abc/src/sat/msat/msat.h +0 -168
- data/ext/abc/src/sat/msat/msatActivity.c +0 -165
- data/ext/abc/src/sat/msat/msatClause.c +0 -537
- data/ext/abc/src/sat/msat/msatClauseVec.c +0 -237
- data/ext/abc/src/sat/msat/msatInt.h +0 -295
- data/ext/abc/src/sat/msat/msatMem.c +0 -534
- data/ext/abc/src/sat/msat/msatOrderH.c +0 -415
- data/ext/abc/src/sat/msat/msatOrderJ.c +0 -477
- data/ext/abc/src/sat/msat/msatQueue.c +0 -162
- data/ext/abc/src/sat/msat/msatRead.c +0 -274
- data/ext/abc/src/sat/msat/msatSolverApi.c +0 -505
- data/ext/abc/src/sat/msat/msatSolverCore.c +0 -215
- data/ext/abc/src/sat/msat/msatSolverIo.c +0 -182
- data/ext/abc/src/sat/msat/msatSolverSearch.c +0 -634
- data/ext/abc/src/sat/msat/msatSort.c +0 -178
- data/ext/abc/src/sat/msat/msatVec.c +0 -500
- data/ext/abc/src/sat/proof/pr.c +0 -1264
- data/ext/abc/src/sat/proof/pr.h +0 -69
- data/ext/abc/src/sat/proof/stats.txt +0 -66
- data/ext/abc/src/sat/psat/m114p.h +0 -47
- data/ext/abc/src/sat/psat/m114p_types.h +0 -13
- data/ext/abc/src/sat/psat/module.make +0 -1
- data/ext/abc/src/sat/satoko/LICENSE +0 -22
- data/ext/abc/src/sat/satoko/act_clause.h +0 -43
- data/ext/abc/src/sat/satoko/act_var.h +0 -53
- data/ext/abc/src/sat/satoko/cdb.h +0 -106
- data/ext/abc/src/sat/satoko/clause.h +0 -77
- data/ext/abc/src/sat/satoko/cnf_reader.c +0 -157
- data/ext/abc/src/sat/satoko/module.make +0 -3
- data/ext/abc/src/sat/satoko/satoko.h +0 -147
- data/ext/abc/src/sat/satoko/solver.c +0 -771
- data/ext/abc/src/sat/satoko/solver.h +0 -260
- data/ext/abc/src/sat/satoko/solver_api.c +0 -669
- data/ext/abc/src/sat/satoko/types.h +0 -39
- data/ext/abc/src/sat/satoko/utils/b_queue.h +0 -81
- data/ext/abc/src/sat/satoko/utils/heap.h +0 -178
- data/ext/abc/src/sat/satoko/utils/mem.h +0 -23
- data/ext/abc/src/sat/satoko/utils/misc.h +0 -35
- data/ext/abc/src/sat/satoko/utils/sdbl.h +0 -133
- data/ext/abc/src/sat/satoko/utils/sort.h +0 -65
- data/ext/abc/src/sat/satoko/utils/vec/vec_char.h +0 -260
- data/ext/abc/src/sat/satoko/utils/vec/vec_flt.h +0 -246
- data/ext/abc/src/sat/satoko/utils/vec/vec_int.h +0 -240
- data/ext/abc/src/sat/satoko/utils/vec/vec_sdbl.h +0 -253
- data/ext/abc/src/sat/satoko/utils/vec/vec_uint.h +0 -268
- data/ext/abc/src/sat/satoko/watch_list.h +0 -203
- data/ext/abc/src/sat/xsat/license +0 -39
- data/ext/abc/src/sat/xsat/module.make +0 -3
- data/ext/abc/src/sat/xsat/xsat.h +0 -59
- data/ext/abc/src/sat/xsat/xsatBQueue.h +0 -190
- data/ext/abc/src/sat/xsat/xsatClause.h +0 -109
- data/ext/abc/src/sat/xsat/xsatCnfReader.c +0 -236
- data/ext/abc/src/sat/xsat/xsatHeap.h +0 -330
- data/ext/abc/src/sat/xsat/xsatMemory.h +0 -222
- data/ext/abc/src/sat/xsat/xsatSolver.c +0 -1003
- data/ext/abc/src/sat/xsat/xsatSolver.h +0 -248
- data/ext/abc/src/sat/xsat/xsatSolverAPI.c +0 -346
- data/ext/abc/src/sat/xsat/xsatUtils.h +0 -106
- data/ext/abc/src/sat/xsat/xsatWatchList.h +0 -269
- data/ext/abc/src/starter.c +0 -190
- data/ext/abc/src/template.c +0 -111
- data/ext/extconf.rb +0 -14
- data/ext/ruby_abc_wrapper.h +0 -13
@@ -1,1752 +0,0 @@
|
|
1
|
-
/**CFile****************************************************************
|
2
|
-
|
3
|
-
FileName [mioUtils.c]
|
4
|
-
|
5
|
-
PackageName [MVSIS 1.3: Multi-valued logic synthesis system.]
|
6
|
-
|
7
|
-
Synopsis [File reading/writing for technology mapping.]
|
8
|
-
|
9
|
-
Author [MVSIS Group]
|
10
|
-
|
11
|
-
Affiliation [UC Berkeley]
|
12
|
-
|
13
|
-
Date [Ver. 1.0. Started - September 8, 2003.]
|
14
|
-
|
15
|
-
Revision [$Id: mioUtils.c,v 1.6 2004/09/03 18:02:20 satrajit Exp $]
|
16
|
-
|
17
|
-
***********************************************************************/
|
18
|
-
|
19
|
-
#include <math.h>
|
20
|
-
#include "mioInt.h"
|
21
|
-
#include "base/main/main.h"
|
22
|
-
#include "exp.h"
|
23
|
-
#include "misc/util/utilTruth.h"
|
24
|
-
#include "opt/dau/dau.h"
|
25
|
-
#include "misc/util/utilNam.h"
|
26
|
-
#include "map/scl/sclLib.h"
|
27
|
-
#include "map/scl/sclCon.h"
|
28
|
-
|
29
|
-
ABC_NAMESPACE_IMPL_START
|
30
|
-
|
31
|
-
|
32
|
-
////////////////////////////////////////////////////////////////////////
|
33
|
-
/// DECLARATIONS ///
|
34
|
-
////////////////////////////////////////////////////////////////////////
|
35
|
-
|
36
|
-
////////////////////////////////////////////////////////////////////////
|
37
|
-
/// FUNCTION DEFINITIONS ///
|
38
|
-
////////////////////////////////////////////////////////////////////////
|
39
|
-
|
40
|
-
/**Function*************************************************************
|
41
|
-
|
42
|
-
Synopsis []
|
43
|
-
|
44
|
-
Description []
|
45
|
-
|
46
|
-
SideEffects []
|
47
|
-
|
48
|
-
SeeAlso []
|
49
|
-
|
50
|
-
***********************************************************************/
|
51
|
-
void Mio_LibraryDelete( Mio_Library_t * pLib )
|
52
|
-
{
|
53
|
-
Mio_Gate_t * pGate, * pGate2;
|
54
|
-
if ( pLib == NULL )
|
55
|
-
return;
|
56
|
-
Mio_LibraryMatchesStop( pLib );
|
57
|
-
Mio_LibraryMatches2Stop( pLib );
|
58
|
-
// free the bindings of nodes to gates from this library for all networks
|
59
|
-
Abc_FrameUnmapAllNetworks( Abc_FrameGetGlobalFrame() );
|
60
|
-
// free the library
|
61
|
-
ABC_FREE( pLib->pName );
|
62
|
-
Mio_LibraryForEachGateSafe( pLib, pGate, pGate2 )
|
63
|
-
Mio_GateDelete( pGate );
|
64
|
-
Mem_FlexStop( pLib->pMmFlex, 0 );
|
65
|
-
Vec_StrFree( pLib->vCube );
|
66
|
-
if ( pLib->tName2Gate )
|
67
|
-
st__free_table( pLib->tName2Gate );
|
68
|
-
// if ( pLib->dd )
|
69
|
-
// Cudd_Quit( pLib->dd );
|
70
|
-
ABC_FREE( pLib->ppGates0 );
|
71
|
-
ABC_FREE( pLib->ppGatesName );
|
72
|
-
ABC_FREE( pLib );
|
73
|
-
}
|
74
|
-
|
75
|
-
/**Function*************************************************************
|
76
|
-
|
77
|
-
Synopsis []
|
78
|
-
|
79
|
-
Description []
|
80
|
-
|
81
|
-
SideEffects []
|
82
|
-
|
83
|
-
SeeAlso []
|
84
|
-
|
85
|
-
***********************************************************************/
|
86
|
-
void Mio_GateDelete( Mio_Gate_t * pGate )
|
87
|
-
{
|
88
|
-
Mio_Pin_t * pPin, * pPin2;
|
89
|
-
if ( pGate->nInputs > 6 )
|
90
|
-
ABC_FREE( pGate->pTruth );
|
91
|
-
Vec_IntFreeP( &pGate->vExpr );
|
92
|
-
ABC_FREE( pGate->pOutName );
|
93
|
-
ABC_FREE( pGate->pName );
|
94
|
-
ABC_FREE( pGate->pForm );
|
95
|
-
// if ( pGate->bFunc )
|
96
|
-
// Cudd_RecursiveDeref( pGate->pLib->dd, pGate->bFunc );
|
97
|
-
Mio_GateForEachPinSafe( pGate, pPin, pPin2 )
|
98
|
-
Mio_PinDelete( pPin );
|
99
|
-
ABC_FREE( pGate );
|
100
|
-
}
|
101
|
-
|
102
|
-
/**Function*************************************************************
|
103
|
-
|
104
|
-
Synopsis []
|
105
|
-
|
106
|
-
Description []
|
107
|
-
|
108
|
-
SideEffects []
|
109
|
-
|
110
|
-
SeeAlso []
|
111
|
-
|
112
|
-
***********************************************************************/
|
113
|
-
void Mio_PinDelete( Mio_Pin_t * pPin )
|
114
|
-
{
|
115
|
-
ABC_FREE( pPin->pName );
|
116
|
-
ABC_FREE( pPin );
|
117
|
-
}
|
118
|
-
|
119
|
-
/**Function*************************************************************
|
120
|
-
|
121
|
-
Synopsis []
|
122
|
-
|
123
|
-
Description []
|
124
|
-
|
125
|
-
SideEffects []
|
126
|
-
|
127
|
-
SeeAlso []
|
128
|
-
|
129
|
-
***********************************************************************/
|
130
|
-
Mio_Pin_t * Mio_PinDup( Mio_Pin_t * pPin )
|
131
|
-
{
|
132
|
-
Mio_Pin_t * pPinNew;
|
133
|
-
|
134
|
-
pPinNew = ABC_ALLOC( Mio_Pin_t, 1 );
|
135
|
-
*pPinNew = *pPin;
|
136
|
-
pPinNew->pName = (pPinNew->pName ? Abc_UtilStrsav(pPinNew->pName) : NULL);
|
137
|
-
pPinNew->pNext = NULL;
|
138
|
-
|
139
|
-
return pPinNew;
|
140
|
-
}
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
/**Function*************************************************************
|
146
|
-
|
147
|
-
Synopsis [Check if pin characteristics are the same.]
|
148
|
-
|
149
|
-
Description []
|
150
|
-
|
151
|
-
SideEffects []
|
152
|
-
|
153
|
-
SeeAlso []
|
154
|
-
|
155
|
-
***********************************************************************/
|
156
|
-
int Mio_CheckPins( Mio_Pin_t * pPin1, Mio_Pin_t * pPin2 )
|
157
|
-
{
|
158
|
-
if ( pPin1 == NULL || pPin2 == NULL )
|
159
|
-
return 1;
|
160
|
-
if ( pPin1->dLoadInput != pPin2->dLoadInput )
|
161
|
-
return 0;
|
162
|
-
if ( pPin1->dLoadMax != pPin2->dLoadMax )
|
163
|
-
return 0;
|
164
|
-
if ( pPin1->dDelayBlockRise != pPin2->dDelayBlockRise )
|
165
|
-
return 0;
|
166
|
-
if ( pPin1->dDelayFanoutRise != pPin2->dDelayFanoutRise )
|
167
|
-
return 0;
|
168
|
-
if ( pPin1->dDelayBlockFall != pPin2->dDelayBlockFall )
|
169
|
-
return 0;
|
170
|
-
if ( pPin1->dDelayFanoutFall != pPin2->dDelayFanoutFall )
|
171
|
-
return 0;
|
172
|
-
return 1;
|
173
|
-
}
|
174
|
-
int Mio_CheckGates( Mio_Library_t * pLib )
|
175
|
-
{
|
176
|
-
Mio_Gate_t * pGate;
|
177
|
-
Mio_Pin_t * pPin0 = NULL, * pPin = NULL;
|
178
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
179
|
-
Mio_GateForEachPin( pGate, pPin )
|
180
|
-
if ( Mio_CheckPins( pPin0, pPin ) )
|
181
|
-
pPin0 = pPin;
|
182
|
-
else
|
183
|
-
return 0;
|
184
|
-
return 1;
|
185
|
-
}
|
186
|
-
|
187
|
-
/**Function*************************************************************
|
188
|
-
|
189
|
-
Synopsis []
|
190
|
-
|
191
|
-
Description []
|
192
|
-
|
193
|
-
SideEffects []
|
194
|
-
|
195
|
-
SeeAlso []
|
196
|
-
|
197
|
-
***********************************************************************/
|
198
|
-
void Mio_WritePin( FILE * pFile, Mio_Pin_t * pPin, int NameLen, int fAllPins )
|
199
|
-
{
|
200
|
-
char * pPhaseNames[10] = { "UNKNOWN", "INV", "NONINV" };
|
201
|
-
if ( fAllPins )
|
202
|
-
fprintf( pFile, "PIN * " );
|
203
|
-
else
|
204
|
-
fprintf( pFile, "\n PIN %*s ", NameLen, pPin->pName );
|
205
|
-
fprintf( pFile, "%7s ", pPhaseNames[pPin->Phase] );
|
206
|
-
fprintf( pFile, "%3d ", (int)pPin->dLoadInput );
|
207
|
-
fprintf( pFile, "%3d ", (int)pPin->dLoadMax );
|
208
|
-
fprintf( pFile, "%8.2f ", pPin->dDelayBlockRise );
|
209
|
-
fprintf( pFile, "%8.2f ", pPin->dDelayFanoutRise );
|
210
|
-
fprintf( pFile, "%8.2f ", pPin->dDelayBlockFall );
|
211
|
-
fprintf( pFile, "%8.2f", pPin->dDelayFanoutFall );
|
212
|
-
}
|
213
|
-
|
214
|
-
/**Function*************************************************************
|
215
|
-
|
216
|
-
Synopsis []
|
217
|
-
|
218
|
-
Description []
|
219
|
-
|
220
|
-
SideEffects []
|
221
|
-
|
222
|
-
SeeAlso []
|
223
|
-
|
224
|
-
***********************************************************************/
|
225
|
-
void Mio_WriteGate( FILE * pFile, Mio_Gate_t * pGate, int GateLen, int NameLen, int FormLen, int fPrintSops, int fAllPins )
|
226
|
-
{
|
227
|
-
char Buffer[5000];
|
228
|
-
Mio_Pin_t * pPin;
|
229
|
-
assert( NameLen+FormLen+2 < 5000 );
|
230
|
-
sprintf( Buffer, "%s=%s;", pGate->pOutName, pGate->pForm );
|
231
|
-
fprintf( pFile, "GATE %-*s ", GateLen, pGate->pName );
|
232
|
-
fprintf( pFile, "%8.2f ", pGate->dArea );
|
233
|
-
fprintf( pFile, "%-*s ", Abc_MinInt(NameLen+FormLen+2, 60), Buffer );
|
234
|
-
// print the pins
|
235
|
-
if ( fPrintSops )
|
236
|
-
fprintf( pFile, "%s", pGate->pSop? pGate->pSop : "unspecified\n" );
|
237
|
-
if ( fAllPins && pGate->pPins ) // equal pins
|
238
|
-
Mio_WritePin( pFile, pGate->pPins, NameLen, 1 );
|
239
|
-
else // different pins
|
240
|
-
Mio_GateForEachPin( pGate, pPin )
|
241
|
-
Mio_WritePin( pFile, pPin, NameLen, 0 );
|
242
|
-
fprintf( pFile, "\n" );
|
243
|
-
}
|
244
|
-
|
245
|
-
/**Function*************************************************************
|
246
|
-
|
247
|
-
Synopsis []
|
248
|
-
|
249
|
-
Description []
|
250
|
-
|
251
|
-
SideEffects []
|
252
|
-
|
253
|
-
SeeAlso []
|
254
|
-
|
255
|
-
***********************************************************************/
|
256
|
-
void Mio_WriteLibrary( FILE * pFile, Mio_Library_t * pLib, int fPrintSops, int fShort, int fSelected )
|
257
|
-
{
|
258
|
-
Mio_Gate_t * pGate;
|
259
|
-
Mio_Pin_t * pPin;
|
260
|
-
Vec_Ptr_t * vGates = Vec_PtrAlloc( 1000 );
|
261
|
-
int i, nCells, GateLen = 0, NameLen = 0, FormLen = 0;
|
262
|
-
int fAllPins = fShort || Mio_CheckGates( pLib );
|
263
|
-
if ( fSelected )
|
264
|
-
{
|
265
|
-
Mio_Cell2_t * pCells = Mio_CollectRootsNewDefault2( 6, &nCells, 0 );
|
266
|
-
for ( i = 0; i < nCells; i++ )
|
267
|
-
Vec_PtrPush( vGates, pCells[i].pMioGate );
|
268
|
-
ABC_FREE( pCells );
|
269
|
-
}
|
270
|
-
else
|
271
|
-
{
|
272
|
-
for ( i = 0; i < pLib->nGates; i++ )
|
273
|
-
Vec_PtrPush( vGates, pLib->ppGates0[i] );
|
274
|
-
}
|
275
|
-
Vec_PtrForEachEntry( Mio_Gate_t *, vGates, pGate, i )
|
276
|
-
{
|
277
|
-
GateLen = Abc_MaxInt( GateLen, strlen(pGate->pName) );
|
278
|
-
NameLen = Abc_MaxInt( NameLen, strlen(pGate->pOutName) );
|
279
|
-
FormLen = Abc_MaxInt( FormLen, strlen(pGate->pForm) );
|
280
|
-
Mio_GateForEachPin( pGate, pPin )
|
281
|
-
NameLen = Abc_MaxInt( NameLen, strlen(pPin->pName) );
|
282
|
-
}
|
283
|
-
fprintf( pFile, "# The genlib library \"%s\" with %d gates written by ABC on %s\n", pLib->pName, Vec_PtrSize(vGates), Extra_TimeStamp() );
|
284
|
-
Vec_PtrForEachEntry( Mio_Gate_t *, vGates, pGate, i )
|
285
|
-
Mio_WriteGate( pFile, pGate, GateLen, NameLen, FormLen, fPrintSops, fAllPins );
|
286
|
-
Vec_PtrFree( vGates );
|
287
|
-
}
|
288
|
-
|
289
|
-
/**Function*************************************************************
|
290
|
-
|
291
|
-
Synopsis [Compares the max delay of two gates.]
|
292
|
-
|
293
|
-
Description []
|
294
|
-
|
295
|
-
SideEffects []
|
296
|
-
|
297
|
-
SeeAlso []
|
298
|
-
|
299
|
-
***********************************************************************/
|
300
|
-
int Mio_DelayCompare( Mio_Gate_t ** ppG1, Mio_Gate_t ** ppG2 )
|
301
|
-
{
|
302
|
-
int Comp;
|
303
|
-
float Eps = (float)0.0094636;
|
304
|
-
if ( (*ppG1)->dDelayMax < (*ppG2)->dDelayMax - Eps )
|
305
|
-
return -1;
|
306
|
-
if ( (*ppG1)->dDelayMax > (*ppG2)->dDelayMax + Eps )
|
307
|
-
return 1;
|
308
|
-
// compare names
|
309
|
-
Comp = strcmp( (*ppG1)->pName, (*ppG2)->pName );
|
310
|
-
if ( Comp < 0 )
|
311
|
-
return -1;
|
312
|
-
if ( Comp > 0 )
|
313
|
-
return 1;
|
314
|
-
assert( 0 );
|
315
|
-
return 0;
|
316
|
-
}
|
317
|
-
int Mio_AreaCompare( Mio_Cell_t * pG1, Mio_Cell_t * pG2 )
|
318
|
-
{
|
319
|
-
int Comp;
|
320
|
-
float Eps = (float)0.0094636;
|
321
|
-
if ( pG1->nFanins < pG2->nFanins )
|
322
|
-
return -1;
|
323
|
-
if ( pG1->nFanins > pG2->nFanins )
|
324
|
-
return 1;
|
325
|
-
if ( pG1->Area < pG2->Area - Eps )
|
326
|
-
return -1;
|
327
|
-
if ( pG1->Area > pG2->Area + Eps )
|
328
|
-
return 1;
|
329
|
-
// compare names
|
330
|
-
Comp = strcmp( pG1->pName, pG2->pName );
|
331
|
-
if ( Comp < 0 )
|
332
|
-
return -1;
|
333
|
-
if ( Comp > 0 )
|
334
|
-
return 1;
|
335
|
-
assert( 0 );
|
336
|
-
return 0;
|
337
|
-
}
|
338
|
-
int Mio_AreaCompare2( Mio_Cell2_t * pG1, Mio_Cell2_t * pG2 )
|
339
|
-
{
|
340
|
-
int Comp;
|
341
|
-
if ( pG1->nFanins < pG2->nFanins )
|
342
|
-
return -1;
|
343
|
-
if ( pG1->nFanins > pG2->nFanins )
|
344
|
-
return 1;
|
345
|
-
if ( pG1->AreaW < pG2->AreaW )
|
346
|
-
return -1;
|
347
|
-
if ( pG1->AreaW > pG2->AreaW )
|
348
|
-
return 1;
|
349
|
-
// compare names
|
350
|
-
Comp = strcmp( pG1->pName, pG2->pName );
|
351
|
-
if ( Comp < 0 )
|
352
|
-
return -1;
|
353
|
-
if ( Comp > 0 )
|
354
|
-
return 1;
|
355
|
-
assert( 0 );
|
356
|
-
return 0;
|
357
|
-
}
|
358
|
-
|
359
|
-
/**Function*************************************************************
|
360
|
-
|
361
|
-
Synopsis [Collects the set of root gates.]
|
362
|
-
|
363
|
-
Description [Only collects the gates with unique functionality,
|
364
|
-
which have fewer inputs and shorter delay than the given limits.]
|
365
|
-
|
366
|
-
SideEffects []
|
367
|
-
|
368
|
-
SeeAlso []
|
369
|
-
|
370
|
-
***********************************************************************/
|
371
|
-
static inline float Mio_CellDelayAve( Mio_Cell_t * pCell )
|
372
|
-
{
|
373
|
-
float CellDelay = 0; int k;
|
374
|
-
for ( k = 0; k < (int)pCell->nFanins; k++ )
|
375
|
-
CellDelay += pCell->Delays[k];
|
376
|
-
if ( pCell->nFanins )
|
377
|
-
CellDelay /= pCell->nFanins;
|
378
|
-
return CellDelay;
|
379
|
-
}
|
380
|
-
static inline float Mio_GateDelayAve( Mio_Gate_t * pGate )
|
381
|
-
{
|
382
|
-
float GateDelay = 0;
|
383
|
-
Mio_Pin_t * pPin;
|
384
|
-
Mio_GateForEachPin( pGate, pPin )
|
385
|
-
GateDelay += (float)(0.5 * pPin->dDelayBlockRise + 0.5 * pPin->dDelayBlockFall);
|
386
|
-
if ( pGate->nInputs )
|
387
|
-
GateDelay /= pGate->nInputs;
|
388
|
-
return GateDelay;
|
389
|
-
}
|
390
|
-
static inline int Mio_CompareTwoGates( Mio_Gate_t * pCell, Mio_Gate_t * pGate )
|
391
|
-
{
|
392
|
-
int Comp;
|
393
|
-
float Eps = (float)0.0094636;
|
394
|
-
float CellDelay, GateDelay;
|
395
|
-
// compare areas
|
396
|
-
if ( pCell->dArea > (float)pGate->dArea + Eps )
|
397
|
-
return 1;
|
398
|
-
if ( pCell->dArea < (float)pGate->dArea - Eps )
|
399
|
-
return 0;
|
400
|
-
// compare delays
|
401
|
-
CellDelay = Mio_GateDelayAve( pCell );
|
402
|
-
GateDelay = Mio_GateDelayAve( pGate );
|
403
|
-
if ( CellDelay > GateDelay + Eps )
|
404
|
-
return 1;
|
405
|
-
if ( CellDelay < GateDelay - Eps )
|
406
|
-
return 0;
|
407
|
-
// compare names
|
408
|
-
Comp = strcmp( pCell->pName, pGate->pName );
|
409
|
-
if ( Comp > 0 )
|
410
|
-
return 1;
|
411
|
-
if ( Comp < 0 )
|
412
|
-
return 0;
|
413
|
-
assert( 0 );
|
414
|
-
return 0;
|
415
|
-
}
|
416
|
-
Mio_Gate_t ** Mio_CollectRoots( Mio_Library_t * pLib, int nInputs, float tDelay, int fSkipInv, int * pnGates, int fVerbose )
|
417
|
-
{
|
418
|
-
Mio_Gate_t * pGate;
|
419
|
-
Mio_Gate_t ** ppGates;
|
420
|
-
int i, nGates, iGate, fProfile;
|
421
|
-
nGates = Mio_LibraryReadGateNum( pLib );
|
422
|
-
ppGates = ABC_ALLOC( Mio_Gate_t *, nGates );
|
423
|
-
iGate = 0;
|
424
|
-
// check if profile is entered
|
425
|
-
fProfile = Mio_LibraryHasProfile( pLib );
|
426
|
-
if ( fProfile )
|
427
|
-
printf( "Mio_CollectRoots(): Using gate profile to select gates for mapping.\n" );
|
428
|
-
// for each functionality, select gate with the smallest area
|
429
|
-
// if equal areas, select gate with lexicographically smaller name
|
430
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
431
|
-
{
|
432
|
-
if ( pGate->nInputs > nInputs )
|
433
|
-
continue;
|
434
|
-
if ( fProfile && Mio_GateReadProfile(pGate) == 0 && pGate->nInputs > 1 )
|
435
|
-
continue;
|
436
|
-
if ( tDelay > 0.0 && pGate->dDelayMax > (double)tDelay )
|
437
|
-
continue;
|
438
|
-
if ( pGate->uTruth == 0 || pGate->uTruth == ~(word)0 )
|
439
|
-
continue;
|
440
|
-
if ( pGate->uTruth == ABC_CONST(0xAAAAAAAAAAAAAAAA) )
|
441
|
-
continue;
|
442
|
-
if ( pGate->uTruth == ~ABC_CONST(0xAAAAAAAAAAAAAAAA) && fSkipInv )
|
443
|
-
continue;
|
444
|
-
if ( pGate->pTwin ) // skip multi-output gates for now
|
445
|
-
continue;
|
446
|
-
// check if the gate with this functionality already exists
|
447
|
-
for ( i = 0; i < iGate; i++ )
|
448
|
-
if ( ppGates[i]->uTruth == pGate->uTruth )
|
449
|
-
{
|
450
|
-
if ( Mio_CompareTwoGates(ppGates[i], pGate) )
|
451
|
-
ppGates[i] = pGate;
|
452
|
-
break;
|
453
|
-
}
|
454
|
-
if ( i < iGate )
|
455
|
-
continue;
|
456
|
-
assert( iGate < nGates );
|
457
|
-
ppGates[ iGate++ ] = pGate;
|
458
|
-
if ( fVerbose )
|
459
|
-
printf( "Selected gate %3d: %-20s A = %7.2f D = %7.2f %3s = %-s\n",
|
460
|
-
iGate+1, pGate->pName, pGate->dArea, pGate->dDelayMax, pGate->pOutName, pGate->pForm );
|
461
|
-
}
|
462
|
-
// sort by delay
|
463
|
-
if ( iGate > 0 )
|
464
|
-
{
|
465
|
-
qsort( (void *)ppGates, iGate, sizeof(Mio_Gate_t *),
|
466
|
-
(int (*)(const void *, const void *)) Mio_DelayCompare );
|
467
|
-
assert( Mio_DelayCompare( ppGates, ppGates + iGate - 1 ) <= 0 );
|
468
|
-
}
|
469
|
-
if ( pnGates )
|
470
|
-
*pnGates = iGate;
|
471
|
-
return ppGates;
|
472
|
-
}
|
473
|
-
|
474
|
-
|
475
|
-
/**Function*************************************************************
|
476
|
-
|
477
|
-
Synopsis [Collects the set of root gates.]
|
478
|
-
|
479
|
-
Description [Only collects the gates with unique functionality,
|
480
|
-
which have fewer inputs and shorter delay than the given limits.]
|
481
|
-
|
482
|
-
SideEffects []
|
483
|
-
|
484
|
-
SeeAlso []
|
485
|
-
|
486
|
-
***********************************************************************/
|
487
|
-
static inline int Mio_CompareTwo( Mio_Cell_t * pCell, Mio_Gate_t * pGate )
|
488
|
-
{
|
489
|
-
int Comp;
|
490
|
-
float Eps = (float)0.0094636;
|
491
|
-
float CellDelay, GateDelay;
|
492
|
-
// compare areas
|
493
|
-
if ( pCell->Area > (float)pGate->dArea + Eps )
|
494
|
-
return 1;
|
495
|
-
if ( pCell->Area < (float)pGate->dArea - Eps )
|
496
|
-
return 0;
|
497
|
-
// compare delays
|
498
|
-
CellDelay = Mio_CellDelayAve( pCell );
|
499
|
-
GateDelay = Mio_GateDelayAve( pGate );
|
500
|
-
if ( CellDelay > GateDelay + Eps )
|
501
|
-
return 1;
|
502
|
-
if ( CellDelay < GateDelay - Eps )
|
503
|
-
return 0;
|
504
|
-
// compare names
|
505
|
-
Comp = strcmp( pCell->pName, pGate->pName );
|
506
|
-
if ( Comp > 0 )
|
507
|
-
return 1;
|
508
|
-
if ( Comp < 0 )
|
509
|
-
return 0;
|
510
|
-
assert( 0 );
|
511
|
-
return 0;
|
512
|
-
}
|
513
|
-
static inline void Mio_CollectCopy( Mio_Cell_t * pCell, Mio_Gate_t * pGate )
|
514
|
-
{
|
515
|
-
Mio_Pin_t * pPin; int k;
|
516
|
-
pCell->pName = pGate->pName;
|
517
|
-
pCell->uTruth = pGate->uTruth;
|
518
|
-
pCell->Area = (float)pGate->dArea;
|
519
|
-
pCell->nFanins = pGate->nInputs;
|
520
|
-
for ( k = 0, pPin = pGate->pPins; pPin; pPin = pPin->pNext, k++ )
|
521
|
-
pCell->Delays[k] = (float)(0.5 * pPin->dDelayBlockRise + 0.5 * pPin->dDelayBlockFall);
|
522
|
-
}
|
523
|
-
|
524
|
-
Mio_Cell_t * Mio_CollectRootsNew( Mio_Library_t * pLib, int nInputs, int * pnGates, int fVerbose )
|
525
|
-
{
|
526
|
-
Mio_Gate_t * pGate;
|
527
|
-
Mio_Cell_t * ppCells;
|
528
|
-
int i, nGates, iCell = 4;
|
529
|
-
nGates = Mio_LibraryReadGateNum( pLib );
|
530
|
-
ppCells = ABC_CALLOC( Mio_Cell_t, nGates + 4 );
|
531
|
-
// for each functionality, select gate with the smallest area
|
532
|
-
// if equal areas, select gate with smaller average pin delay
|
533
|
-
// if these are also equal, select lexicographically smaller name
|
534
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
535
|
-
{
|
536
|
-
if ( pGate->nInputs > nInputs || pGate->pTwin ) // skip large and multi-output
|
537
|
-
continue;
|
538
|
-
// check if the gate with this functionality already exists
|
539
|
-
for ( i = 0; i < iCell; i++ )
|
540
|
-
if ( ppCells[i].pName && ppCells[i].uTruth == pGate->uTruth )
|
541
|
-
{
|
542
|
-
if ( Mio_CompareTwo( ppCells + i, pGate ) )
|
543
|
-
Mio_CollectCopy( ppCells + i, pGate );
|
544
|
-
break;
|
545
|
-
}
|
546
|
-
if ( i < iCell )
|
547
|
-
continue;
|
548
|
-
if ( pGate->uTruth == 0 || pGate->uTruth == ~(word)0 )
|
549
|
-
{
|
550
|
-
int Idx = (int)(pGate->uTruth == ~(word)0);
|
551
|
-
assert( pGate->nInputs == 0 );
|
552
|
-
Mio_CollectCopy( ppCells + Idx, pGate );
|
553
|
-
continue;
|
554
|
-
}
|
555
|
-
if ( pGate->uTruth == ABC_CONST(0xAAAAAAAAAAAAAAAA) || pGate->uTruth == ~ABC_CONST(0xAAAAAAAAAAAAAAAA) )
|
556
|
-
{
|
557
|
-
int Idx = 2 + (int)(pGate->uTruth == ~ABC_CONST(0xAAAAAAAAAAAAAAAA));
|
558
|
-
assert( pGate->nInputs == 1 );
|
559
|
-
Mio_CollectCopy( ppCells + Idx, pGate );
|
560
|
-
continue;
|
561
|
-
}
|
562
|
-
Mio_CollectCopy( ppCells + iCell++, pGate );
|
563
|
-
}
|
564
|
-
if ( ppCells[0].pName == NULL )
|
565
|
-
{ printf( "Error: Cannot find constant 0 gate in the library.\n" ); return NULL; }
|
566
|
-
if ( ppCells[1].pName == NULL )
|
567
|
-
{ printf( "Error: Cannot find constant 1 gate in the library.\n" ); return NULL; }
|
568
|
-
if ( ppCells[2].pName == NULL )
|
569
|
-
{ printf( "Error: Cannot find buffer gate in the library.\n" ); return NULL; }
|
570
|
-
if ( ppCells[3].pName == NULL )
|
571
|
-
{ printf( "Error: Cannot find inverter gate in the library.\n" ); return NULL; }
|
572
|
-
// sort by delay
|
573
|
-
if ( iCell > 5 )
|
574
|
-
{
|
575
|
-
qsort( (void *)(ppCells + 4), iCell - 4, sizeof(Mio_Cell_t),
|
576
|
-
(int (*)(const void *, const void *)) Mio_AreaCompare );
|
577
|
-
assert( Mio_AreaCompare( ppCells + 4, ppCells + iCell - 1 ) <= 0 );
|
578
|
-
}
|
579
|
-
// assign IDs
|
580
|
-
for ( i = 0; i < iCell; i++ )
|
581
|
-
ppCells[i].Id = ppCells[i].pName ? i : -1;
|
582
|
-
|
583
|
-
// report
|
584
|
-
if ( fVerbose )
|
585
|
-
{
|
586
|
-
// count gates
|
587
|
-
int * pCounts = ABC_CALLOC( int, nGates + 4 );
|
588
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
589
|
-
{
|
590
|
-
if ( pGate->nInputs > nInputs || pGate->pTwin ) // skip large and multi-output
|
591
|
-
continue;
|
592
|
-
for ( i = 0; i < iCell; i++ )
|
593
|
-
if ( ppCells[i].pName && ppCells[i].uTruth == pGate->uTruth )
|
594
|
-
{
|
595
|
-
pCounts[i]++;
|
596
|
-
break;
|
597
|
-
}
|
598
|
-
assert( i < iCell );
|
599
|
-
}
|
600
|
-
for ( i = 0; i < iCell; i++ )
|
601
|
-
{
|
602
|
-
Mio_Cell_t * pCell = ppCells + i;
|
603
|
-
printf( "%4d : ", i );
|
604
|
-
if ( pCell->pName == NULL )
|
605
|
-
printf( "None\n" );
|
606
|
-
else
|
607
|
-
printf( "%-20s In = %d N = %3d A = %12.6f D = %12.6f\n",
|
608
|
-
pCell->pName, pCell->nFanins, pCounts[i], pCell->Area, Mio_CellDelayAve(pCell) );
|
609
|
-
}
|
610
|
-
ABC_FREE( pCounts );
|
611
|
-
}
|
612
|
-
if ( pnGates )
|
613
|
-
*pnGates = iCell;
|
614
|
-
return ppCells;
|
615
|
-
}
|
616
|
-
Mio_Cell_t * Mio_CollectRootsNewDefault( int nInputs, int * pnGates, int fVerbose )
|
617
|
-
{
|
618
|
-
return Mio_CollectRootsNew( (Mio_Library_t *)Abc_FrameReadLibGen(), nInputs, pnGates, fVerbose );
|
619
|
-
}
|
620
|
-
|
621
|
-
/**Function*************************************************************
|
622
|
-
|
623
|
-
Synopsis [Collects the set of root gates.]
|
624
|
-
|
625
|
-
Description [Only collects the gates with unique functionality,
|
626
|
-
which have fewer inputs and shorter delay than the given limits.]
|
627
|
-
|
628
|
-
SideEffects []
|
629
|
-
|
630
|
-
SeeAlso []
|
631
|
-
|
632
|
-
***********************************************************************/
|
633
|
-
static inline int Mio_CompareTwo2( Mio_Cell2_t * pCell1, Mio_Cell2_t * pCell2 )
|
634
|
-
{
|
635
|
-
int Comp;
|
636
|
-
// compare areas
|
637
|
-
if ( pCell1->AreaW > pCell2->AreaW )
|
638
|
-
return 1;
|
639
|
-
if ( pCell1->AreaW < pCell2->AreaW )
|
640
|
-
return 0;
|
641
|
-
// compare delays
|
642
|
-
if ( pCell1->iDelayAve > pCell2->iDelayAve )
|
643
|
-
return 1;
|
644
|
-
if ( pCell1->iDelayAve < pCell2->iDelayAve )
|
645
|
-
return 0;
|
646
|
-
// compare names
|
647
|
-
Comp = strcmp( pCell1->pName, pCell2->pName );
|
648
|
-
if ( Comp > 0 )
|
649
|
-
return 1;
|
650
|
-
if ( Comp < 0 )
|
651
|
-
return 0;
|
652
|
-
assert( 0 );
|
653
|
-
return 0;
|
654
|
-
}
|
655
|
-
static inline void Mio_CollectCopy2( Mio_Cell2_t * pCell, Mio_Gate_t * pGate )
|
656
|
-
{
|
657
|
-
Mio_Pin_t * pPin; int k;
|
658
|
-
pCell->pName = pGate->pName;
|
659
|
-
pCell->vExpr = pGate->vExpr;
|
660
|
-
pCell->uTruth = pGate->uTruth;
|
661
|
-
pCell->AreaF = pGate->dArea;
|
662
|
-
pCell->AreaW = (word)(SCL_NUM * pGate->dArea);
|
663
|
-
pCell->nFanins = pGate->nInputs;
|
664
|
-
pCell->pMioGate = pGate;
|
665
|
-
pCell->iDelayAve = 0;
|
666
|
-
for ( k = 0, pPin = pGate->pPins; pPin; pPin = pPin->pNext, k++ )
|
667
|
-
{
|
668
|
-
pCell->iDelays[k] = (int)(SCL_NUM/2 * pPin->dDelayBlockRise + SCL_NUM/2 * pPin->dDelayBlockFall);
|
669
|
-
pCell->iDelayAve += pCell->iDelays[k];
|
670
|
-
}
|
671
|
-
if ( pCell->nFanins )
|
672
|
-
pCell->iDelayAve /= pCell->nFanins;
|
673
|
-
}
|
674
|
-
|
675
|
-
Mio_Cell2_t * Mio_CollectRootsNew2( Mio_Library_t * pLib, int nInputs, int * pnGates, int fVerbose )
|
676
|
-
{
|
677
|
-
Mio_Gate_t * pGate0;
|
678
|
-
Mio_Cell2_t * ppCells0, * ppCells, * pCell;
|
679
|
-
int i, nGates, iCell0 = 0, iCell = 4;
|
680
|
-
// create space for new cells
|
681
|
-
nGates = Mio_LibraryReadGateNum( pLib );
|
682
|
-
ppCells = ABC_CALLOC( Mio_Cell2_t, nGates + 4 );
|
683
|
-
// copy all gates first
|
684
|
-
ppCells0 = ABC_CALLOC( Mio_Cell2_t, nGates );
|
685
|
-
Mio_LibraryForEachGate( pLib, pGate0 )
|
686
|
-
if ( !(pGate0->nInputs > nInputs || pGate0->pTwin) ) // skip large and multi-output
|
687
|
-
Mio_CollectCopy2( ppCells0 + iCell0++, pGate0 );
|
688
|
-
assert( iCell0 <= nGates );
|
689
|
-
// for each functionality, select gate with the smallest area
|
690
|
-
// if equal areas, select gate with smaller average pin delay
|
691
|
-
// if these are also equal, select lexicographically smaller name
|
692
|
-
for ( pCell = ppCells0; pCell < ppCells0 + iCell0; pCell++ )
|
693
|
-
{
|
694
|
-
// check if the gate with this functionality already exists
|
695
|
-
for ( i = 0; i < iCell; i++ )
|
696
|
-
if ( ppCells[i].pName && ppCells[i].uTruth == pCell->uTruth )
|
697
|
-
{
|
698
|
-
if ( Mio_CompareTwo2( ppCells + i, pCell ) )
|
699
|
-
ppCells[i] = *pCell;
|
700
|
-
break;
|
701
|
-
}
|
702
|
-
if ( i < iCell )
|
703
|
-
continue;
|
704
|
-
if ( pCell->uTruth == 0 || pCell->uTruth == ~(word)0 )
|
705
|
-
{
|
706
|
-
int Idx = (int)(pCell->uTruth == ~(word)0);
|
707
|
-
assert( pCell->nFanins == 0 );
|
708
|
-
ppCells[Idx] = *pCell;
|
709
|
-
continue;
|
710
|
-
}
|
711
|
-
if ( pCell->uTruth == ABC_CONST(0xAAAAAAAAAAAAAAAA) || pCell->uTruth == ~ABC_CONST(0xAAAAAAAAAAAAAAAA) )
|
712
|
-
{
|
713
|
-
int Idx = 2 + (int)(pCell->uTruth == ~ABC_CONST(0xAAAAAAAAAAAAAAAA));
|
714
|
-
assert( pCell->nFanins == 1 );
|
715
|
-
ppCells[Idx] = *pCell;
|
716
|
-
continue;
|
717
|
-
}
|
718
|
-
ppCells[iCell++] = *pCell;
|
719
|
-
}
|
720
|
-
ABC_FREE( ppCells0 );
|
721
|
-
if ( ppCells[0].pName == NULL )
|
722
|
-
{ printf( "Error: Cannot find constant 0 gate in the library.\n" ); return NULL; }
|
723
|
-
if ( ppCells[1].pName == NULL )
|
724
|
-
{ printf( "Error: Cannot find constant 1 gate in the library.\n" ); return NULL; }
|
725
|
-
if ( ppCells[2].pName == NULL )
|
726
|
-
{ printf( "Error: Cannot find buffer gate in the library.\n" ); return NULL; }
|
727
|
-
if ( ppCells[3].pName == NULL )
|
728
|
-
{ printf( "Error: Cannot find inverter gate in the library.\n" ); return NULL; }
|
729
|
-
// sort by delay
|
730
|
-
if ( iCell > 5 )
|
731
|
-
{
|
732
|
-
qsort( (void *)(ppCells + 4), iCell - 4, sizeof(Mio_Cell2_t),
|
733
|
-
(int (*)(const void *, const void *)) Mio_AreaCompare2 );
|
734
|
-
assert( Mio_AreaCompare2( ppCells + 4, ppCells + iCell - 1 ) <= 0 );
|
735
|
-
}
|
736
|
-
// assign IDs
|
737
|
-
Mio_LibraryForEachGate( pLib, pGate0 )
|
738
|
-
Mio_GateSetCell( pGate0, -1 );
|
739
|
-
for ( i = 0; i < iCell; i++ )
|
740
|
-
{
|
741
|
-
ppCells[i].Id = ppCells[i].pName ? i : -1;
|
742
|
-
Mio_GateSetCell( (Mio_Gate_t *)ppCells[i].pMioGate, i );
|
743
|
-
}
|
744
|
-
|
745
|
-
// report
|
746
|
-
if ( fVerbose )
|
747
|
-
{
|
748
|
-
// count gates
|
749
|
-
int * pCounts = ABC_CALLOC( int, nGates + 4 );
|
750
|
-
Mio_LibraryForEachGate( pLib, pGate0 )
|
751
|
-
{
|
752
|
-
if ( pGate0->nInputs > nInputs || pGate0->pTwin ) // skip large and multi-output
|
753
|
-
continue;
|
754
|
-
for ( i = 0; i < iCell; i++ )
|
755
|
-
if ( ppCells[i].pName && ppCells[i].uTruth == pGate0->uTruth )
|
756
|
-
{
|
757
|
-
pCounts[i]++;
|
758
|
-
break;
|
759
|
-
}
|
760
|
-
assert( i < iCell );
|
761
|
-
}
|
762
|
-
for ( i = 0; i < iCell; i++ )
|
763
|
-
{
|
764
|
-
Mio_Cell2_t * pCell = ppCells + i;
|
765
|
-
printf( "%4d : ", i );
|
766
|
-
if ( pCell->pName == NULL )
|
767
|
-
printf( "None\n" );
|
768
|
-
else
|
769
|
-
printf( "%-20s In = %d N = %3d A = %12.6f D = %12.6f\n",
|
770
|
-
pCell->pName, pCell->nFanins, pCounts[i], pCell->AreaF, Scl_Int2Flt(pCell->iDelayAve) );
|
771
|
-
}
|
772
|
-
ABC_FREE( pCounts );
|
773
|
-
}
|
774
|
-
if ( pnGates )
|
775
|
-
*pnGates = iCell;
|
776
|
-
return ppCells;
|
777
|
-
}
|
778
|
-
Mio_Cell2_t * Mio_CollectRootsNewDefault2( int nInputs, int * pnGates, int fVerbose )
|
779
|
-
{
|
780
|
-
return Mio_CollectRootsNew2( (Mio_Library_t *)Abc_FrameReadLibGen(), nInputs, pnGates, fVerbose );
|
781
|
-
}
|
782
|
-
|
783
|
-
/**Function*************************************************************
|
784
|
-
|
785
|
-
Synopsis [Derives the truth table of the gate.]
|
786
|
-
|
787
|
-
Description []
|
788
|
-
|
789
|
-
SideEffects []
|
790
|
-
|
791
|
-
SeeAlso []
|
792
|
-
|
793
|
-
***********************************************************************/
|
794
|
-
int Mio_CollectRootsNewDefault3( int nInputs, Vec_Ptr_t ** pvNames, Vec_Wrd_t ** pvTruths )
|
795
|
-
{
|
796
|
-
Mio_Library_t * pLib = (Mio_Library_t *)Abc_FrameReadLibGen();
|
797
|
-
int i, iGate = 0, nGates = pLib ? Mio_LibraryReadGateNum( pLib ) : 0;
|
798
|
-
Mio_Gate_t * pGate0, ** ppGates; word * pTruth;
|
799
|
-
if ( pLib == NULL )
|
800
|
-
return 0;
|
801
|
-
ppGates = ABC_CALLOC( Mio_Gate_t *, nGates );
|
802
|
-
Mio_LibraryForEachGate( pLib, pGate0 )
|
803
|
-
ppGates[pGate0->Cell] = pGate0;
|
804
|
-
*pvNames = Vec_PtrAlloc( nGates );
|
805
|
-
*pvTruths = Vec_WrdStart( nGates * 4 );
|
806
|
-
for ( i = 0; i < nGates; i++ )
|
807
|
-
{
|
808
|
-
pGate0 = ppGates[i];
|
809
|
-
if ( pGate0->nInputs > nInputs || pGate0->pTwin ) // skip large and multi-output
|
810
|
-
continue;
|
811
|
-
Vec_PtrPush( *pvNames, pGate0->pName );
|
812
|
-
pTruth = Vec_WrdEntryP( *pvTruths, iGate++*4 );
|
813
|
-
if ( pGate0->nInputs <= 6 )
|
814
|
-
pTruth[0] = pTruth[1] = pTruth[2] = pTruth[3] = pGate0->uTruth;
|
815
|
-
else if ( pGate0->nInputs == 7 )
|
816
|
-
{
|
817
|
-
pTruth[0] = pTruth[2] = pGate0->pTruth[0];
|
818
|
-
pTruth[1] = pTruth[3] = pGate0->pTruth[1];
|
819
|
-
}
|
820
|
-
else if ( pGate0->nInputs == 8 )
|
821
|
-
memcpy( pTruth, pGate0->pTruth, 4*sizeof(word) );
|
822
|
-
}
|
823
|
-
assert( iGate == nGates );
|
824
|
-
assert( Vec_WrdEntry(*pvTruths, 0) == 0 );
|
825
|
-
assert( Vec_WrdEntry(*pvTruths, 4) == ~(word)0 );
|
826
|
-
assert( Vec_WrdEntry(*pvTruths, 8) == s_Truths6[0] );
|
827
|
-
assert( Vec_WrdEntry(*pvTruths, 12) == ~s_Truths6[0] );
|
828
|
-
ABC_FREE( ppGates );
|
829
|
-
return nGates;
|
830
|
-
}
|
831
|
-
|
832
|
-
/**Function*************************************************************
|
833
|
-
|
834
|
-
Synopsis [Derives the truth table of the gate.]
|
835
|
-
|
836
|
-
Description []
|
837
|
-
|
838
|
-
SideEffects []
|
839
|
-
|
840
|
-
SeeAlso []
|
841
|
-
|
842
|
-
***********************************************************************/
|
843
|
-
word Mio_DeriveTruthTable6( Mio_Gate_t * pGate )
|
844
|
-
{
|
845
|
-
static unsigned uTruths6[6][2] = {
|
846
|
-
{ 0xAAAAAAAA, 0xAAAAAAAA },
|
847
|
-
{ 0xCCCCCCCC, 0xCCCCCCCC },
|
848
|
-
{ 0xF0F0F0F0, 0xF0F0F0F0 },
|
849
|
-
{ 0xFF00FF00, 0xFF00FF00 },
|
850
|
-
{ 0xFFFF0000, 0xFFFF0000 },
|
851
|
-
{ 0x00000000, 0xFFFFFFFF }
|
852
|
-
};
|
853
|
-
union {
|
854
|
-
unsigned u[2];
|
855
|
-
word w;
|
856
|
-
} uTruthRes;
|
857
|
-
assert( pGate->nInputs <= 6 );
|
858
|
-
Mio_DeriveTruthTable( pGate, uTruths6, pGate->nInputs, 6, uTruthRes.u );
|
859
|
-
return uTruthRes.w;
|
860
|
-
}
|
861
|
-
|
862
|
-
#if 0
|
863
|
-
|
864
|
-
/**Function*************************************************************
|
865
|
-
|
866
|
-
Synopsis [Recursively derives the truth table of the gate.]
|
867
|
-
|
868
|
-
Description []
|
869
|
-
|
870
|
-
SideEffects []
|
871
|
-
|
872
|
-
SeeAlso []
|
873
|
-
|
874
|
-
***********************************************************************/
|
875
|
-
void Mio_DeriveTruthTable_rec( DdNode * bFunc, unsigned uTruthsIn[][2], unsigned uTruthRes[] )
|
876
|
-
{
|
877
|
-
unsigned uTruthsCof0[2];
|
878
|
-
unsigned uTruthsCof1[2];
|
879
|
-
|
880
|
-
// complement the resulting truth table, if the function is complemented
|
881
|
-
if ( Cudd_IsComplement(bFunc) )
|
882
|
-
{
|
883
|
-
Mio_DeriveTruthTable_rec( Cudd_Not(bFunc), uTruthsIn, uTruthRes );
|
884
|
-
uTruthRes[0] = ~uTruthRes[0];
|
885
|
-
uTruthRes[1] = ~uTruthRes[1];
|
886
|
-
return;
|
887
|
-
}
|
888
|
-
|
889
|
-
// if the function is constant 1, return the constant 1 truth table
|
890
|
-
if ( bFunc->index == CUDD_CONST_INDEX )
|
891
|
-
{
|
892
|
-
uTruthRes[0] = MIO_FULL;
|
893
|
-
uTruthRes[1] = MIO_FULL;
|
894
|
-
return;
|
895
|
-
}
|
896
|
-
|
897
|
-
// solve the problem for both cofactors
|
898
|
-
Mio_DeriveTruthTable_rec( cuddE(bFunc), uTruthsIn, uTruthsCof0 );
|
899
|
-
Mio_DeriveTruthTable_rec( cuddT(bFunc), uTruthsIn, uTruthsCof1 );
|
900
|
-
|
901
|
-
// derive the resulting truth table using the input truth tables
|
902
|
-
uTruthRes[0] = (uTruthsCof0[0] & ~uTruthsIn[bFunc->index][0]) |
|
903
|
-
(uTruthsCof1[0] & uTruthsIn[bFunc->index][0]);
|
904
|
-
uTruthRes[1] = (uTruthsCof0[1] & ~uTruthsIn[bFunc->index][1]) |
|
905
|
-
(uTruthsCof1[1] & uTruthsIn[bFunc->index][1]);
|
906
|
-
}
|
907
|
-
|
908
|
-
/**Function*************************************************************
|
909
|
-
|
910
|
-
Synopsis [Derives the truth table of the gate.]
|
911
|
-
|
912
|
-
Description []
|
913
|
-
|
914
|
-
SideEffects []
|
915
|
-
|
916
|
-
SeeAlso []
|
917
|
-
|
918
|
-
***********************************************************************/
|
919
|
-
void Mio_DeriveTruthTable( Mio_Gate_t * pGate, unsigned uTruthsIn[][2], int nSigns, int nInputs, unsigned uTruthRes[] )
|
920
|
-
{
|
921
|
-
Mio_DeriveTruthTable_rec( pGate->bFunc, uTruthsIn, uTruthRes );
|
922
|
-
}
|
923
|
-
|
924
|
-
#endif
|
925
|
-
|
926
|
-
/**Function*************************************************************
|
927
|
-
|
928
|
-
Synopsis [Derives the truth table of the gate.]
|
929
|
-
|
930
|
-
Description []
|
931
|
-
|
932
|
-
SideEffects []
|
933
|
-
|
934
|
-
SeeAlso []
|
935
|
-
|
936
|
-
***********************************************************************/
|
937
|
-
void Mio_DeriveTruthTable( Mio_Gate_t * pGate, unsigned uTruthsIn[][2], int nSigns, int nInputs, unsigned uTruthRes[] )
|
938
|
-
{
|
939
|
-
word uRes, uFanins[6];
|
940
|
-
int i;
|
941
|
-
assert( pGate->nInputs == nSigns );
|
942
|
-
for ( i = 0; i < nSigns; i++ )
|
943
|
-
uFanins[i] = (((word)uTruthsIn[i][1]) << 32) | (word)uTruthsIn[i][0];
|
944
|
-
uRes = Exp_Truth6( nSigns, pGate->vExpr, (word *)uFanins );
|
945
|
-
uTruthRes[0] = uRes & 0xFFFFFFFF;
|
946
|
-
uTruthRes[1] = uRes >> 32;
|
947
|
-
}
|
948
|
-
|
949
|
-
/**Function*************************************************************
|
950
|
-
|
951
|
-
Synopsis [Reads the number of variables in the cover.]
|
952
|
-
|
953
|
-
Description []
|
954
|
-
|
955
|
-
SideEffects []
|
956
|
-
|
957
|
-
SeeAlso []
|
958
|
-
|
959
|
-
***********************************************************************/
|
960
|
-
int Mio_SopGetVarNum( char * pSop )
|
961
|
-
{
|
962
|
-
char * pCur;
|
963
|
-
for ( pCur = pSop; *pCur != '\n'; pCur++ )
|
964
|
-
if ( *pCur == 0 )
|
965
|
-
return -1;
|
966
|
-
return pCur - pSop - 2;
|
967
|
-
}
|
968
|
-
|
969
|
-
/**Function*************************************************************
|
970
|
-
|
971
|
-
Synopsis [Derives the truth table of the root of the gate.]
|
972
|
-
|
973
|
-
Description [Given the truth tables of the leaves of the gate,
|
974
|
-
this procedure derives the truth table of the root.]
|
975
|
-
|
976
|
-
SideEffects []
|
977
|
-
|
978
|
-
SeeAlso []
|
979
|
-
|
980
|
-
***********************************************************************/
|
981
|
-
void Mio_DeriveTruthTable2( Mio_Gate_t * pGate, unsigned uTruthsIn[][2], int nTruths, int nInputs, unsigned uTruthRes[] )
|
982
|
-
{
|
983
|
-
unsigned uSignCube[2];
|
984
|
-
int i, nFanins;
|
985
|
-
char * pCube;
|
986
|
-
|
987
|
-
// make sure that the number of input truth tables in equal to the number of gate inputs
|
988
|
-
assert( pGate->nInputs == nTruths );
|
989
|
-
assert( nInputs < 7 );
|
990
|
-
|
991
|
-
nFanins = Mio_SopGetVarNum( pGate->pSop );
|
992
|
-
assert( nFanins == nInputs );
|
993
|
-
|
994
|
-
// clean the resulting truth table
|
995
|
-
uTruthRes[0] = 0;
|
996
|
-
uTruthRes[1] = 0;
|
997
|
-
if ( nInputs < 6 )
|
998
|
-
{
|
999
|
-
// Abc_SopForEachCube( pGate->pSop, nFanins, pCube )
|
1000
|
-
for ( pCube = pGate->pSop; *pCube; pCube += (nFanins) + 3 )
|
1001
|
-
{
|
1002
|
-
// add the clause
|
1003
|
-
uSignCube[0] = MIO_FULL;
|
1004
|
-
for ( i = 0; i < nFanins; i++ )
|
1005
|
-
{
|
1006
|
-
if ( pCube[i] == '0' )
|
1007
|
-
uSignCube[0] &= ~uTruthsIn[i][0];
|
1008
|
-
else if ( pCube[i] == '1' )
|
1009
|
-
uSignCube[0] &= uTruthsIn[i][0];
|
1010
|
-
}
|
1011
|
-
}
|
1012
|
-
if ( nInputs < 5 )
|
1013
|
-
uTruthRes[0] &= MIO_MASK(1<<nInputs);
|
1014
|
-
}
|
1015
|
-
else
|
1016
|
-
{
|
1017
|
-
// consider the case when two unsigneds should be used
|
1018
|
-
// Abc_SopForEachCube( pGate->pSop, nFanins, pCube )
|
1019
|
-
for ( pCube = pGate->pSop; *pCube; pCube += (nFanins) + 3 )
|
1020
|
-
{
|
1021
|
-
uSignCube[0] = MIO_FULL;
|
1022
|
-
uSignCube[1] = MIO_FULL;
|
1023
|
-
for ( i = 0; i < nFanins; i++ )
|
1024
|
-
{
|
1025
|
-
if ( pCube[i] == '0' )
|
1026
|
-
{
|
1027
|
-
uSignCube[0] &= ~uTruthsIn[i][0];
|
1028
|
-
uSignCube[1] &= ~uTruthsIn[i][1];
|
1029
|
-
}
|
1030
|
-
else if ( pCube[i] == '1' )
|
1031
|
-
{
|
1032
|
-
uSignCube[0] &= uTruthsIn[i][0];
|
1033
|
-
uSignCube[1] &= uTruthsIn[i][1];
|
1034
|
-
}
|
1035
|
-
}
|
1036
|
-
uTruthRes[0] |= uSignCube[0];
|
1037
|
-
uTruthRes[1] |= uSignCube[1];
|
1038
|
-
}
|
1039
|
-
}
|
1040
|
-
}
|
1041
|
-
|
1042
|
-
/**Function*************************************************************
|
1043
|
-
|
1044
|
-
Synopsis [Derives the area and delay of the root of the gate.]
|
1045
|
-
|
1046
|
-
Description [Array of the resulting delays should be initialized
|
1047
|
-
to the (negative) SUPER_NO_VAR value.]
|
1048
|
-
|
1049
|
-
SideEffects []
|
1050
|
-
|
1051
|
-
SeeAlso []
|
1052
|
-
|
1053
|
-
***********************************************************************/
|
1054
|
-
void Mio_DeriveGateDelays( Mio_Gate_t * pGate,
|
1055
|
-
float ** ptPinDelays, int nPins, int nInputs, float tDelayZero,
|
1056
|
-
float * ptDelaysRes, float * ptPinDelayMax )
|
1057
|
-
{
|
1058
|
-
Mio_Pin_t * pPin;
|
1059
|
-
float Delay, DelayMax;
|
1060
|
-
int i, k;
|
1061
|
-
assert( pGate->nInputs == nPins );
|
1062
|
-
// set all the delays to the unused delay
|
1063
|
-
for ( i = 0; i < nInputs; i++ )
|
1064
|
-
ptDelaysRes[i] = tDelayZero;
|
1065
|
-
// compute the delays for each input and the max delay at the same time
|
1066
|
-
DelayMax = 0;
|
1067
|
-
for ( i = 0; i < nInputs; i++ )
|
1068
|
-
{
|
1069
|
-
for ( k = 0, pPin = pGate->pPins; pPin; pPin = pPin->pNext, k++ )
|
1070
|
-
{
|
1071
|
-
if ( ptPinDelays[k][i] < 0 )
|
1072
|
-
continue;
|
1073
|
-
Delay = ptPinDelays[k][i] + (float)pPin->dDelayBlockMax;
|
1074
|
-
if ( ptDelaysRes[i] < Delay )
|
1075
|
-
ptDelaysRes[i] = Delay;
|
1076
|
-
}
|
1077
|
-
if ( k != nPins )
|
1078
|
-
{
|
1079
|
-
printf ("DEBUG: problem gate is %s\n", Mio_GateReadName( pGate ));
|
1080
|
-
}
|
1081
|
-
assert( k == nPins );
|
1082
|
-
if ( DelayMax < ptDelaysRes[i] )
|
1083
|
-
DelayMax = ptDelaysRes[i];
|
1084
|
-
}
|
1085
|
-
*ptPinDelayMax = DelayMax;
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
|
1089
|
-
/**Function*************************************************************
|
1090
|
-
|
1091
|
-
Synopsis [Creates a pseudo-gate.]
|
1092
|
-
|
1093
|
-
Description [The pseudo-gate is a N-input gate with all info set to 0.]
|
1094
|
-
|
1095
|
-
SideEffects []
|
1096
|
-
|
1097
|
-
SeeAlso []
|
1098
|
-
|
1099
|
-
***********************************************************************/
|
1100
|
-
Mio_Gate_t * Mio_GateCreatePseudo( int nInputs )
|
1101
|
-
{
|
1102
|
-
Mio_Gate_t * pGate;
|
1103
|
-
Mio_Pin_t * pPin;
|
1104
|
-
int i;
|
1105
|
-
// allocate the gate structure
|
1106
|
-
pGate = ABC_ALLOC( Mio_Gate_t, 1 );
|
1107
|
-
memset( pGate, 0, sizeof(Mio_Gate_t) );
|
1108
|
-
pGate->nInputs = nInputs;
|
1109
|
-
// create pins
|
1110
|
-
for ( i = 0; i < nInputs; i++ )
|
1111
|
-
{
|
1112
|
-
pPin = ABC_ALLOC( Mio_Pin_t, 1 );
|
1113
|
-
memset( pPin, 0, sizeof(Mio_Pin_t) );
|
1114
|
-
pPin->pNext = pGate->pPins;
|
1115
|
-
pGate->pPins = pPin;
|
1116
|
-
}
|
1117
|
-
return pGate;
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
/**Function*************************************************************
|
1121
|
-
|
1122
|
-
Synopsis [Adds constant value to all delay values.]
|
1123
|
-
|
1124
|
-
Description [The pseudo-gate is a N-input gate with all info set to 0.]
|
1125
|
-
|
1126
|
-
SideEffects []
|
1127
|
-
|
1128
|
-
SeeAlso []
|
1129
|
-
|
1130
|
-
***********************************************************************/
|
1131
|
-
void Mio_LibraryShiftDelay( Mio_Library_t * pLib, double Shift )
|
1132
|
-
{
|
1133
|
-
Mio_Gate_t * pGate;
|
1134
|
-
Mio_Pin_t * pPin;
|
1135
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1136
|
-
{
|
1137
|
-
pGate->dDelayMax += Shift;
|
1138
|
-
Mio_GateForEachPin( pGate, pPin )
|
1139
|
-
{
|
1140
|
-
pPin->dDelayBlockRise += Shift;
|
1141
|
-
pPin->dDelayBlockFall += Shift;
|
1142
|
-
pPin->dDelayBlockMax += Shift;
|
1143
|
-
}
|
1144
|
-
}
|
1145
|
-
}
|
1146
|
-
|
1147
|
-
/**Function*************************************************************
|
1148
|
-
|
1149
|
-
Synopsis [Multiply areas/delays by values proportional to fanin count.]
|
1150
|
-
|
1151
|
-
Description []
|
1152
|
-
|
1153
|
-
SideEffects []
|
1154
|
-
|
1155
|
-
SeeAlso []
|
1156
|
-
|
1157
|
-
***********************************************************************/
|
1158
|
-
void Mio_LibraryMultiArea( Mio_Library_t * pLib, double Multi )
|
1159
|
-
{
|
1160
|
-
Mio_Gate_t * pGate;
|
1161
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1162
|
-
{
|
1163
|
-
if ( pGate->nInputs < 2 )
|
1164
|
-
continue;
|
1165
|
-
// printf( "Before %8.3f ", pGate->dArea );
|
1166
|
-
pGate->dArea *= pow( pGate->nInputs, Multi );
|
1167
|
-
// printf( "After %8.3f Inputs = %d. Factor = %8.3f\n", pGate->dArea, pGate->nInputs, pow( pGate->nInputs, Multi ) );
|
1168
|
-
}
|
1169
|
-
}
|
1170
|
-
void Mio_LibraryMultiDelay( Mio_Library_t * pLib, double Multi )
|
1171
|
-
{
|
1172
|
-
Mio_Gate_t * pGate;
|
1173
|
-
Mio_Pin_t * pPin;
|
1174
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1175
|
-
{
|
1176
|
-
if ( pGate->nInputs < 2 )
|
1177
|
-
continue;
|
1178
|
-
// printf( "Before %8.3f ", pGate->dDelayMax );
|
1179
|
-
pGate->dDelayMax *= pow( pGate->nInputs, Multi );
|
1180
|
-
// printf( "After %8.3f Inputs = %d. Factor = %8.3f\n", pGate->dDelayMax, pGate->nInputs, pow( pGate->nInputs, Multi ) );
|
1181
|
-
Mio_GateForEachPin( pGate, pPin )
|
1182
|
-
{
|
1183
|
-
pPin->dDelayBlockRise *= pow( pGate->nInputs, Multi );
|
1184
|
-
pPin->dDelayBlockFall *= pow( pGate->nInputs, Multi );
|
1185
|
-
pPin->dDelayBlockMax *= pow( pGate->nInputs, Multi );
|
1186
|
-
}
|
1187
|
-
}
|
1188
|
-
}
|
1189
|
-
|
1190
|
-
/**Function*************************************************************
|
1191
|
-
|
1192
|
-
Synopsis [Transfers delays from the second to the first.]
|
1193
|
-
|
1194
|
-
Description []
|
1195
|
-
|
1196
|
-
SideEffects []
|
1197
|
-
|
1198
|
-
SeeAlso []
|
1199
|
-
|
1200
|
-
***********************************************************************/
|
1201
|
-
void Mio_LibraryTransferDelays( Mio_Library_t * pLibD, Mio_Library_t * pLibS )
|
1202
|
-
{
|
1203
|
-
Mio_Gate_t * pGateD, * pGateS;
|
1204
|
-
Mio_Pin_t * pPinD, * pPinS;
|
1205
|
-
Mio_LibraryForEachGate( pLibS, pGateS )
|
1206
|
-
{
|
1207
|
-
Mio_LibraryForEachGate( pLibD, pGateD )
|
1208
|
-
{
|
1209
|
-
if ( pGateD->uTruth != pGateS->uTruth )
|
1210
|
-
continue;
|
1211
|
-
pPinS = Mio_GateReadPins( pGateS );
|
1212
|
-
Mio_GateForEachPin( pGateD, pPinD )
|
1213
|
-
{
|
1214
|
-
if (pPinS)
|
1215
|
-
{
|
1216
|
-
pPinD->dDelayBlockRise = pPinS->dDelayBlockRise;
|
1217
|
-
pPinD->dDelayBlockFall = pPinS->dDelayBlockFall;
|
1218
|
-
pPinD->dDelayBlockMax = pPinS->dDelayBlockMax;
|
1219
|
-
pPinS = Mio_PinReadNext(pPinS);
|
1220
|
-
}
|
1221
|
-
else
|
1222
|
-
{
|
1223
|
-
pPinD->dDelayBlockRise = 0;
|
1224
|
-
pPinD->dDelayBlockFall = 0;
|
1225
|
-
pPinD->dDelayBlockMax = 0;
|
1226
|
-
}
|
1227
|
-
}
|
1228
|
-
}
|
1229
|
-
}
|
1230
|
-
}
|
1231
|
-
|
1232
|
-
/**Function*************************************************************
|
1233
|
-
|
1234
|
-
Synopsis []
|
1235
|
-
|
1236
|
-
Description []
|
1237
|
-
|
1238
|
-
SideEffects []
|
1239
|
-
|
1240
|
-
SeeAlso []
|
1241
|
-
|
1242
|
-
***********************************************************************/
|
1243
|
-
void Nf_ManPrepareGate( int nVars, word uTruth, int * pComp, int * pPerm, Vec_Wrd_t * vResult )
|
1244
|
-
{
|
1245
|
-
int nPerms = Extra_Factorial( nVars );
|
1246
|
-
int nMints = (1 << nVars);
|
1247
|
-
word tCur, tTemp1, tTemp2;
|
1248
|
-
int i, p, c;
|
1249
|
-
Vec_WrdClear( vResult );
|
1250
|
-
for ( i = 0; i < 2; i++ )
|
1251
|
-
{
|
1252
|
-
tCur = i ? ~uTruth : uTruth;
|
1253
|
-
tTemp1 = tCur;
|
1254
|
-
for ( p = 0; p < nPerms; p++ )
|
1255
|
-
{
|
1256
|
-
tTemp2 = tCur;
|
1257
|
-
for ( c = 0; c < nMints; c++ )
|
1258
|
-
{
|
1259
|
-
Vec_WrdPush( vResult, tCur );
|
1260
|
-
tCur = Abc_Tt6Flip( tCur, pComp[c] );
|
1261
|
-
}
|
1262
|
-
assert( tTemp2 == tCur );
|
1263
|
-
tCur = Abc_Tt6SwapAdjacent( tCur, pPerm[p] );
|
1264
|
-
}
|
1265
|
-
assert( tTemp1 == tCur );
|
1266
|
-
}
|
1267
|
-
}
|
1268
|
-
void Nf_ManPreparePrint( int nVars, int * pComp, int * pPerm, char Line[2*720*64][8] )
|
1269
|
-
{
|
1270
|
-
int nPerms = Extra_Factorial( nVars );
|
1271
|
-
int nMints = (1 << nVars);
|
1272
|
-
char * pChar, * pChar2;
|
1273
|
-
int i, p, c, n = 0;
|
1274
|
-
for ( i = 0; i < nVars; i++ )
|
1275
|
-
Line[0][i] = 'A' + nVars - 1 - i;
|
1276
|
-
Line[0][nVars] = '+';
|
1277
|
-
Line[0][nVars+1] = 0;
|
1278
|
-
for ( i = 0; i < 2; i++ )
|
1279
|
-
{
|
1280
|
-
Line[n][nVars] = i ? '-' : '+';
|
1281
|
-
for ( p = 0; p < nPerms; p++ )
|
1282
|
-
{
|
1283
|
-
for ( c = 0; c < nMints; c++ )
|
1284
|
-
{
|
1285
|
-
strcpy( Line[n+1], Line[n] ); n++;
|
1286
|
-
pChar = &Line[n][pComp[c]];
|
1287
|
-
if ( *pChar >= 'A' && *pChar <= 'Z' )
|
1288
|
-
*pChar += 'a' - 'A';
|
1289
|
-
else if ( *pChar >= 'a' && *pChar <= 'z' )
|
1290
|
-
*pChar -= 'a' - 'A';
|
1291
|
-
}
|
1292
|
-
pChar = &Line[n][pPerm[p]];
|
1293
|
-
pChar2 = pChar + 1;
|
1294
|
-
ABC_SWAP( char, *pChar, *pChar2 );
|
1295
|
-
}
|
1296
|
-
}
|
1297
|
-
assert( n == 2*nPerms*nMints );
|
1298
|
-
n = 0;
|
1299
|
-
for ( i = 0; i < 2; i++ )
|
1300
|
-
for ( p = 0; p < nPerms; p++ )
|
1301
|
-
for ( c = 0; c < nMints; c++ )
|
1302
|
-
printf("%8d : %d %3d %2d : %s\n", n, i, p, c, Line[n]), n++;
|
1303
|
-
}
|
1304
|
-
|
1305
|
-
void Nf_ManPrepareLibrary( Mio_Library_t * pLib )
|
1306
|
-
{
|
1307
|
-
// char Lines[2*720*64][8];
|
1308
|
-
// Nf_ManPreparePrint( 6, pComp, pPerm, Lines );
|
1309
|
-
int * pComp[7];
|
1310
|
-
int * pPerm[7];
|
1311
|
-
Mio_Gate_t ** ppGates;
|
1312
|
-
Vec_Wrd_t * vResult;
|
1313
|
-
word * pTruths;
|
1314
|
-
int * pSizes;
|
1315
|
-
int nGates, i, nClasses = 0, nTotal;
|
1316
|
-
abctime clk = Abc_Clock();
|
1317
|
-
|
1318
|
-
for ( i = 2; i <= 6; i++ )
|
1319
|
-
pComp[i] = Extra_GreyCodeSchedule( i );
|
1320
|
-
for ( i = 2; i <= 6; i++ )
|
1321
|
-
pPerm[i] = Extra_PermSchedule( i );
|
1322
|
-
|
1323
|
-
// collect truth tables
|
1324
|
-
ppGates = Mio_CollectRoots( pLib, 6, (float)1.0e+20, 1, &nGates, 0 );
|
1325
|
-
pSizes = ABC_CALLOC( int, nGates );
|
1326
|
-
pTruths = ABC_CALLOC( word, nGates );
|
1327
|
-
vResult = Vec_WrdAlloc( 2 * 720 * 64 );
|
1328
|
-
for ( i = 0; i < nGates; i++ )
|
1329
|
-
{
|
1330
|
-
pSizes[i] = Mio_GateReadPinNum( ppGates[i] );
|
1331
|
-
assert( pSizes[i] > 1 && pSizes[i] <= 6 );
|
1332
|
-
pTruths[i] = Mio_GateReadTruth( ppGates[i] );
|
1333
|
-
|
1334
|
-
Nf_ManPrepareGate( pSizes[i], pTruths[i], pComp[pSizes[i]], pPerm[pSizes[i]], vResult );
|
1335
|
-
Vec_WrdUniqify(vResult);
|
1336
|
-
nClasses += Vec_WrdSize(vResult);
|
1337
|
-
nTotal = (1 << (pSizes[i]+1)) * Extra_Factorial(pSizes[i]);
|
1338
|
-
|
1339
|
-
printf( "%6d : ", i );
|
1340
|
-
printf( "%16s : ", Mio_GateReadName( ppGates[i] ) );
|
1341
|
-
printf( "%48s : ", Mio_GateReadForm( ppGates[i] ) );
|
1342
|
-
printf( "Inputs = %2d ", pSizes[i] );
|
1343
|
-
printf( "Total = %6d ", nTotal );
|
1344
|
-
printf( "Classes = %6d ", Vec_WrdSize(vResult) );
|
1345
|
-
printf( "Configs = %8.2f ", 1.0*nTotal/Vec_WrdSize(vResult) );
|
1346
|
-
printf( "%6.2f %% ", 100.0*Vec_WrdSize(vResult)/nTotal );
|
1347
|
-
Dau_DsdPrintFromTruth( &pTruths[i], pSizes[i] );
|
1348
|
-
// printf( "\n" );
|
1349
|
-
}
|
1350
|
-
Vec_WrdFree( vResult );
|
1351
|
-
ABC_FREE( ppGates );
|
1352
|
-
ABC_FREE( pSizes );
|
1353
|
-
ABC_FREE( pTruths );
|
1354
|
-
|
1355
|
-
for ( i = 2; i <= 6; i++ )
|
1356
|
-
ABC_FREE( pComp[i] );
|
1357
|
-
for ( i = 2; i <= 6; i++ )
|
1358
|
-
ABC_FREE( pPerm[i] );
|
1359
|
-
|
1360
|
-
printf( "Classes = %d. ", nClasses );
|
1361
|
-
Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
|
1362
|
-
}
|
1363
|
-
|
1364
|
-
void Nf_ManPrepareLibraryTest2()
|
1365
|
-
{
|
1366
|
-
Mio_Library_t * pLib = (Mio_Library_t *)Abc_FrameReadLibGen();
|
1367
|
-
if ( pLib != NULL )
|
1368
|
-
Nf_ManPrepareLibrary( pLib );
|
1369
|
-
else
|
1370
|
-
printf( "Standard cell library is not available.\n" );
|
1371
|
-
|
1372
|
-
}
|
1373
|
-
|
1374
|
-
/**Function*************************************************************
|
1375
|
-
|
1376
|
-
Synopsis [Install library.]
|
1377
|
-
|
1378
|
-
Description []
|
1379
|
-
|
1380
|
-
SideEffects []
|
1381
|
-
|
1382
|
-
SeeAlso []
|
1383
|
-
|
1384
|
-
***********************************************************************/
|
1385
|
-
void Mio_LibraryTransferCellIds()
|
1386
|
-
{
|
1387
|
-
Mio_Gate_t * pGate;
|
1388
|
-
Mio_Library_t * pLib = (Mio_Library_t *)Abc_FrameReadLibGen();
|
1389
|
-
SC_Lib * pScl = (SC_Lib *)Abc_FrameReadLibScl();
|
1390
|
-
int CellId;
|
1391
|
-
if ( pScl == NULL )
|
1392
|
-
{
|
1393
|
-
printf( "SC library cannot be found.\n" );
|
1394
|
-
return;
|
1395
|
-
}
|
1396
|
-
if ( pLib == NULL )
|
1397
|
-
{
|
1398
|
-
printf( "Genlib library cannot be found.\n" );
|
1399
|
-
return;
|
1400
|
-
}
|
1401
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1402
|
-
{
|
1403
|
-
if ( Mio_GateReadPinNum(pGate) == 0 )
|
1404
|
-
continue;
|
1405
|
-
CellId = Abc_SclCellFind( pScl, Mio_GateReadName(pGate) );
|
1406
|
-
if ( CellId < 0 )
|
1407
|
-
printf( "Cannot find cell ID of gate %s.\n", Mio_GateReadName(pGate) );
|
1408
|
-
else
|
1409
|
-
Mio_GateSetCell( pGate, CellId );
|
1410
|
-
}
|
1411
|
-
}
|
1412
|
-
|
1413
|
-
/**Function*************************************************************
|
1414
|
-
|
1415
|
-
Synopsis []
|
1416
|
-
|
1417
|
-
Description []
|
1418
|
-
|
1419
|
-
SideEffects []
|
1420
|
-
|
1421
|
-
SeeAlso []
|
1422
|
-
|
1423
|
-
***********************************************************************/
|
1424
|
-
void Mio_LibraryReadProfile( FILE * pFile, Mio_Library_t * pLib )
|
1425
|
-
{
|
1426
|
-
Mio_Gate_t * pGate;
|
1427
|
-
char pBuffer[1000];
|
1428
|
-
while ( fgets( pBuffer, 1000, pFile ) != NULL )
|
1429
|
-
{
|
1430
|
-
char * pToken = strtok( pBuffer, " \t\n" );
|
1431
|
-
if ( pToken == NULL )
|
1432
|
-
continue;
|
1433
|
-
if ( pToken[0] == '#' )
|
1434
|
-
continue;
|
1435
|
-
// read gate
|
1436
|
-
pGate = Mio_LibraryReadGateByName( pLib, pToken, NULL );
|
1437
|
-
if ( pGate == NULL )
|
1438
|
-
{
|
1439
|
-
printf( "Cannot find gate \"%s\" in library \"%s\".\n", pToken, Mio_LibraryReadName(pLib) );
|
1440
|
-
continue;
|
1441
|
-
}
|
1442
|
-
// read profile
|
1443
|
-
pToken = strtok( NULL, " \t\n" );
|
1444
|
-
Mio_GateSetProfile( pGate, atoi(pToken) );
|
1445
|
-
}
|
1446
|
-
}
|
1447
|
-
|
1448
|
-
void Mio_LibraryWriteProfile( FILE * pFile, Mio_Library_t * pLib )
|
1449
|
-
{
|
1450
|
-
Mio_Gate_t * pGate;
|
1451
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1452
|
-
if ( Mio_GateReadProfile(pGate) > 0 )
|
1453
|
-
fprintf( pFile, "%-24s %6d\n", Mio_GateReadName(pGate), Mio_GateReadProfile(pGate) );
|
1454
|
-
}
|
1455
|
-
|
1456
|
-
int Mio_LibraryHasProfile( Mio_Library_t * pLib )
|
1457
|
-
{
|
1458
|
-
Mio_Gate_t * pGate;
|
1459
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1460
|
-
if ( Mio_GateReadProfile(pGate) > 0 )
|
1461
|
-
return 1;
|
1462
|
-
return 0;
|
1463
|
-
}
|
1464
|
-
|
1465
|
-
|
1466
|
-
void Mio_LibraryTransferProfile( Mio_Library_t * pLibDst, Mio_Library_t * pLibSrc )
|
1467
|
-
{
|
1468
|
-
Mio_Gate_t * pGateSrc, * pGateDst;
|
1469
|
-
Mio_LibraryForEachGate( pLibDst, pGateDst )
|
1470
|
-
Mio_GateSetProfile( pGateDst, 0 );
|
1471
|
-
Mio_LibraryForEachGate( pLibSrc, pGateSrc )
|
1472
|
-
if ( Mio_GateReadProfile(pGateSrc) > 0 )
|
1473
|
-
{
|
1474
|
-
// find gate by name
|
1475
|
-
pGateDst = Mio_LibraryReadGateByName( pLibDst, Mio_GateReadName(pGateSrc), NULL );
|
1476
|
-
if ( pGateDst == NULL )
|
1477
|
-
{
|
1478
|
-
// find gate by function
|
1479
|
-
Mio_LibraryForEachGate( pLibDst, pGateDst )
|
1480
|
-
if ( pGateDst->uTruth == pGateSrc->uTruth )
|
1481
|
-
break;
|
1482
|
-
if ( pGateDst == NULL )
|
1483
|
-
{
|
1484
|
-
printf( "Cannot find gate \"%s\" in library \"%s\".\n", Mio_GateReadName(pGateSrc), Mio_LibraryReadName(pLibDst) );
|
1485
|
-
continue;
|
1486
|
-
}
|
1487
|
-
}
|
1488
|
-
Mio_GateAddToProfile( pGateDst, Mio_GateReadProfile(pGateSrc) );
|
1489
|
-
}
|
1490
|
-
}
|
1491
|
-
void Mio_LibraryTransferProfile2( Mio_Library_t * pLibDst, Mio_Library_t * pLibSrc )
|
1492
|
-
{
|
1493
|
-
Mio_Gate_t * pGateSrc, * pGateDst;
|
1494
|
-
Mio_LibraryForEachGate( pLibDst, pGateDst )
|
1495
|
-
Mio_GateSetProfile2( pGateDst, 0 );
|
1496
|
-
Mio_LibraryForEachGate( pLibSrc, pGateSrc )
|
1497
|
-
if ( Mio_GateReadProfile2(pGateSrc) > 0 )
|
1498
|
-
{
|
1499
|
-
// find gate by name
|
1500
|
-
pGateDst = Mio_LibraryReadGateByName( pLibDst, Mio_GateReadName(pGateSrc), NULL );
|
1501
|
-
if ( pGateDst == NULL )
|
1502
|
-
{
|
1503
|
-
// find gate by function
|
1504
|
-
Mio_LibraryForEachGate( pLibDst, pGateDst )
|
1505
|
-
if ( pGateDst->uTruth == pGateSrc->uTruth )
|
1506
|
-
break;
|
1507
|
-
if ( pGateDst == NULL )
|
1508
|
-
{
|
1509
|
-
printf( "Cannot find gate \"%s\" in library \"%s\".\n", Mio_GateReadName(pGateSrc), Mio_LibraryReadName(pLibDst) );
|
1510
|
-
continue;
|
1511
|
-
}
|
1512
|
-
}
|
1513
|
-
Mio_GateAddToProfile2( pGateDst, Mio_GateReadProfile2(pGateSrc) );
|
1514
|
-
}
|
1515
|
-
}
|
1516
|
-
|
1517
|
-
void Mio_LibraryCleanProfile2( Mio_Library_t * pLib )
|
1518
|
-
{
|
1519
|
-
Mio_Gate_t * pGate;
|
1520
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1521
|
-
Mio_GateSetProfile2( pGate, 0 );
|
1522
|
-
}
|
1523
|
-
|
1524
|
-
/**Function*************************************************************
|
1525
|
-
|
1526
|
-
Synopsis []
|
1527
|
-
|
1528
|
-
Description []
|
1529
|
-
|
1530
|
-
SideEffects []
|
1531
|
-
|
1532
|
-
SeeAlso []
|
1533
|
-
|
1534
|
-
***********************************************************************/
|
1535
|
-
void Mio_LibraryHashGates( Mio_Library_t * pLib )
|
1536
|
-
{
|
1537
|
-
Mio_Gate_t * pGate;
|
1538
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1539
|
-
if ( pGate->pTwin )
|
1540
|
-
{
|
1541
|
-
printf( "Gates with multiple outputs are not supported.\n" );
|
1542
|
-
return;
|
1543
|
-
}
|
1544
|
-
if ( pLib->tName2Gate )
|
1545
|
-
st__free_table( pLib->tName2Gate );
|
1546
|
-
pLib->tName2Gate = st__init_table(strcmp, st__strhash);
|
1547
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1548
|
-
st__insert( pLib->tName2Gate, pGate->pName, (char *)pGate );
|
1549
|
-
}
|
1550
|
-
|
1551
|
-
/**Function*************************************************************
|
1552
|
-
|
1553
|
-
Synopsis []
|
1554
|
-
|
1555
|
-
Description []
|
1556
|
-
|
1557
|
-
SideEffects []
|
1558
|
-
|
1559
|
-
SeeAlso []
|
1560
|
-
|
1561
|
-
***********************************************************************/
|
1562
|
-
static inline int Abc_SclIsChar( char c )
|
1563
|
-
{
|
1564
|
-
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_';
|
1565
|
-
}
|
1566
|
-
static inline int Abc_SclIsName( char c )
|
1567
|
-
{
|
1568
|
-
return Abc_SclIsChar(c) || (c >= '0' && c <= '9');
|
1569
|
-
}
|
1570
|
-
static inline char * Abc_SclFindLimit( char * pName )
|
1571
|
-
{
|
1572
|
-
assert( Abc_SclIsChar(*pName) );
|
1573
|
-
while ( Abc_SclIsName(*pName) )
|
1574
|
-
pName++;
|
1575
|
-
return pName;
|
1576
|
-
}
|
1577
|
-
static inline int Abc_SclAreEqual( char * pBase, char * pName, char * pLimit )
|
1578
|
-
{
|
1579
|
-
return !strncmp( pBase, pName, pLimit - pName );
|
1580
|
-
}
|
1581
|
-
void Mio_LibraryShortFormula( Mio_Gate_t * pCell, char * pForm, char * pBuffer )
|
1582
|
-
{
|
1583
|
-
Mio_Pin_t * pPin;
|
1584
|
-
char * pTemp, * pLimit; int i;
|
1585
|
-
if ( !strncmp(pForm, "CONST", 5) )
|
1586
|
-
{
|
1587
|
-
sprintf( pBuffer, "%s", pForm );
|
1588
|
-
return;
|
1589
|
-
}
|
1590
|
-
for ( pTemp = pForm; *pTemp; )
|
1591
|
-
{
|
1592
|
-
if ( !Abc_SclIsChar(*pTemp) )
|
1593
|
-
{
|
1594
|
-
*pBuffer++ = *pTemp++;
|
1595
|
-
continue;
|
1596
|
-
}
|
1597
|
-
pLimit = Abc_SclFindLimit( pTemp );
|
1598
|
-
i = 0;
|
1599
|
-
Mio_GateForEachPin( pCell, pPin )
|
1600
|
-
{
|
1601
|
-
if ( Abc_SclAreEqual( pPin->pName, pTemp, pLimit ) )
|
1602
|
-
{
|
1603
|
-
*pBuffer++ = 'a' + i;
|
1604
|
-
break;
|
1605
|
-
}
|
1606
|
-
i++;
|
1607
|
-
}
|
1608
|
-
pTemp = pLimit;
|
1609
|
-
}
|
1610
|
-
*pBuffer++ = 0;
|
1611
|
-
}
|
1612
|
-
void Mio_LibraryShortNames( Mio_Library_t * pLib )
|
1613
|
-
{
|
1614
|
-
char Buffer[10000];
|
1615
|
-
Mio_Gate_t * pGate; Mio_Pin_t * pPin;
|
1616
|
-
int c = 0, i, nDigits = Abc_Base10Log( Mio_LibraryReadGateNum(pLib) );
|
1617
|
-
// itereate through classes
|
1618
|
-
Mio_LibraryForEachGate( pLib, pGate )
|
1619
|
-
{
|
1620
|
-
ABC_FREE( pGate->pName );
|
1621
|
-
sprintf( Buffer, "g%0*d", nDigits, ++c );
|
1622
|
-
pGate->pName = Abc_UtilStrsav( Buffer );
|
1623
|
-
// update formula
|
1624
|
-
Mio_LibraryShortFormula( pGate, pGate->pForm, Buffer );
|
1625
|
-
ABC_FREE( pGate->pForm );
|
1626
|
-
pGate->pForm = Abc_UtilStrsav( Buffer );
|
1627
|
-
// pin names
|
1628
|
-
i = 0;
|
1629
|
-
Mio_GateForEachPin( pGate, pPin )
|
1630
|
-
{
|
1631
|
-
ABC_FREE( pPin->pName );
|
1632
|
-
sprintf( Buffer, "%c", 'a'+i );
|
1633
|
-
pPin->pName = Abc_UtilStrsav( Buffer );
|
1634
|
-
i++;
|
1635
|
-
}
|
1636
|
-
// output pin
|
1637
|
-
ABC_FREE( pGate->pOutName );
|
1638
|
-
sprintf( Buffer, "z" );
|
1639
|
-
pGate->pOutName = Abc_UtilStrsav( Buffer );
|
1640
|
-
}
|
1641
|
-
Mio_LibraryHashGates( pLib );
|
1642
|
-
// update library name
|
1643
|
-
printf( "Renaming library \"%s\" into \"%s%d\".\n", pLib->pName, "lib", Mio_LibraryReadGateNum(pLib) );
|
1644
|
-
ABC_FREE( pLib->pName );
|
1645
|
-
sprintf( Buffer, "lib%d", Mio_LibraryReadGateNum(pLib) );
|
1646
|
-
pLib->pName = Abc_UtilStrsav( Buffer );
|
1647
|
-
}
|
1648
|
-
|
1649
|
-
/**Function*************************************************************
|
1650
|
-
|
1651
|
-
Synopsis []
|
1652
|
-
|
1653
|
-
Description []
|
1654
|
-
|
1655
|
-
SideEffects []
|
1656
|
-
|
1657
|
-
SeeAlso []
|
1658
|
-
|
1659
|
-
***********************************************************************/
|
1660
|
-
void Mio_LibraryMatchesStop( Mio_Library_t * pLib )
|
1661
|
-
{
|
1662
|
-
if ( !pLib->vTtMem )
|
1663
|
-
return;
|
1664
|
-
Vec_WecFree( pLib->vTt2Match );
|
1665
|
-
Vec_MemHashFree( pLib->vTtMem );
|
1666
|
-
Vec_MemFree( pLib->vTtMem );
|
1667
|
-
ABC_FREE( pLib->pCells );
|
1668
|
-
}
|
1669
|
-
void Mio_LibraryMatchesStart( Mio_Library_t * pLib, int fPinFilter, int fPinPerm, int fPinQuick )
|
1670
|
-
{
|
1671
|
-
extern Mio_Cell2_t * Nf_StoDeriveMatches( Vec_Mem_t * vTtMem, Vec_Wec_t * vTt2Match, int * pnCells, int fPinFilter, int fPinPerm, int fPinQuick );
|
1672
|
-
if ( pLib->vTtMem && pLib->fPinFilter == fPinFilter && pLib->fPinPerm == fPinPerm && pLib->fPinQuick == fPinQuick )
|
1673
|
-
return;
|
1674
|
-
if ( pLib->vTtMem )
|
1675
|
-
Mio_LibraryMatchesStop( pLib );
|
1676
|
-
pLib->fPinFilter = fPinFilter; // pin filtering
|
1677
|
-
pLib->fPinPerm = fPinPerm; // pin permutation
|
1678
|
-
pLib->fPinQuick = fPinQuick; // pin permutation
|
1679
|
-
pLib->vTtMem = Vec_MemAllocForTT( 6, 0 );
|
1680
|
-
pLib->vTt2Match = Vec_WecAlloc( 1000 );
|
1681
|
-
Vec_WecPushLevel( pLib->vTt2Match );
|
1682
|
-
Vec_WecPushLevel( pLib->vTt2Match );
|
1683
|
-
assert( Vec_WecSize(pLib->vTt2Match) == Vec_MemEntryNum(pLib->vTtMem) );
|
1684
|
-
pLib->pCells = Nf_StoDeriveMatches( pLib->vTtMem, pLib->vTt2Match, &pLib->nCells, fPinFilter, fPinPerm, fPinQuick );
|
1685
|
-
}
|
1686
|
-
void Mio_LibraryMatchesFetch( Mio_Library_t * pLib, Vec_Mem_t ** pvTtMem, Vec_Wec_t ** pvTt2Match, Mio_Cell2_t ** ppCells, int * pnCells, int fPinFilter, int fPinPerm, int fPinQuick )
|
1687
|
-
{
|
1688
|
-
Mio_LibraryMatchesStart( pLib, fPinFilter, fPinPerm, fPinQuick );
|
1689
|
-
*pvTtMem = pLib->vTtMem; // truth tables
|
1690
|
-
*pvTt2Match = pLib->vTt2Match; // matches for truth tables
|
1691
|
-
*ppCells = pLib->pCells; // library gates
|
1692
|
-
*pnCells = pLib->nCells; // library gate count
|
1693
|
-
}
|
1694
|
-
|
1695
|
-
/**Function*************************************************************
|
1696
|
-
|
1697
|
-
Synopsis []
|
1698
|
-
|
1699
|
-
Description []
|
1700
|
-
|
1701
|
-
SideEffects []
|
1702
|
-
|
1703
|
-
SeeAlso []
|
1704
|
-
|
1705
|
-
***********************************************************************/
|
1706
|
-
void Mio_LibraryMatches2Stop( Mio_Library_t * pLib )
|
1707
|
-
{
|
1708
|
-
int i;
|
1709
|
-
if ( !pLib->vNames )
|
1710
|
-
return;
|
1711
|
-
Vec_PtrFree( pLib->vNames );
|
1712
|
-
Vec_WrdFree( pLib->vTruths );
|
1713
|
-
Vec_IntFree( pLib->vTt2Match4 );
|
1714
|
-
Vec_IntFree( pLib->vConfigs );
|
1715
|
-
for ( i = 0; i < 3; i++ )
|
1716
|
-
{
|
1717
|
-
Vec_MemHashFree( pLib->vTtMem2[i] );
|
1718
|
-
Vec_MemFree( pLib->vTtMem2[i] );
|
1719
|
-
Vec_IntFree( pLib->vTt2Match2[i] );
|
1720
|
-
}
|
1721
|
-
}
|
1722
|
-
void Mio_LibraryMatches2Start( Mio_Library_t * pLib )
|
1723
|
-
{
|
1724
|
-
extern int Gia_ManDeriveMatches( Vec_Ptr_t ** pvNames, Vec_Wrd_t ** pvTruths, Vec_Int_t ** pvTt2Match4, Vec_Int_t ** pvConfigs, Vec_Mem_t * pvTtMem2[3], Vec_Int_t * pvTt2Match2[3] );
|
1725
|
-
if ( pLib->vNames )
|
1726
|
-
return;
|
1727
|
-
if ( pLib->vTtMem )
|
1728
|
-
Mio_LibraryMatches2Stop( pLib );
|
1729
|
-
Gia_ManDeriveMatches( &pLib->vNames, &pLib->vTruths, &pLib->vTt2Match4, &pLib->vConfigs, pLib->vTtMem2, pLib->vTt2Match2 );
|
1730
|
-
}
|
1731
|
-
void Mio_LibraryMatches2Fetch( Mio_Library_t * pLib, Vec_Ptr_t ** pvNames, Vec_Wrd_t ** pvTruths, Vec_Int_t ** pvTt2Match4, Vec_Int_t ** pvConfigs, Vec_Mem_t * pvTtMem2[3], Vec_Int_t * pvTt2Match2[3] )
|
1732
|
-
{
|
1733
|
-
int i;
|
1734
|
-
Mio_LibraryMatches2Start( pLib );
|
1735
|
-
*pvNames = pLib->vNames;
|
1736
|
-
*pvTruths = pLib->vTruths;
|
1737
|
-
*pvTt2Match4 = pLib->vTt2Match4;
|
1738
|
-
*pvConfigs = pLib->vConfigs;
|
1739
|
-
for ( i = 0; i < 3; i++ )
|
1740
|
-
{
|
1741
|
-
pvTtMem2[i] = pLib->vTtMem2[i];
|
1742
|
-
pvTt2Match2[i] = pLib->vTt2Match2[i];
|
1743
|
-
}
|
1744
|
-
}
|
1745
|
-
|
1746
|
-
////////////////////////////////////////////////////////////////////////
|
1747
|
-
/// END OF FILE ///
|
1748
|
-
////////////////////////////////////////////////////////////////////////
|
1749
|
-
|
1750
|
-
|
1751
|
-
ABC_NAMESPACE_IMPL_END
|
1752
|
-
|