You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/base/abci/abc.c
+53-5Lines changed: 53 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8619,7 +8619,9 @@ int Abc_CommandResubstitute( Abc_Frame_t * pAbc, int argc, char ** argv )
8619
8619
int fUseZeros;
8620
8620
int fVerbose;
8621
8621
int fVeryVerbose;
8622
-
extern int Abc_NtkResubstitute( Abc_Ntk_t * pNtk, int nCutsMax, int nNodesMax, int nMinSaved, int nLevelsOdc, int fUpdateLevel, int fVerbose, int fVeryVerbose );
8622
+
int Log2Probs;
8623
+
int Log2Divs;
8624
+
extern int Abc_NtkResubstitute( Abc_Ntk_t * pNtk, int nCutsMax, int nNodesMax, int nMinSaved, int nLevelsOdc, int fUpdateLevel, int fVerbose, int fVeryVerbose, int Log2Probs, int Log2Divs );
8623
8625
8624
8626
// set defaults
8625
8627
nCutsMax = 8;
@@ -8630,8 +8632,10 @@ int Abc_CommandResubstitute( Abc_Frame_t * pAbc, int argc, char ** argv )
8630
8632
fUseZeros = 0;
8631
8633
fVerbose = 0;
8632
8634
fVeryVerbose = 0;
8635
+
Log2Probs = 0;
8636
+
Log2Divs = 0;
8633
8637
Extra_UtilGetoptReset();
8634
-
while ( ( c = Extra_UtilGetopt( argc, argv, "KNMFlzvwh" ) ) != EOF )
8638
+
while ( ( c = Extra_UtilGetopt( argc, argv, "KNMFlzvwhPDV" ) ) != EOF )
8635
8639
{
8636
8640
switch ( c )
8637
8641
{
@@ -8679,6 +8683,41 @@ int Abc_CommandResubstitute( Abc_Frame_t * pAbc, int argc, char ** argv )
8679
8683
if ( nLevelsOdc < 0 )
8680
8684
goto usage;
8681
8685
break;
8686
+
8687
+
case 'P':
8688
+
if ( globalUtilOptind >= argc )
8689
+
{
8690
+
Abc_Print( -1, "Command line switch \"-P\" should be followed by an integer.\n" );
8691
+
goto usage;
8692
+
}
8693
+
Log2Probs = atoi(argv[globalUtilOptind]);
8694
+
globalUtilOptind++;
8695
+
if ( Log2Probs < 0 )
8696
+
goto usage;
8697
+
break;
8698
+
case 'D':
8699
+
if ( globalUtilOptind >= argc )
8700
+
{
8701
+
Abc_Print( -1, "Command line switch \"-D\" should be followed by an integer.\n" );
8702
+
goto usage;
8703
+
}
8704
+
Log2Divs = atoi(argv[globalUtilOptind]);
8705
+
globalUtilOptind++;
8706
+
if ( Log2Divs < 0 )
8707
+
goto usage;
8708
+
break;
8709
+
case 'V':
8710
+
if ( globalUtilOptind >= argc )
8711
+
{
8712
+
Abc_Print( -1, "Command line switch \"-V\" should be followed by an integer.\n" );
8713
+
goto usage;
8714
+
}
8715
+
nCutsMax = atoi(argv[globalUtilOptind]);
8716
+
globalUtilOptind++;
8717
+
if ( nCutsMax < 0 )
8718
+
goto usage;
8719
+
break;
8720
+
8682
8721
case 'l':
8683
8722
fUpdateLevel ^= 1;
8684
8723
break;
@@ -8729,15 +8768,15 @@ int Abc_CommandResubstitute( Abc_Frame_t * pAbc, int argc, char ** argv )
0 commit comments