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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/aig/gia/giaAiger.c
+6
-1
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
void
Gia_AigerWrite
(
Gia_Man_t
*
pInit
,
char
*
pFileName
,
int
fWriteSymbols
,
int
fCompact
)
{
int
fVerbose
=
XAIG_VERBOSE
;
int
fWriteNewLine
=
0
;
FILE
*
pFile
;
Gia_Man_t
*
p
;
Gia_Obj_t
*
pObj
;
...
...
@@ -1194,7 +1195,9 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
}
// write the comment
// fprintf( pFile, "c\n" );
if
(
fWriteNewLine
)
fprintf
(
pFile
,
"c
\n
"
);
else
fprintf
(
pFile
,
"c"
);
// write additional AIG
...
...
@@ -1406,6 +1409,8 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
fprintf
(
pFile
,
"%c"
,
'\0'
);
}
// 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
,
"For information about AIGER format, refer to %s
\n
"
,
"http://fmv.jku.at/aiger"
);
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