Skip to content

Commit

Permalink
Merge pull request #332 from AeneasVerif/afromher_floats
Browse files Browse the repository at this point in the history
Propagate Float literal changes from Charon
  • Loading branch information
R1kM authored Sep 11, 2024
2 parents a5f5bf6 + 3559370 commit 1911bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler/ExtractTypes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ let extract_literal (span : Meta.span) (fmt : F.formatter) (is_pattern : bool)
in
F.pp_print_string fmt c;
if inside then F.pp_print_string fmt ")")
| VStr _ | VByteStr _ ->
| VFloat _ | VStr _ | VByteStr _ ->
craise __FILE__ __LINE__ span
"String and byte string literals are unsupported"
"Float, string and byte string literals are unsupported"

(** Format a unary operation
Expand Down
4 changes: 2 additions & 2 deletions compiler/PureUtils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ let compute_literal_type (cv : literal) : literal_type =
| VScalar sv -> TInteger sv.int_ty
| VBool _ -> TBool
| VChar _ -> TChar
| VStr _ | VByteStr _ ->
| VFloat _ | VStr _ | VByteStr _ ->
craise_opt_span __FILE__ __LINE__ None
"String and byte string literals are unsupported"
"Float, string and byte string literals are unsupported"

let var_get_id (v : var) : VarId.id = v.id

Expand Down

0 comments on commit 1911bcf

Please sign in to comment.