Commit e086d99 1 parent 1cc270f commit e086d99 Copy full SHA for e086d99
File tree 1 file changed +20
-0
lines changed
test-harness/src/snapshots
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,26 @@ let bounded_u8 (x: t_BoundedU8 12uy 15uy) (y: t_BoundedU8 10uy 11uy) : t_Bounded
338
338
339
339
let double (x : u8 ) : Prims .Pure t_Even (requires x <. 127uy ) (fun _ -> Prims .l_True ) =
340
340
x +! x <: t_Even
341
+
342
+ let t_BoundedAbsI16 (v_B : usize ) =
343
+ x :
344
+ i16
345
+ { (Rust_primitives .Hax .Int .from_machine v_B <: Hax_lib .Int .t_Int ) < (32768 <: Hax_lib .Int .t_Int ) &&
346
+ (Rust_primitives .Hax .Int .from_machine x <: Hax_lib .Int .t_Int ) >=
347
+ (- (Rust_primitives .Hax .Int .from_machine v_B <: Hax_lib .Int .t_Int ) <: Hax_lib .Int .t_Int ) &&
348
+ (Rust_primitives .Hax .Int .from_machine x <: Hax_lib .Int .t_Int ) <=
349
+ (Rust_primitives .Hax .Int .from_machine v_B <: Hax_lib .Int .t_Int ) }
350
+
351
+ let double_abs_i16 (v_N v_M : usize ) (x : t_BoundedAbsI16 v_N )
352
+ : Prims .Pure (t_BoundedAbsI16 v_M )
353
+ (requires
354
+ (Rust_primitives .Hax .Int .from_machine v_M <: Hax_lib .Int .t_Int ) <
355
+ (32768 <: Hax_lib .Int .t_Int ) &&
356
+ (Rust_primitives .Hax .Int .from_machine v_M <: Hax_lib .Int .t_Int ) =
357
+ ((Rust_primitives .Hax .Int .from_machine v_N <: Hax_lib .Int .t_Int ) * (2 <: Hax_lib .Int .t_Int )
358
+ <:
359
+ Hax_lib .Int .t_Int ))
360
+ (fun _ -> Prims .l_True ) = x *! 2s <: t_BoundedAbsI16 v_M
341
361
' ' '
342
362
"Attributes.Requires_mut.fst" = ' ' '
343
363
module Attributes .Requires_mut
You can’t perform that action at this time.
0 commit comments