about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-07-10 23:20:50 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-07-10 23:20:50 +0000
commit304b19cbeaea3e47064e6fb4faeb6e880bd1c574 (patch)
treef12f39601a3967ebd78a6b1e1284fc266a34083a /lib
parentec9faf80d2f9ca0b22f117c307b525f5bfb3b327 (diff)
downloadklee-304b19cbeaea3e47064e6fb4faeb6e880bd1c574.tar.gz
Fixed order of offsets in Extract.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/SMT/smtlib.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SMT/smtlib.y b/lib/SMT/smtlib.y
index 7a6485ea..43682cf4 100644
--- a/lib/SMT/smtlib.y
+++ b/lib/SMT/smtlib.y
@@ -745,8 +745,8 @@ an_bitwise_fun:
 
   | LPAREN_TOK BVEXTRACT_TOK LBRACKET_TOK NUMERAL_TOK COLON_TOK NUMERAL_TOK RBRACKET_TOK an_term annotations
     {
-      int off = PARSER->StringToInt(*$4);
-      $$ = ExtractExpr::create($8, off, PARSER->StringToInt(*$6) - off + 1);
+      int off = PARSER->StringToInt(*$6);
+      $$ = ExtractExpr::create($8, off, PARSER->StringToInt(*$4) - off + 1);
     }
 ;