Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
biocham
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Lifeware
biocham
Commits
995af213
Commit
995af213
authored
Jul 07, 2016
by
SOLIMAN Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing stuff again
parent
f1f10a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
revision.pl
revision.pl
+13
-18
No files found.
revision.pl
View file @
995af213
...
...
@@ -42,9 +42,8 @@ revise_model([E | ECTL], UCTL, ACTL, Et, Ut, At) :-
revise_model
([],
[
U
|
UCTL
],
ACTL
,
Et
,
Ut
,
At
)
:-
item
([
kind
:
option
,
item
:
option
(
nusmv_initial_states
:
Init
)]),
item
([
kind
:
option
,
item
:
option
(
boolean_semantics
:
Bool
)]),
check_ctl_impl
(
U
,
Init
,
silent
,
Bool
,
Result
),
(
Result
=
true
check_ctl_impl
(
U
,
Init
,
no
,
Bool
,
true
)
->
print_message
(
informational
,
step
(
'U'
))
;
...
...
@@ -55,7 +54,7 @@ revise_model([], [U | UCTL], ACTL, Et, Ut, At) :-
append
([
U
|
Ut
],
At
,
AllSpec
)
;
print_message
(
informational
,
step
(
'U'''''
)),
find_and_
delete_rules
,
delete_rules
,
% FIXME check At too since self-loops can be added by removing a reaction
append
([
U
|
Ut
],
Et
,
AllSpec
)
),
...
...
@@ -74,10 +73,17 @@ revise_model([], [], [A | ACTL], Et, Ut, At) :-
revise_model
([],
[],
ACTL
,
Et
,
Ut
,
[
A
|
At
])
;
print_message
(
informational
,
step
(
'A'''
)),
list_reactions
,
find_and_delete_rules
,
% FIXME check At too since self-loops can be added by removing a reaction
append
(
Ut
,
Et
,
AllSpec
),
(
nusmv
:
trace
(
_
)
->
delete_rules_from_trace
,
% FIXME check At too since self-loops can be added by removing a reaction
append
(
Ut
,
Et
,
AllSpec
)
;
delete_rules
,
% we delete blindly, so we need to check A now
append
([
A
|
Ut
],
Et
,
AllSpec
)
),
% FIXME the published algorithm actually allows to not re-check, but
% simply split and add again to the formulae to be verified
recheck_spec
(
AllSpec
,
Init
,
Bool
),
...
...
@@ -216,7 +222,6 @@ find_rule(R) :-
add_reaction_backtracking
(
R
)
:-
(
add_item
([
kind
:
reaction
,
item
:
R
]),
% list_reactions,nl,
print_message
(
informational
,
added
(
R
))
;
delete_item
([
kind
:
reaction
,
item
:
R
]),
...
...
@@ -226,16 +231,6 @@ add_reaction_backtracking(R) :-
).
find_and_delete_rules
:-
(
nusmv
:
trace
(
_
)
->
delete_rules_from_trace
;
delete_rules
).
delete_rules_from_trace
:-
enumerate_all_molecules
(
Molecules
),
findall
(
State
,
nusmv
:
trace
(
State
),
States
),
...
...
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