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
d4bd7846
Commit
d4bd7846
authored
Sep 17, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added bridge integration for multi-output 'bmc3 -a'.
parent
3d8dc121
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
src/base/abci/abc.c
+1
-0
src/sat/bmc/bmc.h
+1
-0
src/sat/bmc/bmcBmc3.c
+12
-0
No files found.
src/base/abci/abc.c
View file @
d4bd7846
...
@@ -21901,6 +21901,7 @@ int Abc_CommandBmc3( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21901,6 +21901,7 @@ int Abc_CommandBmc3( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Constraints have to be folded (use
\"
fold
\"
).
\n
"
);
Abc_Print
(
-
1
,
"Constraints have to be folded (use
\"
fold
\"
).
\n
"
);
return
0
;
return
0
;
}
}
pPars
->
fUseBridge
=
pAbc
->
fBridgeMode
;
pAbc
->
Status
=
Abc_NtkDarBmc3
(
pNtk
,
pPars
,
fOrDecomp
);
pAbc
->
Status
=
Abc_NtkDarBmc3
(
pNtk
,
pPars
,
fOrDecomp
);
pAbc
->
nFrames
=
pNtk
->
vSeqModelVec
?
-
1
:
pPars
->
iFrame
;
pAbc
->
nFrames
=
pNtk
->
vSeqModelVec
?
-
1
:
pPars
->
iFrame
;
if
(
pLogFileName
)
if
(
pLogFileName
)
src/sat/bmc/bmc.h
View file @
d4bd7846
...
@@ -56,6 +56,7 @@ struct Saig_ParBmc_t_
...
@@ -56,6 +56,7 @@ struct Saig_ParBmc_t_
int
nPisAbstract
;
// the number of PIs to abstract
int
nPisAbstract
;
// the number of PIs to abstract
int
fSolveAll
;
// does not stop at the first SAT output
int
fSolveAll
;
// does not stop at the first SAT output
int
fStoreCex
;
// enable storing CEXes in the MO mode
int
fStoreCex
;
// enable storing CEXes in the MO mode
int
fUseBridge
;
// use bridge interface
int
fDropSatOuts
;
// replace sat outputs by constant 0
int
fDropSatOuts
;
// replace sat outputs by constant 0
int
nFfToAddMax
;
// max number of flops to add during CBA
int
nFfToAddMax
;
// max number of flops to add during CBA
int
fSkipRand
;
// skip random decisions
int
fSkipRand
;
// skip random decisions
...
...
src/sat/bmc/bmcBmc3.c
View file @
d4bd7846
...
@@ -64,6 +64,8 @@ struct Gia_ManBmc_t_
...
@@ -64,6 +64,8 @@ struct Gia_ManBmc_t_
char
*
pSopSizes
,
**
pSops
;
// CNF representation
char
*
pSopSizes
,
**
pSops
;
// CNF representation
};
};
extern
int
Gia_ManToBridgeResult
(
FILE
*
pFile
,
int
Result
,
Abc_Cex_t
*
pCex
,
int
iPoProved
);
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
@@ -1424,6 +1426,11 @@ clkOther += Abc_Clock() - clk2;
...
@@ -1424,6 +1426,11 @@ clkOther += Abc_Clock() - clk2;
nOutDigits
,
i
,
f
,
nOutDigits
,
pPars
->
nFailOuts
,
nOutDigits
,
Saig_ManPoNum
(
pAig
)
);
nOutDigits
,
i
,
f
,
nOutDigits
,
pPars
->
nFailOuts
,
nOutDigits
,
Saig_ManPoNum
(
pAig
)
);
if
(
p
->
vCexes
==
NULL
)
if
(
p
->
vCexes
==
NULL
)
p
->
vCexes
=
Vec_PtrStart
(
Saig_ManPoNum
(
pAig
)
);
p
->
vCexes
=
Vec_PtrStart
(
Saig_ManPoNum
(
pAig
)
);
if
(
p
->
pPars
->
fUseBridge
)
{
Abc_Cex_t
*
pCexNew
=
Abc_CexMakeTriv
(
Aig_ManRegNum
(
pAig
),
Saig_ManPiNum
(
pAig
),
Saig_ManPoNum
(
pAig
),
f
*
Saig_ManPoNum
(
pAig
)
+
i
);
Gia_ManToBridgeResult
(
stdout
,
0
,
pCexNew
,
pCexNew
->
iPo
);
}
Vec_PtrWriteEntry
(
p
->
vCexes
,
i
,
pPars
->
fStoreCex
?
Abc_CexMakeTriv
(
Aig_ManRegNum
(
pAig
),
Saig_ManPiNum
(
pAig
),
Saig_ManPoNum
(
pAig
),
f
*
Saig_ManPoNum
(
pAig
)
+
i
)
:
(
void
*
)(
ABC_PTRINT_T
)
1
);
Vec_PtrWriteEntry
(
p
->
vCexes
,
i
,
pPars
->
fStoreCex
?
Abc_CexMakeTriv
(
Aig_ManRegNum
(
pAig
),
Saig_ManPiNum
(
pAig
),
Saig_ManPoNum
(
pAig
),
f
*
Saig_ManPoNum
(
pAig
)
+
i
)
:
(
void
*
)(
ABC_PTRINT_T
)
1
);
if
(
pPars
->
pFuncOnFail
&&
pPars
->
pFuncOnFail
(
i
,
pPars
->
fStoreCex
?
(
Abc_Cex_t
*
)
Vec_PtrEntry
(
p
->
vCexes
,
i
)
:
NULL
)
)
if
(
pPars
->
pFuncOnFail
&&
pPars
->
pFuncOnFail
(
i
,
pPars
->
fStoreCex
?
(
Abc_Cex_t
*
)
Vec_PtrEntry
(
p
->
vCexes
,
i
)
:
NULL
)
)
{
{
...
@@ -1514,6 +1521,11 @@ nTimeSat += Abc_Clock() - clk2;
...
@@ -1514,6 +1521,11 @@ nTimeSat += Abc_Clock() - clk2;
nOutDigits
,
i
,
f
,
nOutDigits
,
pPars
->
nFailOuts
,
nOutDigits
,
Saig_ManPoNum
(
pAig
)
);
nOutDigits
,
i
,
f
,
nOutDigits
,
pPars
->
nFailOuts
,
nOutDigits
,
Saig_ManPoNum
(
pAig
)
);
if
(
p
->
vCexes
==
NULL
)
if
(
p
->
vCexes
==
NULL
)
p
->
vCexes
=
Vec_PtrStart
(
Saig_ManPoNum
(
pAig
)
);
p
->
vCexes
=
Vec_PtrStart
(
Saig_ManPoNum
(
pAig
)
);
if
(
p
->
pPars
->
fUseBridge
)
{
Abc_Cex_t
*
pCexNew
=
Saig_ManGenerateCex
(
p
,
f
,
i
);
Gia_ManToBridgeResult
(
stdout
,
0
,
pCexNew
,
pCexNew
->
iPo
);
}
Vec_PtrWriteEntry
(
p
->
vCexes
,
i
,
pPars
->
fStoreCex
?
Saig_ManGenerateCex
(
p
,
f
,
i
)
:
(
void
*
)(
ABC_PTRINT_T
)
1
);
Vec_PtrWriteEntry
(
p
->
vCexes
,
i
,
pPars
->
fStoreCex
?
Saig_ManGenerateCex
(
p
,
f
,
i
)
:
(
void
*
)(
ABC_PTRINT_T
)
1
);
if
(
pPars
->
pFuncOnFail
&&
pPars
->
pFuncOnFail
(
i
,
pPars
->
fStoreCex
?
(
Abc_Cex_t
*
)
Vec_PtrEntry
(
p
->
vCexes
,
i
)
:
NULL
)
)
if
(
pPars
->
pFuncOnFail
&&
pPars
->
pFuncOnFail
(
i
,
pPars
->
fStoreCex
?
(
Abc_Cex_t
*
)
Vec_PtrEntry
(
p
->
vCexes
,
i
)
:
NULL
)
)
{
{
...
...
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