Commit 1be6a9ed authored by Mishigan's avatar Mishigan Committed by Julien Balette-Pape

debut de transition vers set

parent 9b83345d
......@@ -3,20 +3,22 @@
#include <otawa/icache/features.h>
#include <otawa/icat3/features.h>
#include <otawa/base.h>
#include <set>
namespace lrusecurity
{
class ACSSecurity : public elm::AllocArray<otawa::Bag<otawa::Address>>
class ACSSecurity : public elm::AllocArray<std::set <otawa::Address *>>
{
public:
ACSSecurity() = default;
ACSSecurity(int n) : elm::AllocArray<otawa::Bag<otawa::Address>>(n){
ACSSecurity(int n) : elm::AllocArray<std::set <otawa::Address *>>(n){
for (int i = 0; i < n; i++)
(*this)[i] = otawa::Bag<otawa::Address>();
(*this)[i] = std::set <otawa::Address *>();
}
ACSSecurity(int n, otawa::Address addr) : elm::AllocArray<otawa::Bag<otawa::Address>>(n) {
ACSSecurity(int n, otawa::Address addr) : elm::AllocArray<std::set <otawa::Address *>>(n) {
for (int i = 0; i < n; i++)
(*this)[i] = otawa::Bag<otawa::Address>(1, &addr);
(*this)[i] = std::set <otawa::Address *>({&addr});
}
void print(int set, const otawa::icat3::LBlockCollection& coll, elm::io::Output& out= elm::cout) const;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment