Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
e10d1d12
Commit
e10d1d12
authored
Jan 15, 2016
by
SOLIMAN Sylvain
Browse files
small things, still far from working
parent
d0ca9607
Changes
1
Show whitespace changes
Inline
Side-by-side
invariants.pl
View file @
e10d1d12
:-
use_module
(
library
(
clpfd
)).
:-
use_module
(
library
(
lists
)).
fd_max_integer
(
268435455
).
cpu_time
(
T
)
:-
statistics
(
walltime
,
[
T
,
_
]).
...
...
@@ -25,8 +23,7 @@ cpu_time(T) :-
% find the complete set of minimal P-invariants
find_all_pinvar
:-
fd_max_integer
(
MaxInt
),
find_pinvar
(
MaxInt
).
find_pinvar
(
sup
).
find_pinvar
:-
...
...
@@ -117,7 +114,13 @@ find_invar(IOList, ForcedMax, Operator) :-
get_constraints
(
UIOList
,
[],
[],
Vars
,
VarList
,
1
,
MaxDomain1
,
Operator
),
retractall
(
vars
(
_
)),
assertz
(
vars
(
Vars
)),
MaxDomain
is
min
(
MaxDomain1
,
ForcedMax
),
(
ForcedMax
==
sup
->
MaxDomain
=
MaxDomain1
;
MaxDomain
is
min
(
MaxDomain1
,
ForcedMax
)
),
% add a large upper bound for minimal invariants
VarList
ins
0
..
MaxDomain
,
format_debug
(
4
,
"~w~n"
,
[
MaxDomain
]),
...
...
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