Skip to content

Commit

Permalink
Merge branch 'master' into fix-emulate-step
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hennenfent committed Oct 14, 2020
2 parents 8d6134f + 2152023 commit fcbc2de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions manticore/native/cpu/x86.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,10 @@ def CPUID(cpu):
0x0: (0x00000000, 0x00000000, 0x00000000, 0x00000000),
0x1: (0x00000000, 0x00000000, 0x00000000, 0x00000000),
},
# CPUID with EAX=80000000h returns the highest supported extended function
# query in EAX. We don't currently support any other than 80000000h itself,
# so just return it back.
0x80000000: (0x80000000, 0x00000000, 0x00000000, 0x00000000),
}

if cpu.EAX not in conf:
Expand Down
2 changes: 1 addition & 1 deletion manticore/wasm/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def load(cls, filename: str):
:param filename: name of the WASM module
:return: Module
"""
type_map = {-16: types.FunctionType, -4: F64, -3: F32, -2: I64, -1: I32}
type_map = {-16: FunctionType, -4: F64, -3: F32, -2: I64, -1: I32}

m: Module = cls()
with open(filename, "rb") as wasm_file:
Expand Down
3 changes: 3 additions & 0 deletions tests/ethereum/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def test_propverif(self):

def test_propverif_external(self) -> None:
cli_version = subprocess.check_output(("manticore-verifier", "--version")).decode("utf-8")
cli_version = cli_version.split(
"Manticore is only supported on Linux. Proceed at your own risk!\n"
)[-1]
py_version = f"Manticore {pkg_resources.get_distribution('manticore').version}\n"
self.assertEqual(cli_version, py_version)

Expand Down

0 comments on commit fcbc2de

Please sign in to comment.