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
e7504c6d
Commit
e7504c6d
authored
Jul 01, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler problem.
parent
32e58b88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
src/base/abci/abcSaucy.c
+20
-20
No files found.
src/base/abci/abcSaucy.c
View file @
e7504c6d
...
...
@@ -43,26 +43,6 @@ int NUM_SIM2_ITERATION;
#define CLAUSE_DECAY 0.9
#define MAX_LEARNTS 50
static
int
*
ints
(
int
n
)
{
return
ABC_ALLOC
(
int
,
n
);
}
static
int
*
zeros
(
int
n
)
{
return
ABC_CALLOC
(
int
,
n
);
}
static
char
*
bits
(
int
n
)
{
return
ABC_CALLOC
(
char
,
n
);
}
static
char
*
getVertexName
(
Abc_Ntk_t
*
pNtk
,
int
v
);
static
int
*
generateProperInputVector
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
,
Vec_Int_t
*
randomVector
);
static
int
ifInputVectorsAreConsistent
(
struct
saucy
*
s
,
int
*
leftVec
,
int
*
rightVec
);
static
int
ifOutputVectorsAreConsistent
(
struct
saucy
*
s
,
int
*
leftVec
,
int
*
rightVec
);
static
Vec_Ptr_t
**
findTopologicalOrder
(
Abc_Ntk_t
*
pNtk
);
static
void
getDependencies
(
Abc_Ntk_t
*
pNtk
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
);
static
struct
saucy_graph
*
buildDepGraph
(
Abc_Ntk_t
*
pNtk
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
);
static
struct
saucy_graph
*
buildSim1Graph
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
,
Vec_Int_t
*
randVec
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
);
static
struct
saucy_graph
*
buildSim2Graph
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
,
Vec_Int_t
*
randVec
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
,
Vec_Ptr_t
**
topOrder
,
Vec_Int_t
**
obs
,
Vec_Int_t
**
ctrl
);
static
Vec_Int_t
*
assignRandomBitsToCells
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
);
int
Abc_NtkCecSat_saucy
(
Abc_Ntk_t
*
pNtk1
,
Abc_Ntk_t
*
pNtk2
,
int
*
pModel
);
struct
sim_result
*
analyzeConflict
(
Abc_Ntk_t
*
pNtk
,
int
*
pModel
,
int
fVerbose
);
static
void
bumpActivity
(
struct
saucy
*
s
,
struct
sim_result
*
cex
);
static
void
reduceDB
(
struct
saucy
*
s
);
/*
* saucy.c
*
...
...
@@ -216,6 +196,26 @@ struct saucy {
int
(
*
print_automorphism
)(
FILE
*
f
,
int
n
,
const
int
*
gamma
,
int
nsupp
,
const
int
*
support
,
char
*
marks
,
Abc_Ntk_t
*
pNtk
);
};
static
int
*
ints
(
int
n
)
{
return
ABC_ALLOC
(
int
,
n
);
}
static
int
*
zeros
(
int
n
)
{
return
ABC_CALLOC
(
int
,
n
);
}
static
char
*
bits
(
int
n
)
{
return
ABC_CALLOC
(
char
,
n
);
}
static
char
*
getVertexName
(
Abc_Ntk_t
*
pNtk
,
int
v
);
static
int
*
generateProperInputVector
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
,
Vec_Int_t
*
randomVector
);
static
int
ifInputVectorsAreConsistent
(
struct
saucy
*
s
,
int
*
leftVec
,
int
*
rightVec
);
static
int
ifOutputVectorsAreConsistent
(
struct
saucy
*
s
,
int
*
leftVec
,
int
*
rightVec
);
static
Vec_Ptr_t
**
findTopologicalOrder
(
Abc_Ntk_t
*
pNtk
);
static
void
getDependencies
(
Abc_Ntk_t
*
pNtk
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
);
static
struct
saucy_graph
*
buildDepGraph
(
Abc_Ntk_t
*
pNtk
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
);
static
struct
saucy_graph
*
buildSim1Graph
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
,
Vec_Int_t
*
randVec
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
);
static
struct
saucy_graph
*
buildSim2Graph
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
,
Vec_Int_t
*
randVec
,
Vec_Int_t
**
iDep
,
Vec_Int_t
**
oDep
,
Vec_Ptr_t
**
topOrder
,
Vec_Int_t
**
obs
,
Vec_Int_t
**
ctrl
);
static
Vec_Int_t
*
assignRandomBitsToCells
(
Abc_Ntk_t
*
pNtk
,
struct
coloring
*
c
);
int
Abc_NtkCecSat_saucy
(
Abc_Ntk_t
*
pNtk1
,
Abc_Ntk_t
*
pNtk2
,
int
*
pModel
);
struct
sim_result
*
analyzeConflict
(
Abc_Ntk_t
*
pNtk
,
int
*
pModel
,
int
fVerbose
);
static
void
bumpActivity
(
struct
saucy
*
s
,
struct
sim_result
*
cex
);
static
void
reduceDB
(
struct
saucy
*
s
);
static
int
print_automorphism_ntk
(
FILE
*
f
,
int
n
,
const
int
*
gamma
,
int
nsupp
,
const
int
*
support
,
char
*
marks
,
Abc_Ntk_t
*
pNtk
)
{
...
...
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