Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sogMBT
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
426b75cf
Commit
426b75cf
authored
2 months ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
style: apply formatting
parent
a1c3e114
Loading
Loading
Loading
Pipeline
#9432
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/petri_net_sog.cpp
+4
-5
4 additions, 5 deletions
src/petri_net_sog.cpp
with
4 additions
and
5 deletions
src/petri_net_sog.cpp
+
4
−
5
View file @
426b75cf
...
...
@@ -262,10 +262,9 @@ bdd PetriNetSOG::OneStepBackUnobs(const bdd &from,
bdd
res
=
bdd_false
();
for
(
const
auto
t
:
non_observables
)
{
bdd
pred
=
relation
[
t
][
from
];
if
((
pred
&
aggr
->
bdd_state
)
!=
bdd_false
()){
res
=
res
|
pred
;
if
((
pred
&
aggr
->
bdd_state
)
!=
bdd_false
())
{
res
=
res
|
pred
;
}
}
return
res
;
...
...
@@ -307,16 +306,16 @@ Set PetriNetSOG::FirableObservableTrans(const bdd &from) const {
int
PetriNetSOG
::
ComputeSingleWeight
(
const
Aggregate
*
aggr
,
const
int
in
,
const
int
out
)
const
{
//std::cout<<"Ici Compute Single Weight"<<transitions[in].name<<" -->"<<transitions[out].name<<endl;
bdd
source
=
SearchExitPoints
(
aggr
->
bdd_state
,
out
);
const
bdd
dest
=
relation
[
in
]((
aggr
->
GetPredecessorsOfTrans
(
in
))
->
bdd_state
);
// backtracking from t_target until t_source
int
counter
=
0
;
while
((
source
&
dest
)
==
bdd_false
())
{
source
=
OneStepBackUnobs
(
source
,
aggr
);
counter
++
;
}
//std::cout<<" --weight ="<<counter<<std::endl;
return
counter
;
}
...
...
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