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
e9710fed
Commit
e9710fed
authored
11 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Rename onestep.cpp -> onestep-example.cpp
parent
c082e65c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GMLMIP-0.1/makefile
+3
-3
3 additions, 3 deletions
GMLMIP-0.1/makefile
GMLMIP-0.1/onestep-example.cpp
+1
-2
1 addition, 2 deletions
GMLMIP-0.1/onestep-example.cpp
with
4 additions
and
5 deletions
GMLMIP-0.1/makefile
+
3
−
3
View file @
e9710fed
...
@@ -13,7 +13,7 @@ parser/lex.yy.h
...
@@ -13,7 +13,7 @@ parser/lex.yy.h
.PHONY
:
all clean parser/% formulas/% rules/%
.PHONY
:
all clean parser/% formulas/% rules/%
all
:
main onestep
all
:
main onestep
-example
.PHONY
:
phony
.PHONY
:
phony
# don't do anything here
# don't do anything here
...
@@ -34,14 +34,14 @@ rules/%: phony
...
@@ -34,14 +34,14 @@ rules/%: phony
main
:
main.o $(POBJS) $(FOBJS) $(ROBJS)
main
:
main.o $(POBJS) $(FOBJS) $(ROBJS)
$(
GCC
)
$(
GCCFLAGS
)
$(
POBJS
)
$(
FOBJS
)
$(
ROBJS
)
-lbdd
-lm
-lglpk
$<
-o
$@
$(
GCC
)
$(
GCCFLAGS
)
$(
POBJS
)
$(
FOBJS
)
$(
ROBJS
)
-lbdd
-lm
-lglpk
$<
-o
$@
onestep
:
onestep.o $(POBJS) $(FOBJS) $(ROBJS)
onestep
-example
:
onestep
-example
.o $(POBJS) $(FOBJS) $(ROBJS)
$(
GCC
)
$(
GCCFLAGS
)
$(
POBJS
)
$(
FOBJS
)
$(
ROBJS
)
-lbdd
-lm
-lglpk
$<
-o
$@
$(
GCC
)
$(
GCCFLAGS
)
$(
POBJS
)
$(
FOBJS
)
$(
ROBJS
)
-lbdd
-lm
-lglpk
$<
-o
$@
main.o
:
main.cpp $(HEADERS)
main.o
:
main.cpp $(HEADERS)
$(
GCC
)
$(
GCCFLAGS
)
-c
$<
-o
$@
$(
GCC
)
$(
GCCFLAGS
)
-c
$<
-o
$@
onestep.o
:
onestep.cpp $(HEADERS)
onestep
-example
.o
:
onestep
-example
.cpp $(HEADERS)
$(
GCC
)
$(
GCCFLAGS
)
-c
$<
$(
GCC
)
$(
GCCFLAGS
)
-c
$<
clean
:
parser/clean formulas/clean rules/clean
clean
:
parser/clean formulas/clean rules/clean
...
...
This diff is collapsed.
Click to expand it.
GMLMIP-0.1/onestep.cpp
→
GMLMIP-0.1/onestep
-example
.cpp
+
1
−
2
View file @
e9710fed
...
@@ -34,7 +34,7 @@ int main (int argc, char *argv[]){
...
@@ -34,7 +34,7 @@ int main (int argc, char *argv[]){
//bdd b = bdd_and(f->modal(new bdd(f->variable(0)), 4, 0),
//bdd b = bdd_and(f->modal(new bdd(f->variable(0)), 4, 0),
// bdd_not(f->modal(new bdd(f->variable(0)), 6, 0)));
// bdd_not(f->modal(new bdd(f->variable(0)), 6, 0)));
bdd
b
=
bdd_or
(
f
->
modal
(
new
bdd
(
f
->
variable
(
4
)),
4
,
0
),
bdd
b
=
bdd_or
(
f
->
modal
(
new
bdd
(
f
->
variable
(
4
)),
4
,
0
),
bdd_not
(
f
->
modal
(
new
bdd
(
f
->
variable
(
7
)),
3
,
0
)));
bdd_not
(
f
->
modal
(
new
bdd
(
bdd_not
(
f
->
variable
(
7
))
)
,
3
,
0
)));
f
->
set_bdd
(
b
);
f
->
set_bdd
(
b
);
// bdd_varblockall();
// bdd_varblockall();
// bdd_reorder(BDD_REORDER_WIN3ITE);
// bdd_reorder(BDD_REORDER_WIN3ITE);
...
@@ -58,7 +58,6 @@ int main (int argc, char *argv[]){
...
@@ -58,7 +58,6 @@ int main (int argc, char *argv[]){
// }
// }
// cout << endl;
// cout << endl;
//}
//}
f
->
onestep
();
vector
<
SatisfyingAssignment
>
vsa
=
f
->
onestep
();
vector
<
SatisfyingAssignment
>
vsa
=
f
->
onestep
();
cout
<<
vsa
.
size
()
<<
" possible assignments
\n
"
;
cout
<<
vsa
.
size
()
<<
" possible assignments
\n
"
;
for
(
unsigned
int
i
=
0
;
i
<
vsa
.
size
();
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
vsa
.
size
();
i
++
)
{
...
...
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