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
f08be274
Commit
f08be274
authored
Oct 27, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C++ portability changes.
parent
24d27e55
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
11 deletions
+15
-11
src/aig/cnf/cnfFast.c
+2
-2
src/aig/saig/saigGlaCba.c
+1
-1
src/base/abci/abc.c
+1
-1
src/base/io/io.c
+1
-1
src/base/io/ioWriteBlif.c
+1
-4
src/map/if/if.h
+4
-0
src/map/if/ifDec16.c
+5
-2
No files found.
src/aig/cnf/cnfFast.c
View file @
f08be274
...
@@ -259,7 +259,7 @@ void Cnf_ComputeClauses( Aig_Man_t * p, Aig_Obj_t * pRoot,
...
@@ -259,7 +259,7 @@ void Cnf_ComputeClauses( Aig_Man_t * p, Aig_Obj_t * pRoot,
if
(
(
Cube
&
3
)
==
0
)
if
(
(
Cube
&
3
)
==
0
)
continue
;
continue
;
assert
(
(
Cube
&
3
)
!=
3
);
assert
(
(
Cube
&
3
)
!=
3
);
Vec_IntPush
(
vClauses
,
Cnf_ObjGetLit
(
vMap
,
Vec_PtrEntry
(
vLeaves
,
k
),
(
Cube
&
3
)
!=
1
)
);
Vec_IntPush
(
vClauses
,
Cnf_ObjGetLit
(
vMap
,
(
Aig_Obj_t
*
)
Vec_PtrEntry
(
vLeaves
,
k
),
(
Cube
&
3
)
!=
1
)
);
}
}
}
}
...
@@ -276,7 +276,7 @@ void Cnf_ComputeClauses( Aig_Man_t * p, Aig_Obj_t * pRoot,
...
@@ -276,7 +276,7 @@ void Cnf_ComputeClauses( Aig_Man_t * p, Aig_Obj_t * pRoot,
if
(
(
Cube
&
3
)
==
0
)
if
(
(
Cube
&
3
)
==
0
)
continue
;
continue
;
assert
(
(
Cube
&
3
)
!=
3
);
assert
(
(
Cube
&
3
)
!=
3
);
Vec_IntPush
(
vClauses
,
Cnf_ObjGetLit
(
vMap
,
Vec_PtrEntry
(
vLeaves
,
k
),
(
Cube
&
3
)
!=
1
)
);
Vec_IntPush
(
vClauses
,
Cnf_ObjGetLit
(
vMap
,
(
Aig_Obj_t
*
)
Vec_PtrEntry
(
vLeaves
,
k
),
(
Cube
&
3
)
!=
1
)
);
}
}
}
}
}
}
...
...
src/aig/saig/saigGlaCba.c
View file @
f08be274
...
@@ -394,7 +394,7 @@ int Aig_Gla1ObjAddToSolver( Aig_Gla1Man_t * p, Aig_Obj_t * pObj, int k )
...
@@ -394,7 +394,7 @@ int Aig_Gla1ObjAddToSolver( Aig_Gla1Man_t * p, Aig_Obj_t * pObj, int k )
Aig_ObjFaninC0
(
pObj
),
Aig_ObjFaninC1
(
pObj
)
);
Aig_ObjFaninC0
(
pObj
),
Aig_ObjFaninC1
(
pObj
)
);
// derive clauses
// derive clauses
assert
(
pObj
->
fMarkA
);
assert
(
pObj
->
fMarkA
);
vClauses
=
Vec_PtrEntry
(
p
->
vObj2Cnf
,
Aig_ObjId
(
pObj
)
);
vClauses
=
(
Vec_Int_t
*
)
Vec_PtrEntry
(
p
->
vObj2Cnf
,
Aig_ObjId
(
pObj
)
);
if
(
vClauses
==
NULL
)
if
(
vClauses
==
NULL
)
{
{
Vec_PtrWriteEntry
(
p
->
vObj2Cnf
,
Aig_ObjId
(
pObj
),
(
vClauses
=
Vec_IntAlloc
(
16
))
);
Vec_PtrWriteEntry
(
p
->
vObj2Cnf
,
Aig_ObjId
(
pObj
),
(
vClauses
=
Vec_IntAlloc
(
16
))
);
...
...
src/base/abci/abc.c
View file @
f08be274
...
@@ -13154,7 +13154,7 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -13154,7 +13154,7 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
}
}
pPars
->
pLutStruct
=
argv
[
globalUtilOptind
];
pPars
->
pLutStruct
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
globalUtilOptind
++
;
if
(
!
strlen
(
pPars
->
pLutStruct
)
==
2
&&
!
strlen
(
pPars
->
pLutStruct
)
=
=
3
)
if
(
strlen
(
pPars
->
pLutStruct
)
!=
2
&&
strlen
(
pPars
->
pLutStruct
)
!
=
3
)
{
{
Abc_Print
(
-
1
,
"Command line switch
\"
-S
\"
should be followed by a 2- or 3-char string (e.g.
\"
44
\"
or
\"
555
\"
).
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-S
\"
should be followed by a 2- or 3-char string (e.g.
\"
44
\"
or
\"
555
\"
).
\n
"
);
goto
usage
;
goto
usage
;
...
...
src/base/io/io.c
View file @
f08be274
...
@@ -1597,7 +1597,7 @@ int IoCommandWriteBlif( Abc_Frame_t * pAbc, int argc, char **argv )
...
@@ -1597,7 +1597,7 @@ int IoCommandWriteBlif( Abc_Frame_t * pAbc, int argc, char **argv )
}
}
pLutStruct
=
argv
[
globalUtilOptind
];
pLutStruct
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
globalUtilOptind
++
;
if
(
!
strlen
(
pLutStruct
)
==
2
&&
!
strlen
(
pLutStruct
)
=
=
3
)
if
(
strlen
(
pLutStruct
)
!=
2
&&
strlen
(
pLutStruct
)
!
=
3
)
{
{
Abc_Print
(
-
1
,
"Command line switch
\"
-S
\"
should be followed by a 2- or 3-char string (e.g.
\"
44
\"
or
\"
555
\"
).
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-S
\"
should be followed by a 2- or 3-char string (e.g.
\"
44
\"
or
\"
555
\"
).
\n
"
);
goto
usage
;
goto
usage
;
...
...
src/base/io/ioWriteBlif.c
View file @
f08be274
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "main.h"
#include "main.h"
#include "mio.h"
#include "mio.h"
#include "kit.h"
#include "kit.h"
#include "if.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -882,10 +883,6 @@ void Io_NtkWriteNodeIntStruct( FILE * pFile, Abc_Obj_t * pNode, Vec_Int_t * vCov
...
@@ -882,10 +883,6 @@ void Io_NtkWriteNodeIntStruct( FILE * pFile, Abc_Obj_t * pNode, Vec_Int_t * vCov
else
else
{
{
extern
int
If_CluMinimumBase
(
word
*
t
,
int
*
pSupp
,
int
nVarsAll
,
int
*
pnVars
);
extern
int
If_CluMinimumBase
(
word
*
t
,
int
*
pSupp
,
int
nVarsAll
,
int
*
pnVars
);
extern
int
If_CluCheckExt
(
void
*
p
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutRoot
,
char
*
pLut0
,
char
*
pLut1
,
word
*
pFunc0
,
word
*
pFunc1
);
extern
int
If_CluCheckExt3
(
void
*
p
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutLeaf2
,
int
nLutRoot
,
char
*
pLut0
,
char
*
pLut1
,
char
*
pLut2
,
word
*
pFunc0
,
word
*
pFunc1
,
word
*
pFunc2
);
static
word
TruthStore
[
16
][
1
<<
10
]
=
{{
0
}},
*
pTruths
[
16
];
static
word
TruthStore
[
16
][
1
<<
10
]
=
{{
0
}},
*
pTruths
[
16
];
word
pCube
[
1
<<
10
],
pRes
[
1
<<
10
],
Func0
,
Func1
,
Func2
;
word
pCube
[
1
<<
10
],
pRes
[
1
<<
10
],
Func0
,
Func1
,
Func2
;
...
...
src/map/if/if.h
View file @
f08be274
...
@@ -426,6 +426,10 @@ extern int If_CutPerformCheck08( If_Man_t * p, unsigned * pTruth, in
...
@@ -426,6 +426,10 @@ extern int If_CutPerformCheck08( If_Man_t * p, unsigned * pTruth, in
extern
int
If_CutPerformCheck10
(
If_Man_t
*
p
,
unsigned
*
pTruth
,
int
nVars
,
int
nLeaves
,
char
*
pStr
);
extern
int
If_CutPerformCheck10
(
If_Man_t
*
p
,
unsigned
*
pTruth
,
int
nVars
,
int
nLeaves
,
char
*
pStr
);
extern
int
If_CutPerformCheck16
(
If_Man_t
*
p
,
unsigned
*
pTruth
,
int
nVars
,
int
nLeaves
,
char
*
pStr
);
extern
int
If_CutPerformCheck16
(
If_Man_t
*
p
,
unsigned
*
pTruth
,
int
nVars
,
int
nLeaves
,
char
*
pStr
);
extern
float
If_CutDelayLutStruct
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
char
*
pStr
,
float
WireDelay
);
extern
float
If_CutDelayLutStruct
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
,
char
*
pStr
,
float
WireDelay
);
extern
int
If_CluCheckExt
(
void
*
p
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutRoot
,
char
*
pLut0
,
char
*
pLut1
,
word
*
pFunc0
,
word
*
pFunc1
);
extern
int
If_CluCheckExt3
(
void
*
p
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutLeaf2
,
int
nLutRoot
,
char
*
pLut0
,
char
*
pLut1
,
char
*
pLut2
,
word
*
pFunc0
,
word
*
pFunc1
,
word
*
pFunc2
);
/*=== ifLib.c =============================================================*/
/*=== ifLib.c =============================================================*/
extern
If_Lib_t
*
If_LutLibRead
(
char
*
FileName
);
extern
If_Lib_t
*
If_LutLibRead
(
char
*
FileName
);
extern
If_Lib_t
*
If_LutLibDup
(
If_Lib_t
*
p
);
extern
If_Lib_t
*
If_LutLibDup
(
If_Lib_t
*
p
);
...
...
src/map/if/ifDec16.c
View file @
f08be274
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
***********************************************************************/
***********************************************************************/
#include "if.h"
#include "if.h"
#include "kit.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -1780,9 +1781,10 @@ If_Grp_t If_CluCheck3( If_Man_t * p, word * pTruth0, int nVars, int nLutLeaf, in
...
@@ -1780,9 +1781,10 @@ If_Grp_t If_CluCheck3( If_Man_t * p, word * pTruth0, int nVars, int nLutLeaf, in
}
}
// returns the best group found
// returns the best group found
int
If_CluCheckExt
(
If_Man_t
*
p
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutRoot
,
int
If_CluCheckExt
(
void
*
pMan
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutRoot
,
char
*
pLut0
,
char
*
pLut1
,
word
*
pFunc0
,
word
*
pFunc1
)
char
*
pLut0
,
char
*
pLut1
,
word
*
pFunc0
,
word
*
pFunc1
)
{
{
If_Man_t
*
p
=
(
If_Man_t
*
)
pMan
;
If_Grp_t
G
,
R
;
If_Grp_t
G
,
R
;
G
=
If_CluCheck
(
p
,
pTruth
,
nVars
,
0
,
nLutLeaf
,
nLutRoot
,
&
R
,
pFunc0
,
pFunc1
,
NULL
,
0
);
G
=
If_CluCheck
(
p
,
pTruth
,
nVars
,
0
,
nLutLeaf
,
nLutRoot
,
&
R
,
pFunc0
,
pFunc1
,
NULL
,
0
);
memcpy
(
pLut0
,
&
R
,
sizeof
(
If_Grp_t
)
);
memcpy
(
pLut0
,
&
R
,
sizeof
(
If_Grp_t
)
);
...
@@ -1792,9 +1794,10 @@ int If_CluCheckExt( If_Man_t * p, word * pTruth, int nVars, int nLutLeaf, int nL
...
@@ -1792,9 +1794,10 @@ int If_CluCheckExt( If_Man_t * p, word * pTruth, int nVars, int nLutLeaf, int nL
}
}
// returns the best group found
// returns the best group found
int
If_CluCheckExt3
(
If_Man_t
*
p
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutLeaf2
,
int
nLutRoot
,
int
If_CluCheckExt3
(
void
*
pMan
,
word
*
pTruth
,
int
nVars
,
int
nLutLeaf
,
int
nLutLeaf2
,
int
nLutRoot
,
char
*
pLut0
,
char
*
pLut1
,
char
*
pLut2
,
word
*
pFunc0
,
word
*
pFunc1
,
word
*
pFunc2
)
char
*
pLut0
,
char
*
pLut1
,
char
*
pLut2
,
word
*
pFunc0
,
word
*
pFunc1
,
word
*
pFunc2
)
{
{
If_Man_t
*
p
=
(
If_Man_t
*
)
pMan
;
If_Grp_t
G
,
G2
,
R
;
If_Grp_t
G
,
G2
,
R
;
G
=
If_CluCheck3
(
p
,
pTruth
,
nVars
,
nLutLeaf
,
nLutLeaf2
,
nLutRoot
,
&
R
,
&
G2
,
pFunc0
,
pFunc1
,
pFunc2
);
G
=
If_CluCheck3
(
p
,
pTruth
,
nVars
,
nLutLeaf
,
nLutLeaf2
,
nLutRoot
,
&
R
,
&
G2
,
pFunc0
,
pFunc1
,
pFunc2
);
memcpy
(
pLut0
,
&
R
,
sizeof
(
If_Grp_t
)
);
memcpy
(
pLut0
,
&
R
,
sizeof
(
If_Grp_t
)
);
...
...
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