2017-09-14 15:07:02 +02:00
|
|
|
module Mom
|
|
|
|
|
|
|
|
# Mom internal check, as the name says to see if two values are not the same
|
|
|
|
# In other words, we this checks identity, bit-values, pointers
|
|
|
|
#
|
|
|
|
# The values that are compared are defined as SlotDefinitions, ie can be anything
|
|
|
|
# available to the machine through frame message or self
|
|
|
|
#
|
|
|
|
class NotSameCheck < Check
|
|
|
|
attr_reader :left , :right
|
|
|
|
|
|
|
|
def initialize(left, right)
|
|
|
|
@left , @right = left , right
|
|
|
|
end
|
2018-03-13 11:46:06 +01:00
|
|
|
|
|
|
|
def to_risc(compiler)
|
|
|
|
Risc::Label.new(self,"nosense")
|
|
|
|
end
|
2017-09-14 15:07:02 +02:00
|
|
|
end
|
|
|
|
end
|