aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-28 00:34:13 +0800
committerGitHub <noreply@github.com>2018-07-28 00:34:13 +0800
commite56a88be37079f27dc999e4c32446958de88be99 (patch)
tree9895263064b3d33741d750c14312e1698c41f69d /libsolidity
parent2794a22d84d05c83bd6e9f57d16a9e66a662812f (diff)
parentdea0567e065ae9c6909d287d21a45cf3ceac17f3 (diff)
downloaddexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.tar
dexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.tar.gz
dexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.tar.bz2
dexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.tar.lz
dexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.tar.xz
dexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.tar.zst
dexon-solidity-e56a88be37079f27dc999e4c32446958de88be99.zip
Merge pull request #4604 from ethereum/smtlib-typo
Fix unterminated parentheses typo in SMTLib2
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/formal/SMTLib2Interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/formal/SMTLib2Interface.cpp b/libsolidity/formal/SMTLib2Interface.cpp
index d9ea6df6..8cac3cc6 100644
--- a/libsolidity/formal/SMTLib2Interface.cpp
+++ b/libsolidity/formal/SMTLib2Interface.cpp
@@ -143,7 +143,7 @@ string SMTLib2Interface::checkSatAndGetValuesCommand(vector<Expression> const& _
{
auto const& e = _expressionsToEvaluate.at(i);
solAssert(e.sort == Sort::Int || e.sort == Sort::Bool, "Invalid sort for expression to evaluate.");
- command += "(declare-const |EVALEXPR_" + to_string(i) + "| " + (e.sort == Sort::Int ? "Int" : "Bool") + "\n";
+ command += "(declare-const |EVALEXPR_" + to_string(i) + "| " + (e.sort == Sort::Int ? "Int" : "Bool") + ")\n";
command += "(assert (= |EVALEXPR_" + to_string(i) + "| " + toSExpr(e) + "))\n";
}
command += "(check-sat)\n";