diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-02 04:16:47 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-02 04:16:47 +0000 |
commit | ef6e35242fefee2a3bbbd3c247a3b2291b5965d4 (patch) | |
tree | 6f28b63b584b9180d8db7976c3e927d460e54e59 /lib/SMT/smtlib.lex | |
parent | 4b0f5a08432dfd77d87b90bf5faf3637b629663c (diff) | |
download | klee-ef6e35242fefee2a3bbbd3c247a3b2291b5965d4.tar.gz |
Added support for bitvector constants to the SMTLIB parser. Only
variable and array support left. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@74690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/smtlib.lex')
-rw-r--r-- | lib/SMT/smtlib.lex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/SMT/smtlib.lex b/lib/SMT/smtlib.lex index be909773..f5633716 100644 --- a/lib/SMT/smtlib.lex +++ b/lib/SMT/smtlib.lex @@ -247,6 +247,11 @@ IDCHAR ({LETTER}|{DIGIT}|{OPCHAR}) "rotate_right" { return ROR_TOK; } +"bv"[0-9]+ { smtliblval.str = new std::string(smtlibtext); return BV_TOK; } +"bvbin"[0-1]+ { smtliblval.str = new std::string(smtlibtext); return BVBIN_TOK; } +"bvhex"[0-9,A-F,a-f]+ { smtliblval.str = new std::string(smtlibtext); return BVHEX_TOK; } + + ({LETTER})({IDCHAR})* {smtliblval.str = new std::string(smtlibtext); return SYM_TOK; } <<EOF>> { return EOF_TOK; } |