#if os(Linux)
import Glibc
#else
import Darwin.C
#endif

let INPUT = stdin

func scanInts(count: Int) -> [Int] {
    let format: String
    switch count {
        case 1: format = "%lld"
        case 2: format = "%lld %lld"
        case 3: format = "%lld %lld %lld"
        case 4: format = "%lld %lld %lld %lld"
        case 5: format = "%lld %lld %lld %lld %lld"
        case 6: format = "%lld %lld %lld %lld %lld %lld"
        default: format = repeatElement("%lld", count: count).joined(separator: " ")
    }
    let ptr = UnsafeMutablePointer<CLongLong>.allocate(capacity: count)
    let ptrArray = Array(ptr ..< ptr+count)
    let read = withVaList(ptrArray) {
        vfscanf(INPUT, format, $0)
    }
    assert(read == count)
    return ptrArray.map { Int($0.pointee) }
}
func scanInt() -> Int {
    scanInts(count: 1)[0]
}
func scanIntPair() -> (Int, Int) {
    let a: [Int] = scanInts(count: 2)
    return (a[0], a[1])
}

//=============================================================================

let N = scanInt()
var sumE = 0
for _ in 1..<N {
    var (u, v) = scanIntPair()
    if u > v { swap(&u, &v) }
    sumE += u * (N-v+1)
}

let sumV = N*(N+1)*(N+2) / 6
print(sumV - sumE)

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_1808/llvm_OZ.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_1808/llvm_OZ.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%TSpySo8_IO_FILEVGSg = type <{ [8 x i8] }>
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, %struct._IO_codecvt*, %struct._IO_wide_data*, %struct._IO_FILE*, i8*, i64, i32, [20 x i8] }
%struct._IO_marker = type opaque
%struct._IO_codecvt = type opaque
%struct._IO_wide_data = type opaque
%TSi = type <{ i64 }>
%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.protocol_conformance_descriptor = type { i32, i32, i32, i32 }
%swift.protocol = type { i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i32, i32, i32, i32, i32, i32 }
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%swift.refcounted = type { %swift.type*, i64 }
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSu = type <{ i64 }>
%swift.bridge = type opaque
%Ts8RepeatedVySSG = type <{ %TSi, %TSS }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts22_ContiguousArrayBufferV = type <{ %Ts28__ContiguousArrayStorageBaseC* }>
%swift.opaque = type opaque
%Ts5Int64V = type <{ i64 }>
%TSp = type <{ i8* }>
%Ts7CVarArgP = type { [24 x i8], %swift.type*, i8** }
%Ts15__VaListBuilderC = type <{ %swift.refcounted, %TSi, %TSi, %Ts15__VaListBuilderC6HeaderV, %Ts15ContiguousArrayV, %TSa }>
%Ts15__VaListBuilderC6HeaderV = type <{ %Ts6UInt32V, %Ts6UInt32V, %TSpySiGSg, %TSpySiGSg }>
%Ts6UInt32V = type <{ i32 }>
%TSpySiGSg = type <{ [8 x i8] }>
%TSa = type <{ %Ts22_ContiguousArrayBufferV }>
%swift.metadata_response = type { %swift.type*, i64 }
%struct.__va_list_tag = type { i32, i32, i8*, i8* }
%Ts16IndexingIteratorVySnySpys5Int64VGGG = type <{ %TSnySpys5Int64VGG, %TSp }>
%TSnySpys5Int64VGG = type <{ %TSp, %TSp }>

@"$s7llvm_OZ5INPUTSpySo8_IO_FILEVGSgvp" = hidden local_unnamed_addr global %TSpySo8_IO_FILEVGSg zeroinitializer, align 8
@stdin = external local_unnamed_addr global %struct._IO_FILE*, align 8
@"$s7llvm_OZ1NSivp" = hidden local_unnamed_addr global %TSi zeroinitializer, align 8
@"$s7llvm_OZ4sumESivp" = hidden global %TSi zeroinitializer, align 8
@"$s7llvm_OZ4sumVSivp" = hidden local_unnamed_addr global %TSi zeroinitializer, align 8
@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, align 8
@"$ss23_ContiguousArrayStorageCMn" = external global %swift.type_descriptor, align 4
@"got.$ss23_ContiguousArrayStorageCMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss23_ContiguousArrayStorageCMn"
@"symbolic _____yypG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"yypG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCyypGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCyypGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSiN" = external global %swift.type, align 8
@"$ss8RepeatedVMn" = external global %swift.type_descriptor, align 4
@"got.$ss8RepeatedVMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss8RepeatedVMn"
@"symbolic _____ySSG s8RepeatedV" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss8RepeatedVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySSG s8RepeatedV", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySSG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss8RepeatedVySSGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySSG s8RepeatedV" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss8RepeatedVySSGMD" to i64)) to i32), i32 -9 }, align 8
@"$ss8RepeatedVySSGAByxGSKsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$ss8RepeatedVyxGSKsMc" = external global %swift.protocol_conformance_descriptor, align 4
@".str.29.%lld %lld %lld %lld %lld %lld" = private unnamed_addr constant [30 x i8] c"%lld %lld %lld %lld %lld %lld\00"
@".str.24.%lld %lld %lld %lld %lld" = private unnamed_addr constant [25 x i8] c"%lld %lld %lld %lld %lld\00"
@".str.19.%lld %lld %lld %lld" = private unnamed_addr constant [20 x i8] c"%lld %lld %lld %lld\00"
@"\01l_entry_point" = private constant { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (i32 (i32, i8**)* @main to i64), i64 ptrtoint ({ i32, i32 }* @"\01l_entry_point" to i64)) to i32), i32 0 }, section "swift5_entry", align 4
@"symbolic _____ySiG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySiG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySiGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySiGMD" to i64)) to i32), i32 -9 }, align 8
@"$ss5Int64VMn" = external global %swift.type_descriptor, align 4
@"got.$ss5Int64VMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss5Int64VMn"
@"symbolic Spy_____G s5Int64V" = linkonce_odr hidden constant <{ [3 x i8], i8, i32, [1 x i8], i8 }> <{ [3 x i8] c"Spy", i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss5Int64VMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ [3 x i8], i8, i32, [1 x i8], i8 }>, <{ [3 x i8], i8, i32, [1 x i8], i8 }>* @"symbolic Spy_____G s5Int64V", i32 0, i32 2) to i64)) to i32), [1 x i8] c"G", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$sSpys5Int64VGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ [3 x i8], i8, i32, [1 x i8], i8 }>* @"symbolic Spy_____G s5Int64V" to i64), i64 ptrtoint ({ i32, i32 }* @"$sSpys5Int64VGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSpys5Int64VGSpyxGs7CVarArgsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$sSpyxGs7CVarArgsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"$ss7CVarArgMp" = external global %swift.protocol, align 4
@"got.$ss7CVarArgMp" = private unnamed_addr constant %swift.protocol* @"$ss7CVarArgMp"
@"symbolic _____y______pG s23_ContiguousArrayStorageC s7CVarArgP" = linkonce_odr hidden constant <{ i8, i32, [1 x i8], i8, i32, [3 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [1 x i8], i8, i32, [3 x i8], i8 }>, <{ i8, i32, [1 x i8], i8, i32, [3 x i8], i8 }>* @"symbolic _____y______pG s23_ContiguousArrayStorageC s7CVarArgP", i32 0, i32 1) to i64)) to i32), [1 x i8] c"y", i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol** @"got.$ss7CVarArgMp" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [1 x i8], i8, i32, [3 x i8], i8 }>, <{ i8, i32, [1 x i8], i8, i32, [3 x i8], i8 }>* @"symbolic _____y______pG s23_ContiguousArrayStorageC s7CVarArgP", i32 0, i32 4) to i64)) to i32), [3 x i8] c"_pG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCys7CVarArg_pGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [1 x i8], i8, i32, [3 x i8], i8 }>* @"symbolic _____y______pG s23_ContiguousArrayStorageC s7CVarArgP" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCys7CVarArg_pGMD" to i64)) to i32), i32 -14 }, align 8
@"symbolic ______p s7CVarArgP" = linkonce_odr hidden constant <{ i8, i32, [2 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol** @"got.$ss7CVarArgMp" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [2 x i8], i8 }>, <{ i8, i32, [2 x i8], i8 }>* @"symbolic ______p s7CVarArgP", i32 0, i32 1) to i64)) to i32), [2 x i8] c"_p", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss7CVarArg_pMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [2 x i8], i8 }>* @"symbolic ______p s7CVarArgP" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss7CVarArg_pMD" to i64)) to i32), i32 -7 }, align 8
@"symbolic _____ySpy_____GG s23_ContiguousArrayStorageC s5Int64V" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8, i32, [2 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8, i32, [2 x i8], i8 }>, <{ i8, i32, [4 x i8], i8, i32, [2 x i8], i8 }>* @"symbolic _____ySpy_____GG s23_ContiguousArrayStorageC s5Int64V", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySpy", i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss5Int64VMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8, i32, [2 x i8], i8 }>, <{ i8, i32, [4 x i8], i8, i32, [2 x i8], i8 }>* @"symbolic _____ySpy_____GG s23_ContiguousArrayStorageC s5Int64V", i32 0, i32 4) to i64)) to i32), [2 x i8] c"GG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySpys5Int64VGGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8, i32, [2 x i8], i8 }>* @"symbolic _____ySpy_____GG s23_ContiguousArrayStorageC s5Int64V" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySpys5Int64VGGMD" to i64)) to i32), i32 -16 }, align 8
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [116 x i8] c"-lswiftGlibc\00-lswiftCore\00-lm\00-lpthread\00-lutil\00-ldl\00-lswift_Concurrency\00-lswift_StringProcessing\00-lswift_RegexParser\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [4 x i8*] [i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([116 x i8], [116 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

; Function Attrs: minsize optsize
define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  %access-scratch = alloca [24 x i8], align 8
  %access-scratch5 = alloca [24 x i8], align 8
  %2 = load i64, i64* bitcast (%struct._IO_FILE** @stdin to i64*), align 8
  store i64 %2, i64* bitcast (%TSpySo8_IO_FILEVGSg* @"$s7llvm_OZ5INPUTSpySo8_IO_FILEVGSgvp" to i64*), align 8
  %3 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ8scanInts5countSaySiGSi_tF"(i64 1)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %4 = load i64, i64* %._storage.count._value, align 8, !range !6
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %74, label %5, !prof !7

5:                                                ; preds = %entry
  %6 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %6 to i64*
  %7 = load i64, i64* %tailaddr._value, align 8
  %8 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %8) #2
  store i64 %7, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ1NSivp", i64 0, i32 0), align 8
  store i64 0, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ4sumESivp", i64 0, i32 0), align 8
  %9 = icmp slt i64 %7, 1
  br i1 %9, label %75, label %10, !prof !7

10:                                               ; preds = %5
  %11 = icmp eq i64 %7, 1
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %10
  %13 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %13)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSi* @"$s7llvm_OZ4sumESivp" to i8*), [24 x i8]* nonnull %access-scratch, i64 1, i8* null) #2
  br label %14

14:                                               ; preds = %43, %12
  %15 = phi i64 [ 1, %12 ], [ %26, %43 ]
  %16 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ8scanInts5countSaySiGSi_tF"(i64 2)
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  %17 = load i64, i64* %._storage1.count._value, align 8, !range !6
  switch i64 %17, label %18 [
    i64 0, label %76
    i64 1, label %77
  ], !prof !8

18:                                               ; preds = %14
  %19 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 1
  %tailaddr2._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %19 to i64*
  %20 = load i64, i64* %tailaddr2._value, align 8
  %21 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 1, i32 0, i32 1
  %22 = load i64, i64* %21, align 8
  %23 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %23) #2
  %24 = call i64 @llvm.smax.i64(i64 %22, i64 %20)
  %25 = call i64 @llvm.smin.i64(i64 %22, i64 %20)
  %26 = add i64 %15, 1
  %27 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ1NSivp", i64 0, i32 0), align 8
  %28 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %27, i64 %24)
  %29 = extractvalue { i64, i1 } %28, 1
  br i1 %29, label %78, label %30, !prof !7

30:                                               ; preds = %18
  %31 = extractvalue { i64, i1 } %28, 0
  %32 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %31, i64 1)
  %33 = extractvalue { i64, i1 } %32, 1
  br i1 %33, label %79, label %34, !prof !7

34:                                               ; preds = %30
  %35 = extractvalue { i64, i1 } %32, 0
  %36 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %25, i64 %35)
  %37 = extractvalue { i64, i1 } %36, 1
  br i1 %37, label %80, label %38, !prof !7

38:                                               ; preds = %34
  %39 = extractvalue { i64, i1 } %36, 0
  %40 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ4sumESivp", i64 0, i32 0), align 8
  %41 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %40, i64 %39)
  %42 = extractvalue { i64, i1 } %41, 1
  br i1 %42, label %81, label %43, !prof !7

43:                                               ; preds = %38
  %44 = extractvalue { i64, i1 } %41, 0
  store i64 %44, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ4sumESivp", i64 0, i32 0), align 8
  %45 = icmp eq i64 %26, %7
  br i1 %45, label %.loopexit, label %14

.loopexit:                                        ; preds = %43, %10
  %46 = phi i64 [ 1, %10 ], [ %27, %43 ]
  %47 = add i64 %46, 1
  %48 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %46, i64 %47)
  %49 = extractvalue { i64, i1 } %48, 0
  %50 = extractvalue { i64, i1 } %48, 1
  br i1 %50, label %82, label %51, !prof !7

51:                                               ; preds = %.loopexit
  %52 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %46, i64 2)
  %53 = extractvalue { i64, i1 } %52, 1
  br i1 %53, label %83, label %54, !prof !7

54:                                               ; preds = %51
  %55 = extractvalue { i64, i1 } %52, 0
  %56 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %49, i64 %55)
  %57 = extractvalue { i64, i1 } %56, 1
  br i1 %57, label %84, label %58, !prof !7

58:                                               ; preds = %54
  %59 = extractvalue { i64, i1 } %56, 0
  %60 = sdiv i64 %59, 6
  store i64 %60, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ4sumVSivp", i64 0, i32 0), align 8
  %61 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #17
  %62 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %61, i64 64, i64 7) #2
  %63 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %62, i64 1
  %._storage3.count._value = bitcast %swift.refcounted* %63 to i64*
  store i64 1, i64* %._storage3.count._value, align 8
  %._storage3._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %62, i64 1, i32 1
  store i64 2, i64* %._storage3._capacityAndFlags, align 8
  %64 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch5, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %64)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSi* @"$s7llvm_OZ4sumESivp" to i8*), [24 x i8]* nonnull %access-scratch5, i64 0, i8* null) #2
  %65 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ4sumESivp", i64 0, i32 0), align 8
  %66 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %60, i64 %65)
  %67 = extractvalue { i64, i1 } %66, 1
  br i1 %67, label %85, label %68, !prof !7

68:                                               ; preds = %58
  %69 = extractvalue { i64, i1 } %66, 0
  %70 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %62, i64 2
  %71 = bitcast %swift.refcounted* %62 to %Ts28__ContiguousArrayStorageBaseC*
  %72 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %62, i64 3, i32 1
  %73 = bitcast i64* %72 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %73, align 8
  %._value6 = bitcast %swift.refcounted* %70 to i64*
  store i64 %69, i64* %._value6, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %71, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* nonnull %62) #2
  ret i32 0

74:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

75:                                               ; preds = %5
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable

76:                                               ; preds = %14
  call void asm sideeffect "", "n"(i32 3) #2
  call void @llvm.trap()
  unreachable

77:                                               ; preds = %14
  call void asm sideeffect "", "n"(i32 4) #2
  call void @llvm.trap()
  unreachable

78:                                               ; preds = %18
  call void asm sideeffect "", "n"(i32 5) #2
  call void @llvm.trap()
  unreachable

79:                                               ; preds = %30
  call void asm sideeffect "", "n"(i32 6) #2
  call void @llvm.trap()
  unreachable

80:                                               ; preds = %34
  call void asm sideeffect "", "n"(i32 7) #2
  call void @llvm.trap()
  unreachable

81:                                               ; preds = %38
  call void asm sideeffect "", "n"(i32 8) #2
  call void @llvm.trap()
  unreachable

82:                                               ; preds = %.loopexit
  call void asm sideeffect "", "n"(i32 9) #2
  call void @llvm.trap()
  unreachable

83:                                               ; preds = %51
  call void asm sideeffect "", "n"(i32 10) #2
  call void @llvm.trap()
  unreachable

84:                                               ; preds = %54
  call void asm sideeffect "", "n"(i32 11) #2
  call void @llvm.trap()
  unreachable

85:                                               ; preds = %58
  call void asm sideeffect "", "n"(i32 12) #2
  call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ8scanInts5countSaySiGSi_tF"(i64 %0) local_unnamed_addr #0 {
entry:
  %1 = alloca %Ts8RepeatedVySSG, align 8
  %2 = alloca %Ts15ContiguousArrayV, align 8
  switch i64 %0, label %8 [
    i64 1, label %.thread
    i64 2, label %3
    i64 3, label %4
    i64 4, label %5
    i64 5, label %6
    i64 6, label %7
  ]

3:                                                ; preds = %entry
  br label %.thread

4:                                                ; preds = %entry
  br label %.thread

5:                                                ; preds = %entry
  br label %.thread

6:                                                ; preds = %entry
  br label %.thread

7:                                                ; preds = %entry
  br label %.thread

8:                                                ; preds = %entry
  %9 = icmp slt i64 %0, 0
  br i1 %9, label %63, label %10, !prof !7

10:                                               ; preds = %8
  %11 = bitcast %Ts8RepeatedVySSG* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 24, i8* nonnull %11)
  %.count._value = getelementptr inbounds %Ts8RepeatedVySSG, %Ts8RepeatedVySSG* %1, i64 0, i32 0, i32 0
  store i64 %0, i64* %.count._value, align 8
  %.repeatedValue._guts._object._countAndFlagsBits._value = getelementptr inbounds %Ts8RepeatedVySSG, %Ts8RepeatedVySSG* %1, i64 0, i32 1, i32 0, i32 0, i32 0, i32 0
  store i64 1684827173, i64* %.repeatedValue._guts._object._countAndFlagsBits._value, align 8
  %.repeatedValue._guts._object._object = getelementptr inbounds %Ts8RepeatedVySSG, %Ts8RepeatedVySSG* %1, i64 0, i32 1, i32 0, i32 0, i32 1
  store %swift.bridge* inttoptr (i64 -2017612633061982208 to %swift.bridge*), %swift.bridge** %.repeatedValue._guts._object._object, align 8
  %12 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss8RepeatedVySSGMD") #17
  %13 = call i8** @"$ss8RepeatedVySSGAByxGSKsWlTm"(i8*** @"$ss8RepeatedVySSGAByxGSKsWL", { i32, i32 }* @"$ss8RepeatedVySSGMD", %swift.protocol_conformance_descriptor* @"$ss8RepeatedVyxGSKsMc")
  %14 = bitcast %Ts8RepeatedVySSG* %1 to %swift.opaque*
  %15 = call swiftcc { i64, %swift.bridge* } @"$sSKsSS7ElementRtzrlE6joined9separatorS2S_tF"(i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), %swift.type* %12, i8** %13, %swift.opaque* noalias nocapture nonnull swiftself %14)
  %16 = extractvalue { i64, %swift.bridge* } %15, 0
  %17 = extractvalue { i64, %swift.bridge* } %15, 1
  call void @llvm.lifetime.end.p0i8(i64 24, i8* nonnull %11)
  %18 = add nsw i64 %0, -1152921504606846976
  %19 = icmp ult i64 %18, -2305843009213693952
  br i1 %19, label %64, label %.thread, !prof !7

.thread:                                          ; preds = %7, %6, %5, %4, %3, %entry, %10
  %20 = phi %swift.bridge* [ %17, %10 ], [ inttoptr (i64 -2017612633061982208 to %swift.bridge*), %entry ], [ inttoptr (i64 -1657324662872342428 to %swift.bridge*), %3 ], [ inttoptr (i64 -1296926275849084828 to %swift.bridge*), %4 ], [ inttoptr (i64 or (i64 sub (i64 ptrtoint ([20 x i8]* @".str.19.%lld %lld %lld %lld" to i64), i64 32), i64 -9223372036854775808) to %swift.bridge*), %5 ], [ inttoptr (i64 or (i64 sub (i64 ptrtoint ([25 x i8]* @".str.24.%lld %lld %lld %lld %lld" to i64), i64 32), i64 -9223372036854775808) to %swift.bridge*), %6 ], [ inttoptr (i64 or (i64 sub (i64 ptrtoint ([30 x i8]* @".str.29.%lld %lld %lld %lld %lld %lld" to i64), i64 32), i64 -9223372036854775808) to %swift.bridge*), %7 ]
  %21 = phi i64 [ %16, %10 ], [ 1684827173, %entry ], [ 7812660274634976293, %3 ], [ 7812660274634976293, %4 ], [ -3458764513820540909, %5 ], [ -3458764513820540904, %6 ], [ -3458764513820540899, %7 ]
  %22 = shl nuw nsw i64 %0, 3
  %23 = tail call noalias i8* @swift_slowAlloc(i64 %22, i64 -1) #2
  %24 = bitcast i8* %23 to %Ts5Int64V*
  %25 = getelementptr inbounds %Ts5Int64V, %Ts5Int64V* %24, i64 %0
  %26 = bitcast %Ts5Int64V* %25 to i8*
  %27 = icmp ugt i8* %23, %26
  br i1 %27, label %65, label %28, !prof !7

28:                                               ; preds = %.thread
  %29 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss32_copyCollectionToContiguousArrayys0dE0Vy7ElementQzGxSlRzlFSnySpys5Int64VGG_Tg5"(i8* %23, i8* %26)
  %30 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss15_arrayForceCastySayq_GSayxGr0_lFSpys5Int64VG_s7CVarArg_pTg5"(%Ts28__ContiguousArrayStorageBaseC* %29)
  %31 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %20) #2
  %32 = tail call swiftcc i32 @"$ss10withVaListyxSays7CVarArg_pG_xs03CVaC7PointerVXEtlFs5Int32V_Tg5038$s7llvm_OZ8scanInts5countSaySiGSi_tFs5h4Vs14fcG6VXEfU_SSTf1nc_n"(%Ts28__ContiguousArrayStorageBaseC* %30, i64 %21, %swift.bridge* %20)
  %33 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %30, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %33) #2
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 0, i32 1, i32 0, i32 0, i32 0
  %34 = load i64, i64* %._storage.count._value, align 8, !range !6
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %28
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %20) #2
  %37 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %37) #2
  br label %42

38:                                               ; preds = %28
  %39 = bitcast %Ts15ContiguousArrayV* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %39)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %2, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 false, i64 %34, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  %40 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %41 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %41 to %TSp*
  %._storage4.count._value.phi.trans.insert = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %40, i64 0, i32 1, i32 0, i32 0, i32 0
  %.pre = load i64, i64* %._storage4.count._value.phi.trans.insert, align 8, !range !6
  br label %44

42:                                               ; preds = %36, %61
  %43 = phi %Ts28__ContiguousArrayStorageBaseC* [ %57, %61 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %36 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %43

44:                                               ; preds = %56, %38
  %45 = phi i64 [ %.pre, %38 ], [ %53, %56 ]
  %46 = phi i64 [ 0, %38 ], [ %58, %56 ]
  %47 = phi %Ts28__ContiguousArrayStorageBaseC* [ %40, %38 ], [ %57, %56 ]
  %._rawValue = getelementptr inbounds %TSp, %TSp* %tailaddr, i64 %46, i32 0
  %48 = bitcast i8** %._rawValue to %Ts5Int64V**
  %49 = load %Ts5Int64V*, %Ts5Int64V** %48, align 8
  %._value = getelementptr inbounds %Ts5Int64V, %Ts5Int64V* %49, i64 0, i32 0
  %50 = load i64, i64* %._value, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %47, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage4._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %47, i64 0, i32 1, i32 0, i32 1, i32 0
  %51 = load i64, i64* %._storage4._capacityAndFlags._value, align 8
  %52 = lshr i64 %51, 1
  %53 = add nuw nsw i64 %45, 1
  %.not = icmp ugt i64 %52, %45
  br i1 %.not, label %56, label %54, !prof !9

54:                                               ; preds = %44
  %55 = icmp ugt i64 %51, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %55, i64 %53, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  %.pre29 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %56

56:                                               ; preds = %44, %54
  %57 = phi %Ts28__ContiguousArrayStorageBaseC* [ %47, %44 ], [ %.pre29, %54 ]
  %58 = add nuw nsw i64 %46, 1
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %57, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %53, i64* %._storage5.count._value, align 8
  %59 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %57, i64 1
  %tailaddr6 = bitcast %Ts28__ContiguousArrayStorageBaseC* %59 to %TSi*
  %._value7 = getelementptr inbounds %TSi, %TSi* %tailaddr6, i64 %45, i32 0
  store i64 %50, i64* %._value7, align 8
  %60 = icmp eq i64 %58, %34
  br i1 %60, label %61, label %44

61:                                               ; preds = %56
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %20) #2
  %62 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %62) #2
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %39)
  br label %42

63:                                               ; preds = %8
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

64:                                               ; preds = %10
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable

65:                                               ; preds = %.thread
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: cold noreturn nounwind
declare void @llvm.trap() #1

; Function Attrs: nounwind
declare void @swift_release(%swift.refcounted*) local_unnamed_addr #2

; Function Attrs: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #3

; Function Attrs: nounwind
declare void @swift_beginAccess(i8*, [24 x i8]*, i64, i8*) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn
declare { i64, i1 } @llvm.sadd.with.overflow.i64(i64, i64) #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn
declare { i64, i1 } @llvm.ssub.with.overflow.i64(i64, i64) #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn
declare { i64, i1 } @llvm.smul.with.overflow.i64(i64, i64) #4

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* %0) local_unnamed_addr #5 {
entry:
  %1 = bitcast { i32, i32 }* %0 to i64*
  %2 = load atomic i64, i64* %1 monotonic, align 8
  %3 = icmp slt i64 %2, 0
  br i1 %3, label %7, label %4, !prof !7

4:                                                ; preds = %7, %entry
  %5 = phi i64 [ %2, %entry ], [ %15, %7 ]
  %6 = inttoptr i64 %5 to %swift.type*
  ret %swift.type* %6

7:                                                ; preds = %entry
  %8 = ashr i64 %2, 32
  %9 = sub nsw i64 0, %8
  %sext = shl i64 %2, 32
  %10 = ashr exact i64 %sext, 32
  %11 = ptrtoint { i32, i32 }* %0 to i64
  %12 = add i64 %10, %11
  %13 = inttoptr i64 %12 to i8*
  %14 = tail call swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8* %13, i64 %9, %swift.type_descriptor* null, i8** null) #18
  %15 = ptrtoint %swift.type* %14 to i64
  store atomic i64 %15, i64* %1 monotonic, align 8
  br label %4
}

; Function Attrs: argmemonly nounwind
declare swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8*, i64, %swift.type_descriptor*, i8**) local_unnamed_addr #6

; Function Attrs: nounwind
declare %swift.refcounted* @swift_allocObject(%swift.type*, i64, i64) local_unnamed_addr #2

; Function Attrs: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #3

; Function Attrs: minsize optsize
declare swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC*, i64, %swift.bridge*, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSKsSS7ElementRtzrlE6joined9separatorS2S_tF"(i64, %swift.bridge*, %swift.type*, i8**, %swift.opaque* noalias nocapture swiftself) local_unnamed_addr #0

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledNameAbstract({ i32, i32 }* %0) local_unnamed_addr #5 {
entry:
  %1 = bitcast { i32, i32 }* %0 to i64*
  %2 = load atomic i64, i64* %1 monotonic, align 8
  %3 = icmp slt i64 %2, 0
  br i1 %3, label %7, label %4, !prof !7

4:                                                ; preds = %7, %entry
  %5 = phi i64 [ %2, %entry ], [ %15, %7 ]
  %6 = inttoptr i64 %5 to %swift.type*
  ret %swift.type* %6

7:                                                ; preds = %entry
  %8 = ashr i64 %2, 32
  %9 = sub nsw i64 0, %8
  %sext = shl i64 %2, 32
  %10 = ashr exact i64 %sext, 32
  %11 = ptrtoint { i32, i32 }* %0 to i64
  %12 = add i64 %10, %11
  %13 = inttoptr i64 %12 to i8*
  %14 = tail call swiftcc %swift.type* @swift_getTypeByMangledNameInContextInMetadataState2(i64 255, i8* %13, i64 %9, %swift.type_descriptor* null, i8** null) #18
  %15 = ptrtoint %swift.type* %14 to i64
  store atomic i64 %15, i64* %1 monotonic, align 8
  br label %4
}

; Function Attrs: argmemonly nounwind
declare swiftcc %swift.type* @swift_getTypeByMangledNameInContextInMetadataState2(i64, i8*, i64, %swift.type_descriptor*, i8**) local_unnamed_addr #6

; Function Attrs: nofree nounwind readonly
declare i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor*, %swift.type*, i8***) local_unnamed_addr #7

; Function Attrs: nounwind
declare i8* @swift_slowAlloc(i64, i64) local_unnamed_addr #2

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss15_arrayForceCastySayq_GSayxGr0_lFSpys5Int64VG_s7CVarArg_pTg5"(%Ts28__ContiguousArrayStorageBaseC* %0) local_unnamed_addr #0 {
entry:
  %1 = alloca %Ts15ContiguousArrayV, align 8
  %2 = alloca %Ts7CVarArgP, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %3 = load i64, i64* %._storage.count._value, align 8, !range !6
  %4 = icmp eq i64 %3, 0
  br i1 %4, label %12, label %5

5:                                                ; preds = %entry
  %6 = bitcast %Ts15ContiguousArrayV* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %6)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %1, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFs7CVarArg_p_Tg5"(i1 false, i64 %3, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %1)
  %7 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %8 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %8 to %TSp*
  %9 = getelementptr inbounds %Ts7CVarArgP, %Ts7CVarArgP* %2, i64 0, i32 0, i64 0
  %10 = getelementptr inbounds %Ts7CVarArgP, %Ts7CVarArgP* %2, i64 0, i32 1
  %11 = getelementptr inbounds %Ts7CVarArgP, %Ts7CVarArgP* %2, i64 0, i32 2
  %._rawValue4 = bitcast %Ts7CVarArgP* %2 to i8**
  br label %14

12:                                               ; preds = %entry, %33
  %13 = phi %Ts28__ContiguousArrayStorageBaseC* [ %25, %33 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %13

14:                                               ; preds = %24, %5
  %15 = phi i64 [ 0, %5 ], [ %26, %24 ]
  %16 = phi %Ts28__ContiguousArrayStorageBaseC* [ %7, %5 ], [ %25, %24 ]
  %._rawValue = getelementptr inbounds %TSp, %TSp* %tailaddr, i64 %15, i32 0
  %17 = load i8*, i8** %._rawValue, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %16, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  %18 = load i64, i64* %._storage3.count._value, align 8, !range !6
  %._storage3._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 1, i32 0
  %19 = load i64, i64* %._storage3._capacityAndFlags._value, align 8
  %20 = lshr i64 %19, 1
  %21 = add nuw nsw i64 %18, 1
  %.not = icmp ugt i64 %20, %18
  br i1 %.not, label %24, label %22, !prof !9

22:                                               ; preds = %14
  %23 = icmp ugt i64 %19, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFs7CVarArg_p_Tg5"(i1 %23, i64 %21, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %1)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %24

24:                                               ; preds = %14, %22
  %25 = phi %Ts28__ContiguousArrayStorageBaseC* [ %16, %14 ], [ %.pre, %22 ]
  %26 = add nuw nsw i64 %15, 1
  call void @llvm.lifetime.start.p0i8(i64 40, i8* nonnull %9)
  %27 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSpys5Int64VGMD") #17
  store %swift.type* %27, %swift.type** %10, align 8
  %28 = call i8** @"$ss8RepeatedVySSGAByxGSKsWlTm"(i8*** @"$sSpys5Int64VGSpyxGs7CVarArgsWL", { i32, i32 }* @"$sSpys5Int64VGMD", %swift.protocol_conformance_descriptor* @"$sSpyxGs7CVarArgsMc")
  store i8** %28, i8*** %11, align 8
  store i8* %17, i8** %._rawValue4, align 8
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %25, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %21, i64* %._storage5.count._value, align 8
  %29 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %25, i64 1
  %tailaddr6 = bitcast %Ts28__ContiguousArrayStorageBaseC* %29 to %Ts7CVarArgP*
  %30 = getelementptr inbounds %Ts7CVarArgP, %Ts7CVarArgP* %tailaddr6, i64 %18
  %31 = call %Ts7CVarArgP* @"$ss7CVarArg_pWOb"(%Ts7CVarArgP* nonnull %2, %Ts7CVarArgP* nonnull %30)
  call void @llvm.lifetime.end.p0i8(i64 40, i8* nonnull %9)
  %32 = icmp eq i64 %26, %3
  br i1 %32, label %33, label %14

33:                                               ; preds = %24
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %6)
  br label %12
}

; Function Attrs: minsize optsize sspreq
define linkonce_odr hidden swiftcc i32 @"$ss10withVaListyxSays7CVarArg_pG_xs03CVaC7PointerVXEtlFs5Int32V_Tg5038$s7llvm_OZ8scanInts5countSaySiGSi_tFs5h4Vs14fcG6VXEfU_SSTf1nc_n"(%Ts28__ContiguousArrayStorageBaseC* %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #8 {
entry:
  %reference.raw = alloca %Ts15__VaListBuilderC, align 8
  %3 = tail call swiftcc %swift.metadata_response @"$ss15__VaListBuilderCMa"(i64 0) #19
  %4 = extractvalue %swift.metadata_response %3, 0
  %5 = getelementptr inbounds %Ts15__VaListBuilderC, %Ts15__VaListBuilderC* %reference.raw, i64 0, i32 0
  %reference.new = call %swift.refcounted* @swift_initStackObject(%swift.type* %4, %swift.refcounted* nonnull %5) #20
  %6 = bitcast %swift.refcounted* %reference.new to %Ts15__VaListBuilderC*
  %7 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %reference.new, i64 1
  %8 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %reference.new, i64 2
  %9 = bitcast %swift.refcounted* %8 to %Ts15__VaListBuilderC6HeaderV*
  %10 = bitcast %swift.refcounted* %7 to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  %11 = call swiftcc i64 @"$ss17_countGPRegistersSivg"()
  %12 = shl i64 %11, 3
  %13 = add i64 %11, -1152921504606846976
  %14 = icmp ult i64 %13, -2305843009213693952
  br i1 %14, label %51, label %15, !prof !7

15:                                               ; preds = %entry
  %16 = icmp slt i64 %12, 0
  br i1 %16, label %52, label %17, !prof !7

17:                                               ; preds = %15
  %18 = icmp ugt i64 %12, 4294967295
  br i1 %18, label %53, label %19, !prof !7

19:                                               ; preds = %17
  %20 = trunc i64 %12 to i32
  %.gp_offset._value = bitcast %swift.refcounted* %8 to i32*
  store i32 0, i32* %.gp_offset._value, align 8
  %.fp_offset._value = getelementptr inbounds %Ts15__VaListBuilderC6HeaderV, %Ts15__VaListBuilderC6HeaderV* %9, i64 0, i32 1, i32 0
  store i32 %20, i32* %.fp_offset._value, align 4
  %.overflow_arg_area = getelementptr inbounds %swift.refcounted, %swift.refcounted* %reference.new, i64 2, i32 1
  %21 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %reference.new, i64 4
  %._buffer._storage = bitcast %swift.refcounted* %21 to %Ts28__ContiguousArrayStorageBaseC**
  %22 = bitcast i64* %.overflow_arg_area to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %22, i8 0, i64 16, i1 false)
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %23 = call swiftcc i64 @"$ss18_registerSaveWordsSivg"()
  %24 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss15ContiguousArrayV9repeating5countAByxGx_SitcfCSi_Tgq5"(i64 0, i64 %23)
  %25 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %reference.new, i64 3, i32 1
  %._buffer2._storage = bitcast i64* %25 to %Ts28__ContiguousArrayStorageBaseC**
  store %Ts28__ContiguousArrayStorageBaseC* %24, %Ts28__ContiguousArrayStorageBaseC** %._buffer2._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %26 = load i64, i64* %._storage.count._value, align 8, !range !6
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %..loopexit_crit_edge, label %29

..loopexit_crit_edge:                             ; preds = %19
  %28 = bitcast %Ts28__ContiguousArrayStorageBaseC* %24 to i8*
  br label %.loopexit

29:                                               ; preds = %19
  %30 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %30 to %Ts7CVarArgP*
  br label %46

.loopexit.loopexit:                               ; preds = %46
  %.phi.trans.insert = bitcast i64* %25 to i8**
  %.pre = load i8*, i8** %.phi.trans.insert, align 8
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge, %.loopexit.loopexit
  %31 = phi i8* [ %.pre, %.loopexit.loopexit ], [ %28, %..loopexit_crit_edge ]
  %.reg_save_area = getelementptr inbounds %swift.refcounted, %swift.refcounted* %reference.new, i64 3
  %32 = bitcast %swift.refcounted* %.reg_save_area to i64*
  %33 = getelementptr inbounds i8, i8* %31, i64 32
  %tailaddr4 = bitcast i8* %33 to %TSi*
  %34 = ptrtoint i8* %33 to i64
  store i64 %34, i64* %32, align 8
  %35 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %23
  %36 = ptrtoint %TSi* %35 to i64
  store i64 %36, i64* %.overflow_arg_area, align 8
  %37 = load i64, i64* bitcast (%TSpySo8_IO_FILEVGSg* @"$s7llvm_OZ5INPUTSpySo8_IO_FILEVGSgvp" to i64*), align 8
  %38 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSS11utf8CStrings15ContiguousArrayVys4Int8VGvg"(i64 %1, %swift.bridge* %2)
  %39 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %38, i64 1
  %40 = bitcast %Ts28__ContiguousArrayStorageBaseC* %39 to i8*
  %41 = inttoptr i64 %37 to %struct._IO_FILE*
  %42 = bitcast %swift.refcounted* %8 to %struct.__va_list_tag*
  %43 = call i32 @__isoc99_vfscanf(%struct._IO_FILE* %41, i8* nonnull %40, %struct.__va_list_tag* nonnull %42)
  %44 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %38, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %44) #2
  call void @swift_setDeallocating(%swift.refcounted* nonnull %reference.new) #2
  call swiftcc void @"$ss15__VaListBuilderCfD"(%Ts15__VaListBuilderC* nonnull swiftself %6)
  %45 = bitcast %swift.refcounted* %reference.new to i8*
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* %45)
  call void @swift_bridgeObjectRelease(%swift.bridge* %2) #2
  ret i32 %43

46:                                               ; preds = %46, %29
  %47 = phi i64 [ 0, %29 ], [ %49, %46 ]
  %48 = getelementptr inbounds %Ts7CVarArgP, %Ts7CVarArgP* %tailaddr, i64 %47
  %49 = add nuw nsw i64 %47, 1
  call swiftcc void @"$ss15__VaListBuilderC6appendyys7CVarArg_pF"(%Ts7CVarArgP* noalias nocapture nonnull dereferenceable(40) %48, %Ts15__VaListBuilderC* swiftself %6)
  %50 = icmp eq i64 %49, %26
  br i1 %50, label %.loopexit.loopexit, label %46

51:                                               ; preds = %entry
  call void asm sideeffect "", "n"(i32 0) #2
  call void @llvm.trap()
  unreachable

52:                                               ; preds = %15
  call void asm sideeffect "", "n"(i32 1) #2
  call void @llvm.trap()
  unreachable

53:                                               ; preds = %17
  call void asm sideeffect "", "n"(i32 2) #2
  call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define hidden swiftcc i64 @"$s7llvm_OZ7scanIntSiyF"() local_unnamed_addr #0 {
entry:
  %0 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ8scanInts5countSaySiGSi_tF"(i64 1)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %1 = load i64, i64* %._storage.count._value, align 8, !range !6
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %6, label %2, !prof !7

2:                                                ; preds = %entry
  %3 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %3 to i64*
  %4 = load i64, i64* %tailaddr._value, align 8
  %5 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %5) #2
  ret i64 %4

6:                                                ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define hidden swiftcc { i64, i64 } @"$s7llvm_OZ11scanIntPairSi_SityF"() local_unnamed_addr #0 {
entry:
  %0 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ8scanInts5countSaySiGSi_tF"(i64 2)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %1 = load i64, i64* %._storage.count._value, align 8, !range !6
  switch i64 %1, label %2 [
    i64 0, label %10
    i64 1, label %11
  ], !prof !8

2:                                                ; preds = %entry
  %3 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %3 to i64*
  %4 = load i64, i64* %tailaddr._value, align 8
  %5 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1, i32 0, i32 1
  %6 = load i64, i64* %5, align 8
  %7 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %7) #2
  %8 = insertvalue { i64, i64 } undef, i64 %4, 0
  %9 = insertvalue { i64, i64 } %8, i64 %6, 1
  ret { i64, i64 } %9

10:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

11:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss15ContiguousArrayV9repeating5countAByxGx_SitcfCSi_Tgq5"(i64 %0, i64 %1) local_unnamed_addr #0 {
entry:
  %2 = icmp slt i64 %1, 0
  br i1 %2, label %15, label %3, !prof !7

3:                                                ; preds = %entry
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %.thread, label %4

4:                                                ; preds = %3
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss15ContiguousArrayV28_allocateBufferUninitialized15minimumCapacitys01_abD0VyxGSi_tFZ"(i64 %1, %swift.type* nonnull @"$sSiN")
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %1, i64* %._storage.count._value, align 8
  %6 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 1
  %7 = bitcast %Ts28__ContiguousArrayStorageBaseC* %6 to %TSi*
  br label %8

8:                                                ; preds = %8, %4
  %9 = phi %TSi* [ %13, %8 ], [ %7, %4 ]
  %10 = phi i64 [ %11, %8 ], [ 0, %4 ]
  %11 = add nuw nsw i64 %10, 1
  %._value = getelementptr inbounds %TSi, %TSi* %9, i64 0, i32 0
  store i64 %0, i64* %._value, align 8
  %12 = icmp eq i64 %11, %1
  %13 = getelementptr inbounds %TSi, %TSi* %9, i64 1
  br i1 %12, label %.thread, label %8

.thread:                                          ; preds = %8, %3
  %14 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %3 ], [ %5, %8 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %14

15:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
declare swiftcc void @"$ss15__VaListBuilderC6appendyys7CVarArg_pF"(%Ts7CVarArgP* noalias nocapture dereferenceable(40), %Ts15__VaListBuilderC* swiftself) local_unnamed_addr #0

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss32_copyCollectionToContiguousArrayys0dE0Vy7ElementQzGxSlRzlFSnySpys5Int64VGG_Tg5"(i8* %0, i8* %1) local_unnamed_addr #0 {
entry:
  %2 = alloca %Ts16IndexingIteratorVySnySpys5Int64VGGG, align 8
  %3 = ptrtoint i8* %1 to i64
  %4 = ptrtoint i8* %0 to i64
  %5 = sub i64 %3, %4
  %6 = sdiv i64 %5, 8
  %.off = add i64 %5, 7
  %7 = icmp ult i64 %.off, 15
  br i1 %7, label %10, label %8

8:                                                ; preds = %entry
  %9 = icmp sgt i64 %5, 7
  br i1 %9, label %12, label %22

10:                                               ; preds = %entry, %28
  %11 = phi %Ts28__ContiguousArrayStorageBaseC* [ %23, %28 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %11

12:                                               ; preds = %8
  %13 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySpys5Int64VGGMD") #17
  %14 = shl nsw i64 %6, 3
  %15 = add i64 %14, 32
  %16 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %13, i64 %15, i64 7) #2
  %17 = bitcast %swift.refcounted* %16 to %Ts28__ContiguousArrayStorageBaseC*
  %18 = bitcast %swift.refcounted* %16 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %18) #21
  %gepdiff = add nsw i64 %call.i, -32
  %19 = sdiv i64 %gepdiff, 8
  %20 = shl nsw i64 %19, 1
  %21 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %16, i64 1
  %._storage2.count._value = bitcast %swift.refcounted* %21 to i64*
  store i64 %6, i64* %._storage2.count._value, align 8
  %._storage2._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %16, i64 1, i32 1
  store i64 %20, i64* %._storage2._capacityAndFlags, align 8
  br label %22

22:                                               ; preds = %8, %12
  %23 = phi %Ts28__ContiguousArrayStorageBaseC* [ %17, %12 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %8 ]
  %24 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %23, i64 1
  %25 = ptrtoint %Ts28__ContiguousArrayStorageBaseC* %24 to i64
  %26 = bitcast %Ts16IndexingIteratorVySnySpys5Int64VGGG* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 24, i8* nonnull %26)
  %27 = call swiftcc i64 @"$sSTsE21_copySequenceContents12initializing8IteratorQz_SitSry7ElementQzG_tFSnySpys5Int64VGG_Tg5"(%Ts16IndexingIteratorVySnySpys5Int64VGGG* noalias nocapture nonnull %2, i64 %25, i64 %6, i8* %0, i8* %1)
  %.not = icmp eq i64 %27, %6
  br i1 %.not, label %28, label %29, !prof !9

28:                                               ; preds = %22
  call void @llvm.lifetime.end.p0i8(i64 24, i8* nonnull %26)
  br label %10

29:                                               ; preds = %22
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: nounwind
declare %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned) local_unnamed_addr #2

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #9 {
entry:
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %3, i64 0, i32 0, i32 0
  %4 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %4)
  store %Ts28__ContiguousArrayStorageBaseC* %5, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  ret void
}

; Function Attrs: nounwind
declare void @swift_bridgeObjectRelease(%swift.bridge*) local_unnamed_addr #2

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFs7CVarArg_p_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #9 {
entry:
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %3, i64 0, i32 0, i32 0
  %4 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFs7CVarArg_p_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %4)
  store %Ts28__ContiguousArrayStorageBaseC* %5, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  ret void
}

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #9 {
entry:
  br i1 %2, label %4, label %14

4:                                                ; preds = %entry
  %._storage._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 1, i32 0
  %5 = load i64, i64* %._storage._capacityAndFlags._value, align 8
  %6 = lshr i64 %5, 1
  %7 = icmp slt i64 %6, %1
  br i1 %7, label %8, label %14

8:                                                ; preds = %4
  %9 = add nuw i64 %6, 4611686018427387904
  %10 = icmp slt i64 %9, 0
  br i1 %10, label %49, label %11, !prof !7

11:                                               ; preds = %8
  %12 = and i64 %5, -2
  %13 = tail call i64 @llvm.smax.i64(i64 %12, i64 %1)
  br label %14

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !6
  %17 = tail call i64 @llvm.smax.i64(i64 %15, i64 %16)
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %29, label %19

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySiGMD") #17
  %21 = shl i64 %17, 3
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #2
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #21
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 8
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

29:                                               ; preds = %14, %19
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %24, %19 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %14 ]
  %31 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %30, i64 1
  br i1 %0, label %32, label %42

32:                                               ; preds = %29
  %33 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to %TSi*
  %35 = getelementptr inbounds %TSi, %TSi* %34, i64 %16
  %36 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %TSi*
  %37 = icmp ugt %TSi* %35, %36
  %38 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond5.i = select i1 %38, i1 %37, i1 false
  br i1 %or.cond5.i, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit", label %.sink.split.i

.sink.split.i:                                    ; preds = %32
  %39 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to i8*
  %40 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %41 = shl nuw i64 %16, 3
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %40, i8* nonnull align 8 %39, i64 %41, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit"

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit": ; preds = %32, %.sink.split.i
  store i64 0, i64* %._storage.count._value, align 8
  br label %47

42:                                               ; preds = %29
  %43 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %44 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %45 = bitcast %Ts28__ContiguousArrayStorageBaseC* %44 to i8*
  %46 = shl nuw i64 %16, 3
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %43, i8* nonnull align 8 %45, i64 %46, i1 false)
  br label %47

47:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit", %42
  %48 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %48) #2
  ret %Ts28__ContiguousArrayStorageBaseC* %30

49:                                               ; preds = %8
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: argmemonly mustprogress nocallback nofree nounwind willreturn
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i64, i1 immarg) #10

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFs7CVarArg_p_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #9 {
entry:
  br i1 %2, label %4, label %14

4:                                                ; preds = %entry
  %._storage._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 1, i32 0
  %5 = load i64, i64* %._storage._capacityAndFlags._value, align 8
  %6 = lshr i64 %5, 1
  %7 = icmp slt i64 %6, %1
  br i1 %7, label %8, label %14

8:                                                ; preds = %4
  %9 = add nuw i64 %6, 4611686018427387904
  %10 = icmp slt i64 %9, 0
  br i1 %10, label %48, label %11, !prof !7

11:                                               ; preds = %8
  %12 = and i64 %5, -2
  %13 = tail call i64 @llvm.smax.i64(i64 %12, i64 %1)
  br label %14

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !6
  %17 = tail call i64 @llvm.smax.i64(i64 %15, i64 %16)
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %29, label %19

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCys7CVarArg_pGMD") #17
  %21 = mul i64 %17, 40
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #2
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #21
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 40
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

29:                                               ; preds = %14, %19
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %24, %19 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %14 ]
  %31 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %30, i64 1
  br i1 %0, label %32, label %41

32:                                               ; preds = %29
  %33 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %34 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %35 = bitcast %Ts28__ContiguousArrayStorageBaseC* %34 to %Ts7CVarArgP*
  %36 = getelementptr inbounds %Ts7CVarArgP, %Ts7CVarArgP* %35, i64 %16, i32 0, i64 0
  %37 = icmp ugt i8* %36, %33
  %38 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond5.i = select i1 %38, i1 %37, i1 false
  br i1 %or.cond5.i, label %"$sSp14moveInitialize4from5countySpyxG_SitFs7CVarArg_p_Tg5.exit", label %.sink.split.i

.sink.split.i:                                    ; preds = %32
  %39 = bitcast %Ts28__ContiguousArrayStorageBaseC* %34 to i8*
  %40 = mul nuw i64 %16, 40
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %33, i8* nonnull align 8 %39, i64 %40, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFs7CVarArg_p_Tg5.exit"

"$sSp14moveInitialize4from5countySpyxG_SitFs7CVarArg_p_Tg5.exit": ; preds = %32, %.sink.split.i
  store i64 0, i64* %._storage.count._value, align 8
  br label %46

41:                                               ; preds = %29
  %42 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %43 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss7CVarArg_pMD") #17
  %44 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %swift.opaque*
  %45 = bitcast %Ts28__ContiguousArrayStorageBaseC* %42 to %swift.opaque*
  tail call void @swift_arrayInitWithCopy(%swift.opaque* nonnull %44, %swift.opaque* nonnull %45, i64 %16, %swift.type* %43) #20
  br label %46

46:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFs7CVarArg_p_Tg5.exit", %41
  %47 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %47) #2
  ret %Ts28__ContiguousArrayStorageBaseC* %30

48:                                               ; preds = %8
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: argmemonly mustprogress nocallback nofree nounwind willreturn
declare void @llvm.memmove.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i1 immarg) #10

; Function Attrs: minsize optsize
declare swiftcc %swift.metadata_response @"$ss15__VaListBuilderCMa"(i64) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn
declare %swift.refcounted* @swift_initStackObject(%swift.type*, %swift.refcounted*) local_unnamed_addr #11

; Function Attrs: minsize optsize
declare swiftcc i64 @"$ss17_countGPRegistersSivg"() local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc i64 @"$ss18_registerSaveWordsSivg"() local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSS11utf8CStrings15ContiguousArrayVys4Int8VGvg"(i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: optsize
declare i32 @__isoc99_vfscanf(%struct._IO_FILE* noundef, i8* noundef, %struct.__va_list_tag* noundef) local_unnamed_addr #12

; Function Attrs: mustprogress nounwind willreturn
declare void @swift_setDeallocating(%swift.refcounted*) local_unnamed_addr #11

; Function Attrs: minsize optsize
declare swiftcc void @"$ss15__VaListBuilderCfD"(%Ts15__VaListBuilderC* swiftself) local_unnamed_addr #0

; Function Attrs: minsize noinline optsize
declare swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss15ContiguousArrayV28_allocateBufferUninitialized15minimumCapacitys01_abD0VyxGSi_tFZ"(i64, %swift.type*) local_unnamed_addr #9

; Function Attrs: minsize nofree noinline nosync nounwind optsize readnone
define internal i8** @"$ss8RepeatedVySSGAByxGSKsWlTm"(i8*** %0, { i32, i32 }* %1, %swift.protocol_conformance_descriptor* %2) local_unnamed_addr #13 {
entry:
  %3 = load i8**, i8*** %0, align 8
  %4 = icmp eq i8** %3, null
  br i1 %4, label %cacheIsNull, label %cont

cacheIsNull:                                      ; preds = %entry
  %5 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledNameAbstract({ i32, i32 }* nonnull %1) #17
  %6 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull %2, %swift.type* %5, i8*** undef) #17
  store atomic i8** %6, i8*** %0 release, align 8
  br label %cont

cont:                                             ; preds = %cacheIsNull, %entry
  %7 = phi i8** [ %3, %entry ], [ %6, %cacheIsNull ]
  ret i8** %7
}

; Function Attrs: minsize noinline nounwind optsize
define linkonce_odr hidden %Ts7CVarArgP* @"$ss7CVarArg_pWOb"(%Ts7CVarArgP* %0, %Ts7CVarArgP* %1) local_unnamed_addr #14 {
entry:
  %2 = getelementptr %Ts7CVarArgP, %Ts7CVarArgP* %1, i64 0, i32 0, i64 0
  %3 = getelementptr %Ts7CVarArgP, %Ts7CVarArgP* %0, i64 0, i32 0, i64 0
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(40) %2, i8* noundef nonnull align 8 dereferenceable(40) %3, i64 40, i1 false)
  ret %Ts7CVarArgP* %1
}

; Function Attrs: mustprogress nounwind willreturn
declare void @swift_arrayInitWithCopy(%swift.opaque*, %swift.opaque*, i64, %swift.type*) local_unnamed_addr #11

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i64 @"$sSTsE21_copySequenceContents12initializing8IteratorQz_SitSry7ElementQzG_tFSnySpys5Int64VGG_Tg5"(%Ts16IndexingIteratorVySnySpys5Int64VGGG* noalias nocapture %0, i64 %1, i64 %2, i8* %3, i8* %4) local_unnamed_addr #0 {
entry:
  %5 = icmp eq i64 %1, 0
  br i1 %5, label %.loopexit, label %6

6:                                                ; preds = %entry
  %7 = inttoptr i64 %1 to i8*
  %8 = icmp eq i64 %2, 0
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %6
  %10 = icmp slt i64 %2, 0
  br i1 %10, label %29, label %11, !prof !7

11:                                               ; preds = %9
  %12 = icmp eq i8* %3, %4
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %11
  %14 = icmp ult i8* %4, %3
  br i1 %14, label %30, label %.preheader, !prof !7

.preheader:                                       ; preds = %13
  %.not19 = icmp ult i8* %3, %4
  br i1 %.not19, label %.lr.ph, label %._crit_edge, !prof !9

15:                                               ; preds = %26
  %16 = add nuw nsw i64 %21, 1
  %17 = getelementptr inbounds i8, i8* %23, i64 8
  %18 = icmp ult i8* %24, %3
  %19 = icmp uge i8* %24, %4
  %20 = or i1 %18, %19
  br i1 %20, label %._crit_edge, label %.lr.ph, !prof !7

.lr.ph:                                           ; preds = %.preheader, %15
  %21 = phi i64 [ %16, %15 ], [ 1, %.preheader ]
  %22 = phi i8* [ %24, %15 ], [ %3, %.preheader ]
  %23 = phi i8* [ %17, %15 ], [ %7, %.preheader ]
  %24 = getelementptr inbounds i8, i8* %22, i64 8
  %._rawValue = bitcast i8* %23 to i8**
  store i8* %22, i8** %._rawValue, align 8
  %25 = icmp eq i64 %21, %2
  br i1 %25, label %.loopexit, label %26

26:                                               ; preds = %.lr.ph
  %27 = icmp eq i8* %24, %4
  br i1 %27, label %.loopexit, label %15

.loopexit:                                        ; preds = %26, %.lr.ph, %11, %6, %entry
  %.sink = phi i8* [ %3, %entry ], [ %3, %6 ], [ %3, %11 ], [ %24, %.lr.ph ], [ %4, %26 ]
  %28 = phi i64 [ 0, %entry ], [ %2, %6 ], [ 0, %11 ], [ %2, %.lr.ph ], [ %21, %26 ]
  %._elements3.lowerBound._rawValue = getelementptr inbounds %Ts16IndexingIteratorVySnySpys5Int64VGGG, %Ts16IndexingIteratorVySnySpys5Int64VGGG* %0, i64 0, i32 0, i32 0, i32 0
  store i8* %3, i8** %._elements3.lowerBound._rawValue, align 8
  %._elements3.upperBound._rawValue = getelementptr inbounds %Ts16IndexingIteratorVySnySpys5Int64VGGG, %Ts16IndexingIteratorVySnySpys5Int64VGGG* %0, i64 0, i32 0, i32 1, i32 0
  store i8* %4, i8** %._elements3.upperBound._rawValue, align 8
  %._position4._rawValue = getelementptr inbounds %Ts16IndexingIteratorVySnySpys5Int64VGGG, %Ts16IndexingIteratorVySnySpys5Int64VGGG* %0, i64 0, i32 1, i32 0
  store i8* %.sink, i8** %._position4._rawValue, align 8
  ret i64 %28

29:                                               ; preds = %9
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

30:                                               ; preds = %13
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable

._crit_edge:                                      ; preds = %15, %.preheader
  tail call void asm sideeffect "", "n"(i32 3) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: optsize
declare i64 @malloc_usable_size(i8* noundef) local_unnamed_addr #12

; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn
declare i64 @llvm.smax.i64(i64, i64) #15

; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn
declare i64 @llvm.smin.i64(i64, i64) #15

; Function Attrs: argmemonly nocallback nofree nounwind willreturn writeonly
declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i1 immarg) #16

attributes #0 = { minsize optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { cold noreturn nounwind }
attributes #2 = { nounwind }
attributes #3 = { argmemonly mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #5 = { minsize mustprogress nofree noinline nounwind optsize readonly willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { argmemonly nounwind }
attributes #7 = { nofree nounwind readonly }
attributes #8 = { minsize optsize sspreq "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { minsize noinline optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { argmemonly mustprogress nocallback nofree nounwind willreturn }
attributes #11 = { mustprogress nounwind willreturn }
attributes #12 = { optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #13 = { minsize nofree noinline nosync nounwind optsize readnone "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #14 = { minsize noinline nounwind optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #15 = { nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #16 = { argmemonly nocallback nofree nounwind willreturn writeonly }
attributes #17 = { nounwind readonly }
attributes #18 = { argmemonly nounwind readonly }
attributes #19 = { nounwind readnone }
attributes #20 = { nounwind willreturn }
attributes #21 = { nounwind optsize }

!swift.module.flags = !{!0}
!llvm.linker.options = !{}
!llvm.module.flags = !{!1, !2, !3, !4, !5}

!0 = !{!"standard-library", i1 false}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 4, !"Objective-C Garbage Collection", i32 84477696}
!5 = !{i32 1, !"Swift Version", i32 7}
!6 = !{i64 0, i64 9223372036854775807}
!7 = !{!"branch_weights", i32 1, i32 2000}
!8 = !{!"branch_weights", i32 4000000, i32 2001, i32 2000}
!9 = !{!"branch_weights", i32 2000, i32 1}
