Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
f3c5bab5
Commit
f3c5bab5
authored
Nov 20, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding an option to write new-line after the comment symbol when dumping an AIGER file.
parent
32315113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/aig/gia/giaAiger.c
+7
-2
No files found.
src/aig/gia/giaAiger.c
View file @
f3c5bab5
...
@@ -1079,6 +1079,7 @@ Vec_Str_t * Gia_AigerWriteIntoMemoryStrPart( Gia_Man_t * p, Vec_Int_t * vCis, Ve
...
@@ -1079,6 +1079,7 @@ Vec_Str_t * Gia_AigerWriteIntoMemoryStrPart( Gia_Man_t * p, Vec_Int_t * vCis, Ve
void
Gia_AigerWrite
(
Gia_Man_t
*
pInit
,
char
*
pFileName
,
int
fWriteSymbols
,
int
fCompact
)
void
Gia_AigerWrite
(
Gia_Man_t
*
pInit
,
char
*
pFileName
,
int
fWriteSymbols
,
int
fCompact
)
{
{
int
fVerbose
=
XAIG_VERBOSE
;
int
fVerbose
=
XAIG_VERBOSE
;
int
fWriteNewLine
=
0
;
FILE
*
pFile
;
FILE
*
pFile
;
Gia_Man_t
*
p
;
Gia_Man_t
*
p
;
Gia_Obj_t
*
pObj
;
Gia_Obj_t
*
pObj
;
...
@@ -1194,8 +1195,10 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
...
@@ -1194,8 +1195,10 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
}
}
// write the comment
// write the comment
// fprintf( pFile, "c\n" );
if
(
fWriteNewLine
)
fprintf
(
pFile
,
"c"
);
fprintf
(
pFile
,
"c
\n
"
);
else
fprintf
(
pFile
,
"c"
);
// write additional AIG
// write additional AIG
if
(
p
->
pAigExtra
)
if
(
p
->
pAigExtra
)
...
@@ -1406,6 +1409,8 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
...
@@ -1406,6 +1409,8 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
fprintf
(
pFile
,
"%c"
,
'\0'
);
fprintf
(
pFile
,
"%c"
,
'\0'
);
}
}
// write comments
// write comments
if
(
fWriteNewLine
)
fprintf
(
pFile
,
"c
\n
"
);
fprintf
(
pFile
,
"
\n
This file was produced by the GIA package in ABC on %s
\n
"
,
Gia_TimeStamp
()
);
fprintf
(
pFile
,
"
\n
This file was produced by the GIA package in ABC on %s
\n
"
,
Gia_TimeStamp
()
);
fprintf
(
pFile
,
"For information about AIGER format, refer to %s
\n
"
,
"http://fmv.jku.at/aiger"
);
fprintf
(
pFile
,
"For information about AIGER format, refer to %s
\n
"
,
"http://fmv.jku.at/aiger"
);
fclose
(
pFile
);
fclose
(
pFile
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment