@@ -1454,9 +1454,6 @@ and nullop_of_json (ctx : of_json_ctx) (js : json) : (nullop, string) result =
14541454 let * x_1 = option_of_json variant_id_of_json ctx x_1 in
14551455 let * x_2 = field_id_of_json ctx x_2 in
14561456 Ok (OffsetOf (x_0, x_1, x_2))
1457- | `String "UbChecks" -> Ok UbChecks
1458- | `String "OverflowChecks" -> Ok OverflowChecks
1459- | `String "ContractChecks" -> Ok ContractChecks
14601457 | _ -> Error " " )
14611458
14621459and operand_of_json (ctx : of_json_ctx ) (js : json ) : (operand, string) result =
@@ -1471,6 +1468,9 @@ and operand_of_json (ctx : of_json_ctx) (js : json) : (operand, string) result =
14711468 | `Assoc [ (" Const" , const) ] ->
14721469 let * const = box_of_json constant_expr_of_json ctx const in
14731470 Ok (Constant const)
1471+ | `Assoc [ (" RuntimeCheck" , runtime_check) ] ->
1472+ let * runtime_check = runtime_check_of_json ctx runtime_check in
1473+ Ok (RuntimeCheck runtime_check)
14741474 | _ -> Error " " )
14751475
14761476and outlives_pred_of_json :
@@ -1700,6 +1700,15 @@ and repr_options_of_json (ctx : of_json_ctx) (js : json) :
17001700 : repr_options)
17011701 | _ -> Error " " )
17021702
1703+ and runtime_check_of_json (ctx : of_json_ctx ) (js : json ) :
1704+ (runtime_check , string ) result =
1705+ combine_error_msgs js __FUNCTION__
1706+ (match js with
1707+ | `String "UbChecks" -> Ok UbChecks
1708+ | `String "OverflowChecks" -> Ok OverflowChecks
1709+ | `String "ContractChecks" -> Ok ContractChecks
1710+ | _ -> Error " " )
1711+
17031712and rvalue_of_json (ctx : of_json_ctx ) (js : json ) : (rvalue, string) result =
17041713 combine_error_msgs js __FUNCTION__
17051714 (match js with
@@ -1760,10 +1769,6 @@ and rvalue_of_json (ctx : of_json_ctx) (js : json) : (rvalue, string) result =
17601769 let * x_1 = ty_of_json ctx x_1 in
17611770 let * x_2 = box_of_json constant_expr_of_json ctx x_2 in
17621771 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))
17671772 | _ -> Error " " )
17681773
17691774and scalar_value_of_json (ctx : of_json_ctx ) (js : json ) :
0 commit comments