Skip to content
Snippets Groups Projects
Commit 95f0092b authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

update to build libirdb-deep

parent 05b2a463
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,10 @@ namespace IRDB_SDK
aeRida
};
using RegisterIDSet_t = set<RegisterID_t>;
using DeadRegisterMap_t = map<Instruction_t*,RegisterIDSet_t*>;
using StaticGlobalSet_t = InstructionSet_t;
using RangeSentinalSet_t = InstructionSet_t;
using RegisterIDSet_t = set<RegisterID_t>;
using DeadRegisterMap_t = map<Instruction_t*,RegisterIDSet_t>;
using StaticGlobalStartMap_t = map<Instruction_t*, VirtualOffset_t>;
using RangeSentinelSet_t = InstructionSet_t;
class DeepAnalysis_t
{
......@@ -29,11 +29,11 @@ namespace IRDB_SDK
DeepAnalysis_t(const DeepAnalysis_t& copy) = delete;
public:
unique_ptr<DeadRegisterMap_t> getDeadRegisters() const = 0;
unique_ptr<StaticGlobalSet_t> getStaticGlobalRanges() const = 0;
unique_ptr<SentinalSet_t > getRangeSentials() const = 0;
virtual unique_ptr<DeadRegisterMap_t > getDeadRegisters() const = 0;
virtual unique_ptr<StaticGlobalStartMap_t > getStaticGlobalRanges() const = 0;
virtual unique_ptr<RangeSentinelSet_t > getRangeSentinels() const = 0;
// factories
unique_ptr<DeepAnalysis_t> factory(FileIR_t* firp, const AnalysisEngine_t& ae=aeSTARS, vector<string> options={});
static unique_ptr<DeepAnalysis_t> factory(FileIR_t* firp, const AnalysisEngine_t& ae=aeSTARS, const vector<string>& options={});
};
}
......@@ -33,6 +33,7 @@ namespace IRDB_SDK
FileIR_t* getFileIR();
const FileIR_t* getFileIR() const;
private:
......
/*
* Copyright (c) 2014 - Zephyr Software LLC
*
* This file may be used and modified for non-commercial purposes as long as
* all copyright, permission, and nonwarranty notices are preserved.
* Redistribution is prohibited without prior written consent from Zephyr
* Software.
*
* Please contact the authors for restrictions applying to commercial use.
*
* THIS SOURCE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Author: Zephyr Software
* e-mail: jwd@zephyr-software.com
* URL : http://www.zephyr-software.com/
*
*/
#include <irdb-core>
#ifndef IRDB_SDK_util
#include <irdb-core>
#define IRDB_SDK_util
/* Building a CFG depends on core functionality */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment