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
37917bde
Commit
37917bde
authored
Jan 15, 2016
by
Thierry Martinez
Browse files
Merge branch 'master' of
git+ssh://scm.gforge.inria.fr/gitroot/biocham/biocham
parents
996d01cb
e10d1d12
Changes
1
Show whitespace changes
Inline
Side-by-side
invariants.pl
View file @
37917bde
:-
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