Package iota

Class NLirRead


class NLirRead extends NLirInstruction
Representation of an instruction for reading an integer from standard input into a register.
  • Constructor Details

    • NLirRead

      public NLirRead(NBasicBlock block, int id, NRegister register)
      Constructs an NLirRead object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      register - register to read into.
  • Method Details

    • toMarvin

      public void toMarvin()
      Converts this instruction to the corresponding Marvin instruction.
      Overrides:
      toMarvin in class NLirInstruction
    • toString

      public String toString()
      Returns a string representation of this instruction.
      Overrides:
      toString in class NLirInstruction
      Returns:
      a string representation of this instruction.