def codegen(context, builder, sig, args): [slicetype] = sig.args [sliceobj] = args slice = context.make_helper(builder, slicetype, sliceobj) result_size = slicing.get_slice_length(builder, slice) return result_size