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
86ba294d
Commit
86ba294d
authored
Jun 27, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The cube in PDR can have more than 2^15 literals.
parent
cab60501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/sat/pdr/pdrInt.h
+2
-2
src/sat/pdr/pdrUtil.c
+2
-2
No files found.
src/sat/pdr/pdrInt.h
View file @
86ba294d
...
@@ -45,8 +45,8 @@ struct Pdr_Set_t_
...
@@ -45,8 +45,8 @@ struct Pdr_Set_t_
{
{
word
Sign
;
// signature
word
Sign
;
// signature
int
nRefs
;
// ref counter
int
nRefs
;
// ref counter
short
nTotal
;
// total literals
int
nTotal
;
// total literals
short
nLits
;
// num flop literals
int
nLits
;
// num flop literals
int
Lits
[
0
];
int
Lits
[
0
];
};
};
...
...
src/sat/pdr/pdrUtil.c
View file @
86ba294d
...
@@ -46,7 +46,7 @@ ABC_NAMESPACE_IMPL_START
...
@@ -46,7 +46,7 @@ ABC_NAMESPACE_IMPL_START
Pdr_Set_t
*
Pdr_SetAlloc
(
int
nSize
)
Pdr_Set_t
*
Pdr_SetAlloc
(
int
nSize
)
{
{
Pdr_Set_t
*
p
;
Pdr_Set_t
*
p
;
assert
(
nSize
<
(
1
<<
15
)
);
assert
(
nSize
>=
0
&&
nSize
<
(
1
<<
30
)
);
p
=
(
Pdr_Set_t
*
)
ABC_CALLOC
(
char
,
sizeof
(
Pdr_Set_t
)
+
nSize
*
sizeof
(
int
)
);
p
=
(
Pdr_Set_t
*
)
ABC_CALLOC
(
char
,
sizeof
(
Pdr_Set_t
)
+
nSize
*
sizeof
(
int
)
);
return
p
;
return
p
;
}
}
...
@@ -66,7 +66,7 @@ Pdr_Set_t * Pdr_SetCreate( Vec_Int_t * vLits, Vec_Int_t * vPiLits )
...
@@ -66,7 +66,7 @@ Pdr_Set_t * Pdr_SetCreate( Vec_Int_t * vLits, Vec_Int_t * vPiLits )
{
{
Pdr_Set_t
*
p
;
Pdr_Set_t
*
p
;
int
i
;
int
i
;
assert
(
Vec_IntSize
(
vLits
)
+
Vec_IntSize
(
vPiLits
)
<
(
1
<<
15
)
);
assert
(
Vec_IntSize
(
vLits
)
+
Vec_IntSize
(
vPiLits
)
<
(
1
<<
30
)
);
p
=
(
Pdr_Set_t
*
)
ABC_ALLOC
(
char
,
sizeof
(
Pdr_Set_t
)
+
(
Vec_IntSize
(
vLits
)
+
Vec_IntSize
(
vPiLits
))
*
sizeof
(
int
)
);
p
=
(
Pdr_Set_t
*
)
ABC_ALLOC
(
char
,
sizeof
(
Pdr_Set_t
)
+
(
Vec_IntSize
(
vLits
)
+
Vec_IntSize
(
vPiLits
))
*
sizeof
(
int
)
);
p
->
nLits
=
Vec_IntSize
(
vLits
);
p
->
nLits
=
Vec_IntSize
(
vLits
);
p
->
nTotal
=
Vec_IntSize
(
vLits
)
+
Vec_IntSize
(
vPiLits
);
p
->
nTotal
=
Vec_IntSize
(
vLits
)
+
Vec_IntSize
(
vPiLits
);
...
...
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