Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sogMBT
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
sogMBT
Commits
e2549477
Commit
e2549477
authored
3 months ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
fix: save SOG also when the abstract paths are generated
parent
55fd0422
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.cpp
+14
-3
14 additions, 3 deletions
src/main.cpp
with
14 additions
and
3 deletions
src/main.cpp
+
14
−
3
View file @
e2549477
...
...
@@ -81,6 +81,16 @@ void PrintStats(const Paths& abstract_paths) {
cout
<<
"# covered transitions: "
<<
transitions
.
size
()
<<
'\n'
;
}
/**
* Save the generated SOG in a file
* @param sog SOG graph
* @param sog_file Path to the file where the SOG will be saved
*/
void
SaveSOG
(
const
SOG
&
sog
,
const
string
&
sog_file
)
{
cout
<<
"Saving generated SOG in "
<<
sog_file
<<
'\n'
;
sog
.
ExportGraphToDotFile
(
sog_file
);
}
/**
* Prints the output of the tool
* @param model Petri net model
...
...
@@ -105,6 +115,9 @@ void PrintOutput(const net& model, SOG& sog,
// save observable paths in the folder
SaveObservablePaths
(
obs_paths
,
output_file_prefix
+
"_obs_paths.txt"
);
// save generate SOG
SaveSOG
(
sog
,
output_file_prefix
+
"_sog.dot"
);
}
/**
...
...
@@ -247,9 +260,7 @@ void ComputeAbstractPaths(const string& net_file, int bound, bool only_sog,
cout
<<
"
\n
Total time: "
<<
elapsed_time
<<
" seconds
\n
"
;
// save generate SOG
const
string
sog_file
=
output_file_prefix
+
"_sog.dot"
;
cout
<<
"Saving generated SOG in "
<<
sog_file
<<
'\n'
;
sog
.
ExportGraphToDotFile
(
sog_file
);
SaveSOG
(
sog
,
output_file_prefix
+
"_sog.dot"
);
return
;
}
...
...
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