56 int main(
int argc,
char * argv[] )
66 clock_t clkRead, clkResyn, clkVer, clk;
72 printf(
"Wrong number of command-line arguments.\n" );
85 sprintf( Command,
"read %s", pFileName );
88 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
97 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
100 clkRead = clock() - clk;
106 sprintf( Command,
"print_stats" );
109 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
119 sprintf( Command,
"balance; rewrite -l; refactor -l; balance; rewrite -l; rewrite -lz; balance; refactor -lz; rewrite -lz; balance" );
122 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
128 sprintf( Command,
"balance; rewrite -l; rewrite -lz; balance; rewrite -lz; balance" );
131 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
135 clkResyn = clock() - clk;
141 sprintf( Command,
"print_stats" );
144 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
151 sprintf( Command,
"write_blif result.blif" );
154 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
163 sprintf( Command,
"cec %s result.blif", pFileName );
166 fprintf( stdout,
"Cannot execute command \"%s\".\n", Command );
170 clkVer = clock() - clk;
172 printf(
"Reading = %6.2f sec ", (
float)(clkRead)/(
float)(CLOCKS_PER_SEC) );
173 printf(
"Rewriting = %6.2f sec ", (
float)(clkResyn)/(
float)(CLOCKS_PER_SEC) );
174 printf(
"Verification = %6.2f sec\n", (
float)(clkVer)/(
float)(CLOCKS_PER_SEC) );
int main(int argc, char *argv[])
FUNCTION DEFINITIONS ///.
void Abc_Start()
DECLARATIONS ///.
int Cmd_CommandExecute(void *pAbc, char *sCommand)
void * Abc_FrameGetGlobalFrame()