28#if defined(ABC_NAMESPACE)
29namespace ABC_NAMESPACE
31#elif defined(__cplusplus)
47#if defined(ABC_NAMESPACE)
49using namespace ABC_NAMESPACE;
50#elif defined(__cplusplus)
73int main(
int argc,
char * argv[] )
83 clock_t clkRead, clkResyn, clkVer, clk;
89 printf(
"Wrong number of command-line arguments.\n" );
102 sprintf( Command,
"read %s", pFileName );
105 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
114 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
117clkRead = clock() - clk;
123 sprintf( Command,
"print_stats" );
126 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
136 sprintf( Command,
"balance; rewrite -l; refactor -l; balance; rewrite -l; rewrite -lz; balance; refactor -lz; rewrite -lz; balance" );
139 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
145 sprintf( Command,
"balance; rewrite -l; rewrite -lz; balance; rewrite -lz; balance" );
148 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
152clkResyn = clock() - clk;
158 sprintf( Command,
"print_stats" );
161 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
168 sprintf( Command,
"write_blif result.blif" );
171 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
180 sprintf( Command,
"cec %s result.blif", pFileName );
183 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
187clkVer = clock() - clk;
189 printf(
"Reading = %6.2f sec ", (
float)(clkRead)/(
float)(CLOCKS_PER_SEC) );
190 printf(
"Rewriting = %6.2f sec ", (
float)(clkResyn)/(
float)(CLOCKS_PER_SEC) );
191 printf(
"Verification = %6.2f sec\n", (
float)(clkVer)/(
float)(CLOCKS_PER_SEC) );
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
ABC_DLL void Abc_Start()
FUNCTION DECLARATIONS ///.
ABC_DLL Abc_Frame_t * Abc_FrameGetGlobalFrame()
ABC_DLL int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
int main(int argc, char *argv[])
FUNCTION DEFINITIONS ///.
int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
Abc_Frame_t * Abc_FrameGetGlobalFrame()
void Abc_Start()
DECLARATIONS ///.