private static Pair<String,String> generateSignMask(final ITranslationEnvironment environment,long offset,final String value,final OperandSize size,final List<ReilInstruction> instructions){
  final String msbMask=String.valueOf(TranslationHelpers.getMsbMask(size));
  final String shiftValue=String.valueOf(TranslationHelpers.getShiftMsbLsbMask(size));
  final String maskedMsb=environment.getNextVariableString();
  final String msbInLsb=environment.getNextVariableString();
  final String signMask=environment.getNextVariableString();
  instructions.add(ReilHelpers.createAnd(offset++,size,value,size,msbMask,size,maskedMsb));
  instructions.add(ReilHelpers.createBsh(offset++,size,maskedMsb,size,shiftValue,size,msbInLsb));
  instructions.add(ReilHelpers.createSub(offset++,size,"0",size,msbInLsb,size,signMask));
  return new Pair<String,String>(msbInLsb,signMask);
}

private static Pair < String , String > generateSignMask ( final ITranslationEnvironment environment , long offset , final String value , final OperandSize size , final List < ReilInstruction > instructions ) { final String msbMask = String . valueOf ( TranslationHelpers . getMsbMask ( size ) ) ; final String shiftValue = String . valueOf ( TranslationHelpers . getShiftMsbLsbMask ( size ) ) ; final String maskedMsb = environment . getNextVariableString ( ) ; final String msbInLsb = environment . getNextVariableString ( ) ; final String signMask = environment . getNextVariableString ( ) ; instructions . add ( ReilHelpers . createAnd ( offset ++ , size , value , size , msbMask , size , maskedMsb ) ) ; instructions . add ( ReilHelpers . createBsh ( offset ++ , size , maskedMsb , size , shiftValue , size , msbInLsb ) ) ; instructions . add ( ReilHelpers . createSub ( offset ++ , size , "0" , size , msbInLsb , size , signMask ) ) ; return new Pair < String , String > ( msbInLsb , signMask ) ; }
generates code that generates sign masks for values
