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
lruzdd
Commits
5f5d54bc
Commit
5f5d54bc
authored
Jun 26, 2018
by
Valentin Touzeau
Committed by
EXT Valentin Touzeau
Jun 26, 2018
Browse files
Adds time
parent
9610e24b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/MayAnalysis/MayAnalysis.cpp
View file @
5f5d54bc
// FIXME: Change copyright ?
/*
* icat3::MayAnalysis class implementation
* Copyright (c) 2017, IRIT UPS.
...
...
@@ -22,6 +20,7 @@
* 02110-1301 USA
*/
#include <chrono>
#include <otawa/ai/ArrayStore.h>
#include <otawa/ai/SimpleAI.h>
#include <otawa/cfg/CompositeCFG.h>
...
...
@@ -30,7 +29,6 @@
#include <otawa/icat3/features.h>
#include <exactlru/features.h>
#include <exactlru/MayAnalysis/MayManager.h>
#include <otawalru/features.h>
#include <lrumc/features.h>
#include "../ZDD/MayAbstractValuePolicy.h"
#include "../ZDD/ZDDMayDomainPolicy.h"
...
...
@@ -144,6 +142,8 @@ protected:
void
processWorkSpace
(
WorkSpace
*
)
override
{
auto
start
=
std
::
chrono
::
system_clock
::
now
();
std
::
set
<
const
icat3
::
LBlock
*>
toRefine
;
for
(
CFGCollection
::
BlockIter
b
(
m_cfgs
);
b
;
b
++
)
{
if
(
!
b
->
isBasic
())
...
...
@@ -163,6 +163,11 @@ protected:
for
(
const
icat3
::
LBlock
*
lb
:
toRefine
)
processLBlock
(
lb
);
auto
end
=
std
::
chrono
::
system_clock
::
now
();
auto
elapsed
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
end
-
start
);
if
(
logFor
(
LOG_FUN
))
log
<<
"
\t
Exact May Analysis running time: "
<<
elapsed
.
count
()
<<
" s"
<<
io
::
endl
;
// for(int i = 0; i < m_coll->size(); ++i) {
// const icat3::LBlockSet& s = (*m_coll)[i];
// for(int j = 0; j < s.size(); ++j)
...
...
src/MustAnalysis/MustAnalysis.cpp
View file @
5f5d54bc
...
...
@@ -20,15 +20,16 @@
* 02110-1301 USA
*/
#include <chrono>
#include <otawa/ai/ArrayStore.h>
#include <otawa/ai/SimpleAI.h>
#include <otawa/cfg/CompositeCFG.h>
#include <otawa/cfg/features.h>
#include <otawa/icache/features.h>
#include <otawa/icat3/features.h>
#include <lrumc/features.h>
#include <exactlru/features.h>
#include <exactlru/MustAnalysis/MustManager.h>
#include <lrumc/features.h>
#include "../ZDD/MustAbstractValuePolicy.h"
#include "../ZDD/ZDDMustDomainPolicy.h"
#include "../GeneratorsSet/GSMustAbstractValuePolicy.h"
...
...
@@ -141,6 +142,8 @@ protected:
void
processWorkSpace
(
WorkSpace
*
)
override
{
auto
start
=
std
::
chrono
::
system_clock
::
now
();
std
::
set
<
const
icat3
::
LBlock
*>
toRefine
;
for
(
CFGCollection
::
BlockIter
b
(
m_cfgs
);
b
;
b
++
)
{
if
(
!
b
->
isBasic
())
...
...
@@ -160,6 +163,11 @@ protected:
for
(
const
icat3
::
LBlock
*
lb
:
toRefine
)
processLBlock
(
lb
);
auto
end
=
std
::
chrono
::
system_clock
::
now
();
auto
elapsed
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
end
-
start
);
if
(
logFor
(
LOG_FUN
))
log
<<
"
\t
Exact Must Analysis running time: "
<<
elapsed
.
count
()
<<
" s"
<<
io
::
endl
;
// for(int i = 0; i < m_coll->size(); ++i) {
// const icat3::LBlockSet& s = (*m_coll)[i];
// for(int j = 0; j < s.size(); ++j)
...
...
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