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
b2ad079a
Commit
b2ad079a
authored
Jul 25, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for skipping structural hashing when reading GIA from file.
parent
160b196a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/aig/gia/giaAiger.c
+2
-2
src/base/abci/abc.c
+8
-4
No files found.
src/aig/gia/giaAiger.c
View file @
b2ad079a
...
...
@@ -747,7 +747,7 @@ Gia_Man_t * Gia_ReadAigerFromMemory( char * pContents, int nFileSize, int fSkipS
}
// create the AND gates
if
(
fSkipStrash
)
if
(
!
fSkipStrash
)
Gia_ManHashAlloc
(
pNew
);
for
(
i
=
0
;
i
<
nAnds
;
i
++
)
{
...
...
@@ -763,7 +763,7 @@ Gia_Man_t * Gia_ReadAigerFromMemory( char * pContents, int nFileSize, int fSkipS
else
Vec_IntPush
(
vNodes
,
Gia_ManHashAnd
(
pNew
,
iNode0
,
iNode1
)
);
}
if
(
fSkipStrash
)
if
(
!
fSkipStrash
)
Gia_ManHashStop
(
pNew
);
// remember the place where symbols begin
...
...
src/base/abci/abc.c
View file @
b2ad079a
...
...
@@ -840,7 +840,6 @@ void Abc_Init( Abc_Frame_t * pAbc )
{
extern
void
Dar_LibStart
();
// char * pMem = malloc( (1<<30) * 3 / 2 );
Dar_LibStart
();
}
{
...
...
@@ -22690,11 +22689,15 @@ int Abc_CommandAbc9Read( Abc_Frame_t * pAbc, int argc, char ** argv )
char
*
FileName
,
*
pTemp
;
int
nArgcNew
;
int
c
,
fVerbose
=
0
;
int
fSkipStrash
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
s
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
's'
:
fSkipStrash
^=
1
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
...
...
@@ -22726,13 +22729,14 @@ int Abc_CommandAbc9Read( Abc_Frame_t * pAbc, int argc, char ** argv )
}
fclose
(
pFile
);
pAig
=
Gia_ReadAiger
(
FileName
,
0
,
0
);
pAig
=
Gia_ReadAiger
(
FileName
,
fSkipStrash
,
0
);
Abc_CommandUpdate9
(
pAbc
,
pAig
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &r [-vh] <file>
\n
"
);
Abc_Print
(
-
2
,
"usage: &r [-
s
vh] <file>
\n
"
);
Abc_Print
(
-
2
,
"
\t
reads the current AIG from the AIGER file
\n
"
);
Abc_Print
(
-
2
,
"
\t
-s : toggles structural hashing while reading [default = %s]
\n
"
,
!
fSkipStrash
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles additional verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
<file> : the file name
\n
"
);
...
...
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