Avatar
omochimetaru 1/11/2019 2:53 AM
define hidden swiftcc void @"$S1a5testAyyF"() #0 { entry: %0 = alloca %T1a10HaveResultV, align 8 %1 = bitcast %T1a10HaveResultV* %0 to %swift.opaque** store %swift.opaque* null, %swift.opaque** %1, align 8 %2 = bitcast %T1a10HaveResultV* %0 to i8* call void @llvm.lifetime.start.p0i8(i64 8, i8* %2) %3 = call swiftcc i64 @"$S1a10HaveResultVACycfC"() %.resultCode = getelementptr inbounds %T1a10HaveResultV, %T1a10HaveResultV* %0, i32 0, i32 0 %.resultCode._value = getelementptr inbounds %TSi, %TSi* %.resultCode, i32 0, i32 0 store i64 %3, i64* %.resultCode._value, align 8 %4 = call swiftcc { %swift.bridge*, i8* } @"$Ss27_allocateUninitializedArrayySayxG_BptBwlFyp_Tg5"(i64 1) %5 = extractvalue { %swift.bridge*, i8* } %4, 0 %6 = extractvalue { %swift.bridge*, i8* } %4, 1 %7 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* %5) #2 call void @swift_bridgeObjectRelease(%swift.bridge* %5) #2 %8 = bitcast i8* %6 to %Any* %9 = call swiftcc i64 @"$S1a12changeResult1rSiAA04HaveB0Vz_tF"(%T1a10HaveResultV* nocapture dereferenceable(8) %0)
2:53 AM
%10 = call swiftcc i64 @"$S1a10HaveResultV06returnB4CodeyS2iF"(i64 %9, i64 %3) %11 = getelementptr inbounds %Any, %Any* %8, i32 0, i32 1 store %swift.type* @"$SSiN", %swift.type** %11, align 8 %12 = getelementptr inbounds %Any, %Any* %8, i32 0, i32 0 %13 = getelementptr inbounds %Any, %Any* %8, i32 0, i32 0 %14 = bitcast [24 x i8]* %13 to %TSi* %._value = getelementptr inbounds %TSi, %TSi* %14, i32 0, i32 0 store i64 %10, i64* %._value, align 8 %15 = call swiftcc { %swift.bridge*, i64 } @"$Ss5print_9separator10terminatoryypd_S2StFfA0_"() %16 = extractvalue { %swift.bridge*, i64 } %15, 0 %17 = extractvalue { %swift.bridge*, i64 } %15, 1 %18 = call swiftcc { %swift.bridge*, i64 } @"$Ss5print_9separator10terminatoryypd_S2StFfA1_"() %19 = extractvalue { %swift.bridge*, i64 } %18, 0 %20 = extractvalue { %swift.bridge*, i64 } %18, 1 call swiftcc void @"$Ss5print_9separator10terminatoryypd_S2StF"(%swift.bridge* %5, %swift.bridge* %16, i64 %17, %swift.bridge* %19, i64 %20) call void @swift_bridgeObjectRelease(%swift.bridge* %19) #2 call void @swift_bridgeObjectRelease(%swift.bridge* %16) #2 call void @swift_bridgeObjectRelease(%swift.bridge* %5) #2 %21 = bitcast %T1a10HaveResultV* %0 to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %21) ret void }