Add a few more tests

concrete_ite_storage
Nikhil 5 years ago
parent ce39e97c2d
commit 533389d18a
  1. 11
      tests/laser/smt/concat_extract_invariance_test.py

@ -49,3 +49,14 @@ def test_bitvecfunc_arithmetic4():
construct = Concat(output2_, symbol_factory.BitVecVal(0, 256))
assert Extract(511, 256, Extract(511, 256, construct).input_).input_ == input_
def test_bitvecfunc_arithmetic5():
input_ = symbol_factory.BitVecSym("input", 256)
i1 = symbol_factory.BitVecSym("i", 256)
i1.pseudo_input = input_
output_ = symbol_factory.BitVecFuncSym(
"Keccak[input]", size=256, func_name="keccak256", input_=i1
)
construct = Concat(output_, symbol_factory.BitVecVal(0, 256))
assert Extract(511, 256, construct).input_.pseudo_input == i1.pseudo_input

Loading…
Cancel
Save