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
299099a4
Commit
299099a4
authored
Sep 10, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates for the new BMC engine.
parent
26c0e937
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
src/sat/bmc/bmcBmcAnd.c
+16
-10
No files found.
src/sat/bmc/bmcBmcAnd.c
View file @
299099a4
...
@@ -618,6 +618,15 @@ int Gia_ManBmcCheckOutputs( Gia_Man_t * pFrames, int iStart, int iStop )
...
@@ -618,6 +618,15 @@ int Gia_ManBmcCheckOutputs( Gia_Man_t * pFrames, int iStart, int iStop )
return
0
;
return
0
;
return
1
;
return
1
;
}
}
int
Gia_ManBmcFindFirst
(
Gia_Man_t
*
pFrames
)
{
Gia_Obj_t
*
pObj
;
int
i
;
Gia_ManForEachPo
(
pFrames
,
pObj
,
i
)
if
(
Gia_ObjChild0
(
pObj
)
!=
Gia_ManConst0
(
pFrames
)
)
return
i
;
return
-
1
;
}
/**Function*************************************************************
/**Function*************************************************************
...
@@ -723,11 +732,16 @@ int Gia_ManBmcPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
...
@@ -723,11 +732,16 @@ int Gia_ManBmcPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
nFramesMax
=
Gia_ManPoNum
(
p
->
pFrames
)
/
Gia_ManPoNum
(
pGia
);
nFramesMax
=
Gia_ManPoNum
(
p
->
pFrames
)
/
Gia_ManPoNum
(
pGia
);
if
(
pPars
->
fVerbose
)
if
(
pPars
->
fVerbose
)
{
{
printf
(
"
Performed unfolding for %d frames. "
,
nFramesMax
);
printf
(
"
Unfolding for %d frames with first non-trivial PO %d. "
,
nFramesMax
,
Gia_ManBmcFindFirst
(
p
->
pFrames
)
);
Abc_PrintTime
(
1
,
"
Unfolding t
ime"
,
Abc_Clock
()
-
clk
);
Abc_PrintTime
(
1
,
"
T
ime"
,
Abc_Clock
()
-
clk
);
}
}
if
(
pPars
->
fVerbose
)
if
(
pPars
->
fVerbose
)
Gia_ManPrintStats
(
p
->
pFrames
,
NULL
);
Gia_ManPrintStats
(
p
->
pFrames
,
NULL
);
if
(
pPars
->
fDumpFrames
)
{
Gia_AigerWrite
(
p
->
pFrames
,
"frames.aig"
,
0
,
0
);
printf
(
"Dumped unfolded frames into file
\"
frames.aig
\"
.
\n
"
);
}
for
(
f
=
0
;
f
<
nFramesMax
;
f
++
)
for
(
f
=
0
;
f
<
nFramesMax
;
f
++
)
{
{
if
(
!
Gia_ManBmcCheckOutputs
(
p
->
pFrames
,
f
*
Gia_ManPoNum
(
pGia
),
(
f
+
1
)
*
Gia_ManPoNum
(
pGia
)
)
)
if
(
!
Gia_ManBmcCheckOutputs
(
p
->
pFrames
,
f
*
Gia_ManPoNum
(
pGia
),
(
f
+
1
)
*
Gia_ManPoNum
(
pGia
)
)
)
...
@@ -777,14 +791,6 @@ int Gia_ManBmcPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
...
@@ -777,14 +791,6 @@ int Gia_ManBmcPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
}
}
if
(
RetValue
==
-
2
)
if
(
RetValue
==
-
2
)
RetValue
=
-
1
;
RetValue
=
-
1
;
// dump unfolded frames
if
(
pPars
->
fDumpFrames
)
{
p
->
pFrames
=
Gia_ManCleanup
(
p
->
pFrames
);
Gia_AigerWrite
(
p
->
pFrames
,
"frames.aig"
,
0
,
0
);
printf
(
"Dumped unfolded frames into file
\"
frames.aig
\"
.
\n
"
);
Gia_ManStop
(
p
->
pFrames
);
}
// cleanup
// cleanup
Gia_ManStop
(
p
->
pFrames
);
Gia_ManStop
(
p
->
pFrames
);
Bmc_MnaFree
(
p
);
Bmc_MnaFree
(
p
);
...
...
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