Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Touzeau
lrusecurity
Commits
76d900ba
Commit
76d900ba
authored
Jul 11, 2019
by
Julien Balette-Pape
Browse files
debug continue
parent
d0e23d58
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/lrusecurity/ACSSecurity.h
View file @
76d900ba
...
...
@@ -9,7 +9,7 @@ namespace lrusecurity
{
struct
Ptr_addr_comparator
{
bool
operator
()(
const
otawa
::
Address
*
a
,
const
otawa
::
Address
*
b
)
const
{
return
*
a
<
*
b
;}
bool
operator
()(
const
otawa
::
Address
*
a
,
const
otawa
::
Address
*
b
)
const
{
return
*
a
<
*
b
;}
};
class
ACSSecurity
:
public
elm
::
AllocArray
<
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>>
...
...
@@ -22,8 +22,10 @@ namespace lrusecurity
(
*
this
)[
i
]
=
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>
();
}
ACSSecurity
(
int
n
,
otawa
::
Address
addr
)
:
elm
::
AllocArray
<
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>>
(
n
)
{
for
(
int
i
=
0
;
i
<
n
;
i
++
)
(
*
this
)[
i
]
=
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>
({
&
addr
});
for
(
int
i
=
0
;
i
<
n
;
i
++
){
(
*
this
)[
i
]
=
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>
();
(
*
this
)[
i
].
insert
({
&
addr
});
}
}
void
print
(
int
set
,
const
otawa
::
icat3
::
LBlockCollection
&
coll
,
elm
::
io
::
Output
&
out
=
elm
::
cout
)
const
;
};
...
...
src/lrusecurity_Displayer.cpp
View file @
76d900ba
...
...
@@ -113,13 +113,12 @@ protected:
ACSSecurity
prev
=
(
*
EXIST_HIT_PREV_IN
(
bb
))[
set
];
int
index
=
otawa
::
icat3
::
LBLOCK
(
access
)
->
index
();
number
=
prev
[
index
].
size
();
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>::
iterator
iter
=
prev
[
index
].
begin
()
;
int
debug
=
1
;
while
(
iter
!=
prev
[
index
].
end
()){
std
::
set
<
otawa
::
Address
*
,
Ptr_addr_comparator
>::
iterator
iter
;
int
debug
=
0
;
//FIXME
for
(
iter
=
prev
[
index
].
begin
();
iter
!=
prev
[
index
].
end
()
;
iter
++
){
_out
<<
*
(
*
iter
)
<<
"
\n\t\t\t\t\b
"
;
iter
++
;
_out
<<
debug
;
debug
++
;
_out
<<
debug
;
}
// REMONTEE
...
...
Write
Preview
Supports
Markdown
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