; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (transfer)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.transfers = type { double, double, double, [100 x double], [100 x double], i16, i16, [256 x i8], i32, ptr, ptr, ptr, i16, i16, [256 x i8], i32, ptr, ptr, ptr, ptr, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, ptr, double, i64, ptr, ptr, i32, ptr, i16, i16, [2048 x i8] }
%struct.perturbs = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, double, i32, i32, [100 x double], [100 x double], i32, i32, i32, i32, i32, double, i32, i32, [30 x double], double, double, double, ptr, ptr, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, double, double, ptr, i32, double, double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, [8000 x i8], [8000 x i8], [8000 x i8], i32, i32, i32, [30 x ptr], [30 x ptr], [30 x ptr], [30 x i32], [30 x i32], [30 x i32], i16, [2048 x i8] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.transfer_source_resample = external hidden unnamed_addr constant [25 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [157 x i8], align 1

declare i32 @array_interpolate_two(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @transfer_source_resample(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8, ptr noundef %9, ptr noundef %10) #4 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca [2048 x i8], align 16
  %28 = alloca i32, align 4
  %29 = alloca [2048 x i8], align 16
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store i32 %4, ptr %17, align 4, !tbaa !9
  store ptr %5, ptr %18, align 8, !tbaa !5
  store i32 %6, ptr %19, align 4, !tbaa !9
  store i32 %7, ptr %20, align 4, !tbaa !9
  store double %8, ptr %21, align 8, !tbaa !11
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %30 = call noalias ptr @malloc(i64 noundef 8) #6
  store ptr %30, ptr %25, align 8, !tbaa !5
  %31 = load ptr, ptr %25, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %40

33:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 8, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #5
  %34 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %35 = load i32, ptr %26, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %34, ptr noundef @.str.6, ptr noundef @.str.83, i32 noundef %35)
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.transfers, ptr %36, i32 0, i32 52
  %38 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %39 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %38, ptr noundef @.str.2, ptr noundef @__func__.transfer_source_resample, i32 noundef 2752, ptr noundef %39)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #5
  store i32 1, ptr %12, align 4
  store i32 1, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %88

40:                                               ; preds = %11
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %83, %40
  %42 = load i32, ptr %24, align 4, !tbaa !9
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %86

45:                                               ; preds = %41
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.perturbs, ptr %46, i32 0, i32 158
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.perturbs, ptr %50, i32 0, i32 159
  %52 = load i32, ptr %51, align 8, !tbaa !16
  %53 = load double, ptr %21, align 8, !tbaa !11
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  %55 = load i32, ptr %24, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = fsub double %53, %58
  %60 = load ptr, ptr %25, align 8, !tbaa !5
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.transfers, ptr %61, i32 0, i32 52
  %63 = getelementptr inbounds [2048 x i8], ptr %62, i64 0, i64 0
  %64 = call i32 @array_interpolate_two(ptr noundef %48, i32 noundef 1, i32 noundef 0, ptr noundef %49, i32 noundef 1, i32 noundef %52, double noundef %59, ptr noundef %60, i32 noundef 1, ptr noundef %63)
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %75

66:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #5
  %67 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.transfers, ptr %68, i32 0, i32 52
  %70 = getelementptr inbounds [2048 x i8], ptr %69, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %67, ptr noundef @.str, ptr noundef @.str.84, ptr noundef %70)
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.transfers, ptr %71, i32 0, i32 52
  %73 = getelementptr inbounds [2048 x i8], ptr %72, i64 0, i64 0
  %74 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %73, ptr noundef @.str.2, ptr noundef @__func__.transfer_source_resample, i32 noundef 2768, ptr noundef %74)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #5
  store i32 1, ptr %12, align 4
  store i32 1, ptr %28, align 4
  br label %88

75:                                               ; preds = %45
  %76 = load ptr, ptr %25, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 0
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = load ptr, ptr %23, align 8, !tbaa !5
  %80 = load i32, ptr %24, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  store double %78, ptr %82, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %75
  %84 = load i32, ptr %24, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %24, align 4, !tbaa !9
  br label %41, !llvm.loop !17

86:                                               ; preds = %41
  %87 = load ptr, ptr %25, align 8, !tbaa !5
  call void @free(ptr noundef %87) #5
  store i32 0, ptr %12, align 4
  store i32 1, ptr %28, align 4
  br label %88

88:                                               ; preds = %86, %66, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  %89 = load i32, ptr %12, align 4
  ret i32 %89
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 2392}
!14 = !{!"perturbs", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8, !15, i64 10, !15, i64 12, !15, i64 14, !15, i64 16, !15, i64 18, !15, i64 20, !10, i64 24, !15, i64 28, !15, i64 30, !15, i64 32, !15, i64 34, !15, i64 36, !15, i64 38, !15, i64 40, !15, i64 42, !15, i64 44, !15, i64 46, !15, i64 48, !15, i64 50, !15, i64 52, !15, i64 54, !15, i64 56, !15, i64 58, !15, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !12, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !12, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !12, i64 1976, !12, i64 1984, !12, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !15, i64 2020, !15, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !6, i64 2072, !15, i64 2080, !15, i64 2082, !15, i64 2084, !15, i64 2086, !15, i64 2088, !15, i64 2090, !15, i64 2092, !15, i64 2094, !15, i64 2096, !15, i64 2098, !15, i64 2100, !15, i64 2102, !15, i64 2104, !15, i64 2106, !15, i64 2108, !15, i64 2110, !15, i64 2112, !15, i64 2114, !15, i64 2116, !15, i64 2118, !15, i64 2120, !15, i64 2122, !15, i64 2124, !15, i64 2126, !15, i64 2128, !15, i64 2130, !15, i64 2132, !15, i64 2134, !15, i64 2136, !15, i64 2138, !15, i64 2140, !15, i64 2142, !15, i64 2144, !15, i64 2146, !15, i64 2148, !15, i64 2150, !15, i64 2152, !15, i64 2154, !15, i64 2156, !15, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !12, i64 2376, !12, i64 2384, !6, i64 2392, !10, i64 2400, !12, i64 2408, !12, i64 2416, !12, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !15, i64 27608, !7, i64 27610}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !10, i64 2400}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.transfer_source_resample = external hidden unnamed_addr constant [25 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [157 x i8], align 1

declare i32 @array_interpolate_two(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @transfer_source_resample(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readonly %2, ptr noundef %3, i32 noundef %4, ptr nocapture noundef readonly %5, i32 noundef %6, i32 noundef %7, double noundef %8, ptr noundef %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #4 {
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %20, label %.preheader

.preheader:                                       ; preds = %11
  %16 = icmp sgt i32 %6, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %17 = getelementptr inbounds i8, ptr %2, i64 2392
  %18 = getelementptr inbounds i8, ptr %2, i64 2400
  %19 = getelementptr inbounds i8, ptr %3, i64 2380
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %22

20:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.83, i32 noundef 8) #6
  %21 = getelementptr inbounds i8, ptr %3, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_source_resample, i32 noundef 2752, ptr noundef nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #6
  br label %34

22:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %23 = load ptr, ptr %17, align 8, !tbaa !5
  %24 = load i32, ptr %18, align 8, !tbaa !13
  %25 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = fsub double %8, %26
  %28 = tail call i32 @array_interpolate_two(ptr noundef %23, i32 noundef 1, i32 noundef 0, ptr noundef %9, i32 noundef 1, i32 noundef %24, double noundef %27, ptr noundef nonnull %14, i32 noundef 1, ptr noundef nonnull %19) #6
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %31

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.84, ptr noundef nonnull %19) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_source_resample, i32 noundef 2768, ptr noundef nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #6
  br label %34

31:                                               ; preds = %22
  %32 = load double, ptr %14, align 8, !tbaa !14
  %33 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  store double %32, ptr %33, align 8, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %22, !llvm.loop !15

._crit_edge:                                      ; preds = %31, %.preheader
  tail call void @free(ptr noundef nonnull %14) #6
  br label %34

34:                                               ; preds = %._crit_edge, %30, %20
  %.0 = phi i32 [ 1, %20 ], [ 1, %30 ], [ 0, %._crit_edge ]
  ret i32 %.0
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 2392}
!6 = !{!"perturbs", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !7, i64 16, !7, i64 18, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 30, !7, i64 32, !7, i64 34, !7, i64 36, !7, i64 38, !7, i64 40, !7, i64 42, !7, i64 44, !7, i64 46, !7, i64 48, !7, i64 50, !7, i64 52, !7, i64 54, !7, i64 56, !7, i64 58, !7, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !11, i64 80, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !11, i64 1720, !10, i64 1728, !10, i64 1732, !8, i64 1736, !11, i64 1976, !11, i64 1984, !11, i64 1992, !12, i64 2000, !12, i64 2008, !10, i64 2016, !7, i64 2020, !7, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !12, i64 2072, !7, i64 2080, !7, i64 2082, !7, i64 2084, !7, i64 2086, !7, i64 2088, !7, i64 2090, !7, i64 2092, !7, i64 2094, !7, i64 2096, !7, i64 2098, !7, i64 2100, !7, i64 2102, !7, i64 2104, !7, i64 2106, !7, i64 2108, !7, i64 2110, !7, i64 2112, !7, i64 2114, !7, i64 2116, !7, i64 2118, !7, i64 2120, !7, i64 2122, !7, i64 2124, !7, i64 2126, !7, i64 2128, !7, i64 2130, !7, i64 2132, !7, i64 2134, !7, i64 2136, !7, i64 2138, !7, i64 2140, !7, i64 2142, !7, i64 2144, !7, i64 2146, !7, i64 2148, !7, i64 2150, !7, i64 2152, !7, i64 2154, !7, i64 2156, !7, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !11, i64 2376, !11, i64 2384, !12, i64 2392, !10, i64 2400, !11, i64 2408, !11, i64 2416, !11, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !10, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !7, i64 27608, !8, i64 27610}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !10, i64 2400}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass