Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DOML Model Checker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIACERE
public
The Platform
DOML Model Checker
Commits
254e8ffa
Commit
254e8ffa
authored
2 years ago
by
Michele Chiari
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Disable multithreading."
This reverts commit
bf2261f6
.
parent
bf2261f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mc_openapi/doml_mc/test.ipynb
+1
-1
1 addition, 1 deletion
mc_openapi/doml_mc/test.ipynb
mc_openapi/handlers.py
+1
-1
1 addition, 1 deletion
mc_openapi/handlers.py
with
2 additions
and
2 deletions
mc_openapi/doml_mc/test.ipynb
+
1
−
1
View file @
254e8ffa
...
...
@@ -23,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"r = dmc.check_common_requirements(2
, False
)\n",
"r = dmc.check_common_requirements(2)\n",
"r.summarize()"
]
}
...
...
%% Cell type:code id: tags:
```
python
import
mc_openapi.doml_mc
as
mc
doml_document_path
=
"
../../tests/doml/nginx-openstack_v2.domlx
"
# doml_document_path = "../../tests/doml/nginx-openstack_v2_wrong.domlx"
# doml_document_path = "../../tests/doml/faas.domlx"
with
open
(
doml_document_path
,
"
rb
"
)
as
xmif
:
doc
=
xmif
.
read
()
dmc
=
mc
.
ModelChecker
(
doc
)
```
%% Cell type:code id: tags:
```
python
r
=
dmc
.
check_common_requirements
(
2
,
False
)
r
=
dmc
.
check_common_requirements
(
2
)
r
.
summarize
()
```
...
...
This diff is collapsed.
Click to expand it.
mc_openapi/handlers.py
+
1
−
1
View file @
254e8ffa
...
...
@@ -13,7 +13,7 @@ def post(body, requirement=None):
doml_xmi
=
body
try
:
dmc
=
ModelChecker
(
doml_xmi
)
results
=
dmc
.
check_common_requirements
(
threads
=
1
,
consistency_checks
=
False
)
results
=
dmc
.
check_common_requirements
(
2
)
res
,
msg
=
results
.
summarize
()
if
res
==
MCResult
.
sat
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment