Skip to content

Commit

Permalink
CN: support some more C->logical conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
talsewell committed Sep 5, 2023
1 parent c402f36 commit 7b03e9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/cn/cLogicalFuns.ml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ let rec symb_exec_mu_pexpr var_map pexpr =
| OpOr -> return (IT.or_ [x_v; y_v])
| OpExp -> return (if is_const_num x_v && is_const_num y_v
then IT.exp_ (x_v, y_v) else IT.exp_no_smt_ (x_v, y_v))
| _ -> fail {loc; msg = Generic (Pp.item "expr from C syntax: unsupported op"
(Pp_mucore.Basic.pp_binop op))}
| OpRem_f -> return (if is_const_num y_v
then IT.rem_ (x_v, y_v) else IT.rem_no_smt_ (x_v, y_v))
| OpRem_t -> return (if is_const_num y_v
then IT.mod_ (x_v, y_v) else IT.mod_no_smt_ (x_v, y_v))
end
| M_PEbitwise_unop (unop, pe1) ->
let@ x = symb_exec_mu_pexpr var_map pe1 in
Expand Down

0 comments on commit 7b03e9a

Please sign in to comment.