class JavaLangThreadNative extends NativeMethodClass {
  public JavaLangThreadNative(NativeHelper helper) {
    super(helper);
  }

  /**
   * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures.
   */
  public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar,
      ReferenceVariable params[]) {<FILL_FUNCTION_BODY>}

  /*************************** java.lang.Thread **********************/
  /**
   * Returns the single variable pointing to all thread objects.
   *
   * This makes our analysis conservative on thread objects.
   *
   * public static native java.lang.Thread currentThread();
   */
  public void java_lang_Thread_currentThread(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar,
      ReferenceVariable params[]) {
    helper.assignObjectTo(returnVar, Environment.v().getThreadObject());
  }

  /**
   * Following native methods have no side effects.
   *
   * private static native void registerNatives(); public static native void yield(); public static native void sleep(long)
   * throws java.lang.InterruptedException; public native synchronized void start(); private native boolean
   * isInterrupted(boolean); public final native boolean isAlive(); public native int countStackFrames(); private native void
   * setPriority0(int); private native void stop0(java.lang.Object); private native void suspend0(); private native void
   * resume0(); private native void interrupt0();
   */
}


    String subSignature = method.getSubSignature();

    if (subSignature.equals("java.lang.Thread currentThread()")) {
      java_lang_Thread_currentThread(method, thisVar, returnVar, params);
      return;

    } else {
      defaultMethod(method, thisVar, returnVar, params);
      return;

    }
  
<methods>public void <init>(soot.jimple.toolkits.pointer.util.NativeHelper) ,public static void defaultMethod(soot.SootMethod, soot.jimple.toolkits.pointer.representations.ReferenceVariable, soot.jimple.toolkits.pointer.representations.ReferenceVariable, soot.jimple.toolkits.pointer.representations.ReferenceVariable[]) ,public abstract void simulateMethod(soot.SootMethod, soot.jimple.toolkits.pointer.representations.ReferenceVariable, soot.jimple.toolkits.pointer.representations.ReferenceVariable, soot.jimple.toolkits.pointer.representations.ReferenceVariable[]) <variables>private static final boolean DEBUG,protected soot.jimple.toolkits.pointer.util.NativeHelper helper,private static final org.slf4j.Logger logger