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
a2df3318
Commit
a2df3318
authored
Jan 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable timeframe abstraction.
parent
7a87f20c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
src/aig/gia/giaAbsVta.c
+0
-1
src/sat/bsat/satSolver2.c
+14
-10
No files found.
src/aig/gia/giaAbsVta.c
View file @
a2df3318
...
@@ -1410,7 +1410,6 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
...
@@ -1410,7 +1410,6 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
Vga_ManRollBack
(
p
,
nObjOld
);
Vga_ManRollBack
(
p
,
nObjOld
);
Vec_IntShrink
(
p
->
vCla2Var
,
(
int
)
p
->
pSat
->
stats
.
clauses
+
1
);
Vec_IntShrink
(
p
->
vCla2Var
,
(
int
)
p
->
pSat
->
stats
.
clauses
+
1
);
// load this timeframe
// load this timeframe
nObjOld
=
p
->
nObjs
;
Vga_ManLoadSlice
(
p
,
vCore
,
0
);
Vga_ManLoadSlice
(
p
,
vCore
,
0
);
Vec_IntFree
(
vCore
);
Vec_IntFree
(
vCore
);
}
}
...
...
src/sat/bsat/satSolver2.c
View file @
a2df3318
...
@@ -1511,16 +1511,6 @@ void sat_solver2_rollback( sat_solver2* s )
...
@@ -1511,16 +1511,6 @@ void sat_solver2_rollback( sat_solver2* s )
pArray
[
j
++
]
=
pArray
[
k
];
pArray
[
j
++
]
=
pArray
[
k
];
veci_resize
(
&
s
->
wlists
[
i
],
j
);
veci_resize
(
&
s
->
wlists
[
i
],
j
);
}
}
// compact units
if
(
s
->
fProofLogging
)
{
for
(
i
=
0
;
i
<
s
->
size
;
i
++
)
if
(
s
->
units
[
i
]
&&
!
clause_is_used
(
s
,
s
->
units
[
i
])
)
{
var_set_value
(
s
,
i
,
varX
);
s
->
reasons
[
i
]
=
0
;
s
->
units
[
i
]
=
0
;
}
}
}
}
// reset implication queue
// reset implication queue
assert
(
(
&
s
->
trail_lim
)
->
ptr
[
0
]
>=
s
->
iSimpPivot
);
assert
(
(
&
s
->
trail_lim
)
->
ptr
[
0
]
>=
s
->
iSimpPivot
);
...
@@ -1548,6 +1538,20 @@ void sat_solver2_rollback( sat_solver2* s )
...
@@ -1548,6 +1538,20 @@ void sat_solver2_rollback( sat_solver2* s )
// reset watcher lists
// reset watcher lists
for
(
i
=
2
*
s
->
iVarPivot
;
i
<
2
*
s
->
size
;
i
++
)
for
(
i
=
2
*
s
->
iVarPivot
;
i
<
2
*
s
->
size
;
i
++
)
s
->
wlists
[
i
].
size
=
0
;
s
->
wlists
[
i
].
size
=
0
;
for
(
i
=
s
->
iVarPivot
;
i
<
s
->
size
;
i
++
)
{
*
((
int
*
)
s
->
vi
+
i
)
=
0
;
s
->
levels
[
i
]
=
0
;
s
->
assigns
[
i
]
=
varX
;
s
->
reasons
[
i
]
=
0
;
s
->
units
[
i
]
=
0
;
#ifdef USE_FLOAT_ACTIVITY2
s
->
activity
[
i
]
=
0
;
#else
s
->
activity
[
i
]
=
(
1
<<
10
);
#endif
s
->
model
[
i
]
=
0
;
}
s
->
size
=
s
->
iVarPivot
;
s
->
size
=
s
->
iVarPivot
;
// initialize other vars
// initialize other vars
if
(
s
->
size
==
0
)
if
(
s
->
size
==
0
)
...
...
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