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
3cc4080c
Commit
3cc4080c
authored
Dec 02, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability changes for gcc-6 suggested by Clifford.
parent
c681506b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
src/aig/gia/gia.h
+4
-6
src/base/main/mainInit.c
+6
-1
src/sat/glucose/AbcGlucoseCmd.cpp
+7
-2
No files found.
src/aig/gia/gia.h
View file @
3cc4080c
...
@@ -654,6 +654,10 @@ static inline int Gia_ManAppendCi( Gia_Man_t * p )
...
@@ -654,6 +654,10 @@ static inline int Gia_ManAppendCi( Gia_Man_t * p )
Vec_IntPush
(
p
->
vCis
,
Gia_ObjId
(
p
,
pObj
)
);
Vec_IntPush
(
p
->
vCis
,
Gia_ObjId
(
p
,
pObj
)
);
return
Gia_ObjId
(
p
,
pObj
)
<<
1
;
return
Gia_ObjId
(
p
,
pObj
)
<<
1
;
}
}
extern
void
Gia_ManQuantSetSuppAnd
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
);
extern
void
Gia_ManBuiltInSimPerform
(
Gia_Man_t
*
p
,
int
iObj
);
static
inline
int
Gia_ManAppendAnd
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
)
static
inline
int
Gia_ManAppendAnd
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
)
{
{
Gia_Obj_t
*
pObj
=
Gia_ManAppendObj
(
p
);
Gia_Obj_t
*
pObj
=
Gia_ManAppendObj
(
p
);
...
@@ -688,15 +692,9 @@ static inline int Gia_ManAppendAnd( Gia_Man_t * p, int iLit0, int iLit1 )
...
@@ -688,15 +692,9 @@ static inline int Gia_ManAppendAnd( Gia_Man_t * p, int iLit0, int iLit1 )
pObj
->
fPhase
=
(
Gia_ObjPhase
(
pFan0
)
^
Gia_ObjFaninC0
(
pObj
))
&
(
Gia_ObjPhase
(
pFan1
)
^
Gia_ObjFaninC1
(
pObj
));
pObj
->
fPhase
=
(
Gia_ObjPhase
(
pFan0
)
^
Gia_ObjFaninC0
(
pObj
))
&
(
Gia_ObjPhase
(
pFan1
)
^
Gia_ObjFaninC1
(
pObj
));
}
}
if
(
p
->
fBuiltInSim
)
if
(
p
->
fBuiltInSim
)
{
extern
void
Gia_ManBuiltInSimPerform
(
Gia_Man_t
*
p
,
int
iObj
);
Gia_ManBuiltInSimPerform
(
p
,
Gia_ObjId
(
p
,
pObj
)
);
Gia_ManBuiltInSimPerform
(
p
,
Gia_ObjId
(
p
,
pObj
)
);
}
if
(
p
->
vSuppWords
)
if
(
p
->
vSuppWords
)
{
extern
void
Gia_ManQuantSetSuppAnd
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
);
Gia_ManQuantSetSuppAnd
(
p
,
pObj
);
Gia_ManQuantSetSuppAnd
(
p
,
pObj
);
}
return
Gia_ObjId
(
p
,
pObj
)
<<
1
;
return
Gia_ObjId
(
p
,
pObj
)
<<
1
;
}
}
static
inline
int
Gia_ManAppendXorReal
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
)
static
inline
int
Gia_ManAppendXorReal
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
)
...
...
src/base/main/mainInit.c
View file @
3cc4080c
...
@@ -61,8 +61,13 @@ extern void Abc2_Init( Abc_Frame_t * pAbc );
...
@@ -61,8 +61,13 @@ extern void Abc2_Init( Abc_Frame_t * pAbc );
extern
void
Abc2_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc2_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc85_Init
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc85_Init
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc85_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc85_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Glucose_Init
(
Abc_Frame_t
*
pAbc
);
#ifdef _WIN32
extern
void
Glucose_Init
(
Abc_Frame_t
*
pAbc
);
extern
void
Glucose_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Glucose_End
(
Abc_Frame_t
*
pAbc
);
#else
extern
void
"C"
Glucose_Init
(
Abc_Frame_t
*
pAbc
);
extern
void
"C"
Glucose_End
(
Abc_Frame_t
*
pAbc
);
#endif
static
Abc_FrameInitializer_t
*
s_InitializerStart
=
NULL
;
static
Abc_FrameInitializer_t
*
s_InitializerStart
=
NULL
;
static
Abc_FrameInitializer_t
*
s_InitializerEnd
=
NULL
;
static
Abc_FrameInitializer_t
*
s_InitializerEnd
=
NULL
;
...
...
src/sat/glucose/AbcGlucoseCmd.cpp
View file @
3cc4080c
...
@@ -26,8 +26,13 @@
...
@@ -26,8 +26,13 @@
ABC_NAMESPACE_HEADER_START
ABC_NAMESPACE_HEADER_START
void
Glucose_Init
(
Abc_Frame_t
*
pAbc
);
#ifdef _WIN32
void
Glucose_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Glucose_Init
(
Abc_Frame_t
*
pAbc
);
extern
void
Glucose_End
(
Abc_Frame_t
*
pAbc
);
#else
extern
void
"C"
Glucose_Init
(
Abc_Frame_t
*
pAbc
);
extern
void
"C"
Glucose_End
(
Abc_Frame_t
*
pAbc
);
#endif
ABC_NAMESPACE_HEADER_END
ABC_NAMESPACE_HEADER_END
...
...
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