1 package gov.nasa.jpf.jvm.bytecode; 20 21 import gov.nasa.jpf.util.CoverageManager; 22 23 24 27 public abstract class IfInstruction extends Instruction { 28 private static int indexDummy = CoverageManager.addIF("SystemDummy"); 29 public int indexTrue = 0; 30 public int indexFalse = 0; 31 32 public void setContext (String className, String methodName, int lineNumber, 34 int offset) { 35 if (!(className.startsWith("java."))) { 36 indexTrue = CoverageManager.addIF(className + "/" + methodName + "/" + 37 lineNumber + "/" + offset + "/true"); 38 indexFalse = CoverageManager.addIF(className + "/" + methodName + "/" + 39 lineNumber + "/" + offset + 40 "/false"); 41 } else { 42 indexTrue = indexFalse = indexDummy; 43 } 44 } 45 } | Popular Tags |