From d35fdc8a5eafc5499cecf1c5205a179401b31b04 Mon Sep 17 00:00:00 2001
From: Jason Hiser <jdhiser@gmail.com>
Date: Mon, 11 Feb 2019 17:56:40 -0500
Subject: [PATCH] removed un-implemented sdk entries, but left comments for
 future expansion

---
 include/inc-cfg/domgraph.hpp | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/include/inc-cfg/domgraph.hpp b/include/inc-cfg/domgraph.hpp
index 2ba8479..f79468c 100644
--- a/include/inc-cfg/domgraph.hpp
+++ b/include/inc-cfg/domgraph.hpp
@@ -5,7 +5,7 @@ namespace IRDB_SDK
 	using namespace std;
 
 	using  DominatorMap_t    = map<const BasicBlock_t*, BasicBlockSet_t>; 
-	using  BlockToBlockMap_t = map<const BasicBlock_t*, BasicBlock_t*>;
+	using  BlockToBlockMap_t = map<const BasicBlock_t*, const BasicBlock_t*>;
 
 	class DominatorGraph_t
 	{
@@ -19,12 +19,18 @@ namespace IRDB_SDK
 			                                      bool needs_idoms=false
 			                                      );
 
-			virtual const BasicBlockSet_t& getDominators(const BasicBlock_t* node)               const = 0 ;
-			virtual const BasicBlockSet_t& getPostDominators(const BasicBlock_t* node)           const = 0 ;
-			virtual bool                   hasWarnings()                                         const = 0 ;
-			virtual const BasicBlock_t*    getImmediateDominator(const BasicBlock_t* node)       const = 0 ;
-			virtual const BasicBlock_t*    getImmediatePostDominators(const BasicBlock_t* node)  const = 0 ;
-			virtual void                   dump(ostream &os=cout)                                const = 0 ;
+			virtual const BasicBlockSet_t& getDominators(const BasicBlock_t* node)                   const = 0 ;
+			virtual const BasicBlockSet_t& getDominated (const IRDB_SDK::BasicBlock_t* node)         const = 0 ;
+// 			virtual const BasicBlockSet_t& getPostDominators(const BasicBlock_t* node)               const = 0 ;
+// 			virtual const BasicBlockSet_t& getPostDominated (const BasicBlock_t* node)               const = 0 ;
+
+			virtual const BasicBlock_t*    getImmediateDominator(const BasicBlock_t* node)           const = 0 ;
+                        virtual const BasicBlockSet_t& getImmediateDominated(const IRDB_SDK::BasicBlock_t* node) const = 0 ;
+// 			virtual const BasicBlock_t*    getImmediatePostDominator (const BasicBlock_t* node)      const = 0 ;
+// 			virtual const BasicBlockSet_t& getImmediatePostDominated (const BasicBlock_t* node)      const = 0 ;
+
+			virtual void                   dump(ostream &os=cout)                                    const = 0 ;
+			virtual bool                   hasWarnings()                                             const = 0 ;
 	
 	};
 	ostream& operator<<(ostream& os, const DominatorGraph_t& cfg);
-- 
GitLab