private void prependDecrement(BasicBlock bb,IR ir){
  if (DEBUG)   VM.sysWrite("Adding Increment to " + bb + "\n");
  RegisterOperand use=cbsReg.copyRO();
  RegisterOperand def=use.copyU2D();
  Instruction inc=Binary.create(INT_ADD,def,use,IRTools.IC(-1));
  bb.prependInstruction(inc);
}

private void prependDecrement ( BasicBlock bb , IR ir ) { if ( DEBUG ) VM . sysWrite ( "Adding Increment to " + bb + "\n" ) ; RegisterOperand use = cbsReg . copyRO ( ) ; RegisterOperand def = use . copyU2D ( ) ; Instruction inc = Binary . create ( INT_ADD , def , use , IRTools . IC ( - 1 ) ) ; bb . prependInstruction ( inc ) ; }
append a decrement of the global counter to the given basic block . tested in lir only !
