Go to the source code of this file.
◆ Io_WriteSmv()
| int Io_WriteSmv |
( |
Abc_Ntk_t * | pNtk, |
|
|
char * | pFileName ) |
Function*************************************************************
Synopsis [Writes the network in SMV format.]
Description []
SideEffects []
SeeAlso []
Definition at line 71 of file ioWriteSmv.c.
72{
74 FILE * pFile;
75 assert( Abc_NtkIsSopNetlist(pNtk) );
76 if ( !Io_WriteSmvCheckNames(pNtk) )
77 {
78 fprintf( stdout, "Io_WriteSmv(): Signal names in this benchmark contain parentheses making them impossible to reproduce in the SMV format. Use \"short_names\".\n" );
79 return 0;
80 }
81 pFile = fopen( pFileName, "w" );
82 if ( pFile == NULL )
83 {
84 fprintf( stdout, "Io_WriteSmv(): Cannot open the output file.\n" );
85 return 0;
86 }
88
89 Io_WriteSmvOne( pFile, pNtk );
90
91 pExdc = Abc_NtkExdc( pNtk );
92 if ( pExdc )
93 printf( "Io_WriteSmv: EXDC is not written (warning).\n" );
94
95 fclose( pFile );
96 return 1;
97}
struct Abc_Ntk_t_ Abc_Ntk_t