var week: [String: Int]
week = [:]
week["SUN"] = 7
week["MON"] = 6
week["TUE"] = 5
week["WED"] = 4
week["THU"] = 3
week["FRI"] = 2
week["SAT"] = 1

let s = readLine()!
print(week[s]!)
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_473/llvm_OZ.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_473/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"

%TSD = type <{ %TSD8_VariantV }>
%TSD8_VariantV = type <{ %Ts14_BridgeStorageV }>
%Ts14_BridgeStorageV = type <{ %swift.bridge* }>
%swift.bridge = type opaque
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = 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 = type { i64 }
%swift.type_descriptor = type opaque
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%swift.refcounted = type { %swift.type*, i64 }
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSi = type <{ i64 }>
%TSu = type <{ i64 }>
%Ts22__RawDictionaryStorageC = type <{ %swift.refcounted, %TSi, %TSi, %Ts4Int8V, %Ts4Int8V, %Ts5Int16V, %Ts5Int32V, %TSi, %TSv, %TSv }>
%Ts4Int8V = type <{ i8 }>
%Ts5Int16V = type <{ i16 }>
%Ts5Int32V = type <{ i32 }>
%TSv = type <{ i8* }>
%Ts6HasherV = type <{ %Ts6HasherV5_CoreV }>
%Ts6HasherV5_CoreV = type <{ %Ts6HasherV11_TailBufferV, %Ts6HasherV6_StateV }>
%Ts6HasherV11_TailBufferV = type <{ %Ts6UInt64V }>
%Ts6HasherV6_StateV = type <{ %Ts6UInt64V, %Ts6UInt64V, %Ts6UInt64V, %Ts6UInt64V, %Ts6UInt64V, %Ts6UInt64V, %Ts6UInt64V, %Ts6UInt64V }>
%Ts17_NativeDictionaryV = type <{ %Ts22__RawDictionaryStorageC* }>
%Ts13_UnsafeBitsetV4WordV = type <{ %TSu }>

@"$s7llvm_OZ4weekSDySSSiGvp" = hidden global %TSD zeroinitializer, align 8
@"$s7llvm_OZ1sSSvp" = hidden local_unnamed_addr global %TSS zeroinitializer, align 8
@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, align 8
@"$sSSN" = external global %swift.type, align 8
@"$sSiN" = external global %swift.type, align 8
@"$sSSSHsWP" = external global i8*, 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
@"\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
@"$ss17_NativeDictionaryVMn" = external global %swift.type_descriptor, align 4
@"got.$ss17_NativeDictionaryVMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss17_NativeDictionaryVMn"
@"symbolic _____ySSSiG s17_NativeDictionaryV" = linkonce_odr hidden constant <{ i8, i32, [6 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss17_NativeDictionaryVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [6 x i8], i8 }>, <{ i8, i32, [6 x i8], i8 }>* @"symbolic _____ySSSiG s17_NativeDictionaryV", i32 0, i32 1) to i64)) to i32), [6 x i8] c"ySSSiG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss17_NativeDictionaryVySSSiGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [6 x i8], i8 }>* @"symbolic _____ySSSiG s17_NativeDictionaryV" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss17_NativeDictionaryVySSSiGMD" to i64)) to i32), i32 -11 }, align 8
@__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"

; 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-scratch1 = alloca [24 x i8], align 8
  %2 = tail call swiftcc %swift.bridge* @"$sSD17dictionaryLiteralSDyxq_Gx_q_td_tcfC"(%Ts28__ContiguousArrayStorageBaseC* nonnull bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %swift.type* nonnull @"$sSSN", %swift.type* nonnull @"$sSiN", i8** nonnull @"$sSSSHsWP")
  %3 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %3)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSD* @"$s7llvm_OZ4weekSDySSSiGvp" to i8*), [24 x i8]* nonnull %access-scratch, i64 33, i8* null) #2
  store %swift.bridge* %2, %swift.bridge** getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0, i32 0, i32 0), align 8
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 7, i64 5133651, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 6, i64 5132109, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 5, i64 4543828, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 4, i64 4474199, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 3, i64 5589076, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 2, i64 4805190, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 1, i64 5521747, %swift.bridge* nonnull inttoptr (i64 -2089670227099910144 to %swift.bridge*), %TSD8_VariantV* nocapture nonnull swiftself dereferenceable(8) getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0))
  call void @swift_endAccess([24 x i8]* nonnull %access-scratch) #2
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %3)
  %4 = call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %5 = extractvalue { i64, i64 } %4, 1
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %25, label %7

7:                                                ; preds = %entry
  %8 = extractvalue { i64, i64 } %4, 0
  %9 = inttoptr i64 %5 to %swift.bridge*
  store i64 %8, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  store %swift.bridge* %9, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %10 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #9
  %11 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %10, i64 64, i64 7) #2
  %12 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %11, i64 1
  %._storage.count._value = bitcast %swift.refcounted* %12 to i64*
  store i64 1, i64* %._storage.count._value, align 8
  %._storage._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %11, i64 1, i32 1
  store i64 2, i64* %._storage._capacityAndFlags, align 8
  %13 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch1, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %13)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSD* @"$s7llvm_OZ4weekSDySSSiGvp" to i8*), [24 x i8]* nonnull %access-scratch1, i64 32, i8* null) #2
  %14 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSD, %TSD* @"$s7llvm_OZ4weekSDySSSiGvp", i64 0, i32 0, i32 0, i32 0), align 8
  %15 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %9) #2
  %16 = call swiftcc { i64, i8 } @"$sSDyq_SgxcigSS_SiTg5"(i64 %8, %swift.bridge* nonnull %9, %swift.bridge* %14)
  %17 = extractvalue { i64, i8 } %16, 1
  %18 = and i8 %17, 1
  %.not = icmp eq i8 %18, 0
  call void @swift_endAccess([24 x i8]* nonnull %access-scratch1) #2
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %13)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %9) #2
  br i1 %.not, label %19, label %26

19:                                               ; preds = %7
  %20 = extractvalue { i64, i8 } %16, 0
  %21 = bitcast %swift.refcounted* %11 to %Ts28__ContiguousArrayStorageBaseC*
  %22 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %11, i64 2
  %23 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %11, i64 3, i32 1
  %24 = bitcast i64* %23 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %24, align 8
  %._value = bitcast %swift.refcounted* %22 to i64*
  store i64 %20, i64* %._value, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %21, 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 %11) #2
  ret i32 0

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

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

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

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

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

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i8 } @"$sSDyq_SgxcigSS_SiTg5"(i64 %0, %swift.bridge* %1, %swift.bridge* %2) local_unnamed_addr #0 {
entry:
  %3 = bitcast %swift.bridge* %2 to %Ts22__RawDictionaryStorageC*
  %._value = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %3, i64 0, i32 1, i32 0
  %4 = load i64, i64* %._value, align 8, !range !6
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %9, label %6

6:                                                ; preds = %entry
  %7 = tail call swiftcc { i64, i1 } @"$ss22__RawDictionaryStorageC4findys10_HashTableV6BucketV6bucket_Sb5foundtxSHRzlFSS_Tg5"(i64 %0, %swift.bridge* %1, %Ts22__RawDictionaryStorageC* nonnull swiftself %3)
  %8 = extractvalue { i64, i1 } %7, 1
  br i1 %8, label %14, label %9

9:                                                ; preds = %6, %entry, %14
  %10 = phi i64 [ %18, %14 ], [ 0, %entry ], [ 0, %6 ]
  %11 = phi i8 [ 0, %14 ], [ 1, %entry ], [ 1, %6 ]
  %12 = insertvalue { i64, i8 } undef, i64 %10, 0
  %13 = insertvalue { i64, i8 } %12, i8 %11, 1
  ret { i64, i8 } %13

14:                                               ; preds = %6
  %15 = extractvalue { i64, i1 } %7, 0
  %._rawValue = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %3, i64 0, i32 9, i32 0
  %16 = bitcast i8** %._rawValue to %TSi**
  %17 = load %TSi*, %TSi** %16, align 8
  %._value1 = getelementptr inbounds %TSi, %TSi* %17, i64 %15, i32 0
  %18 = load i64, i64* %._value1, align 8
  br label %9
}

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc { i64, i1 } @"$ss22__RawDictionaryStorageC4findys10_HashTableV6BucketV6bucket_Sb5foundtxSHRzlFSS_Tg5"(i64 %0, %swift.bridge* %1, %Ts22__RawDictionaryStorageC* swiftself %2) local_unnamed_addr #3 {
entry:
  %3 = alloca %Ts6HasherV, align 8
  %._value = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %2, i64 0, i32 7, i32 0
  %4 = load i64, i64* %._value, align 8
  %5 = bitcast %Ts6HasherV* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 72, i8* nonnull %5)
  call swiftcc void @"$ss6HasherV5_seedABSi_tcfC"(%Ts6HasherV* noalias nocapture nonnull sret(%Ts6HasherV) %3, i64 %4)
  call swiftcc void @"$sSS4hash4intoys6HasherVz_tF"(%Ts6HasherV* nocapture nonnull dereferenceable(72) %3, i64 %0, %swift.bridge* %1)
  %6 = call swiftcc i64 @"$ss6HasherV9_finalizeSiyF"(%Ts6HasherV* nocapture nonnull swiftself dereferenceable(72) %3)
  call void @llvm.lifetime.end.p0i8(i64 72, i8* nonnull %5)
  %7 = tail call swiftcc { i64, i1 } @"$ss22__RawDictionaryStorageC4find_9hashValues10_HashTableV6BucketV6bucket_Sb5foundtx_SitSHRzlFSS_Tg5"(i64 %0, %swift.bridge* %1, i64 %6, %Ts22__RawDictionaryStorageC* swiftself %2)
  ret { i64, i1 } %7
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSD8_VariantV8setValue_6forKeyyq_n_xtFSS_SiTg5"(i64 %0, i64 %1, %swift.bridge* %2, %TSD8_VariantV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #0 {
entry:
  %4 = alloca %swift.bridge*, align 8
  %tmpcast = bitcast %swift.bridge** %4 to %Ts17_NativeDictionaryV*
  %.object.rawValue = getelementptr inbounds %TSD8_VariantV, %TSD8_VariantV* %3, i64 0, i32 0, i32 0
  %5 = bitcast %TSD8_VariantV* %3 to %swift.refcounted**
  %6 = load %swift.refcounted*, %swift.refcounted** %5, align 8
  %7 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %6) #10
  %8 = bitcast %swift.bridge** %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %8)
  %9 = bitcast %TSD8_VariantV* %3 to %Ts22__RawDictionaryStorageC**
  %10 = load %Ts22__RawDictionaryStorageC*, %Ts22__RawDictionaryStorageC** %9, align 8
  %._storage = bitcast %swift.bridge** %4 to %Ts22__RawDictionaryStorageC**
  store %Ts22__RawDictionaryStorageC* %10, %Ts22__RawDictionaryStorageC** %._storage, align 8
  store %swift.bridge* inttoptr (i64 -9223372036854775808 to %swift.bridge*), %swift.bridge** %.object.rawValue, align 8
  call swiftcc void @"$ss17_NativeDictionaryV8setValue_6forKey8isUniqueyq_n_xSbtFSS_SiTg5"(i64 %0, i64 %1, %swift.bridge* %2, i1 %7, %Ts17_NativeDictionaryV* nocapture nonnull swiftself dereferenceable(8) %tmpcast)
  %11 = load %swift.bridge*, %swift.bridge** %4, align 8
  %12 = load %swift.bridge*, %swift.bridge** %.object.rawValue, align 8
  store %swift.bridge* %11, %swift.bridge** %.object.rawValue, align 8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %12) #2
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %8)
  ret void
}

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

; Function Attrs: minsize optsize
declare swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1) local_unnamed_addr #0

; Function Attrs: cold noreturn nounwind
declare void @llvm.trap() #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) #11
  %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: nounwind
declare %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned) local_unnamed_addr #2

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

; Function Attrs: minsize optsize
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: minsize optsize
declare swiftcc void @"$ss6HasherV5_seedABSi_tcfC"(%Ts6HasherV* noalias nocapture sret(%Ts6HasherV), i64) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc void @"$sSS4hash4intoys6HasherVz_tF"(%Ts6HasherV* nocapture dereferenceable(72), i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc i64 @"$ss6HasherV9_finalizeSiyF"(%Ts6HasherV* nocapture swiftself dereferenceable(72)) local_unnamed_addr #0

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc { i64, i1 } @"$ss22__RawDictionaryStorageC4find_9hashValues10_HashTableV6BucketV6bucket_Sb5foundtx_SitSHRzlFSS_Tg5"(i64 %0, %swift.bridge* %1, i64 %2, %Ts22__RawDictionaryStorageC* swiftself %3) local_unnamed_addr #3 {
entry:
  %4 = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %3, i64 1
  %tailaddr = bitcast %Ts22__RawDictionaryStorageC* %4 to %Ts13_UnsafeBitsetV4WordV*
  %._value = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %3, i64 0, i32 3, i32 0
  %5 = load i8, i8* %._value, align 8
  %6 = and i8 %5, 63
  %7 = zext i8 %6 to i64
  %notmask = shl nsw i64 -1, %7
  %8 = xor i64 %notmask, -1
  %9 = and i64 %8, %2
  %10 = lshr i64 %9, 6
  %.value._value = getelementptr inbounds %Ts13_UnsafeBitsetV4WordV, %Ts13_UnsafeBitsetV4WordV* %tailaddr, i64 %10, i32 0, i32 0
  %11 = load i64, i64* %.value._value, align 8
  %12 = and i64 %9, 63
  %13 = shl nuw i64 1, %12
  %14 = and i64 %13, %11
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %.loopexit, label %16

16:                                               ; preds = %entry
  %._rawValue = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %3, i64 0, i32 8, i32 0
  %17 = bitcast i8** %._rawValue to %TSS**
  %18 = load %TSS*, %TSS** %17, align 8
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %18, i64 %9, i32 0, i32 0, i32 0, i32 0
  %19 = load i64, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %18, i64 %9, i32 0, i32 0, i32 1
  %20 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  %21 = icmp eq i64 %19, %0
  %22 = icmp eq %swift.bridge* %20, %1
  %or.cond = select i1 %21, i1 %22, i1 false
  br i1 %or.cond, label %.loopexit, label %23

23:                                               ; preds = %16
  %24 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %19, %swift.bridge* %20, i64 %0, %swift.bridge* %1, i8 0)
  br i1 %24, label %.loopexit, label %25

25:                                               ; preds = %23
  %26 = add i64 %9, 1
  %27 = and i64 %26, %8
  %28 = lshr i64 %27, 6
  %.value2._value = getelementptr inbounds %Ts13_UnsafeBitsetV4WordV, %Ts13_UnsafeBitsetV4WordV* %tailaddr, i64 %28, i32 0, i32 0
  %29 = load i64, i64* %.value2._value, align 8
  %30 = and i64 %27, 63
  %31 = shl nuw i64 1, %30
  %32 = and i64 %29, %31
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %43, %.preheader, %45, %16, %25, %23, %entry
  %34 = phi i64 [ %9, %entry ], [ %9, %23 ], [ %27, %25 ], [ %9, %16 ], [ %38, %43 ], [ %38, %.preheader ], [ %47, %45 ]
  %35 = phi i1 [ false, %entry ], [ true, %23 ], [ false, %25 ], [ true, %16 ], [ true, %43 ], [ true, %.preheader ], [ false, %45 ]
  %36 = insertvalue { i64, i1 } undef, i64 %34, 0
  %37 = insertvalue { i64, i1 } %36, i1 %35, 1
  ret { i64, i1 } %37

.preheader:                                       ; preds = %25, %45
  %38 = phi i64 [ %47, %45 ], [ %27, %25 ]
  %._guts3._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %18, i64 %38, i32 0, i32 0, i32 0, i32 0
  %39 = load i64, i64* %._guts3._object._countAndFlagsBits._value, align 8
  %._guts3._object._object = getelementptr inbounds %TSS, %TSS* %18, i64 %38, i32 0, i32 0, i32 1
  %40 = load %swift.bridge*, %swift.bridge** %._guts3._object._object, align 8
  %41 = icmp eq i64 %39, %0
  %42 = icmp eq %swift.bridge* %40, %1
  %or.cond12 = select i1 %41, i1 %42, i1 false
  br i1 %or.cond12, label %.loopexit, label %43

43:                                               ; preds = %.preheader
  %44 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %39, %swift.bridge* %40, i64 %0, %swift.bridge* %1, i8 0)
  br i1 %44, label %.loopexit, label %45

45:                                               ; preds = %43
  %46 = add i64 %38, 1
  %47 = and i64 %46, %8
  %48 = lshr i64 %47, 6
  %.value4._value = getelementptr inbounds %Ts13_UnsafeBitsetV4WordV, %Ts13_UnsafeBitsetV4WordV* %tailaddr, i64 %48, i32 0, i32 0
  %49 = load i64, i64* %.value4._value, align 8
  %50 = and i64 %47, 63
  %51 = shl nuw i64 1, %50
  %52 = and i64 %49, %51
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %.loopexit, label %.preheader
}

; Function Attrs: minsize optsize
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) #7

; Function Attrs: mustprogress nounwind willreturn
declare zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted*) local_unnamed_addr #8

; Function Attrs: minsize optsize
declare swiftcc i1 @"$ss17_NativeDictionaryV12ensureUnique02isD08capacityS2b_SitF"(i1, i64, %swift.type*, %Ts17_NativeDictionaryV* nocapture swiftself dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$ss17_NativeDictionaryV8setValue_6forKey8isUniqueyq_n_xSbtFSS_SiTg5"(i64 %0, i64 %1, %swift.bridge* %2, i1 %3, %Ts17_NativeDictionaryV* nocapture swiftself dereferenceable(8) %4) local_unnamed_addr #0 {
entry:
  %._storage = getelementptr inbounds %Ts17_NativeDictionaryV, %Ts17_NativeDictionaryV* %4, i64 0, i32 0
  %5 = load %Ts22__RawDictionaryStorageC*, %Ts22__RawDictionaryStorageC** %._storage, align 8
  %6 = tail call swiftcc { i64, i1 } @"$ss22__RawDictionaryStorageC4findys10_HashTableV6BucketV6bucket_Sb5foundtxSHRzlFSS_Tg5"(i64 %1, %swift.bridge* %2, %Ts22__RawDictionaryStorageC* swiftself %5)
  %7 = extractvalue { i64, i1 } %6, 1
  %._value = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %5, i64 0, i32 1, i32 0
  %8 = load i64, i64* %._value, align 8
  %not. = xor i1 %7, true
  %. = zext i1 %not. to i64
  %9 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %8, i64 %.)
  %10 = extractvalue { i64, i1 } %9, 1
  br i1 %10, label %30, label %11, !prof !7

11:                                               ; preds = %entry
  %12 = extractvalue { i64, i1 } %9, 0
  %13 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss17_NativeDictionaryVySSSiGMD") #9
  %14 = tail call swiftcc i1 @"$ss17_NativeDictionaryV12ensureUnique02isD08capacityS2b_SitF"(i1 %3, i64 %12, %swift.type* %13, %Ts17_NativeDictionaryV* nocapture nonnull swiftself dereferenceable(8) %4)
  br i1 %14, label %15, label %21

15:                                               ; preds = %11
  %16 = load %Ts22__RawDictionaryStorageC*, %Ts22__RawDictionaryStorageC** %._storage, align 8
  %17 = tail call swiftcc { i64, i1 } @"$ss22__RawDictionaryStorageC4findys10_HashTableV6BucketV6bucket_Sb5foundtxSHRzlFSS_Tg5"(i64 %1, %swift.bridge* %2, %Ts22__RawDictionaryStorageC* swiftself %16)
  %18 = extractvalue { i64, i1 } %17, 1
  %19 = xor i1 %7, %18
  br i1 %19, label %20, label %21

20:                                               ; preds = %15
  tail call swiftcc void @"$ss53KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTSys5NeverOypXpF"(%swift.type* nonnull @"$sSSN")
  unreachable

21:                                               ; preds = %15, %11
  %.pn = phi { i64, i1 } [ %6, %11 ], [ %17, %15 ]
  %22 = extractvalue { i64, i1 } %.pn, 0
  %23 = load %Ts22__RawDictionaryStorageC*, %Ts22__RawDictionaryStorageC** %._storage, align 8
  br i1 %7, label %24, label %27

24:                                               ; preds = %21
  %._rawValue = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %23, i64 0, i32 9, i32 0
  %25 = bitcast i8** %._rawValue to %TSi**
  %26 = load %TSi*, %TSi** %25, align 8
  %._value2 = getelementptr inbounds %TSi, %TSi* %26, i64 %22, i32 0
  store i64 %0, i64* %._value2, align 8
  br label %29

27:                                               ; preds = %21
  tail call swiftcc void @"$ss17_NativeDictionaryV7_insert2at3key5valueys10_HashTableV6BucketV_xnq_ntFSS_SiTg5"(i64 %22, i64 %1, %swift.bridge* %2, i64 %0, %Ts22__RawDictionaryStorageC* %23)
  %28 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %2) #2
  br label %29

29:                                               ; preds = %24, %27
  ret void

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$ss17_NativeDictionaryV7_insert2at3key5valueys10_HashTableV6BucketV_xnq_ntFSS_SiTg5"(i64 %0, i64 %1, %swift.bridge* %2, i64 %3, %Ts22__RawDictionaryStorageC* %4) local_unnamed_addr #0 {
entry:
  %5 = lshr i64 %0, 6
  %6 = and i64 %0, 63
  %7 = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %4, i64 1
  %tailaddr = bitcast %Ts22__RawDictionaryStorageC* %7 to %Ts13_UnsafeBitsetV4WordV*
  %8 = shl nuw i64 1, %6
  %.value._value = getelementptr inbounds %Ts13_UnsafeBitsetV4WordV, %Ts13_UnsafeBitsetV4WordV* %tailaddr, i64 %5, i32 0, i32 0
  %9 = load i64, i64* %.value._value, align 8
  %10 = or i64 %9, %8
  store i64 %10, i64* %.value._value, align 8
  %._rawValue = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %4, i64 0, i32 8, i32 0
  %11 = bitcast i8** %._rawValue to %TSS**
  %12 = load %TSS*, %TSS** %11, align 8
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %12, i64 %0, i32 0, i32 0, i32 0, i32 0
  store i64 %1, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %12, i64 %0, i32 0, i32 0, i32 1
  store %swift.bridge* %2, %swift.bridge** %._guts._object._object, align 8
  %._rawValue2 = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %4, i64 0, i32 9, i32 0
  %13 = bitcast i8** %._rawValue2 to %TSi**
  %14 = load %TSi*, %TSi** %13, align 8
  %._value = getelementptr inbounds %TSi, %TSi* %14, i64 %0, i32 0
  store i64 %3, i64* %._value, align 8
  %._value3 = getelementptr inbounds %Ts22__RawDictionaryStorageC, %Ts22__RawDictionaryStorageC* %4, i64 0, i32 1, i32 0
  %15 = load i64, i64* %._value3, align 8
  %16 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %15, i64 1)
  %17 = extractvalue { i64, i1 } %16, 1
  br i1 %17, label %20, label %18, !prof !7

18:                                               ; preds = %entry
  %19 = extractvalue { i64, i1 } %16, 0
  store i64 %19, i64* %._value3, align 8
  ret void

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

; Function Attrs: minsize noinline optsize
declare swiftcc void @"$ss53KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTSys5NeverOypXpF"(%swift.type*) local_unnamed_addr #3

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 = { argmemonly mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { nounwind }
attributes #3 = { 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 #4 = { cold noreturn nounwind }
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 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #8 = { mustprogress nounwind willreturn }
attributes #9 = { nounwind readonly }
attributes #10 = { nounwind willreturn }
attributes #11 = { 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 = !{i64 0, i64 9223372036854775807}
!7 = !{!"branch_weights", i32 1, i32 2000}
