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
4e6978f2
Commit
4e6978f2
authored
Feb 09, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Profiling CEX minimization.
parent
7a2984bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
src/sat/bmc/bmcCexCare.c
+22
-4
No files found.
src/sat/bmc/bmcCexCare.c
View file @
4e6978f2
...
...
@@ -251,6 +251,20 @@ Abc_Cex_t * Bmc_CexCarePropagateBwd( Gia_Man_t * p, Abc_Cex_t * pCex, Vec_Int_t
SeeAlso []
***********************************************************************/
Abc_Cex_t
*
Bmc_CexCareTotal
(
Abc_Cex_t
**
pCexes
,
int
nCexes
)
{
int
i
,
k
,
nWords
=
Abc_BitWordNum
(
pCexes
[
0
]
->
nBits
);
Abc_Cex_t
*
pCexMin
=
Abc_CexAlloc
(
pCexes
[
0
]
->
nRegs
,
pCexes
[
0
]
->
nPis
,
pCexes
[
0
]
->
iFrame
+
1
);
pCexMin
->
iPo
=
pCexes
[
0
]
->
iPo
;
pCexMin
->
iFrame
=
pCexes
[
0
]
->
iFrame
;
for
(
i
=
0
;
i
<
nWords
;
i
++
)
{
pCexMin
->
pData
[
i
]
=
pCexes
[
0
]
->
pData
[
i
];
for
(
k
=
1
;
k
<
nCexes
;
k
++
)
pCexMin
->
pData
[
i
]
&=
pCexes
[
k
]
->
pData
[
i
];
}
return
pCexMin
;
}
Abc_Cex_t
*
Bmc_CexCareMinimizeAig
(
Gia_Man_t
*
p
,
Abc_Cex_t
*
pCex
,
int
fCheck
,
int
fVerbose
)
{
int
nTryCexes
=
4
;
// belongs to range [1;4]
...
...
@@ -314,15 +328,19 @@ Abc_Cex_t * Bmc_CexCareMinimizeAig( Gia_Man_t * p, Abc_Cex_t * pCex, int fCheck,
pCexBest
=
pCexMin
[
k
];
}
}
for
(
k
=
0
;
k
<
nTryCexes
;
k
++
)
if
(
pCexBest
!=
pCexMin
[
k
]
)
Abc_CexFreeP
(
&
pCexMin
[
k
]
);
// verify and return
if
(
fVerbose
)
{
Abc_Cex_t
*
pTotal
=
Bmc_CexCareTotal
(
pCexMin
,
nTryCexes
);
printf
(
"Final : "
);
Bmc_CexPrint
(
pCexBest
,
Gia_ManPiNum
(
p
),
0
);
printf
(
"Total : "
);
Bmc_CexPrint
(
pTotal
,
Gia_ManPiNum
(
p
),
0
);
Abc_CexFreeP
(
&
pTotal
);
}
for
(
k
=
0
;
k
<
nTryCexes
;
k
++
)
if
(
pCexBest
!=
pCexMin
[
k
]
)
Abc_CexFreeP
(
&
pCexMin
[
k
]
);
// verify and return
if
(
!
Bmc_CexVerify
(
p
,
pCex
,
pCexBest
)
)
printf
(
"Counter-example verification has failed.
\n
"
);
else
if
(
fCheck
)
...
...
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