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
41c01e4f
Commit
41c01e4f
authored
Mar 17, 2023
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warning.
parent
6694add4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/aig/miniaig/miniaig.h
+4
-4
No files found.
src/aig/miniaig/miniaig.h
View file @
41c01e4f
...
@@ -392,7 +392,7 @@ static Mini_Aig_t * Mini_AigTransformXor( Mini_Aig_t * p )
...
@@ -392,7 +392,7 @@ static Mini_Aig_t * Mini_AigTransformXor( Mini_Aig_t * p )
int
iLit1
=
Mini_AigNodeFanin1
(
p
,
i
);
int
iLit1
=
Mini_AigNodeFanin1
(
p
,
i
);
iLit0
=
Mini_AigLitNotCond
(
pCopy
[
Mini_AigLit2Var
(
iLit0
)],
Mini_AigLitIsCompl
(
iLit0
)
);
iLit0
=
Mini_AigLitNotCond
(
pCopy
[
Mini_AigLit2Var
(
iLit0
)],
Mini_AigLitIsCompl
(
iLit0
)
);
iLit1
=
Mini_AigLitNotCond
(
pCopy
[
Mini_AigLit2Var
(
iLit1
)],
Mini_AigLitIsCompl
(
iLit1
)
);
iLit1
=
Mini_AigLitNotCond
(
pCopy
[
Mini_AigLit2Var
(
iLit1
)],
Mini_AigLitIsCompl
(
iLit1
)
);
if
(
iLit0
<
iLit1
)
if
(
iLit0
<
=
iLit1
)
pCopy
[
i
]
=
Mini_AigAnd
(
pNew
,
iLit0
,
iLit1
);
pCopy
[
i
]
=
Mini_AigAnd
(
pNew
,
iLit0
,
iLit1
);
else
else
pCopy
[
i
]
=
Mini_AigXor
(
pNew
,
iLit0
,
iLit1
);
pCopy
[
i
]
=
Mini_AigXor
(
pNew
,
iLit0
,
iLit1
);
...
@@ -564,15 +564,15 @@ static void Mini_AigDumpVerilog( char * pFileName, char * pModuleName, Mini_Aig_
...
@@ -564,15 +564,15 @@ static void Mini_AigDumpVerilog( char * pFileName, char * pModuleName, Mini_Aig_
// procedure to dump MiniAIG into a BLIF file
// procedure to dump MiniAIG into a BLIF file
static
void
Mini_AigDumpBlif
(
char
*
pFileName
,
char
*
pModuleName
,
Mini_Aig_t
*
p
,
int
fVerbose
)
static
void
Mini_AigDumpBlif
(
char
*
pFileName
,
char
*
pModuleName
,
Mini_Aig_t
*
p
,
int
fVerbose
)
{
{
int
i
,
k
,
iFaninLit0
,
iFaninLit1
,
Length
=
strlen
(
pModuleName
),
nPis
=
Mini_AigPiNum
(
p
),
nPos
=
Mini_AigPoNum
(
p
)
;
int
i
,
k
,
iFaninLit0
,
iFaninLit1
;
char
*
pObjIsPi
=
MINI_AIG_FALLOC
(
char
,
Mini_AigNodeNum
(
p
)
);
char
*
pObjIsPi
=
MINI_AIG_FALLOC
(
char
,
Mini_AigNodeNum
(
p
)
);
FILE
*
pFile
=
fopen
(
pFileName
,
"wb"
);
FILE
*
pFile
=
fopen
(
pFileName
,
"wb"
);
assert
(
nPis
<=
26
);
assert
(
Mini_AigPiNum
(
p
)
<=
26
);
if
(
pFile
==
NULL
)
{
printf
(
"Cannot open output file %s
\n
"
,
pFileName
);
MINI_AIG_FREE
(
pObjIsPi
);
return
;
}
if
(
pFile
==
NULL
)
{
printf
(
"Cannot open output file %s
\n
"
,
pFileName
);
MINI_AIG_FREE
(
pObjIsPi
);
return
;
}
// write interface
// write interface
//fprintf( pFile, "// This MiniAIG dump was produced by ABC on %s\n\n", Extra_TimeStamp() );
//fprintf( pFile, "// This MiniAIG dump was produced by ABC on %s\n\n", Extra_TimeStamp() );
fprintf
(
pFile
,
".model %s
\n
"
,
pModuleName
);
fprintf
(
pFile
,
".model %s
\n
"
,
pModuleName
);
if
(
nPis
>
0
)
if
(
Mini_AigPiNum
(
p
)
)
{
{
k
=
0
;
k
=
0
;
fprintf
(
pFile
,
".inputs"
);
fprintf
(
pFile
,
".inputs"
);
...
...
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