about summary refs log tree commit diff homepage
path: root/lib/Solver/STPBuilder.cpp
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2015-11-08 14:31:42 +0100
committerMartinNowack <martin.nowack@gmail.com>2015-11-08 14:31:42 +0100
commitb614e759ac24ceebfbdeabf32dd166dcc27dbc95 (patch)
treece65cecd4a953dac22626d5d623430792adcd987 /lib/Solver/STPBuilder.cpp
parent25a21e6b91be8524f3c4be7ae352acfe862cc4a4 (diff)
parenta801ac5dfef0533c3fc00a7dbfb630eccb0b8f30 (diff)
downloadklee-b614e759ac24ceebfbdeabf32dd166dcc27dbc95.tar.gz
Merge pull request #269 from MartinNowack/fix_srem
[STPBuilder] Generate SRrem expressions correctly
Diffstat (limited to 'lib/Solver/STPBuilder.cpp')
-rw-r--r--lib/Solver/STPBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/STPBuilder.cpp b/lib/Solver/STPBuilder.cpp
index c2f23c0a..ddeb3c37 100644
--- a/lib/Solver/STPBuilder.cpp
+++ b/lib/Solver/STPBuilder.cpp
@@ -751,7 +751,7 @@ ExprHandle STPBuilder::constructActual(ref<Expr> e, int *width_out) {
 #endif
 
     // XXX implement my fast path and test for proper handling of sign
-    return vc_sbvModExpr(vc, *width_out, left, right);
+    return vc_sbvRemExpr(vc, *width_out, left, right);
   }
 
     // Bitwise