SandMark version 3.0


sandmark.watermark.util
Class InsnCountMarker

java.lang.Object
  |
  +--sandmark.watermark.util.BasicBlockMarker
        |
        +--sandmark.watermark.util.StaticWriteParityMarker
              |
              +--sandmark.watermark.util.InsnCountMarker

public class InsnCountMarker
extends StaticWriteParityMarker

This class marks basic blocks with a one-bit value by manipulating the number of instructions in the block. An even number of instructions corresponds to 0; an odd number corresponds to 1.

See Also:
PutstaticCountMarker

Constructor Summary
InsnCountMarker(de.fub.bytecode.generic.ClassGen cg)
           
 
Method Summary
protected  int getParity(BasicBlock b)
          Returns either 0 or 1, based on whether the number of instructions in the given basic block is odd or even.
 
Methods inherited from class sandmark.watermark.util.StaticWriteParityMarker
capacityIsConstant, embed, getCapacity, methodGen, recognize
 
Methods inherited from class sandmark.watermark.util.BasicBlockMarker
embed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsnCountMarker

public InsnCountMarker(de.fub.bytecode.generic.ClassGen cg)
Method Detail

getParity

protected int getParity(BasicBlock b)
Returns either 0 or 1, based on whether the number of instructions in the given basic block is odd or even.

Specified by:
getParity in class StaticWriteParityMarker

SandMark version 3.0

Wed Jan 29 10:30:05 MST 2003