; 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] }
%struct.nonlinear = type { i32, i32, i32, double, double, double, i16, i32, i32, i32, ptr, i16, i16, i32, i32, i32, i32, i32, i16, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i16, [2048 x i8] }

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @transfer_perturbation_sources_free(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %187, %4
  %13 = load i32, ptr %9, align 4, !tbaa !9
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.transfers, ptr %14, i32 0, i32 21
  %16 = load i32, ptr %15, align 4, !tbaa !11
  %17 = icmp slt i32 %13, %16
  br i1 %17, label %18, label %190

18:                                               ; preds = %12
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %178, %18
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.perturbs, ptr %21, i32 0, i32 66
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i32, ptr %23, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = icmp slt i32 %20, %27
  br i1 %28, label %29, label %181

29:                                               ; preds = %19
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %174, %29
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.perturbs, ptr %32, i32 0, i32 151
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %34, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = icmp slt i32 %31, %38
  br i1 %39, label %40, label %177

40:                                               ; preds = %30
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.nonlinear, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %173

45:                                               ; preds = %40
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.perturbs, ptr %46, i32 0, i32 2
  %48 = load i16, ptr %47, align 4, !tbaa !21
  %49 = sext i16 %48 to i32
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %51, label %173

51:                                               ; preds = %45
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.perturbs, ptr %53, i32 0, i32 56
  %55 = load i32, ptr %54, align 4, !tbaa !22
  %56 = icmp eq i32 %52, %55
  br i1 %56, label %57, label %173

57:                                               ; preds = %51
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.perturbs, ptr %58, i32 0, i32 69
  %60 = load i16, ptr %59, align 4, !tbaa !23
  %61 = sext i16 %60 to i32
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %63, label %69

63:                                               ; preds = %57
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.perturbs, ptr %65, i32 0, i32 111
  %67 = load i32, ptr %66, align 8, !tbaa !24
  %68 = icmp eq i32 %64, %67
  br i1 %68, label %153, label %69

69:                                               ; preds = %63, %57
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.perturbs, ptr %70, i32 0, i32 83
  %72 = load i16, ptr %71, align 8, !tbaa !25
  %73 = sext i16 %72 to i32
  %74 = icmp eq i32 %73, 1
  br i1 %74, label %75, label %81

75:                                               ; preds = %69
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.perturbs, ptr %77, i32 0, i32 127
  %79 = load i32, ptr %78, align 8, !tbaa !26
  %80 = icmp eq i32 %76, %79
  br i1 %80, label %153, label %81

81:                                               ; preds = %75, %69
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.perturbs, ptr %82, i32 0, i32 70
  %84 = load i16, ptr %83, align 2, !tbaa !27
  %85 = sext i16 %84 to i32
  %86 = icmp eq i32 %85, 1
  br i1 %86, label %87, label %93

87:                                               ; preds = %81
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.perturbs, ptr %89, i32 0, i32 112
  %91 = load i32, ptr %90, align 4, !tbaa !28
  %92 = icmp eq i32 %88, %91
  br i1 %92, label %153, label %93

93:                                               ; preds = %87, %81
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.perturbs, ptr %94, i32 0, i32 84
  %96 = load i16, ptr %95, align 2, !tbaa !29
  %97 = sext i16 %96 to i32
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %105

99:                                               ; preds = %93
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.perturbs, ptr %101, i32 0, i32 128
  %103 = load i32, ptr %102, align 4, !tbaa !30
  %104 = icmp eq i32 %100, %103
  br i1 %104, label %153, label %105

105:                                              ; preds = %99, %93
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.perturbs, ptr %106, i32 0, i32 97
  %108 = load i16, ptr %107, align 4, !tbaa !31
  %109 = sext i16 %108 to i32
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %111, label %117

111:                                              ; preds = %105
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.perturbs, ptr %113, i32 0, i32 141
  %115 = load i32, ptr %114, align 8, !tbaa !32
  %116 = icmp eq i32 %112, %115
  br i1 %116, label %153, label %117

117:                                              ; preds = %111, %105
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.perturbs, ptr %118, i32 0, i32 98
  %120 = load i16, ptr %119, align 2, !tbaa !33
  %121 = sext i16 %120 to i32
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %129

123:                                              ; preds = %117
  %124 = load i32, ptr %11, align 4, !tbaa !9
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.perturbs, ptr %125, i32 0, i32 142
  %127 = load i32, ptr %126, align 4, !tbaa !34
  %128 = icmp eq i32 %124, %127
  br i1 %128, label %153, label %129

129:                                              ; preds = %123, %117
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.perturbs, ptr %130, i32 0, i32 99
  %132 = load i16, ptr %131, align 8, !tbaa !35
  %133 = sext i16 %132 to i32
  %134 = icmp eq i32 %133, 1
  br i1 %134, label %135, label %141

135:                                              ; preds = %129
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.perturbs, ptr %137, i32 0, i32 143
  %139 = load i32, ptr %138, align 8, !tbaa !36
  %140 = icmp eq i32 %136, %139
  br i1 %140, label %153, label %141

141:                                              ; preds = %135, %129
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.perturbs, ptr %142, i32 0, i32 100
  %144 = load i16, ptr %143, align 2, !tbaa !37
  %145 = sext i16 %144 to i32
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %147, label %173

147:                                              ; preds = %141
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.perturbs, ptr %149, i32 0, i32 144
  %151 = load i32, ptr %150, align 4, !tbaa !38
  %152 = icmp eq i32 %148, %151
  br i1 %152, label %153, label %173

153:                                              ; preds = %147, %135, %123, %111, %99, %87, %75, %63
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.perturbs, ptr %160, i32 0, i32 151
  %162 = load ptr, ptr %161, align 8, !tbaa !18
  %163 = load i32, ptr %9, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %162, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = mul nsw i32 %159, %166
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = add nsw i32 %167, %168
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %158, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  call void @free(ptr noundef %172) #3
  br label %173

173:                                              ; preds = %153, %147, %141, %51, %45, %40
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %11, align 4, !tbaa !9
  br label %30, !llvm.loop !39

177:                                              ; preds = %30
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %10, align 4, !tbaa !9
  br label %19, !llvm.loop !41

181:                                              ; preds = %19
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %182, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  call void @free(ptr noundef %186) #3
  br label %187

187:                                              ; preds = %181
  %188 = load i32, ptr %9, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %9, align 4, !tbaa !9
  br label %12, !llvm.loop !42

190:                                              ; preds = %12
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %191) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !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, !10, i64 2212}
!12 = !{!"transfers", !13, i64 0, !13, i64 8, !13, i64 16, !7, i64 24, !7, i64 824, !14, i64 1624, !14, i64 1626, !7, i64 1628, !10, i64 1884, !6, i64 1888, !6, i64 1896, !6, i64 1904, !14, i64 1912, !14, i64 1914, !7, i64 1916, !10, i64 2172, !6, i64 2176, !6, i64 2184, !6, i64 2192, !6, i64 2200, !14, 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, !6, i64 2288, !6, i64 2296, !6, i64 2304, !10, i64 2312, !6, i64 2320, !13, i64 2328, !15, i64 2336, !6, i64 2344, !6, i64 2352, !10, i64 2360, !6, i64 2368, !14, i64 2376, !14, i64 2378, !7, i64 2380}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 2072}
!17 = !{!"perturbs", !14, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8, !14, i64 10, !14, i64 12, !14, i64 14, !14, i64 16, !14, i64 18, !14, i64 20, !10, i64 24, !14, i64 28, !14, i64 30, !14, i64 32, !14, i64 34, !14, i64 36, !14, i64 38, !14, i64 40, !14, i64 42, !14, i64 44, !14, i64 46, !14, i64 48, !14, i64 50, !14, i64 52, !14, i64 54, !14, i64 56, !14, i64 58, !14, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !13, 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, !13, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !13, i64 1976, !13, i64 1984, !13, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !14, i64 2020, !14, 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, !14, i64 2080, !14, i64 2082, !14, i64 2084, !14, i64 2086, !14, i64 2088, !14, i64 2090, !14, i64 2092, !14, i64 2094, !14, i64 2096, !14, i64 2098, !14, i64 2100, !14, i64 2102, !14, i64 2104, !14, i64 2106, !14, i64 2108, !14, i64 2110, !14, i64 2112, !14, i64 2114, !14, i64 2116, !14, i64 2118, !14, i64 2120, !14, i64 2122, !14, i64 2124, !14, i64 2126, !14, i64 2128, !14, i64 2130, !14, i64 2132, !14, i64 2134, !14, i64 2136, !14, i64 2138, !14, i64 2140, !14, i64 2142, !14, i64 2144, !14, i64 2146, !14, i64 2148, !14, i64 2150, !14, i64 2152, !14, i64 2154, !14, i64 2156, !14, 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, !13, i64 2376, !13, i64 2384, !6, i64 2392, !10, i64 2400, !13, i64 2408, !13, i64 2416, !13, 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, !14, i64 27608, !7, i64 27610}
!18 = !{!17, !6, i64 2336}
!19 = !{!20, !10, i64 0}
!20 = !{!"nonlinear", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !14, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !14, i64 64, !14, i64 66, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !14, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !10, i64 184, !10, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !14, i64 264, !7, i64 266}
!21 = !{!17, !14, i64 4}
!22 = !{!17, !10, i64 2028}
!23 = !{!17, !14, i64 2084}
!24 = !{!17, !10, i64 2176}
!25 = !{!17, !14, i64 2112}
!26 = !{!17, !10, i64 2240}
!27 = !{!17, !14, i64 2086}
!28 = !{!17, !10, i64 2180}
!29 = !{!17, !14, i64 2114}
!30 = !{!17, !10, i64 2244}
!31 = !{!17, !14, i64 2140}
!32 = !{!17, !10, i64 2296}
!33 = !{!17, !14, i64 2142}
!34 = !{!17, !10, i64 2300}
!35 = !{!17, !14, i64 2144}
!36 = !{!17, !10, i64 2304}
!37 = !{!17, !14, i64 2146}
!38 = !{!17, !10, i64 2308}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = distinct !{!42, !40}


; 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"

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @transfer_perturbation_sources_free(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %2, i64 2212
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.preheader49.lr.ph, label %._crit_edge56

.preheader49.lr.ph:                               ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 2072
  %9 = getelementptr inbounds i8, ptr %0, i64 2336
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = getelementptr inbounds i8, ptr %0, i64 2028
  %12 = getelementptr inbounds i8, ptr %0, i64 2084
  %13 = getelementptr inbounds i8, ptr %0, i64 2176
  %14 = getelementptr inbounds i8, ptr %0, i64 2112
  %15 = getelementptr inbounds i8, ptr %0, i64 2240
  %16 = getelementptr inbounds i8, ptr %0, i64 2086
  %17 = getelementptr inbounds i8, ptr %0, i64 2180
  %18 = getelementptr inbounds i8, ptr %0, i64 2114
  %19 = getelementptr inbounds i8, ptr %0, i64 2244
  %20 = getelementptr inbounds i8, ptr %0, i64 2140
  %21 = getelementptr inbounds i8, ptr %0, i64 2296
  %22 = getelementptr inbounds i8, ptr %0, i64 2142
  %23 = getelementptr inbounds i8, ptr %0, i64 2300
  %24 = getelementptr inbounds i8, ptr %0, i64 2144
  %25 = getelementptr inbounds i8, ptr %0, i64 2304
  %26 = getelementptr inbounds i8, ptr %0, i64 2146
  %27 = getelementptr inbounds i8, ptr %0, i64 2308
  br label %.preheader49

.preheader49:                                     ; preds = %.preheader49.lr.ph, %._crit_edge53
  %indvars.iv = phi i64 [ 0, %.preheader49.lr.ph ], [ %indvars.iv.next, %._crit_edge53 ]
  %28 = load ptr, ptr %8, align 8, !tbaa !14
  %29 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.preheader.lr.ph, label %._crit_edge53

.preheader.lr.ph:                                 ; preds = %.preheader49
  %32 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv
  %33 = load ptr, ptr %9, align 8, !tbaa !17
  %34 = getelementptr inbounds i32, ptr %33, i64 %indvars.iv
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.preheader, label %._crit_edge53

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %37 = phi ptr [ %116, %._crit_edge ], [ %28, %.preheader.lr.ph ]
  %38 = phi ptr [ %117, %._crit_edge ], [ %33, %.preheader.lr.ph ]
  %39 = phi ptr [ %118, %._crit_edge ], [ %33, %.preheader.lr.ph ]
  %.04751 = phi i32 [ %119, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %40 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv
  %41 = load i32, ptr %40, align 4, !tbaa !16
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %43 = load i32, ptr %1, align 8, !tbaa !18
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %._crit_edge, label %.lr.ph.split

.lr.ph.splitthread-pre-split:                     ; preds = %110
  %.pr = load i32, ptr %1, align 8, !tbaa !18
  br label %.lr.ph.split

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.splitthread-pre-split
  %45 = phi i32 [ %.pr, %.lr.ph.splitthread-pre-split ], [ 1, %.lr.ph ]
  %46 = phi ptr [ %111, %.lr.ph.splitthread-pre-split ], [ %38, %.lr.ph ]
  %47 = phi i32 [ %114, %.lr.ph.splitthread-pre-split ], [ %41, %.lr.ph ]
  %.050 = phi i32 [ %112, %.lr.ph.splitthread-pre-split ], [ 0, %.lr.ph ]
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %110, label %48

48:                                               ; preds = %.lr.ph.split
  %49 = load i16, ptr %10, align 4, !tbaa !20
  %50 = icmp eq i16 %49, 1
  br i1 %50, label %51, label %110

51:                                               ; preds = %48
  %52 = load i32, ptr %11, align 4, !tbaa !21
  %53 = zext i32 %52 to i64
  %54 = icmp eq i64 %indvars.iv, %53
  br i1 %54, label %55, label %110

55:                                               ; preds = %51
  %56 = load i16, ptr %12, align 4, !tbaa !22
  %57 = icmp eq i16 %56, 1
  br i1 %57, label %58, label %61

58:                                               ; preds = %55
  %59 = load i32, ptr %13, align 8, !tbaa !23
  %60 = icmp eq i32 %.050, %59
  br i1 %60, label %103, label %61

61:                                               ; preds = %58, %55
  %62 = load i16, ptr %14, align 8, !tbaa !24
  %63 = icmp eq i16 %62, 1
  br i1 %63, label %64, label %67

64:                                               ; preds = %61
  %65 = load i32, ptr %15, align 8, !tbaa !25
  %66 = icmp eq i32 %.050, %65
  br i1 %66, label %103, label %67

67:                                               ; preds = %64, %61
  %68 = load i16, ptr %16, align 2, !tbaa !26
  %69 = icmp eq i16 %68, 1
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = load i32, ptr %17, align 4, !tbaa !27
  %72 = icmp eq i32 %.050, %71
  br i1 %72, label %103, label %73

73:                                               ; preds = %70, %67
  %74 = load i16, ptr %18, align 2, !tbaa !28
  %75 = icmp eq i16 %74, 1
  br i1 %75, label %76, label %79

76:                                               ; preds = %73
  %77 = load i32, ptr %19, align 4, !tbaa !29
  %78 = icmp eq i32 %.050, %77
  br i1 %78, label %103, label %79

79:                                               ; preds = %76, %73
  %80 = load i16, ptr %20, align 4, !tbaa !30
  %81 = icmp eq i16 %80, 1
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load i32, ptr %21, align 8, !tbaa !31
  %84 = icmp eq i32 %.050, %83
  br i1 %84, label %103, label %85

85:                                               ; preds = %82, %79
  %86 = load i16, ptr %22, align 2, !tbaa !32
  %87 = icmp eq i16 %86, 1
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = load i32, ptr %23, align 4, !tbaa !33
  %90 = icmp eq i32 %.050, %89
  br i1 %90, label %103, label %91

91:                                               ; preds = %88, %85
  %92 = load i16, ptr %24, align 8, !tbaa !34
  %93 = icmp eq i16 %92, 1
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load i32, ptr %25, align 8, !tbaa !35
  %96 = icmp eq i32 %.050, %95
  br i1 %96, label %103, label %97

97:                                               ; preds = %94, %91
  %98 = load i16, ptr %26, align 2, !tbaa !36
  %99 = icmp eq i16 %98, 1
  br i1 %99, label %100, label %110

100:                                              ; preds = %97
  %101 = load i32, ptr %27, align 4, !tbaa !37
  %102 = icmp eq i32 %.050, %101
  br i1 %102, label %103, label %110

103:                                              ; preds = %100, %94, %88, %82, %76, %70, %64, %58
  %104 = load ptr, ptr %32, align 8, !tbaa !38
  %105 = mul nsw i32 %47, %.04751
  %106 = add nsw i32 %105, %.050
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %104, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !38
  tail call void @free(ptr noundef %109) #2
  %.pre = load ptr, ptr %9, align 8, !tbaa !17
  br label %110

110:                                              ; preds = %.lr.ph.split, %48, %51, %97, %100, %103
  %111 = phi ptr [ %46, %.lr.ph.split ], [ %46, %48 ], [ %46, %51 ], [ %46, %97 ], [ %46, %100 ], [ %.pre, %103 ]
  %112 = add nuw nsw i32 %.050, 1
  %113 = getelementptr inbounds i32, ptr %111, i64 %indvars.iv
  %114 = load i32, ptr %113, align 4, !tbaa !16
  %115 = icmp slt i32 %112, %114
  br i1 %115, label %.lr.ph.splitthread-pre-split, label %._crit_edge.loopexit57, !llvm.loop !39

._crit_edge.loopexit57:                           ; preds = %110
  %.pre60 = load ptr, ptr %8, align 8, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %._crit_edge.loopexit57, %.preheader
  %116 = phi ptr [ %.pre60, %._crit_edge.loopexit57 ], [ %37, %.preheader ], [ %37, %.lr.ph ]
  %117 = phi ptr [ %111, %._crit_edge.loopexit57 ], [ %38, %.preheader ], [ %38, %.lr.ph ]
  %118 = phi ptr [ %111, %._crit_edge.loopexit57 ], [ %39, %.preheader ], [ %39, %.lr.ph ]
  %119 = add nuw nsw i32 %.04751, 1
  %120 = getelementptr inbounds i32, ptr %116, i64 %indvars.iv
  %121 = load i32, ptr %120, align 4, !tbaa !16
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %.preheader, label %._crit_edge53, !llvm.loop !42

._crit_edge53:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %.preheader49
  %123 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv
  %124 = load ptr, ptr %123, align 8, !tbaa !38
  tail call void @free(ptr noundef %124) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next, %126
  br i1 %127, label %.preheader49, label %._crit_edge56, !llvm.loop !43

._crit_edge56:                                    ; preds = %._crit_edge53, %4
  tail call void @free(ptr noundef %3) #2
  ret i32 0
}

attributes #0 = { 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 #1 = { 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 #2 = { 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, !11, i64 2212}
!6 = !{!"transfers", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !8, i64 824, !10, i64 1624, !10, i64 1626, !8, i64 1628, !11, i64 1884, !12, i64 1888, !12, i64 1896, !12, i64 1904, !10, i64 1912, !10, i64 1914, !8, i64 1916, !11, i64 2172, !12, i64 2176, !12, i64 2184, !12, i64 2192, !12, i64 2200, !10, i64 2208, !11, i64 2212, !11, i64 2216, !11, i64 2220, !11, i64 2224, !11, i64 2228, !11, i64 2232, !11, i64 2236, !11, i64 2240, !11, i64 2244, !11, i64 2248, !11, i64 2252, !11, i64 2256, !11, i64 2260, !11, i64 2264, !11, i64 2268, !11, i64 2272, !11, i64 2276, !11, i64 2280, !12, i64 2288, !12, i64 2296, !12, i64 2304, !11, i64 2312, !12, i64 2320, !7, i64 2328, !13, i64 2336, !12, i64 2344, !12, i64 2352, !11, i64 2360, !12, i64 2368, !10, i64 2376, !10, i64 2378, !8, i64 2380}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !12, i64 2072}
!15 = !{!"perturbs", !10, i64 0, !10, i64 2, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10, !10, i64 12, !10, i64 14, !10, i64 16, !10, i64 18, !10, i64 20, !11, i64 24, !10, i64 28, !10, i64 30, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !10, i64 40, !10, i64 42, !10, i64 44, !10, i64 46, !10, i64 48, !10, i64 50, !10, i64 52, !10, i64 54, !10, i64 56, !10, i64 58, !10, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !7, i64 80, !11, i64 88, !11, i64 92, !8, i64 96, !8, i64 896, !11, i64 1696, !11, i64 1700, !11, i64 1704, !11, i64 1708, !11, i64 1712, !7, i64 1720, !11, i64 1728, !11, i64 1732, !8, i64 1736, !7, i64 1976, !7, i64 1984, !7, i64 1992, !12, i64 2000, !12, i64 2008, !11, i64 2016, !10, i64 2020, !10, i64 2022, !11, i64 2024, !11, i64 2028, !11, i64 2032, !11, i64 2036, !11, i64 2040, !11, i64 2044, !11, i64 2048, !11, i64 2052, !11, i64 2056, !11, i64 2060, !11, i64 2064, !12, i64 2072, !10, i64 2080, !10, i64 2082, !10, i64 2084, !10, i64 2086, !10, i64 2088, !10, i64 2090, !10, i64 2092, !10, i64 2094, !10, i64 2096, !10, i64 2098, !10, i64 2100, !10, i64 2102, !10, i64 2104, !10, i64 2106, !10, i64 2108, !10, i64 2110, !10, i64 2112, !10, i64 2114, !10, i64 2116, !10, i64 2118, !10, i64 2120, !10, i64 2122, !10, i64 2124, !10, i64 2126, !10, i64 2128, !10, i64 2130, !10, i64 2132, !10, i64 2134, !10, i64 2136, !10, i64 2138, !10, i64 2140, !10, i64 2142, !10, i64 2144, !10, i64 2146, !10, i64 2148, !10, i64 2150, !10, i64 2152, !10, i64 2154, !10, i64 2156, !10, i64 2158, !11, i64 2160, !11, i64 2164, !11, i64 2168, !11, i64 2172, !11, i64 2176, !11, i64 2180, !11, i64 2184, !11, i64 2188, !11, i64 2192, !11, i64 2196, !11, i64 2200, !11, i64 2204, !11, i64 2208, !11, i64 2212, !11, i64 2216, !11, i64 2220, !11, i64 2224, !11, i64 2228, !11, i64 2232, !11, i64 2236, !11, i64 2240, !11, i64 2244, !11, i64 2248, !11, i64 2252, !11, i64 2256, !11, i64 2260, !11, i64 2264, !11, i64 2268, !11, i64 2272, !11, i64 2276, !11, i64 2280, !11, i64 2284, !11, i64 2288, !11, i64 2292, !11, i64 2296, !11, i64 2300, !11, i64 2304, !11, i64 2308, !11, i64 2312, !11, i64 2316, !11, i64 2320, !11, i64 2324, !11, i64 2328, !11, i64 2332, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !7, i64 2376, !7, i64 2384, !12, i64 2392, !11, i64 2400, !7, i64 2408, !7, i64 2416, !7, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !11, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !11, i64 26512, !11, i64 26516, !11, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !10, i64 27608, !8, i64 27610}
!16 = !{!11, !11, i64 0}
!17 = !{!15, !12, i64 2336}
!18 = !{!19, !11, i64 0}
!19 = !{!"nonlinear", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !12, i64 56, !10, i64 64, !10, i64 66, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !10, i64 88, !11, i64 92, !12, i64 96, !12, i64 104, !12, i64 112, !11, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !12, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !10, i64 264, !8, i64 266}
!20 = !{!15, !10, i64 4}
!21 = !{!15, !11, i64 2028}
!22 = !{!15, !10, i64 2084}
!23 = !{!15, !11, i64 2176}
!24 = !{!15, !10, i64 2112}
!25 = !{!15, !11, i64 2240}
!26 = !{!15, !10, i64 2086}
!27 = !{!15, !11, i64 2180}
!28 = !{!15, !10, i64 2114}
!29 = !{!15, !11, i64 2244}
!30 = !{!15, !10, i64 2140}
!31 = !{!15, !11, i64 2296}
!32 = !{!15, !10, i64 2142}
!33 = !{!15, !11, i64 2300}
!34 = !{!15, !10, i64 2144}
!35 = !{!15, !11, i64 2304}
!36 = !{!15, !10, i64 2146}
!37 = !{!15, !11, i64 2308}
!38 = !{!12, !12, i64 0}
!39 = distinct !{!39, !40, !41}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!"llvm.loop.unswitch.partial.disable"}
!42 = distinct !{!42, !40, !41}
!43 = distinct !{!43, !40}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass