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
Colin THOMAS
2022-07-25 12:21:35 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5747db33a9e13e5d5bc74c67ae7972a4b8c75ceb
5747db33
1 parent
0e69c0ba
Update __init__.py
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
pymc/__init__.py
pymc/__init__.py
View file @
5747db3
...
...
@@ -80,11 +80,17 @@ class CTL_model_checker(object):
Output:
The sdd representing the subset of the universe where var is True.
"""
assert
var
in
self
.
variables
,
var
+
" is not a variable"
if
var
[
-
1
]
==
'+'
or
var
[
-
1
]
==
'-'
:
assert
var
[:
-
1
]
in
self
.
variables
,
var
[:
-
1
]
+
" is not a variable"
value
=
int
(
var
[
-
1
]
==
'+'
)
var
=
var
[:
-
1
]
else
:
assert
var
in
self
.
variables
,
var
+
" is not a variable"
value
=
1
d
=
ddd
.
one
()
for
v
in
reversed
(
self
.
variables
):
if
v
==
var
:
d
=
ddd
.
from_range
(
var
,
1
,
1
,
d
)
d
=
ddd
.
from_range
(
var
,
value
,
value
,
d
)
else
:
d
=
ddd
.
from_range
(
v
,
0
,
1
,
d
)
return
sdd
.
mkz
(
d
)
&
self
.
CTL_True
...
...
Please
register
or
login
to post a comment