Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mc-sog
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PMC-SOG
mc-sog
Commits
7ab04d91
Commit
7ab04d91
authored
2 years ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
wip: add ufscc and cndfs options in the cli
parent
eff39190
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Feature/ufscc emptiness check
Pipeline
#4891
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.cpp
+21
-4
21 additions, 4 deletions
src/main.cpp
with
21 additions
and
4 deletions
src/main.cpp
+
21
−
4
View file @
7ab04d91
...
...
@@ -331,7 +331,7 @@ CommonSOG *getHybridMC(NewNet &net, const string &thread_library, bool progressi
/**
* Run the on-the-fly model-checking algorithm
*
* @param algorithm
E
mptiness-check algorithm
* @param algorithm
Sequential e
mptiness-check algorithm
* @param k Kripke structure of the SOG
* @param af Automata of the negated formula
* @return bool
...
...
@@ -382,6 +382,15 @@ bool runOnTheFlyMC(const string &algorithm, auto k, spot::twa_graph_ptr af)
return
res
;
}
/**
* Run the on-the-fly parallel model-checking algorithm
*
* @param algorithm Parallel emptiness-check algorithm
*
* TODO: implement this
*/
bool
runOnTheFlyParallelMC
(
const
string
&
algorithm
)
{}
/******************************************************************************
* Main function
******************************************************************************/
...
...
@@ -501,10 +510,18 @@ int main(int argc, char **argv)
// create the SOG
mcl
->
loadNet
();
auto
k
=
std
::
make_shared
<
SogKripkeTh
>
(
d
,
mcl
,
Rnewnet
.
getListTransitionAP
(),
Rnewnet
.
getListPlaceAP
());
// run on the fly model-checking
runOnTheFlyMC
(
algorithm
,
k
,
af
);
// run on the fly parallel model-checking
// TODO: Implement here Ghofrane's algorithms
if
(
algorithm
==
"UFSCC"
||
algorithm
==
"CNDFS"
)
{
runOnTheFlyParallelMC
(
algorithm
);
}
else
// run on the fly sequential model-checking
{
auto
k
=
std
::
make_shared
<
SogKripkeTh
>
(
d
,
mcl
,
Rnewnet
.
getListTransitionAP
(),
Rnewnet
.
getListPlaceAP
());
runOnTheFlyMC
(
algorithm
,
k
,
af
);
}
// stop model checker process
mcl
->
finish
();
...
...
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