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
2c37498b
Commit
2c37498b
authored
Oct 21, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
a07c0855
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/base/cba/cba.h
+1
-1
src/map/if/if.h
+2
-2
src/misc/mvc/mvc.h
+1
-1
src/proof/ssc/sscClass.c
+1
-1
No files found.
src/base/cba/cba.h
View file @
2c37498b
...
...
@@ -369,7 +369,7 @@ static inline void Cba_ObjPatchFinFon( Cba_Ntk_t * p, int i, int k, in
static
inline
int
Cba_ObjNtkId
(
Cba_Ntk_t
*
p
,
int
i
)
{
assert
(
i
>
0
);
return
(
Cba_ObjIsBoxUser
(
p
,
i
)
&&
Cba_NtkHasObjFuncs
(
p
))
?
Cba_ObjFunc
(
p
,
i
)
:
0
;}
static
inline
Cba_Ntk_t
*
Cba_ObjNtk
(
Cba_Ntk_t
*
p
,
int
i
)
{
assert
(
i
>
0
);
return
Cba_NtkNtk
(
p
,
Cba_ObjNtkId
(
p
,
i
));
}
static
inline
int
Cba_ObjSetNtkId
(
Cba_Ntk_t
*
p
,
int
i
,
int
x
)
{
assert
(
i
>
0
);
assert
(
Cba_ObjIsBoxUser
(
p
,
i
));
Cba_ObjSetFunc
(
p
,
i
,
x
);
}
static
inline
void
Cba_ObjSetNtkId
(
Cba_Ntk_t
*
p
,
int
i
,
int
x
)
{
assert
(
i
>
0
);
assert
(
Cba_ObjIsBoxUser
(
p
,
i
));
Cba_ObjSetFunc
(
p
,
i
,
x
);
}
static
inline
int
Cba_ObjIsSeq
(
Cba_Ntk_t
*
p
,
int
i
)
{
assert
(
i
>
0
);
return
Cba_ObjIsBoxUser
(
p
,
i
)
?
Cba_ObjNtk
(
p
,
i
)
->
fSeq
:
Cba_TypeIsSeq
(
Cba_ObjType
(
p
,
i
));
}
static
inline
int
Cba_FonIsReal
(
int
f
)
{
return
f
>
0
;
}
...
...
src/map/if/if.h
View file @
2c37498b
...
...
@@ -421,9 +421,9 @@ static inline void If_CutSetDataInt( If_Cut_t * pCut, int Data ) { *
static
inline
int
If_CutTruthLit
(
If_Cut_t
*
pCut
)
{
assert
(
pCut
->
iCutFunc
>=
0
);
return
pCut
->
iCutFunc
;
}
static
inline
int
If_CutTruthIsCompl
(
If_Cut_t
*
pCut
)
{
assert
(
pCut
->
iCutFunc
>=
0
);
return
Abc_LitIsCompl
(
pCut
->
iCutFunc
);
}
static
inline
word
*
If_CutTruthWR
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
return
p
->
vTtMem
?
Vec_MemReadEntry
(
p
->
vTtMem
[
pCut
->
nLeaves
],
Abc_Lit2Var
(
pCut
->
iCutFunc
))
:
NULL
;
}
static
inline
word
*
If_CutTruthWR
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
return
p
->
vTtMem
[
pCut
->
nLeaves
]
?
Vec_MemReadEntry
(
p
->
vTtMem
[
pCut
->
nLeaves
],
Abc_Lit2Var
(
pCut
->
iCutFunc
))
:
NULL
;
}
static
inline
unsigned
*
If_CutTruthUR
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
return
(
unsigned
*
)
If_CutTruthWR
(
p
,
pCut
);
}
static
inline
word
*
If_CutTruthW
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
if
(
p
->
vTtMem
==
NULL
)
return
NULL
;
assert
(
pCut
->
iCutFunc
>=
0
);
Abc_TtCopy
(
p
->
puTempW
,
If_CutTruthWR
(
p
,
pCut
),
p
->
nTruth6Words
[
pCut
->
nLeaves
],
If_CutTruthIsCompl
(
pCut
)
);
return
p
->
puTempW
;
}
static
inline
word
*
If_CutTruthW
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
assert
(
pCut
->
iCutFunc
>=
0
);
Abc_TtCopy
(
p
->
puTempW
,
If_CutTruthWR
(
p
,
pCut
),
p
->
nTruth6Words
[
pCut
->
nLeaves
],
If_CutTruthIsCompl
(
pCut
)
);
return
p
->
puTempW
;
}
static
inline
unsigned
*
If_CutTruth
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
return
(
unsigned
*
)
If_CutTruthW
(
p
,
pCut
);
}
static
inline
int
If_CutDsdLit
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
return
Abc_Lit2LitL
(
Vec_IntArray
(
p
->
vTtDsds
[
pCut
->
nLeaves
]),
If_CutTruthLit
(
pCut
)
);
}
...
...
src/misc/mvc/mvc.h
View file @
2c37498b
...
...
@@ -552,7 +552,7 @@ struct MvcManagerStruct
// iterator through literals of the cube
#define Mvc_CubeForEachBit( Cover, Cube, iBit, Value )\
for ( iBit = 0;\
iBit < Cover->nBits && ((Value = Mvc_CubeBitValue(Cube,iBit))
>=0
);\
iBit < Cover->nBits && ((Value = Mvc_CubeBitValue(Cube,iBit))
, 1
);\
iBit++ )
// iterator through values of binary variables
#define Mvc_CubeForEachVarValue( Cover, Cube, iVar, Value )\
...
...
src/proof/ssc/sscClass.c
View file @
2c37498b
...
...
@@ -281,7 +281,7 @@ int Ssc_GiaClassesRefine( Gia_Man_t * p )
Vec_Int_t
*
vRefinedC
;
Gia_Obj_t
*
pObj
;
int
i
,
Counter
=
0
;
if
(
p
->
pReprs
!=
NULL
);
assert
(
p
->
pReprs
!=
NULL
);
vRefinedC
=
Vec_IntAlloc
(
100
);
Gia_ManForEachCand
(
p
,
pObj
,
i
)
if
(
Gia_ObjIsTail
(
p
,
i
)
)
...
...
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