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
99e3e3bc
Commit
99e3e3bc
authored
Aug 24, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to be able to compile ABC without CUDD.
parent
77d64787
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
1 deletions
+43
-1
src/aig/ivy/ivyFraig.c
+4
-0
src/base/abci/abc.c
+15
-0
src/base/abci/abcDar.c
+1
-1
src/base/abci/abcNtbdd.c
+16
-0
src/base/io/ioReadEqn.c
+7
-0
No files found.
src/aig/ivy/ivyFraig.c
View file @
99e3e3bc
...
@@ -2659,10 +2659,13 @@ p->timeTrav += Abc_Clock() - clk;
...
@@ -2659,10 +2659,13 @@ p->timeTrav += Abc_Clock() - clk;
ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_END
#ifdef ABC_USE_CUDD
#include "bdd/cudd/cuddInt.h"
#include "bdd/cudd/cuddInt.h"
#endif
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
#ifdef ABC_USE_CUDD
/**Function*************************************************************
/**Function*************************************************************
...
@@ -2814,6 +2817,7 @@ int Ivy_FraigNodesAreEquivBdd( Ivy_Obj_t * pObj1, Ivy_Obj_t * pObj2 )
...
@@ -2814,6 +2817,7 @@ int Ivy_FraigNodesAreEquivBdd( Ivy_Obj_t * pObj1, Ivy_Obj_t * pObj2 )
Vec_PtrFree
(
vFront
);
Vec_PtrFree
(
vFront
);
return
RetValue
;
return
RetValue
;
}
}
#endif
ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_END
...
...
src/base/abci/abc.c
View file @
99e3e3bc
...
@@ -313,7 +313,9 @@ static int Abc_CommandBm2 ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -313,7 +313,9 @@ static int Abc_CommandBm2 ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandSaucy
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandSaucy
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandTestCex
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandTestCex
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPdr
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPdr
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#ifdef ABC_USE_CUDD
static
int
Abc_CommandReconcile
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandReconcile
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#endif
static
int
Abc_CommandCexSave
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandCexSave
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandCexLoad
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandCexLoad
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandCexCut
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandCexCut
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -417,10 +419,12 @@ static int Abc_CommandAbc9Dch ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -417,10 +419,12 @@ static int Abc_CommandAbc9Dch ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9BackReach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9BackReach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Posplit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Posplit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#ifdef ABC_USE_CUDD
static
int
Abc_CommandAbc9ReachM
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachM
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachP
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachP
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachN
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachN
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachY
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachY
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#endif
static
int
Abc_CommandAbc9Undo
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Undo
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Iso
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Iso
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9IsoNpn
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9IsoNpn
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -926,7 +930,9 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -926,7 +930,9 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"saucy3"
,
Abc_CommandSaucy
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"saucy3"
,
Abc_CommandSaucy
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"testcex"
,
Abc_CommandTestCex
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"testcex"
,
Abc_CommandTestCex
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"pdr"
,
Abc_CommandPdr
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"pdr"
,
Abc_CommandPdr
,
0
);
#ifdef ABC_USE_CUDD
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"reconcile"
,
Abc_CommandReconcile
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"reconcile"
,
Abc_CommandReconcile
,
1
);
#endif
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"cexsave"
,
Abc_CommandCexSave
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"cexsave"
,
Abc_CommandCexSave
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"cexload"
,
Abc_CommandCexLoad
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"cexload"
,
Abc_CommandCexLoad
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"cexcut"
,
Abc_CommandCexCut
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Verification"
,
"cexcut"
,
Abc_CommandCexCut
,
0
);
...
@@ -1027,10 +1033,12 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -1027,10 +1033,12 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&rpm"
,
Abc_CommandAbc9Rpm
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&rpm"
,
Abc_CommandAbc9Rpm
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&back_reach"
,
Abc_CommandAbc9BackReach
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&back_reach"
,
Abc_CommandAbc9BackReach
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&posplit"
,
Abc_CommandAbc9Posplit
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&posplit"
,
Abc_CommandAbc9Posplit
,
0
);
#ifdef ABC_USE_CUDD
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachm"
,
Abc_CommandAbc9ReachM
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachm"
,
Abc_CommandAbc9ReachM
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachp"
,
Abc_CommandAbc9ReachP
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachp"
,
Abc_CommandAbc9ReachP
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachn"
,
Abc_CommandAbc9ReachN
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachn"
,
Abc_CommandAbc9ReachN
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachy"
,
Abc_CommandAbc9ReachY
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachy"
,
Abc_CommandAbc9ReachY
,
0
);
#endif
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&undo"
,
Abc_CommandAbc9Undo
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&undo"
,
Abc_CommandAbc9Undo
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&iso"
,
Abc_CommandAbc9Iso
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&iso"
,
Abc_CommandAbc9Iso
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&isonpn"
,
Abc_CommandAbc9IsoNpn
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&isonpn"
,
Abc_CommandAbc9IsoNpn
,
0
);
...
@@ -24652,6 +24660,8 @@ usage:
...
@@ -24652,6 +24660,8 @@ usage:
return
1
;
return
1
;
}
}
#ifdef ABC_USE_CUDD
/**Function*************************************************************
/**Function*************************************************************
Synopsis []
Synopsis []
...
@@ -24763,6 +24773,7 @@ usage:
...
@@ -24763,6 +24773,7 @@ usage:
return
1
;
return
1
;
}
}
#endif
/**Function*************************************************************
/**Function*************************************************************
...
@@ -34396,6 +34407,8 @@ usage:
...
@@ -34396,6 +34407,8 @@ usage:
return
1
;
return
1
;
}
}
#ifdef ABC_USE_CUDD
/**Function*************************************************************
/**Function*************************************************************
Synopsis []
Synopsis []
...
@@ -35010,6 +35023,8 @@ usage:
...
@@ -35010,6 +35023,8 @@ usage:
return
1
;
return
1
;
}
}
#endif
/**Function*************************************************************
/**Function*************************************************************
Synopsis []
Synopsis []
src/base/abci/abcDar.c
View file @
99e3e3bc
...
@@ -4692,7 +4692,7 @@ Aig_ManPrintStats( pMan );
...
@@ -4692,7 +4692,7 @@ Aig_ManPrintStats( pMan );
extern
void
Llb_BddStructAnalysis
(
Aig_Man_t
*
pMan
);
extern
void
Llb_BddStructAnalysis
(
Aig_Man_t
*
pMan
);
extern
void
Llb_NonlinExperiment
(
Aig_Man_t
*
pAig
,
int
Num
);
extern
void
Llb_NonlinExperiment
(
Aig_Man_t
*
pAig
,
int
Num
);
// Llb_BddStructAnalysis( pMan );
// Llb_BddStructAnalysis( pMan );
Llb_ManMinCutTest
(
pMan
,
Num
);
//
Llb_ManMinCutTest( pMan, Num );
// Llb_NonlinExperiment( pMan, Num );
// Llb_NonlinExperiment( pMan, Num );
}
}
...
...
src/base/abci/abcNtbdd.c
View file @
99e3e3bc
...
@@ -19,7 +19,11 @@
...
@@ -19,7 +19,11 @@
***********************************************************************/
***********************************************************************/
#include "base/abc/abc.h"
#include "base/abc/abc.h"
#include "aig/saig/saig.h"
#ifdef ABC_USE_CUDD
#include "misc/extra/extraBdd.h"
#include "misc/extra/extraBdd.h"
#endif
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -28,6 +32,8 @@ ABC_NAMESPACE_IMPL_START
...
@@ -28,6 +32,8 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
#ifdef ABC_USE_CUDD
static
void
Abc_NtkBddToMuxesPerform
(
Abc_Ntk_t
*
pNtk
,
Abc_Ntk_t
*
pNtkNew
);
static
void
Abc_NtkBddToMuxesPerform
(
Abc_Ntk_t
*
pNtk
,
Abc_Ntk_t
*
pNtkNew
);
static
Abc_Obj_t
*
Abc_NodeBddToMuxes
(
Abc_Obj_t
*
pNodeOld
,
Abc_Ntk_t
*
pNtkNew
);
static
Abc_Obj_t
*
Abc_NodeBddToMuxes
(
Abc_Obj_t
*
pNodeOld
,
Abc_Ntk_t
*
pNtkNew
);
static
Abc_Obj_t
*
Abc_NodeBddToMuxes_rec
(
DdManager
*
dd
,
DdNode
*
bFunc
,
Abc_Ntk_t
*
pNtkNew
,
st__table
*
tBdd2Node
);
static
Abc_Obj_t
*
Abc_NodeBddToMuxes_rec
(
DdManager
*
dd
,
DdNode
*
bFunc
,
Abc_Ntk_t
*
pNtkNew
,
st__table
*
tBdd2Node
);
...
@@ -596,6 +602,16 @@ ABC_PRT( "Time", Abc_Clock() - clk );
...
@@ -596,6 +602,16 @@ ABC_PRT( "Time", Abc_Clock() - clk );
Cudd_Quit
(
dd
);
Cudd_Quit
(
dd
);
}
}
#else
double
Abc_NtkSpacePercentage
(
Abc_Obj_t
*
pNode
)
{
return
0
.
0
;
}
Abc_Ntk_t
*
Abc_NtkBddToMuxes
(
Abc_Ntk_t
*
pNtk
)
{
return
NULL
;
}
int
Aig_ManVerifyUsingBdds
(
Aig_Man_t
*
pInit
,
Saig_ParBbr_t
*
pPars
)
{
return
0
;
}
void
Bbr_ManSetDefaultParams
(
Saig_ParBbr_t
*
p
)
{}
#endif
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
...
src/base/io/ioReadEqn.c
View file @
99e3e3bc
...
@@ -27,6 +27,8 @@ ABC_NAMESPACE_IMPL_START
...
@@ -27,6 +27,8 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
#ifdef ABC_USE_CUDD
static
Abc_Ntk_t
*
Io_ReadEqnNetwork
(
Extra_FileReader_t
*
p
);
static
Abc_Ntk_t
*
Io_ReadEqnNetwork
(
Extra_FileReader_t
*
p
);
static
void
Io_ReadEqnStrCompact
(
char
*
pStr
);
static
void
Io_ReadEqnStrCompact
(
char
*
pStr
);
static
int
Io_ReadEqnStrFind
(
Vec_Ptr_t
*
vTokens
,
char
*
pName
);
static
int
Io_ReadEqnStrFind
(
Vec_Ptr_t
*
vTokens
,
char
*
pName
);
...
@@ -233,6 +235,11 @@ void Io_ReadEqnStrCutAt( char * pStr, char * pStop, int fUniqueOnly, Vec_Ptr_t *
...
@@ -233,6 +235,11 @@ void Io_ReadEqnStrCutAt( char * pStr, char * pStop, int fUniqueOnly, Vec_Ptr_t *
Vec_PtrPush
(
vTokens
,
pToken
);
Vec_PtrPush
(
vTokens
,
pToken
);
}
}
#else
Abc_Ntk_t
*
Io_ReadEqn
(
char
*
pFileName
,
int
fCheck
)
{
return
NULL
;
}
#endif
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
/// END OF FILE ///
...
...
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