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
05b1d80d
Commit
05b1d80d
authored
4 years ago
by
Chiheb Amer Abid
Browse files
Options
Downloads
Patches
Plain Diff
modifié : CMakeLists.txt
modifié : src/CommonSOG.cpp modifié : src/CommonSOG.h
parent
61452917
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/CommonSOG.cpp
+7
-7
7 additions, 7 deletions
src/CommonSOG.cpp
src/CommonSOG.h
+1
-1
1 addition, 1 deletion
src/CommonSOG.h
with
9 additions
and
9 deletions
CMakeLists.txt
+
1
−
1
View file @
05b1d80d
...
...
@@ -12,7 +12,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
# Add compiler flags
if
(
CMAKE_COMPILER_IS_GNUCC
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g0 -falign-functions -falign-jumps -falign-loops -falign-labels -freorder-blocks -freorder-blocks-algorithm=stc -freorder-blocks-and-partition -fprefetch-loop-arrays -foptimize-strlen -fcaller-saves -finline-functions -funswitch-loops
-fpermissive -std=c++17 -pthread"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fpermissive -std=c++17 -pthread
-Og
"
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
src/CommonSOG.cpp
+
7
−
7
View file @
05b1d80d
...
...
@@ -27,7 +27,7 @@ MDD CommonSOG::Accessible_epsilon(MDD From) {
M1
=
M2
;
for
(
Set
::
const_iterator
i
=
m_nonObservable
.
begin
();
!
(
i
==
m_nonObservable
.
end
());
i
++
)
{
//fireTransition
MDD
succ
=
fireTransiti
on
(
M2
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
MDD
succ
=
SylvanWrapper
::
lddmc_firing_m
on
o
(
M2
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
M2
=
SylvanWrapper
::
lddmc_union_mono
(
M2
,
succ
);
...
...
@@ -42,7 +42,7 @@ Set CommonSOG::firable_obs(MDD State) {
Set
res
;
for
(
Set
::
const_iterator
i
=
m_observable
.
begin
();
!
(
i
==
m_observable
.
end
());
i
++
)
{
//cout<<"firable..."<<endl;
MDD
succ
=
fireTransiti
on
(
State
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
MDD
succ
=
SylvanWrapper
::
lddmc_firing_m
on
o
(
State
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
if
(
succ
!=
lddmc_false
)
{
res
.
insert
(
*
i
);
}
...
...
@@ -52,14 +52,14 @@ Set CommonSOG::firable_obs(MDD State) {
}
MDD
CommonSOG
::
get_successor
(
MDD
From
,
int
t
)
{
return
fireTransiti
on
(
From
,
m_tb_relation
[(
t
)].
getMinus
(),
m_tb_relation
[(
t
)].
getPlus
());
return
SylvanWrapper
::
lddmc_firing_m
on
o
(
From
,
m_tb_relation
[(
t
)].
getMinus
(),
m_tb_relation
[(
t
)].
getPlus
());
}
MDD
CommonSOG
::
ImageForward
(
MDD
From
)
{
MDD
Res
=
lddmc_false
;
for
(
Set
::
const_iterator
i
=
m_nonObservable
.
begin
();
!
(
i
==
m_nonObservable
.
end
());
i
++
)
{
MDD
succ
=
fireTransiti
on
(
From
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
MDD
succ
=
SylvanWrapper
::
lddmc_firing_m
on
o
(
From
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
Res
=
SylvanWrapper
::
lddmc_union_mono
(
Res
,
succ
);
}
return
Res
;
...
...
@@ -173,7 +173,7 @@ bool CommonSOG::Set_Div(MDD &M) const {
do
{
Reached
=
lddmc_false
;
for
(
i
=
m_nonObservable
.
begin
();
!
(
i
==
m_nonObservable
.
end
());
i
++
)
{
MDD
To
=
fireTransiti
on
(
From
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
MDD
To
=
SylvanWrapper
::
lddmc_firing_m
on
o
(
From
,
m_tb_relation
[(
*
i
)].
getMinus
(),
m_tb_relation
[(
*
i
)].
getPlus
());
Reached
=
SylvanWrapper
::
lddmc_union_mono
(
Reached
,
To
);
}
...
...
@@ -213,9 +213,9 @@ struct elt_t {
uint32_t
level
;
};
MDD
CommonSOG
::
fireTransition
(
MDD
cmark
,
MDD
minus
,
MDD
plus
)
{
/*
MDD CommonSOG::fireTransition(MDD cmark, MDD minus, MDD plus) {
return SylvanWrapper::lddmc_firing_mono(cmark,minus,plus);
}
}
*/
//string_view CommonSOG::getTransition(int pos) {
// cout<<"yes it is : "<<m_transitions.at(pos).name<<endl;
...
...
This diff is collapsed.
Click to expand it.
src/CommonSOG.h
+
1
−
1
View file @
05b1d80d
...
...
@@ -60,7 +60,7 @@ class CommonSOG
uint8_t
m_nb_thread
;
std
::
mutex
m_graph_mutex
,
m_gc_mutex
;
atomic
<
uint8_t
>
m_gc
;
MDD
fireTransition
(
MDD
cmark
,
MDD
minus
,
MDD
plus
);
//
MDD fireTransition(MDD cmark,MDD minus, MDD plus);
private
:
};
...
...
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