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
7b367f5e
Commit
7b367f5e
authored
Jul 13, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging a proof error.
parent
04d1c4e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
src/sat/bsat/satProof.c
+21
-3
No files found.
src/sat/bsat/satProof.c
View file @
7b367f5e
...
...
@@ -369,6 +369,17 @@ void Sat_ProofReduce2( sat_solver2 * s )
}
*/
void
Sat_ProofCheck0
(
Vec_Set_t
*
vProof
)
{
satset
*
pNode
,
*
pFanin
;
int
i
,
j
,
k
,
nSize
;
Vec_SetForEachEntry
(
satset
*
,
vProof
,
nSize
,
pNode
,
i
,
j
)
{
nSize
=
Vec_SetWordNum
(
2
+
pNode
->
nEnts
);
Proof_NodeForeachFanin
(
vProof
,
pNode
,
pFanin
,
k
)
assert
(
(
pNode
->
pEnts
[
k
]
>>
2
)
);
}
}
int
Sat_ProofReduce
(
Vec_Set_t
*
vProof
,
void
*
pRoots
,
int
hProofPivot
)
{
...
...
@@ -383,6 +394,10 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
clock_t
clk
=
clock
();
static
clock_t
TimeTotal
=
0
;
int
RetValue
;
static
Count
=
0
;
Count
++
;
Sat_ProofCheck0
(
vProof
);
// collect visited nodes
nSize
=
Proof_MarkUsedRec
(
vProof
,
vRoots
);
...
...
@@ -419,6 +434,9 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
pPivot
=
Proof_NodeRead
(
vProof
,
hProofPivot
);
RetValue
=
Vec_SetHandCurrentS
(
vProof
);
// s->iProofPivot = Vec_PtrSize(vUsed);
Sat_ProofCheck0
(
vProof
);
// compact the nodes
Vec_PtrForEachEntry
(
satset
*
,
vUsed
,
pNode
,
i
)
{
...
...
@@ -430,13 +448,12 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
RetValue
=
hTemp
;
pPivot
=
NULL
;
}
pNode
=
(
satset
*
)
Vec_SetEntry
(
vProof
,
hTemp
);
for
(
k
=
0
;
k
<
(
int
)
pNode
->
nEnts
;
k
++
)
assert
(
(
pNode
->
pEnts
[
k
]
>>
2
)
);
}
Vec_SetWriteEntryNum
(
vProof
,
Vec_PtrSize
(
vUsed
)
);
Vec_PtrFree
(
vUsed
);
Sat_ProofCheck0
(
vProof
);
// report the result
if
(
fVerbose
)
{
...
...
@@ -618,6 +635,7 @@ Vec_Int_t * Sat_ProofCollectCore( Vec_Set_t * vProof, Vec_Int_t * vUsed )
if
(
pFanin
==
NULL
)
{
int
Entry
=
(
pNode
->
pEnts
[
k
]
>>
2
);
assert
(
Entry
<=
MaxCla
);
if
(
Abc_InfoHasBit
(
pBitMap
,
Entry
)
)
continue
;
Abc_InfoSetBit
(
pBitMap
,
Entry
);
...
...
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