Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Colin THOMAS
/
pyits_model_checker
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2021-06-25 13:23:20 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ce60dbfe25aa988bf12db3865f2a5a653eca98d
4ce60dbf
1 parent
8dd7008d
allow fairness arg to be a parsed formula
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
pymc/__init__.py
pymc/__init__.py
View file @
4ce60db
...
...
@@ -145,7 +145,7 @@ class FairCTL_model_checker(CTL_model_checker):
CTL_model_checker
.
__init__
(
self
,
universe
,
succ
)
if
isinstance
(
fairness
,
list
):
pass
elif
isinstance
(
fairness
,
str
)
or
isinstance
(
fairness
,
sdd
)
:
elif
isinstance
(
fairness
,
(
str
,
sdd
,
Phi
)
)
:
fairness
=
[
fairness
]
else
:
raise
TypeError
(
"fairness must be a list, a string or a sdd expressing a CTL formula"
)
...
...
@@ -153,7 +153,7 @@ class FairCTL_model_checker(CTL_model_checker):
print
(
"The list of fairness constraints is empty, you should use the CTL_model_checker instead"
)
def
fairness_preprocess
(
f
):
if
isinstance
(
f
,
str
)
or
isinstance
(
f
,
Phi
):
if
isinstance
(
f
,
(
str
,
Phi
)
):
return
CTL_model_checker
(
universe
,
succ
)
.
check
(
f
)
elif
isinstance
(
f
,
sdd
):
return
f
...
...
Please
register
or
login
to post a comment