|
|
@ -913,9 +913,7 @@ class Instruction: |
|
|
|
if isinstance(op0, Expression): |
|
|
|
if isinstance(op0, Expression): |
|
|
|
op0 = simplify(op0) |
|
|
|
op0 = simplify(op0) |
|
|
|
state.stack.append( |
|
|
|
state.stack.append( |
|
|
|
symbol_factory.BitVecSym( |
|
|
|
symbol_factory.BitVecSym("KECCAC_mem[" + str(op0) + "]", 256) |
|
|
|
"KECCAC_mem[" + str(op0) + "]", 256, op0.annotations |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
gas_tuple = cast(Tuple, OPCODE_GAS["SHA3"]) |
|
|
|
gas_tuple = cast(Tuple, OPCODE_GAS["SHA3"]) |
|
|
|
state.min_gas_used += gas_tuple[0] |
|
|
|
state.min_gas_used += gas_tuple[0] |
|
|
@ -947,7 +945,7 @@ class Instruction: |
|
|
|
"keccak256", |
|
|
|
"keccak256", |
|
|
|
256, |
|
|
|
256, |
|
|
|
input_=data, |
|
|
|
input_=data, |
|
|
|
annotations=op0.annotations, |
|
|
|
annotations=state.memory[index].annotations, |
|
|
|
) |
|
|
|
) |
|
|
|
log.debug("Created BitVecFunc hash.") |
|
|
|
log.debug("Created BitVecFunc hash.") |
|
|
|
|
|
|
|
|
|
|
@ -959,9 +957,9 @@ class Instruction: |
|
|
|
"keccak256", |
|
|
|
"keccak256", |
|
|
|
256, |
|
|
|
256, |
|
|
|
input_=data, |
|
|
|
input_=data, |
|
|
|
annotations=op0.annotations, |
|
|
|
annotations=state.memory[index].annotations, |
|
|
|
) |
|
|
|
) |
|
|
|
log.debug("Computed SHA3 Hash: " + str(binascii.hexlify(keccak))) |
|
|
|
log.info("Computed SHA3 Hash: " + str(binascii.hexlify(keccak))) |
|
|
|
|
|
|
|
|
|
|
|
state.stack.append(result) |
|
|
|
state.stack.append(result) |
|
|
|
return [global_state] |
|
|
|
return [global_state] |
|
|
|