Method: Rex::Poly::Machine#initialize

Defined in:
lib/rex/poly/machine/machine.rb

#initialize(badchars, cpu) ⇒ Machine

Create a new machine instance.



352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
# File 'lib/rex/poly/machine/machine.rb', line 352

def initialize( badchars, cpu )
  @badchars      = badchars
  @cpu           = cpu

  @reg_available = ::Array.new
  @reg_consumed  = ::Array.new
  @variables     = ::Hash.new
  @blocks        = ::Hash.new
  @primitives    = ::Hash.new
  @solution      = Solution.new

  _create_primitives

  @blocks['begin'] = Block.new( 'begin' )
  @blocks['begin'] << SymbolicPermutation.new( 'begin', self )

  _create_variable( 'temp' )
end