func main(text1: String = readLine()!, text2: String = readLine()!) {
    let text2Count = text2.count
    var searchText1 = text1
    searchText1.removeLast(text2Count - 1)
    var result = text2Count
    for text1Index in searchText1.indices {
        var difference = 0
        for (character1, character2) in zip(text1[text1Index...], text2) where character1 != character2 {
            difference += 1
        }
        if result > difference {
            result = difference
        }
    }
    print(result)
}

main()
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_532/llvm_O3.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_532/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
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%Ts12Zip2SequenceV8IteratorVySsSS_G = type <{ %Ts16IndexingIteratorVySsG, %TSS8IteratorV, %TSb }>
%Ts16IndexingIteratorVySsG = type <{ %TSs, %TSS5IndexV }>
%TSs = type <{ %Ts5SliceVySSG }>
%Ts5SliceVySSG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS }>
%TSS5IndexV = type <{ %Ts6UInt64V }>
%TSS8IteratorV = type <{ %Ts11_StringGutsV, %TSi, %TSi }>
%TSi = type <{ i64 }>
%TSb = type <{ i1 }>
%swift.refcounted = type { %swift.type*, i64 }
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%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 = alloca %TSS, align 8
  %5 = alloca %Ts12Zip2SequenceV8IteratorVySsSS_G, align 8
  %6 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %2, %swift.bridge* %3)
  %7 = bitcast %TSS* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %7)
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %4, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %4, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %1, %swift.bridge** %._guts._object._object, align 8
  %8 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %6, i64 -1)
  %9 = extractvalue { i64, i1 } %8, 1
  br i1 %9, label %112, label %10, !prof !6

10:                                               ; preds = %entry
  %11 = extractvalue { i64, i1 } %8, 0
  %12 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  call swiftcc void @"$sSmsSKRzrlE10removeLastyySiFSS_Tg5"(i64 %11, %TSS* nocapture nonnull swiftself dereferenceable(16) %4)
  %13 = load i64, i64* %._guts._object._countAndFlagsBits._value, align 8
  %14 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  %15 = ptrtoint %swift.bridge* %14 to i64
  %16 = and i64 %15, 2305843009213693952
  %17 = icmp eq i64 %16, 0
  %18 = lshr i64 %15, 56
  %19 = and i64 %18, 15
  %20 = select i1 %17, i64 %13, i64 %19
  %21 = shl i64 %20, 2
  %22 = and i64 %21, 1125899906842620
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %103, label %24

24:                                               ; preds = %10
  %25 = ptrtoint %swift.bridge* %3 to i64
  %26 = and i64 %25, 2305843009213693952
  %27 = icmp eq i64 %26, 0
  %28 = ptrtoint %swift.bridge* %1 to i64
  %29 = and i64 %28, 2305843009213693952
  %30 = icmp eq i64 %29, 0
  %31 = and i64 %28, 1152921504606846976
  %32 = icmp ne i64 %31, 0
  %33 = bitcast %Ts12Zip2SequenceV8IteratorVySsSS_G* %5 to i8*
  %34 = lshr i64 %28, 56
  %35 = and i64 %34, 15
  %36 = select i1 %30, i64 %0, i64 %35
  %37 = shl i64 %36, 16
  %38 = lshr exact i64 %37, 14
  %39 = and i64 %0, 576460752303423488
  %40 = icmp eq i64 %39, 0
  %or.cond23 = select i1 %32, i1 %40, i1 false
  %.v = select i1 %or.cond23, i64 11, i64 7
  %41 = or i64 %37, %.v
  %._baseStream1._elements._slice._startIndex._rawBits._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %._baseStream1._elements._slice._endIndex._rawBits._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0
  %._baseStream1._elements._slice._base._guts._object._countAndFlagsBits._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0
  %._baseStream1._elements._slice._base._guts._object._object = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 1
  %._baseStream1._position._rawBits._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 0, i32 1, i32 0, i32 0
  %42 = lshr i64 %25, 56
  %43 = and i64 %42, 15
  %44 = and i64 %2, 281474976710655
  %45 = select i1 %27, i64 %44, i64 %43
  %._baseStream2 = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 1
  %._baseStream2._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS8IteratorV, %TSS8IteratorV* %._baseStream2, i64 0, i32 0, i32 0, i32 0, i32 0
  %._baseStream2._guts._object._object = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 1, i32 0, i32 0, i32 1
  %._baseStream2._position._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 1, i32 1, i32 0
  %._baseStream2._end._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 1, i32 2, i32 0
  %._reachedEnd._value = getelementptr inbounds %Ts12Zip2SequenceV8IteratorVySsSS_G, %Ts12Zip2SequenceV8IteratorVySsSS_G* %5, i64 0, i32 2, i32 0
  %46 = bitcast i1* %._reachedEnd._value to i8*
  %47 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %14) #2
  br label %48

48:                                               ; preds = %.loopexit, %24
  %49 = phi i64 [ %6, %24 ], [ %99, %.loopexit ]
  %50 = phi i64 [ 15, %24 ], [ %52, %.loopexit ]
  %51 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %14) #2
  %52 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %50, i64 %13, %swift.bridge* %14)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %14) #2
  call void @llvm.lifetime.start.p0i8(i64 73, i8* nonnull %33)
  %53 = lshr i64 %50, 14
  %54 = icmp ult i64 %38, %53
  br i1 %54, label %113, label %55, !prof !6

55:                                               ; preds = %48
  %56 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %57 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %50, i64 %41, i64 %0, %swift.bridge* %1)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %1) #2
  %58 = extractvalue { i64, i64, i64, %swift.bridge* } %57, 0
  %59 = extractvalue { i64, i64, i64, %swift.bridge* } %57, 1
  %60 = extractvalue { i64, i64, i64, %swift.bridge* } %57, 2
  %61 = extractvalue { i64, i64, i64, %swift.bridge* } %57, 3
  store i64 %58, i64* %._baseStream1._elements._slice._startIndex._rawBits._value, align 8
  store i64 %59, i64* %._baseStream1._elements._slice._endIndex._rawBits._value, align 8
  store i64 %60, i64* %._baseStream1._elements._slice._base._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %61, %swift.bridge** %._baseStream1._elements._slice._base._guts._object._object, align 8
  store i64 %58, i64* %._baseStream1._position._rawBits._value, align 8
  store i64 %2, i64* %._baseStream2._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %3, %swift.bridge** %._baseStream2._guts._object._object, align 8
  store i64 0, i64* %._baseStream2._position._value, align 8
  store i64 %45, i64* %._baseStream2._end._value, align 8
  store i8 0, i8* %46, align 8
  %.unshifted = xor i64 %58, %59
  %62 = icmp ult i64 %.unshifted, 16384
  %63 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #2
  br i1 %62, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %55, %93
  %64 = phi i64 [ %91, %93 ], [ 0, %55 ]
  %65 = phi i64 [ %71, %93 ], [ %58, %55 ]
  %66 = phi i64 [ %94, %93 ], [ %59, %55 ]
  %67 = tail call swiftcc { i64, %swift.bridge* } @"$sSsySJSS5IndexVcig"(i64 %65, i64 %58, i64 %59, i64 %60, %swift.bridge* %61)
  %68 = extractvalue { i64, %swift.bridge* } %67, 0
  %69 = extractvalue { i64, %swift.bridge* } %67, 1
  %70 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %61) #2
  %71 = tail call swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64 %65, i64 %58, i64 %66, i64 %60, %swift.bridge* %61)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %61) #2
  %72 = call swiftcc { i64, i64 } @"$sSS8IteratorV4nextSJSgyF"(%TSS8IteratorV* nocapture nonnull swiftself dereferenceable(32) %._baseStream2)
  %73 = extractvalue { i64, i64 } %72, 0
  %74 = extractvalue { i64, i64 } %72, 1
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %.preheader
  %77 = extractvalue { i64, %swift.bridge* } %67, 1
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %77) #2
  br label %.loopexit

78:                                               ; preds = %.preheader
  %79 = inttoptr i64 %74 to %swift.bridge*
  %80 = icmp eq i64 %68, %73
  %81 = ptrtoint %swift.bridge* %69 to i64
  %82 = icmp eq i64 %74, %81
  %or.cond = select i1 %80, i1 %82, i1 false
  br i1 %or.cond, label %83, label %84

83:                                               ; preds = %78
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %69) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %79) #2
  br label %90

84:                                               ; preds = %78
  %85 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %68, %swift.bridge* %69, i64 %73, %swift.bridge* nonnull %79, i8 0)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %69) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %79) #2
  br i1 %85, label %90, label %86

86:                                               ; preds = %84
  %87 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %64, i64 1)
  %88 = extractvalue { i64, i1 } %87, 0
  %89 = extractvalue { i64, i1 } %87, 1
  br i1 %89, label %114, label %90, !prof !6

90:                                               ; preds = %86, %84, %83
  %91 = phi i64 [ %64, %83 ], [ %64, %84 ], [ %88, %86 ]
  %92 = load i1, i1* %._reachedEnd._value, align 8
  br i1 %92, label %.loopexit, label %93

93:                                               ; preds = %90
  %94 = load i64, i64* %._baseStream1._elements._slice._endIndex._rawBits._value, align 8
  %.unshifted31 = xor i64 %94, %71
  %95 = icmp ult i64 %.unshifted31, 16384
  br i1 %95, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %90, %93, %76, %55
  %96 = phi i64 [ %64, %76 ], [ 0, %55 ], [ %91, %93 ], [ %91, %90 ]
  %97 = load %swift.bridge*, %swift.bridge** %._baseStream1._elements._slice._base._guts._object._object, align 8
  %98 = load %swift.bridge*, %swift.bridge** %._baseStream2._guts._object._object, align 8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %98) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %97) #2
  call void @llvm.lifetime.end.p0i8(i64 73, i8* nonnull %33)
  %99 = tail call i64 @llvm.smin.i64(i64 %96, i64 %49)
  %100 = lshr i64 %52, 14
  %101 = icmp eq i64 %100, %22
  br i1 %101, label %102, label %48

102:                                              ; preds = %.loopexit
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %14) #2
  br label %103

103:                                              ; preds = %10, %102
  %104 = phi i64 [ %99, %102 ], [ %6, %10 ]
  %105 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #8
  %106 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %105, i64 64, i64 7) #2
  %107 = bitcast %swift.refcounted* %106 to %Ts28__ContiguousArrayStorageBaseC*
  %108 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 1
  %._storage.count._value = bitcast %swift.refcounted* %108 to i64*
  store i64 1, i64* %._storage.count._value, align 8
  %._storage._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 1, i32 1
  store i64 2, i64* %._storage._capacityAndFlags, align 8
  %109 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 2
  %110 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 3, i32 1
  %111 = bitcast i64* %110 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %111, align 8
  %._value13 = bitcast %swift.refcounted* %109 to i64*
  store i64 %104, i64* %._value13, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %107, 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* %106) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %14) #2
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %7)
  ret void

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

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

114:                                              ; preds = %86
  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: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #3

define linkonce_odr hidden swiftcc void @"$sSmsSKRzrlE10removeLastyySiFSS_Tg5"(i64 %0, %TSS* nocapture swiftself dereferenceable(16) %1) local_unnamed_addr #0 {
entry:
  %2 = icmp eq i64 %0, 0
  br i1 %2, label %3, label %4

3:                                                ; preds = %entry, %30
  ret void

4:                                                ; preds = %entry
  %5 = icmp slt i64 %0, 0
  br i1 %5, label %31, label %6, !prof !6

6:                                                ; preds = %4
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %1, i64 0, i32 0, i32 0, i32 0, i32 0
  %7 = load i64, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %1, i64 0, i32 0, i32 0, i32 1
  %8 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  %9 = ptrtoint %swift.bridge* %8 to i64
  %10 = and i64 %9, 2305843009213693952
  %11 = icmp eq i64 %10, 0
  %12 = lshr i64 %9, 56
  %13 = and i64 %12, 15
  %14 = select i1 %11, i64 %7, i64 %13
  %15 = shl i64 %14, 16
  %16 = and i64 %9, 1152921504606846976
  %17 = icmp ne i64 %16, 0
  %18 = and i64 %7, 576460752303423488
  %19 = icmp eq i64 %18, 0
  %or.cond = select i1 %17, i1 %19, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %20 = or i64 %15, %.v
  %21 = sub nsw i64 0, %0
  %22 = tail call swiftcc { i64, i8 } @"$sSS5index_8offsetBy07limitedC0SS5IndexVSgAE_SiAEtF"(i64 %20, i64 %21, i64 15, i64 %7, %swift.bridge* %8)
  %23 = extractvalue { i64, i8 } %22, 0
  %24 = extractvalue { i64, i8 } %22, 1
  %25 = and i8 %24, 1
  %.not = icmp eq i8 %25, 0
  br i1 %.not, label %26, label %32

26:                                               ; preds = %6
  %27 = lshr exact i64 %15, 14
  %28 = lshr i64 %23, 14
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %33, label %30, !prof !6

30:                                               ; preds = %26
  tail call swiftcc void @"$sSS14removeSubrangeyySnySS5IndexVGF"(i64 %23, i64 %20, %TSS* nocapture nonnull swiftself dereferenceable(16) %1)
  br label %3

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

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

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

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

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

declare swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(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, %swift.bridge* } @"$sSsySJSS5IndexVcig"(i64, 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, i64 } @"$sSS8IteratorV4nextSJSgyF"(%TSS8IteratorV* nocapture swiftself dereferenceable(32)) local_unnamed_addr #0

; 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) #9
  %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

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) #6

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

declare swiftcc void @"$sSS14removeSubrangeyySnySS5IndexVGF"(i64, i64, %TSS* nocapture swiftself dereferenceable(16)) local_unnamed_addr #0

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

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 = { argmemonly mustprogress nocallback nofree nosync nounwind 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 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #7 = { nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #8 = { nounwind readonly }
attributes #9 = { 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}
