Skip to content

Commit 5ef2cea

Browse files
committed
Update ML
1 parent 21a4f62 commit 5ef2cea

7 files changed

Lines changed: 4 additions & 15 deletions

File tree

charon-ml/src/CharonVersion.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
(* This is an automatically generated file, generated from `charon/Cargo.toml`. *)
22
(* To re-generate this file, rune `make` in the root directory *)
3-
let supported_charon_version = "0.1.169"
3+
let supported_charon_version = "0.1.170"

charon-ml/src/PrintExpressions.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,4 @@ and rvalue_to_string (env : 'a fmt_env) (rv : rvalue) : string =
222222
"[" ^ operand_to_string env v ^ ";"
223223
^ constant_expr_to_string env len
224224
^ "]"
225-
| ShallowInitBox (op, _) ->
226-
"shallow-init-box(" ^ operand_to_string env op ^ ")"
227225
| Aggregate (akind, ops) -> aggregate_to_string env akind ops

charon-ml/src/generated/Generated_Expressions.ml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,6 @@ and rvalue =
310310
(** [Repeat(x, n)] creates an array where [x] is copied [n] times.
311311
312312
We translate this to a function call for LLBC. *)
313-
| ShallowInitBox of operand * ty
314-
(** Transmutes a [*mut u8] (obtained from [malloc]) into
315-
shallow-initialized [Box<T>]. This only appears as part of lowering
316-
[Box::new()] in some cases. We reconstruct the original [Box::new()]
317-
call, but sometimes may fail to do so, leaking the expression. *)
318313

319314
(** Unary operation *)
320315
and unop =

charon-ml/src/generated/Generated_GAstOfJson.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,10 +1760,6 @@ and rvalue_of_json (ctx : of_json_ctx) (js : json) : (rvalue, string) result =
17601760
let* x_1 = ty_of_json ctx x_1 in
17611761
let* x_2 = box_of_json constant_expr_of_json ctx x_2 in
17621762
Ok (Repeat (x_0, x_1, x_2))
1763-
| `Assoc [ ("ShallowInitBox", `List [ x_0; x_1 ]) ] ->
1764-
let* x_0 = operand_of_json ctx x_0 in
1765-
let* x_1 = ty_of_json ctx x_1 in
1766-
Ok (ShallowInitBox (x_0, x_1))
17671763
| _ -> Error "")
17681764

17691765
and scalar_value_of_json (ctx : of_json_ctx) (js : json) :

charon/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charon/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "charon"
3-
version = "0.1.169"
3+
version = "0.1.170"
44
authors = [
55
"Son Ho <hosonmarc@gmail.com>",
66
"Guillaume Boisseau <nadrieril+git@gmail.com>",

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rust-overlay = {
99
# We pin a specific commit because we require a relatively recent version
1010
# and flake dependents don't look at our flake.lock.
11-
url = "github:oxalica/rust-overlay/ab726555a9a72e6dc80649809147823a813fa95b";
11+
url = "github:oxalica/rust-overlay/085bdbf5dde5477538e4c87d1684b6c6df56c0ad";
1212
inputs.nixpkgs.follows = "nixpkgs";
1313
};
1414
crane.url = "github:ipetkov/crane";

0 commit comments

Comments
 (0)