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
9171bb32
Commit
9171bb32
authored
Jan 28, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to arithmetic verification.
parent
782125c6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
10 deletions
+23
-10
abclib.dsp
+8
-0
src/proof/acec/acecInt.h
+9
-0
src/proof/acec/acecMult.c
+1
-0
src/proof/acec/acecTree.c
+3
-9
src/proof/acec/acecXor.c
+0
-0
src/proof/acec/module.make
+2
-1
No files found.
abclib.dsp
View file @
9171bb32
...
@@ -1963,6 +1963,10 @@ SOURCE=.\src\sat\xsat\xsatCnfReader.c
...
@@ -1963,6 +1963,10 @@ SOURCE=.\src\sat\xsat\xsatCnfReader.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\sat\xsat\xsatFloat.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\xsat\xsatHeap.h
SOURCE=.\src\sat\xsat\xsatHeap.h
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
@@ -5553,6 +5557,10 @@ SOURCE=.\src\proof\acec\acecTree.c
...
@@ -5553,6 +5557,10 @@ SOURCE=.\src\proof\acec\acecTree.c
SOURCE=.\src\proof\acec\acecUtil.c
SOURCE=.\src\proof\acec\acecUtil.c
# End Source File
# End Source File
# Begin Source File
SOURCE=.\src\proof\acec\acecXor.c
# End Source File
# End Group
# End Group
# End Group
# End Group
# End Group
# End Group
...
...
src/proof/acec/acecInt.h
View file @
9171bb32
...
@@ -56,6 +56,12 @@ struct Acec_Box_t_
...
@@ -56,6 +56,12 @@ struct Acec_Box_t_
/// MACRO DEFINITIONS ///
/// MACRO DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
static
inline
int
Acec_SignBit
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
)
{
return
(
Vec_IntEntry
(
vAdds
,
6
*
iBox
+
5
)
>>
b
)
&
1
;
}
static
inline
int
Acec_SignBit2
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
)
{
return
(
Vec_IntEntry
(
vAdds
,
6
*
iBox
+
5
)
>>
(
16
+
b
))
&
1
;
}
static
inline
void
Acec_SignSetBit
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
,
int
v
)
{
if
(
v
)
*
Vec_IntEntryP
(
vAdds
,
6
*
iBox
+
5
)
|=
(
1
<<
b
);
}
static
inline
void
Acec_SignSetBit2
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
,
int
v
)
{
if
(
v
)
*
Vec_IntEntryP
(
vAdds
,
6
*
iBox
+
5
)
|=
(
1
<<
(
16
+
b
));
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// ITERATORS ///
/// ITERATORS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
@@ -75,11 +81,14 @@ extern void Acec_InsertFadd( Gia_Man_t * pNew, int In[3], int Out[2] );
...
@@ -75,11 +81,14 @@ extern void Acec_InsertFadd( Gia_Man_t * pNew, int In[3], int Out[2] );
extern
Gia_Man_t
*
Acec_InsertBox
(
Acec_Box_t
*
pBox
,
int
fAll
);
extern
Gia_Man_t
*
Acec_InsertBox
(
Acec_Box_t
*
pBox
,
int
fAll
);
/*=== acecTree.c ========================================================*/
/*=== acecTree.c ========================================================*/
extern
void
Acec_PrintAdders
(
Vec_Wec_t
*
vBoxes
,
Vec_Int_t
*
vAdds
);
extern
void
Acec_PrintAdders
(
Vec_Wec_t
*
vBoxes
,
Vec_Int_t
*
vAdds
);
extern
void
Acec_TreePrintBox
(
Acec_Box_t
*
pBox
,
Vec_Int_t
*
vAdds
);
extern
Acec_Box_t
*
Acec_DeriveBox
(
Gia_Man_t
*
p
,
Vec_Bit_t
*
vIgnore
,
int
fFilterIn
,
int
fFilterOut
,
int
fVerbose
);
extern
Acec_Box_t
*
Acec_DeriveBox
(
Gia_Man_t
*
p
,
Vec_Bit_t
*
vIgnore
,
int
fFilterIn
,
int
fFilterOut
,
int
fVerbose
);
extern
void
Acec_BoxFreeP
(
Acec_Box_t
**
ppBox
);
extern
void
Acec_BoxFreeP
(
Acec_Box_t
**
ppBox
);
/*=== acecUtil.c ========================================================*/
/*=== acecUtil.c ========================================================*/
extern
void
Gia_PolynAnalyzeXors
(
Gia_Man_t
*
pGia
,
int
fVerbose
);
extern
void
Gia_PolynAnalyzeXors
(
Gia_Man_t
*
pGia
,
int
fVerbose
);
extern
Vec_Int_t
*
Gia_PolynCollectLastXor
(
Gia_Man_t
*
pGia
,
int
fVerbose
);
extern
Vec_Int_t
*
Gia_PolynCollectLastXor
(
Gia_Man_t
*
pGia
,
int
fVerbose
);
/*=== acecUtil.c ========================================================*/
extern
Acec_Box_t
*
Acec_DetectXorTrees
(
Gia_Man_t
*
p
,
int
fVerbose
);
...
...
src/proof/acec/acecMult.c
View file @
9171bb32
...
@@ -499,6 +499,7 @@ Vec_Int_t * Acec_MultFindPPs( Gia_Man_t * p )
...
@@ -499,6 +499,7 @@ Vec_Int_t * Acec_MultFindPPs( Gia_Man_t * p )
{
{
if
(
Truth
==
Saved
[
i
]
||
Truth
==
~
Saved
[
i
]
)
if
(
Truth
==
Saved
[
i
]
||
Truth
==
~
Saved
[
i
]
)
{
{
//printf( "*** Node %d is PP with support %d.\n", iObj, Vec_IntSize(vSupp) );
Acec_MultFindPPs_rec
(
p
,
iObj
,
vBold
);
Acec_MultFindPPs_rec
(
p
,
iObj
,
vBold
);
nProds
++
;
nProds
++
;
break
;
break
;
...
...
src/proof/acec/acecTree.c
View file @
9171bb32
...
@@ -27,12 +27,6 @@ ABC_NAMESPACE_IMPL_START
...
@@ -27,12 +27,6 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
static
inline
int
Acec_SignBit
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
)
{
return
(
Vec_IntEntry
(
vAdds
,
6
*
iBox
+
5
)
>>
b
)
&
1
;
}
static
inline
int
Acec_SignBit2
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
)
{
return
(
Vec_IntEntry
(
vAdds
,
6
*
iBox
+
5
)
>>
(
16
+
b
))
&
1
;
}
static
inline
void
Acec_SignSetBit
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
,
int
v
)
{
if
(
v
)
*
Vec_IntEntryP
(
vAdds
,
6
*
iBox
+
5
)
|=
(
1
<<
b
);
}
static
inline
void
Acec_SignSetBit2
(
Vec_Int_t
*
vAdds
,
int
iBox
,
int
b
,
int
v
)
{
if
(
v
)
*
Vec_IntEntryP
(
vAdds
,
6
*
iBox
+
5
)
|=
(
1
<<
(
16
+
b
));
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
@@ -558,7 +552,7 @@ void Acec_PrintAdders( Vec_Wec_t * vBoxes, Vec_Int_t * vAdds )
...
@@ -558,7 +552,7 @@ void Acec_PrintAdders( Vec_Wec_t * vBoxes, Vec_Int_t * vAdds )
printf
(
" }
\n
"
);
printf
(
" }
\n
"
);
}
}
}
}
void
Acec_PrintBox
(
Acec_Box_t
*
pBox
,
Vec_Int_t
*
vAdds
)
void
Acec_
Tree
PrintBox
(
Acec_Box_t
*
pBox
,
Vec_Int_t
*
vAdds
)
{
{
printf
(
"Adders:
\n
"
);
printf
(
"Adders:
\n
"
);
Acec_PrintAdders
(
pBox
->
vAdds
,
vAdds
);
Acec_PrintAdders
(
pBox
->
vAdds
,
vAdds
);
...
@@ -703,7 +697,7 @@ void Acec_CreateBoxTest( Gia_Man_t * p )
...
@@ -703,7 +697,7 @@ void Acec_CreateBoxTest( Gia_Man_t * p )
printf
(
"Processing tree %d: Ranks = %d. Adders = %d. Leaves = %d. Roots = %d.
\n
"
,
printf
(
"Processing tree %d: Ranks = %d. Adders = %d. Leaves = %d. Roots = %d.
\n
"
,
i
,
Vec_WecSize
(
pBox
->
vAdds
),
Vec_WecSizeSize
(
pBox
->
vAdds
),
i
,
Vec_WecSize
(
pBox
->
vAdds
),
Vec_WecSizeSize
(
pBox
->
vAdds
),
Vec_WecSizeSize
(
pBox
->
vLeafLits
),
Vec_WecSizeSize
(
pBox
->
vRootLits
)
);
Vec_WecSizeSize
(
pBox
->
vLeafLits
),
Vec_WecSizeSize
(
pBox
->
vRootLits
)
);
Acec_PrintBox
(
pBox
,
vAdds
);
Acec_
Tree
PrintBox
(
pBox
,
vAdds
);
Acec_BoxFreeP
(
&
pBox
);
Acec_BoxFreeP
(
&
pBox
);
}
}
...
@@ -737,7 +731,7 @@ Acec_Box_t * Acec_DeriveBox( Gia_Man_t * p, Vec_Bit_t * vIgnore, int fFilterIn,
...
@@ -737,7 +731,7 @@ Acec_Box_t * Acec_DeriveBox( Gia_Man_t * p, Vec_Bit_t * vIgnore, int fFilterIn,
0
,
Vec_WecSize
(
pBox
->
vAdds
),
Vec_WecSizeSize
(
pBox
->
vAdds
),
0
,
Vec_WecSize
(
pBox
->
vAdds
),
Vec_WecSizeSize
(
pBox
->
vAdds
),
Vec_WecSizeSize
(
pBox
->
vLeafLits
),
Vec_WecSizeSize
(
pBox
->
vRootLits
)
);
Vec_WecSizeSize
(
pBox
->
vLeafLits
),
Vec_WecSizeSize
(
pBox
->
vRootLits
)
);
if
(
pBox
&&
fVerbose
)
if
(
pBox
&&
fVerbose
)
Acec_PrintBox
(
pBox
,
vAdds
);
Acec_
Tree
PrintBox
(
pBox
,
vAdds
);
//Acec_PrintAdders( pBox0->vAdds, vAdds );
//Acec_PrintAdders( pBox0->vAdds, vAdds );
//Acec_MultDetectInputs( p, pBox->vLeafLits, pBox->vRootLits );
//Acec_MultDetectInputs( p, pBox->vLeafLits, pBox->vRootLits );
Vec_WecFreeP
(
&
vTrees
);
Vec_WecFreeP
(
&
vTrees
);
...
...
src/proof/acec/acecXor.c
0 → 100644
View file @
9171bb32
This diff is collapsed.
Click to expand it.
src/proof/acec/module.make
View file @
9171bb32
...
@@ -14,4 +14,5 @@ SRC += src/proof/acec/acecCl.c \
...
@@ -14,4 +14,5 @@ SRC += src/proof/acec/acecCl.c \
src/proof/acec/acecPolyn.c
\
src/proof/acec/acecPolyn.c
\
src/proof/acec/acecSt.c
\
src/proof/acec/acecSt.c
\
src/proof/acec/acecTree.c
\
src/proof/acec/acecTree.c
\
src/proof/acec/acecUtil.c
src/proof/acec/acecUtil.c
\
src/proof/acec/acecXor.c
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