func main(text1: String = readLine()!, text2: String = readLine()!) {
    let text2Indices = text2.indices
    let text2Count = text2.count
    var result = text2Count
    for text1Index in text1.indices {
        if text1[text1Index...].count < text2Count { break }
        var counter = 0
        for (i, j) in zip(text1[text1Index...].indices, text2Indices) where text1[i] != text2[j] {
            counter += 1
        }
        if result > counter {
            result = counter
        }
    }
    print(result)
}

main()
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_536/llvm_O3.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_536/llvm_O3.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"

%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.bridge = type opaque
%swift.refcounted = type { %swift.type*, i64 }
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSi = type <{ i64 }>
%TSu = type <{ i64 }>

@"$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
@"\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
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [77 x i8] c"-lswift_Concurrency\00-lswiftCore\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 ([77 x i8], [77 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  %2 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %3 = extractvalue { i64, i64 } %2, 1
  %4 = icmp eq i64 %3, 0
  br i1 %4, label %14, label %5

5:                                                ; preds = %entry
  %6 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %7 = extractvalue { i64, i64 } %6, 1
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %15, label %9

9:                                                ; preds = %5
  %10 = extractvalue { i64, i64 } %6, 0
  %11 = inttoptr i64 %3 to %swift.bridge*
  %12 = extractvalue { i64, i64 } %2, 0
  %13 = inttoptr i64 %7 to %swift.bridge*
  tail call swiftcc void @"$s7llvm_O34main5text15text2ySS_SStF"(i64 %12, %swift.bridge* nonnull %11, i64 %10, %swift.bridge* nonnull %13)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %11) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %13) #2
  ret i32 0

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

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

declare swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1) local_unnamed_addr #0

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

define hidden swiftcc { i64, %swift.bridge* } @"$s7llvm_O34main5text15text2ySS_SStFfA0_"() local_unnamed_addr #0 {
  %1 = tail call swiftcc { i64, %swift.bridge* } @"$s7llvm_O34main5text15text2ySS_SStFfA_Tm"() #0
  %2 = extractvalue { i64, %swift.bridge* } %1, 0
  %3 = insertvalue { i64, %swift.bridge* } undef, i64 %2, 0
  %4 = extractvalue { i64, %swift.bridge* } %1, 1
  %5 = insertvalue { i64, %swift.bridge* } %3, %swift.bridge* %4, 1
  ret { i64, %swift.bridge* } %5
}

define internal swiftcc { i64, %swift.bridge* } @"$s7llvm_O34main5text15text2ySS_SStFfA_Tm"() local_unnamed_addr #0 {
entry:
  %0 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %1 = extractvalue { i64, i64 } %0, 1
  %2 = icmp eq i64 %1, 0
  br i1 %2, label %8, label %3

3:                                                ; preds = %entry
  %4 = extractvalue { i64, i64 } %0, 0
  %5 = inttoptr i64 %1 to %swift.bridge*
  %6 = insertvalue { i64, %swift.bridge* } undef, i64 %4, 0
  %7 = insertvalue { i64, %swift.bridge* } %6, %swift.bridge* %5, 1
  ret { i64, %swift.bridge* } %7

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

define hidden swiftcc void @"$s7llvm_O34main5text15text2ySS_SStF"(i64 %0, %swift.bridge* %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #0 {
entry:
  %4 = ptrtoint %swift.bridge* %3 to i64
  %5 = and i64 %4, 2305843009213693952
  %6 = icmp eq i64 %5, 0
  %7 = lshr i64 %4, 56
  %8 = and i64 %7, 15
  %9 = select i1 %6, i64 %2, i64 %8
  %10 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #2
  %11 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %2, %swift.bridge* %3)
  %12 = ptrtoint %swift.bridge* %1 to i64
  %13 = and i64 %12, 2305843009213693952
  %14 = icmp eq i64 %13, 0
  %15 = lshr i64 %12, 56
  %16 = and i64 %15, 15
  %17 = select i1 %14, i64 %0, i64 %16
  %18 = shl i64 %17, 16
  %19 = and i64 %12, 1152921504606846976
  %20 = icmp ne i64 %19, 0
  %21 = and i64 %0, 576460752303423488
  %22 = icmp eq i64 %21, 0
  %or.cond18 = select i1 %20, i1 %22, i1 false
  %.v46 = select i1 %or.cond18, i64 11, i64 7
  %23 = or i64 %18, %.v46
  %24 = lshr exact i64 %18, 14
  %25 = icmp eq i64 %18, 0
  br i1 %25, label %109, label %26

26:                                               ; preds = %entry
  %27 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %28 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 15, i64 %0, %swift.bridge* %1)
  %29 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %30 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSlsEy11SubSequenceQzqd__cSXRd__5BoundQyd__5IndexRtzluigSS_s16PartialRangeFromVySSAEVGTg5"(i64 15, i64 %0, %swift.bridge* %1)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %1) #2
  %31 = extractvalue { i64, i64, i64, %swift.bridge* } %30, 0
  %32 = extractvalue { i64, i64, i64, %swift.bridge* } %30, 1
  %33 = extractvalue { i64, i64, i64, %swift.bridge* } %30, 2
  %34 = extractvalue { i64, i64, i64, %swift.bridge* } %30, 3
  %35 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %34) #2
  %36 = tail call swiftcc i64 @"$sSs8distance4from2toSiSS5IndexV_AEtF"(i64 %31, i64 %32, i64 %31, i64 %32, i64 %33, %swift.bridge* %34)
  call void @swift_bridgeObjectRelease_n(%swift.bridge* %34, i32 2)
  %37 = icmp slt i64 %36, %11
  br i1 %37, label %.sink.split, label %.preheader47

.preheader47:                                     ; preds = %26
  %38 = shl i64 %9, 2
  %39 = and i64 %38, 1125899906842620
  %40 = icmp eq i64 %39, 0
  br label %41

41:                                               ; preds = %.preheader47, %99
  %42 = phi i64 [ %92, %99 ], [ %11, %.preheader47 ]
  %43 = phi i64 [ %97, %99 ], [ %28, %.preheader47 ]
  %44 = phi i64 [ %43, %99 ], [ 15, %.preheader47 ]
  %45 = lshr i64 %44, 14
  %46 = icmp ult i64 %24, %45
  br i1 %46, label %118, label %47, !prof !6

47:                                               ; preds = %41
  %48 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %49 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %44, i64 %23, i64 %0, %swift.bridge* %1)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %1) #2
  %50 = extractvalue { i64, i64, i64, %swift.bridge* } %49, 0
  %51 = extractvalue { i64, i64, i64, %swift.bridge* } %49, 1
  %52 = extractvalue { i64, i64, i64, %swift.bridge* } %49, 2
  %53 = extractvalue { i64, i64, i64, %swift.bridge* } %49, 3
  %54 = lshr i64 %51, 14
  %55 = lshr i64 %50, 14
  %56 = icmp eq i64 %55, %54
  %57 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #2
  br i1 %56, label %.loopexit, label %58

58:                                               ; preds = %47
  %59 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %53) #2
  %60 = tail call swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64 %50, i64 %50, i64 %51, i64 %52, %swift.bridge* %53)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %53) #2
  br i1 %40, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %58, %86
  %61 = phi i64 [ %83, %86 ], [ 0, %58 ]
  %62 = phi i64 [ %64, %86 ], [ %50, %58 ]
  %63 = phi i64 [ %66, %86 ], [ 15, %58 ]
  %64 = phi i64 [ %88, %86 ], [ %60, %58 ]
  %65 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #2
  %66 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %63, i64 %2, %swift.bridge* %3)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %3) #2
  %67 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %62, i64 %0, %swift.bridge* %1)
  %68 = extractvalue { i64, %swift.bridge* } %67, 0
  %69 = extractvalue { i64, %swift.bridge* } %67, 1
  %70 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %63, i64 %2, %swift.bridge* %3)
  %71 = extractvalue { i64, %swift.bridge* } %70, 0
  %72 = extractvalue { i64, %swift.bridge* } %70, 1
  %73 = icmp eq i64 %68, %71
  %74 = icmp eq %swift.bridge* %69, %72
  %or.cond = select i1 %73, i1 %74, i1 false
  br i1 %or.cond, label %75, label %76

75:                                               ; preds = %.preheader
  call void @swift_bridgeObjectRelease_n(%swift.bridge* %69, i32 2)
  br label %82

76:                                               ; preds = %.preheader
  %77 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %68, %swift.bridge* %69, i64 %71, %swift.bridge* %72, i8 0)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %69) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %72) #2
  br i1 %77, label %82, label %78

78:                                               ; preds = %76
  %79 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %61, i64 1)
  %80 = extractvalue { i64, i1 } %79, 0
  %81 = extractvalue { i64, i1 } %79, 1
  br i1 %81, label %119, label %82, !prof !6

82:                                               ; preds = %78, %76, %75
  %83 = phi i64 [ %61, %75 ], [ %61, %76 ], [ %80, %78 ]
  %84 = lshr i64 %64, 14
  %85 = icmp eq i64 %84, %54
  br i1 %85, label %.loopexit, label %86

86:                                               ; preds = %82
  %87 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %53) #2
  %88 = tail call swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64 %64, i64 %50, i64 %51, i64 %52, %swift.bridge* %53)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %53) #2
  %89 = lshr i64 %66, 14
  %90 = icmp eq i64 %89, %39
  br i1 %90, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %82, %86, %47, %58
  %91 = phi i64 [ 0, %58 ], [ 0, %47 ], [ %83, %86 ], [ %83, %82 ]
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %3) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %53) #2
  %92 = tail call i64 @llvm.smin.i64(i64 %91, i64 %42)
  %93 = lshr i64 %43, 14
  %94 = icmp eq i64 %93, %24
  br i1 %94, label %.sink.split, label %95

95:                                               ; preds = %.loopexit
  %96 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %97 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %43, i64 %0, %swift.bridge* %1)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %1) #2
  %98 = icmp ult i64 %24, %93
  br i1 %98, label %120, label %99, !prof !6

99:                                               ; preds = %95
  %100 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %101 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %43, i64 %23, i64 %0, %swift.bridge* %1)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %1) #2
  %102 = extractvalue { i64, i64, i64, %swift.bridge* } %101, 0
  %103 = extractvalue { i64, i64, i64, %swift.bridge* } %101, 1
  %104 = extractvalue { i64, i64, i64, %swift.bridge* } %101, 2
  %105 = extractvalue { i64, i64, i64, %swift.bridge* } %101, 3
  %106 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %105) #2
  %107 = tail call swiftcc i64 @"$sSs8distance4from2toSiSS5IndexV_AEtF"(i64 %102, i64 %103, i64 %102, i64 %103, i64 %104, %swift.bridge* %105)
  call void @swift_bridgeObjectRelease_n(%swift.bridge* %105, i32 2)
  %108 = icmp slt i64 %107, %11
  br i1 %108, label %.sink.split, label %41

.sink.split:                                      ; preds = %.loopexit, %99, %26
  %.ph = phi i64 [ %11, %26 ], [ %92, %99 ], [ %92, %.loopexit ]
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %1) #2
  br label %109

109:                                              ; preds = %.sink.split, %entry
  %110 = phi i64 [ %11, %entry ], [ %.ph, %.sink.split ]
  %111 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #7
  %112 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %111, i64 64, i64 7) #2
  %113 = bitcast %swift.refcounted* %112 to %Ts28__ContiguousArrayStorageBaseC*
  %114 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %112, i64 1
  %._storage.count._value = bitcast %swift.refcounted* %114 to i64*
  store i64 1, i64* %._storage.count._value, align 8
  %._storage._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %112, i64 1, i32 1
  store i64 2, i64* %._storage._capacityAndFlags, align 8
  %115 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %112, i64 2
  %116 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %112, i64 3, i32 1
  %117 = bitcast i64* %116 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %117, align 8
  %._value9 = bitcast %swift.refcounted* %115 to i64*
  store i64 %110, i64* %._value9, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %113, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  tail call void @swift_release(%swift.refcounted* %112) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %3) #2
  ret void

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

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

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

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

declare swiftcc i64 @"$sSS5countSivg"(i64, %swift.bridge*) local_unnamed_addr #0

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

declare swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64, i64, %swift.bridge*) local_unnamed_addr #0

define linkonce_odr hidden swiftcc { i64, i64, i64, %swift.bridge* } @"$sSlsEy11SubSequenceQzqd__cSXRd__5BoundQyd__5IndexRtzluigSS_s16PartialRangeFromVySSAEVGTg5"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #0 {
entry:
  %3 = ptrtoint %swift.bridge* %2 to i64
  %4 = and i64 %3, 2305843009213693952
  %5 = icmp eq i64 %4, 0
  %6 = lshr i64 %3, 56
  %7 = and i64 %6, 15
  %8 = select i1 %5, i64 %1, i64 %7
  %9 = shl i64 %8, 16
  %10 = lshr exact i64 %9, 14
  %11 = lshr i64 %0, 14
  %12 = icmp ult i64 %10, %11
  br i1 %12, label %20, label %13, !prof !6

13:                                               ; preds = %entry
  %14 = and i64 %3, 1152921504606846976
  %15 = icmp ne i64 %14, 0
  %16 = and i64 %1, 576460752303423488
  %17 = icmp eq i64 %16, 0
  %or.cond = select i1 %15, i1 %17, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %18 = or i64 %9, %.v
  %19 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %0, i64 %18, i64 %1, %swift.bridge* %2)
  ret { i64, i64, i64, %swift.bridge* } %19

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

declare swiftcc i64 @"$sSs8distance4from2toSiSS5IndexV_AEtF"(i64, i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

declare swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

declare swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

declare swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64, i64, %swift.bridge*) local_unnamed_addr #0

declare swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64, %swift.bridge*, i64, %swift.bridge*, i8) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree noinline nounwind readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* %0) local_unnamed_addr #4 {
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 !6

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) #8
  %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 #5

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

declare swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC*, i64, %swift.bridge*, i64, %swift.bridge*) local_unnamed_addr #0

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

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

; Function Attrs: nounwind
declare void @swift_bridgeObjectRelease_n(%swift.bridge*, i32) #2

define hidden swiftcc { i64, %swift.bridge* } @"$s7llvm_O34main5text15text2ySS_SStFfA_"() local_unnamed_addr #0 {
  %1 = tail call swiftcc { i64, %swift.bridge* } @"$s7llvm_O34main5text15text2ySS_SStFfA0_"() #0
  %2 = extractvalue { i64, %swift.bridge* } %1, 0
  %3 = insertvalue { i64, %swift.bridge* } poison, i64 %2, 0
  %4 = extractvalue { i64, %swift.bridge* } %1, 1
  %5 = insertvalue { i64, %swift.bridge* } %3, %swift.bridge* %4, 1
  ret { i64, %swift.bridge* } %5
}

attributes #0 = { "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 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #4 = { mustprogress nofree noinline nounwind 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 #5 = { argmemonly nounwind }
attributes #6 = { nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #7 = { nounwind readonly }
attributes #8 = { argmemonly nounwind readonly }

!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 = !{!"branch_weights", i32 1, i32 2000}
