|
|
@ -38,6 +38,7 @@ class _SmtSymbolFactory(SymbolFactory): |
|
|
|
An implementation of a SymbolFactory that creates symbols using |
|
|
|
An implementation of a SymbolFactory that creates symbols using |
|
|
|
the classes in: mythril.laser.smt |
|
|
|
the classes in: mythril.laser.smt |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
@staticmethod |
|
|
|
def BitVecVal(value: int, size: int, annotations=None): |
|
|
|
def BitVecVal(value: int, size: int, annotations=None): |
|
|
|
""" Creates a new bit vector with a concrete value """ |
|
|
|
""" Creates a new bit vector with a concrete value """ |
|
|
@ -56,6 +57,7 @@ class _Z3SymbolFactory(SymbolFactory): |
|
|
|
An implementation of a SymbolFactory that directly returns |
|
|
|
An implementation of a SymbolFactory that directly returns |
|
|
|
z3 symbols |
|
|
|
z3 symbols |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
@staticmethod |
|
|
|
def BitVecVal(value: int, size: int, annotations=None): |
|
|
|
def BitVecVal(value: int, size: int, annotations=None): |
|
|
|
""" Creates a new bit vector with a concrete value """ |
|
|
|
""" Creates a new bit vector with a concrete value """ |
|
|
@ -69,4 +71,3 @@ class _Z3SymbolFactory(SymbolFactory): |
|
|
|
|
|
|
|
|
|
|
|
# This is the instance that other parts of mythril should use |
|
|
|
# This is the instance that other parts of mythril should use |
|
|
|
symbol_factory = _Z3SymbolFactory() |
|
|
|
symbol_factory = _Z3SymbolFactory() |
|
|
|
|
|
|
|
|
|
|
|