mame/quine-relay · error
division by zero
Error message
division by zero
What it means
Error "division by zero" thrown in mame/quine-relay.
Source
Thrown at vendor/ante.rb:142
### ap "remaining: #{operands.inspect}"
operands
end
def expression(operands)
initial, target = operands.shift
initial = instance_variable_get("@#{target}") if initial == "A"
operands.each do |rank, suit|
# puts "rank: #{rank.inspect}, suit: #{suit.inspect}"
rank = instance_variable_get("@#{suit}") if rank == "A"
case suit
when "♦" then initial += rank
when "♥" then initial *= rank
when "♠" then initial -= rank
when "♣" then
if rank != 0
initial /= rank
else
exception("division by zero")
end
end
end
instance_variable_set("@#{target}", initial)
# dump_registers
end
def exception(message)
abort("Ante exception: #{message} on line #{@line} (pc:#{@pc})")
end
def dump_registers
instance_variables.each do |i|
puts " #{i}: " + instance_variable_get("#{i}").to_s if i.size == 2
end
end
end
View on GitHub (pinned to c2aa5098d3)
When it happens
Trigger: Thrown at vendor/ante.rb:142 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of mame/quine-relay@c2aa5098d3 (2026-08-21).
Data as JSON: /api/errors/68d08643e2b38894.
Report an issue: GitHub.