Package soot.rbclassload

Examples of soot.rbclassload.HierarchySootClass


      m_testCase = new_test_case;
    }
    m_provider = m_testCase;
   
    ClassHierarchy class_hierarchy = RootbeerClassLoader.v().getClassHierarchy();
    HierarchySootClass prov_class = class_hierarchy.getHierarchySootClass(m_provider);
    HierarchySootMethod create_method = prov_class.findMethodByName("create");
    HierarchySootClass kernel_class = searchMethod(create_method);
    HierarchySootMethod gpu_method = kernel_class.findMethodBySubSignature("void gpuMethod()");
    m_signature = gpu_method.getSignature();
    m_initialized = true;
  }
View Full Code Here


        for(Operand operand : operands){
          if(operand.getType().equals("class_ref") == false){
            continue;
          }
          String class_name = operand.getValue();
          HierarchySootClass hclass = class_hierarchy.getHierarchySootClass(class_name);
          List<String> ifaces = hclass.getInterfaces();
          for(String iface : ifaces){
            if(iface.equals("org.trifort.rootbeer.runtime.Kernel")){
              return hclass;
            }
          }
View Full Code Here

 
  public boolean test(HierarchySootMethod sm) {
    if(sm.getSubSignature().equals("void gpuMethod()") == false){
      return false;
    }
    HierarchySootClass soot_class = sm.getHierarchySootClass();
    if(m_runTests == false){
      if(soot_class.getName().startsWith("org.trifort.rootbeer.testcases.")){
        return false;
      }
    }
    Iterator<String> iter = soot_class.getInterfaces().iterator();
    while(iter.hasNext()){
      String iface = iter.next();
      if(iface.equals("org.trifort.rootbeer.runtime.Kernel")){
        return true;
      }
View Full Code Here

TOP

Related Classes of soot.rbclassload.HierarchySootClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.