Skip to content

Commit

Permalink
Allow 0c hex format in the SMT parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bacam committed Oct 16, 2023
1 parent 682f3d1 commit c2b11f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isla-lib/src/smt_parser.lalrpop
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub Exp: Exp<Loc<String>> = {

Exp1: Exp<Loc<String>> = {
<loc:Loc> =>? Ok(Exp::Var(loc)),
<bv:r"[#0][bx][0-9A-Fa-f]+"> =>? Ok(smt_bits_from_str(bv).ok_or_else(|| format!("Bad bitvector literal {}", bv))?),
<bv:r"[#0][bcx][0-9A-Fa-f]+"> =>? Ok(smt_bits_from_str(bv).ok_or_else(|| format!("Bad bitvector literal {}", bv))?),
"true" => Exp::Bool(true),
"false" => Exp::Bool(false),
"not" <e:Exp1> => Exp::Not(Box::new(e)),
Expand Down

0 comments on commit c2b11f0

Please sign in to comment.