Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lrusecurity
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Touzeau
lrusecurity
Commits
cb7dfd4c
Commit
cb7dfd4c
authored
Jul 09, 2019
by
Mishigan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changement affichage pour multiple accès précédents
parent
78096317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
src/lrusecurity_Displayer.cpp
src/lrusecurity_Displayer.cpp
+20
-10
No files found.
src/lrusecurity_Displayer.cpp
View file @
cb7dfd4c
...
...
@@ -7,7 +7,7 @@
#include <otawa/prog/Process.h>
#include <lruexact/features.h>
//#include "SecCFGOutput.h"
using
namespace
otawa
;
using
namespace
otawa
;
namespace
lrusecurity
{
...
...
@@ -57,7 +57,7 @@ protected:
_out
.
setStream
(
*
_stream
);
}
_out
<<
"ACCESS
\t\t
KIND
\t
CATEGORY
\t
BB
\t
"
;
_out
<<
"ACCESS
\t\t
KIND
\t
CATEGORY
\t
\t
BB
\t
"
;
if
(
_line
)
_out
<<
"
\t
LINE"
;
...
...
@@ -105,19 +105,29 @@ protected:
}
_out
<<
"UNSAFE "
;
int
set
=
otawa
::
icat3
::
LBLOCK
(
access
)
->
set
();
int
number
=
0
;
if
(
bb
->
hasProp
(
EXIST_HIT_PREV_IN
))
{
ACSSecurity
prev
=
(
*
EXIST_HIT_PREV_IN
(
bb
))[
set
];
int
index
=
otawa
::
icat3
::
LBLOCK
(
access
)
->
index
();
for
(
int
i
=
0
;
i
<
prev
[
index
].
size
();
i
++
)
_out
<<
prev
[
index
][
i
];
number
=
prev
[
index
].
size
();
for
(
int
i
=
0
;
i
<
number
;
i
++
)
_out
<<
prev
[
index
][
i
]
<<
"
\n\t\t\t\t\b
"
;
// REMONTEE
for
(
int
j
=
0
;
j
<
number
;
j
++
)
_out
<<
"
\033
[1A"
;
}
_out
<<
"
\t\t
"
;
_out
<<
"BB "
<<
bb
->
index
()
<<
"
\t\t
"
;
_out
<<
"
\t\t\t
BB "
<<
bb
->
index
()
<<
"
\t\t
"
;
printLine
(
ws
,
bb
->
address
(),
bb
->
topAddress
().
offset
());
_out
<<
io
::
endl
;
}
// DESCENTE
for
(
int
i
=
0
;
i
<
number
-
1
;
i
++
)
_out
<<
"
\n
//"
;
_out
<<
io
::
endl
;
}
}
void
printLine
(
WorkSpace
*
ws
,
Address
begin
,
Address
::
offset_t
offset
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment