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
a4baba2c
Commit
a4baba2c
authored
Apr 27, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc changes.
parent
590202e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
38 deletions
+44
-38
src/base/main/mainInit.c
+10
-1
src/base/main/mainInt.h
+34
-37
No files found.
src/base/main/mainInit.c
View file @
a4baba2c
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
//#define USE_ABC2
#define USE_ABC2
#define USE_ABC85
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
/// DECLARATIONS ///
...
@@ -51,6 +52,8 @@ extern void Test_Init( Abc_Frame_t * pAbc );
...
@@ -51,6 +52,8 @@ extern void Test_Init( Abc_Frame_t * pAbc );
extern
void
Test_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Test_End
(
Abc_Frame_t
*
pAbc
);
extern
void
Abc2_Init
(
Abc_Frame_t
*
pAbc
);
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_End
(
Abc_Frame_t
*
pAbc
);
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
/// FUNCTION DEFINITIONS ///
...
@@ -83,6 +86,9 @@ void Abc_FrameInit( Abc_Frame_t * pAbc )
...
@@ -83,6 +86,9 @@ void Abc_FrameInit( Abc_Frame_t * pAbc )
#ifdef USE_ABC2
#ifdef USE_ABC2
Abc2_Init
(
pAbc
);
Abc2_Init
(
pAbc
);
#endif
#endif
#ifdef USE_ABC85
Abc85_Init
(
pAbc
);
#endif
EXT_ABC_INIT
(
pAbc
)
// plugin for external functionality
EXT_ABC_INIT
(
pAbc
)
// plugin for external functionality
}
}
...
@@ -113,6 +119,9 @@ void Abc_FrameEnd( Abc_Frame_t * pAbc )
...
@@ -113,6 +119,9 @@ void Abc_FrameEnd( Abc_Frame_t * pAbc )
#ifdef USE_ABC2
#ifdef USE_ABC2
Abc2_End
(
pAbc
);
Abc2_End
(
pAbc
);
#endif
#endif
#ifdef USE_ABC85
Abc85_End
(
pAbc
);
#endif
EXT_ABC_END
(
pAbc
)
// plugin for external functionality
EXT_ABC_END
(
pAbc
)
// plugin for external functionality
}
}
...
...
src/base/main/mainInt.h
View file @
a4baba2c
...
@@ -57,63 +57,60 @@ ABC_NAMESPACE_HEADER_START
...
@@ -57,63 +57,60 @@ ABC_NAMESPACE_HEADER_START
struct
Abc_Frame_t_
struct
Abc_Frame_t_
{
{
// general info
// general info
char
*
sVersion
;
// the name of the current version
char
*
sVersion
;
// the name of the current version
// commands, aliases, etc
// commands, aliases, etc
st_table
*
tCommands
;
// the command table
st_table
*
tCommands
;
// the command table
st_table
*
tAliases
;
// the alias table
st_table
*
tAliases
;
// the alias table
st_table
*
tFlags
;
// the flag table
st_table
*
tFlags
;
// the flag table
Vec_Ptr_t
*
aHistory
;
// the command history
Vec_Ptr_t
*
aHistory
;
// the command history
// the functionality
// the functionality
Abc_Ntk_t
*
pNtkCur
;
// the current network
Abc_Ntk_t
*
pNtkCur
;
// the current network
Abc_Ntk_t
*
pNtkBestDelay
;
// the current network
Abc_Ntk_t
*
pNtkBestDelay
;
// the current network
Abc_Ntk_t
*
pNtkBestArea
;
// the current network
Abc_Ntk_t
*
pNtkBestArea
;
// the current network
int
nSteps
;
// the counter of different network processed
int
nSteps
;
// the counter of different network processed
int
fAutoexac
;
// marks the autoexec mode
int
fAutoexac
;
// marks the autoexec mode
int
fBatchMode
;
// are we invoked in batch mode?
int
fBatchMode
;
// are we invoked in batch mode?
int
fBridgeMode
;
// are we invoked in bridge mode?
int
fBridgeMode
;
// are we invoked in bridge mode?
// output streams
// output streams
FILE
*
Out
;
FILE
*
Out
;
FILE
*
Err
;
FILE
*
Err
;
FILE
*
Hst
;
FILE
*
Hst
;
// used for runtime measurement
// used for runtime measurement
double
TimeCommand
;
// the runtime of the last command
double
TimeCommand
;
// the runtime of the last command
double
TimeTotal
;
// the total runtime of all commands
double
TimeTotal
;
// the total runtime of all commands
// temporary storage for structural choices
// temporary storage for structural choices
Vec_Ptr_t
*
vStore
;
// networks to be used by choice
Vec_Ptr_t
*
vStore
;
// networks to be used by choice
// decomposition package
// decomposition package
void
*
pManDec
;
// decomposition manager
void
*
pManDec
;
// decomposition manager
DdManager
*
dd
;
// temporary BDD package
DdManager
*
dd
;
// temporary BDD package
// libraries for mapping
// libraries for mapping
void
*
pLibLut
;
// the current LUT library
void
*
pLibLut
;
// the current LUT library
void
*
pLibGen
;
// the current genlib
void
*
pLibGen
;
// the current genlib
void
*
pLibGen2
;
// the current genlib
void
*
pLibGen2
;
// the current genlib
void
*
pLibSuper
;
// the current supergate library
void
*
pLibSuper
;
// the current supergate library
void
*
pLibVer
;
// the current Verilog library
void
*
pLibVer
;
// the current Verilog library
// new code
// new code
Gia_Man_t
*
pGia
;
// alternative current network as a light-weight AIG
Gia_Man_t
*
pGia
;
// alternative current network as a light-weight AIG
Gia_Man_t
*
pGia2
;
// copy of the above
Gia_Man_t
*
pGia2
;
// copy of the above
Abc_Cex_t
*
pCex
;
// a counter-example to fail the current network
Abc_Cex_t
*
pCex
;
// a counter-example to fail the current network
Vec_Ptr_t
*
vCexVec
;
// a vector of counter-examples if more than one PO fails
Vec_Ptr_t
*
vCexVec
;
// a vector of counter-examples if more than one PO fails
Vec_Ptr_t
*
vPoEquivs
;
// equivalence classes of isomorphic primary outputs
Vec_Ptr_t
*
vPoEquivs
;
// equivalence classes of isomorphic primary outputs
int
Status
;
// the status of verification problem (proved=1, disproved=0, undecided=-1)
int
nFrames
;
// the number of time frames completed by BMC
Vec_Ptr_t
*
vPlugInComBinPairs
;
// pairs of command and its binary name
Vec_Ptr_t
*
vLTLProperties_global
;
// related to LTL
void
*
pSave1
;
void
*
pSave1
;
void
*
pSave2
;
void
*
pSave2
;
void
*
pSave3
;
void
*
pSave3
;
void
*
pSave4
;
void
*
pSave4
;
void
*
pAbc85Ntl
;
void
*
pAbc85Ntl2
;
void
*
pAbc85Best
;
void
*
pAbc85Delay
;
If_Lib_t
*
pAbc85Lib
;
// related to LTL
EXT_ABC_FRAME
// plugin for external functionality
Vec_Ptr_t
*
vLTLProperties_global
;
// the addition to keep the best Ntl that can be used to restore
void
*
pAbc8NtlBestDelay
;
// the best delay, Ntl
void
*
pAbc8NtlBestArea
;
// the best area
int
Status
;
// the status of verification problem (proved=1, disproved=0, undecided=-1)
int
nFrames
;
// the number of time frames completed by BMC
Vec_Ptr_t
*
vPlugInComBinPairs
;
// pairs of command and its binary name
EXT_ABC_FRAME
// plugin for external functionality
};
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
...
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