@Throws(InternalTranslationException::class) fun generate( environment: ITranslationEnvironment, offset: Long, instructions: MutableList<ReilInstruction?> ): Pair<org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize?, String?>? { Preconditions.checkNotNull(environment, "Error: Argument environment can't be null") Preconditions.checkNotNull(instructions, "Error: Argument instructions can't be null") Preconditions.checkArgument(offset >= 0, "Error: Argument offset can't be less than 0") val connected: String = environment.getNextVariableString() val negated: String = environment.getNextVariableString() instructions.add( ReilHelpers.createXor( offset, org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, SyncStateContract.Helpers.SIGN_FLAG, org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, SyncStateContract.Helpers.OVERFLOW_FLAG, org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, connected ) ) instructions.add( ReilHelpers.createXor( offset + 1, org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, connected, org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, "1", org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, negated ) ) return Pair<org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize, String>( org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize.BYTE, negated ) }
Generates code for the NotLess condition .