Skip to content

Commit

Permalink
Fix mod operator
Browse files Browse the repository at this point in the history
  • Loading branch information
JakuJ committed Feb 28, 2023
1 parent b09e7ab commit 1f5d2ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ callgrind.*
core
report.csv
*.profraw
.DS_Store

*.lock
!/Cargo.lock
Expand Down
4 changes: 2 additions & 2 deletions native-verifier/src/smt_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl SMTTranslatable for Expression {
ConstantValue::Int(i64) => i64.to_string(),
ConstantValue::BigInt(s) => s.clone(),
},
Expression::MagicWand(magic_wand) => unimplemented!("Magic wands"),
Expression::MagicWand(_) => unimplemented!("Magic wands are not supported"),
Expression::PredicateAccessPredicate(_access) => {
// TODO: access predicates for predicates
warn!("PredicateAccessPredicate not supported");
Expand Down Expand Up @@ -534,7 +534,7 @@ impl SMTTranslatable for BinaryOpKind {
BinaryOpKind::Sub => "-",
BinaryOpKind::Mul => "*",
BinaryOpKind::Div => "/",
BinaryOpKind::Mod => "%",
BinaryOpKind::Mod => "mod",
BinaryOpKind::And => "and",
BinaryOpKind::Or => "or",
BinaryOpKind::Implies => "=>",
Expand Down

0 comments on commit 1f5d2ea

Please sign in to comment.