Lib.Krakatau.ssa.ssa_ops.fmath.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krakatau-lib Show documentation
Show all versions of krakatau-lib Show documentation
Assembler, disassebmler, decompiler and compiler tools library for Java.
from .base import BaseOp
from ..constraints import IntConstraint
class FAdd(BaseOp):
def __init__(self, parent, args):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(args[0].type, origin=self)
class FDiv(BaseOp):
def __init__(self, parent, args):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(args[0].type, origin=self)
class FMul(BaseOp):
def __init__(self, parent, args):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(args[0].type, origin=self)
class FRem(BaseOp):
def __init__(self, parent, args):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(args[0].type, origin=self)
class FSub(BaseOp):
def __init__(self, parent, args):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(args[0].type, origin=self)
#Unary, unlike the others
class FNeg(BaseOp):
def __init__(self, parent, args):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(args[0].type, origin=self)
from .. import ssa_types
class FCmp(BaseOp):
def __init__(self, parent, args, NaN_val):
BaseOp.__init__(self, parent, args)
self.rval = parent.makeVariable(ssa_types.SSA_INT, origin=self)
self.NaN_val = NaN_val
def propagateConstraints(self, x, y):
rvalcons = IntConstraint.range(32, -1, 1)
return rvalcons, None, None
© 2015 - 2025 Weber Informatics LLC | Privacy Policy