Package soot.rbclassload

Examples of soot.rbclassload.ListMethodTester


    }
    RootbeerClassLoader.v().addToSignaturesClassTester(keep_packages);
   
    RootbeerClassLoader.v().addNewInvoke("java.lang.StringBuilder");
 
    ListMethodTester follow_tester = new ListMethodTester();
    follow_tester.addSignature("<java.lang.String: void <init>()>");
    follow_tester.addSignature("<java.lang.String: void <init>(char[])>");
    follow_tester.addSignature("<java.lang.StringBuilder: void <init>()>");
    follow_tester.addSignature("<java.lang.Boolean: java.lang.String toString(boolean)>");
    follow_tester.addSignature("<java.lang.Character: java.lang.String toString(char)>");
    follow_tester.addSignature("<java.lang.Double: java.lang.String toString(double)>");
    follow_tester.addSignature("<java.lang.Float: java.lang.String toString(float)>");
    follow_tester.addSignature("<java.lang.Integer: java.lang.String toString(int)>");
    follow_tester.addSignature("<java.lang.Long: java.lang.String toString(long)>");
    follow_tester.addSignature("<org.trifort.rootbeer.runtime.Sentinal: void <init>()>");
    follow_tester.addSignature("<org.trifort.rootbeer.runtimegpu.GpuException: void <init>()>");
    follow_tester.addSignature("<org.trifort.rootbeer.runtimegpu.GpuException: org.trifort.rootbeer.runtimegpu.GpuException arrayOutOfBounds(int,int,int)>");
    follow_tester.addSignature("<org.trifort.rootbeer.runtime.Serializer: void <init>(org.trifort.rootbeer.runtime.Memory,org.trifort.rootbeer.runtime.Memory)>");
    follow_tester.addSignature("<org.trifort.rootbeer.testcases.rootbeertest.serialization.CovarientTest: void <init>()>");
    RootbeerClassLoader.v().addFollowMethodTester(follow_tester);
   
    if(runtests){
      RootbeerClassLoader.v().addFollowClassTester(new TestCaseFollowTester());
    }
   
    if(Configuration.compilerInstance().getKeepMains()){
      MainTester main_tester = new MainTester();
      RootbeerClassLoader.v().addFollowMethodTester(main_tester);
    }   

    ListMethodTester dont_dfs_tester = new ListMethodTester();

    CompilerSetup setup = new CompilerSetup();
    for(String no_dfs : setup.getDontDfs()){
      dont_dfs_tester.addSignature(no_dfs);
    }
    RootbeerClassLoader.v().addDontFollowMethodTester(dont_dfs_tester);
   
    ForcedFields forced_fields = new ForcedFields();
    for(String field_sig : forced_fields.get()){
      RootbeerClassLoader.v().loadField(field_sig);
    }
   
    ListMethodTester to_sig_methods = new ListMethodTester();
    to_sig_methods.addSignature("<java.lang.Object: int hashCode()>");
    to_sig_methods.addSignature("<java.io.PrintStream: void println(java.lang.String)>");
    to_sig_methods.addSignature("<java.io.PrintStream: void println(int)>");
    to_sig_methods.addSignature("<java.io.PrintStream: void println(long)>");
    RootbeerClassLoader.v().addToSignaturesMethodTester(to_sig_methods);
   
    RootbeerClassLoader.v().addClassRemapping("java.util.concurrent.atomic.AtomicLong", "org.trifort.rootbeer.remap.GpuAtomicLong");
    RootbeerClassLoader.v().addClassRemapping("org.trifort.rootbeer.testcases.rootbeertest.remaptest.CallsPrivateMethod", "org.trifort.rootbeer.remap.DoesntCallPrivateMethod");
   
View Full Code Here

TOP

Related Classes of soot.rbclassload.ListMethodTester

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.