Fix conversion from bytes to fixed bytes

This commit is contained in:
Leo Alt
2021-06-01 17:55:18 +02:00
parent 547a6915ad
commit bf21cd400c
5 changed files with 64 additions and 0 deletions
+5
View File
@@ -245,6 +245,11 @@ protected:
std::vector<smtutil::Expression> const& _elementValues
);
void bytesToFixedBytesAssertions(
smt::SymbolicArrayVariable& _symArray,
Expression const& _fixedBytes
);
/// @returns a pair of expressions representing _left / _right and _left mod _right, respectively.
/// Uses slack variables and additional constraints to express the results using only operations
/// more friendly to the SMT solver (multiplication, addition, subtraction and comparison).