Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cool
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hans-Peter Deifel
cool
Commits
a2ec2dfc
Commit
a2ec2dfc
authored
8 years ago
by
Hans-Peter Deifel
Browse files
Options
Downloads
Patches
Plain Diff
Set states without children to Sat early
We can set states without children to Sat right after we expand them.
parent
afeec2f2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/CoAlgReasoner.ml
+10
-2
10 additions, 2 deletions
src/lib/CoAlgReasoner.ml
with
10 additions
and
2 deletions
src/lib/CoAlgReasoner.ml
+
10
−
2
View file @
a2ec2dfc
...
...
@@ -1114,14 +1114,22 @@ let rec insertAllRules state rules =
List
.
mem
true
(
List
.
map
(
fun
(
dep
,
children
)
->
insertRule
state
dep
children
)
rules
)
let
expandState
state
=
let
setSatOrOpen
()
=
if
CU
.
TList
.
empty
(
stateGetRules
state
)
then
stateSetStatus
state
Sat
else
stateSetStatus
state
Open
in
match
stateNextRule
state
with
|
MultipleElements
rules
->
let
unsat
=
insertAllRules
state
rules
in
if
not
unsat
then
s
tateS
etS
t
at
us
state
Open
if
not
unsat
then
setSat
Or
Open
()
|
SingleElement
(
dep
,
chldrn
)
->
let
unsat
=
insertRule
state
dep
chldrn
in
if
not
unsat
then
queueInsertState
state
else
()
|
NoMoreElements
->
stateSetStatus
state
Open
|
NoMoreElements
->
setSatOrOpen
()
let
expandCnstr
cset
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment