; slice.sub checks without overflow: a huge len cannot wrap around. ; expect: run ; trap: T0008 ; phase: 1 ; spec: docs/spec/07a-air-instructions.md module test.slice_sub_no_overflow air 0 lang 0.1 features [arrays, ownership] fn @main() -> void effects [] entry: %x = local.alloc array local.zero %x %r = borrow.ref %x %s = slice.make %r %a = const.usize 1 %b = const.usize 18446744073709551615 %t = slice.sub %s, %a, %b borrow.end %t borrow.end %s borrow.end %r ret