Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

IFGT.java

00001 package gov.nasa.arc.ase.jpf.jvm.bytecode;
00002 
00003 import de.fub.bytecode.classfile.ConstantPool;
00004 import gov.nasa.arc.ase.jpf.jvm.SystemState;
00005 import gov.nasa.arc.ase.jpf.jvm.KernelState;
00006 import gov.nasa.arc.ase.jpf.jvm.ThreadInfo;
00007 import gov.nasa.arc.ase.util.Debug;
00008 //#ifdef COVERAGE
00009 
00010 //#endif COVERAGE
00011 
00012 public class IFGT extends IfInstruction {
00013   private int target;
00014 
00015 //#ifdef COVERAGE
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 //#endif COVERAGE
00026 
00027   public Instruction execute(SystemState ss, KernelState ks, ThreadInfo th) {
00028     int v = th.pop();
00029 
00030     if (v > 0) {
00031 //#ifdef COVERAGE
00032 
00033 //#endif COVERAGE
00034       return th.getMethod().getInstructionAt(target);
00035     }
00036 //#ifdef COVERAGE
00037 
00038 //#endif COVERAGE
00039     return th.getPC().getNext();
00040   }  
00041   public void setPeer(de.fub.bytecode.generic.Instruction i, ConstantPool cp) {
00042     target = ((de.fub.bytecode.generic.IFGT)i).getTarget().getPosition();
00043   }  
00044 }

Generated at Thu Feb 7 06:46:28 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001