# Path: pyjvm/bytecode.py
# def bytecode(code):
#     def cl(func):
#         BYTECODE[hex(code)] = func
#         return func
# 
#     return cl
# 
# Path: pyjvm/jassert.py
# def jassert_double(value):
#     assert type(value) is tuple and value[0] == "double"
# 
# Path: pyjvm/jassert.py
# def jassert_float(value):
#     assert type(value) is tuple and value[0] == "float"
# 
# Path: pyjvm/jassert.py
# def jassert_int(value):
#     assert type(value) is int or type(value) is long
#     assert -2147483648 <= value <= 2147483647
# 
# Path: pyjvm/jassert.py
# def jassert_long(value):
#     assert type(value) is tuple and value[0] == "long"
#     assert -9223372036854775808 <= value[1] <= 9223372036854775807


import logging
import struct
from pyjvm.bytecode import bytecode
from pyjvm.jassert import jassert_double
from pyjvm.jassert import jassert_float
from pyjvm.jassert import jassert_int
from pyjvm.jassert import jassert_long
    value1 = frame.stack.pop()
    jassert_double(value1)
    jassert_double(value2)
    result = value1[1] + value2[1]
    frame.stack.append(("double", result))


@bytecode(code=0x64)
def isub(frame):
    value2 = frame.stack.pop()
    value1 = frame.stack.pop()
    result = value1 - value2
    result = cut_to_int(result)
    frame.stack.append(result)


@bytecode(code=0x65)
def lsub(frame):
    value2 = frame.stack.pop()
    value1 = frame.stack.pop()
    result = value1[1] - value2[1]
    result = cut_to_long(result)
    frame.stack.append(("long", result))


@bytecode(code=0x66)
def fsub(frame):
    value2 = frame.stack.pop()
    value1 = frame.stack.pop()
    jassert_float(value1)

# Path: pyjvm/bytecode.py
# def bytecode(code):
#     def cl(func):
#         BYTECODE[hex(code)] = func
#         return func
# 
#     return cl
# 
# Path: pyjvm/jassert.py
# def jassert_double(value):
#     assert type(value) is tuple and value[0] == "double"
# 
# Path: pyjvm/jassert.py
# def jassert_float(value):
#     assert type(value) is tuple and value[0] == "float"
# 
# Path: pyjvm/jassert.py
# def jassert_int(value):
#     assert type(value) is int or type(value) is long
#     assert -2147483648 <= value <= 2147483647
# 
# Path: pyjvm/jassert.py
# def jassert_long(value):
#     assert type(value) is tuple and value[0] == "long"
#     assert -9223372036854775808 <= value[1] <= 9223372036854775807


# Path: pyjvm/ops/ops_calc.py
import logging
import struct
from pyjvm.bytecode import bytecode
from pyjvm.jassert import jassert_double
from pyjvm.jassert import jassert_float
from pyjvm.jassert import jassert_int
from pyjvm.jassert import jassert_long

    value1 = frame.stack.pop()
    jassert_double(value1)
    jassert_double(value2)
    result = value1[1] + value2[1]
    frame.stack.append(("double", result))


@bytecode(code=0x64)
def isub(frame):
    value2 = frame.stack.pop()
    value1 = frame.stack.pop()
    result = value1 - value2
    result = cut_to_int(result)
    frame.stack.append(result)


@bytecode(code=0x65)
def lsub(frame):
    value2 = frame.stack.pop()
    value1 = frame.stack.pop()
    result = value1[1] - value2[1]
    result = cut_to_long(result)
    frame.stack.append(("long", result))


@bytecode(code=0x66)
def fsub(frame):
    value2 = frame.stack.pop()
    value1 = frame.stack.pop()
    jassert_float(value1)

    jassert_float(value2)