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

; 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.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.1 = external hidden unnamed_addr constant [212 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.perturb_sources_at_tau = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [302 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @perturb_sources_at_tau(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca [2048 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca [2048 x i8], align 16
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store double %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %19 = load double, ptr %12, align 8, !tbaa !11
  %20 = call double @log(double noundef %19) #4
  store double %20, ptr %15, align 8, !tbaa !11
  %21 = load double, ptr %15, align 8, !tbaa !11
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.perturbs, ptr %22, i32 0, i32 168
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds double, ptr %24, i64 0
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = fcmp olt double %21, %26
  br i1 %27, label %33, label %28

28:                                               ; preds = %6
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.perturbs, ptr %29, i32 0, i32 169
  %31 = load i32, ptr %30, align 8, !tbaa !16
  %32 = icmp sle i32 %31, 1
  br i1 %32, label %33, label %92

33:                                               ; preds = %28, %6
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.perturbs, ptr %34, i32 0, i32 158
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.perturbs, ptr %37, i32 0, i32 167
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds ptr, ptr %39, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.perturbs, ptr %45, i32 0, i32 151
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %47, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = mul nsw i32 %44, %51
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = add nsw i32 %52, %53
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %43, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.perturbs, ptr %58, i32 0, i32 154
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.perturbs, ptr %65, i32 0, i32 159
  %67 = load i32, ptr %66, align 8, !tbaa !21
  %68 = load double, ptr %12, align 8, !tbaa !11
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.perturbs, ptr %70, i32 0, i32 154
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %72, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.perturbs, ptr %77, i32 0, i32 186
  %79 = getelementptr inbounds [2048 x i8], ptr %78, i64 0, i64 0
  %80 = call i32 @array_interpolate_two_bis(ptr noundef %36, i32 noundef 1, i32 noundef 0, ptr noundef %57, i32 noundef %64, i32 noundef %67, double noundef %68, ptr noundef %69, i32 noundef %76, ptr noundef %79)
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %82, label %91

82:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #4
  %83 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.perturbs, ptr %84, i32 0, i32 186
  %86 = getelementptr inbounds [2048 x i8], ptr %85, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %83, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %86)
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.perturbs, ptr %87, i32 0, i32 186
  %89 = getelementptr inbounds [2048 x i8], ptr %88, i64 0, i64 0
  %90 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %89, ptr noundef @.str.2, ptr noundef @__func__.perturb_sources_at_tau, i32 noundef 81, ptr noundef %90)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #4
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %173

91:                                               ; preds = %33
  br label %172

92:                                               ; preds = %28
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.perturbs, ptr %93, i32 0, i32 168
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.perturbs, ptr %96, i32 0, i32 169
  %98 = load i32, ptr %97, align 8, !tbaa !16
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.perturbs, ptr %99, i32 0, i32 170
  %101 = load ptr, ptr %100, align 8, !tbaa !22
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.perturbs, ptr %107, i32 0, i32 151
  %109 = load ptr, ptr %108, align 8, !tbaa !19
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = mul nsw i32 %106, %113
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = add nsw i32 %114, %115
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %105, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.perturbs, ptr %120, i32 0, i32 171
  %122 = load ptr, ptr %121, align 8, !tbaa !23
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds ptr, ptr %122, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.perturbs, ptr %128, i32 0, i32 151
  %130 = load ptr, ptr %129, align 8, !tbaa !19
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %130, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = mul nsw i32 %127, %134
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = add nsw i32 %135, %136
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %126, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.perturbs, ptr %141, i32 0, i32 154
  %143 = load ptr, ptr %142, align 8, !tbaa !20
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = load double, ptr %15, align 8, !tbaa !11
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.perturbs, ptr %150, i32 0, i32 154
  %152 = load ptr, ptr %151, align 8, !tbaa !20
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.perturbs, ptr %157, i32 0, i32 186
  %159 = getelementptr inbounds [2048 x i8], ptr %158, i64 0, i64 0
  %160 = call i32 @array_interpolate_spline(ptr noundef %95, i32 noundef %98, ptr noundef %119, ptr noundef %140, i32 noundef %147, double noundef %148, ptr noundef %14, ptr noundef %149, i32 noundef %156, ptr noundef %159)
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %162, label %171

162:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #4
  %163 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.perturbs, ptr %164, i32 0, i32 186
  %166 = getelementptr inbounds [2048 x i8], ptr %165, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %163, ptr noundef @.str, ptr noundef @.str.3, ptr noundef %166)
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.perturbs, ptr %167, i32 0, i32 186
  %169 = getelementptr inbounds [2048 x i8], ptr %168, i64 0, i64 0
  %170 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %169, ptr noundef @.str.2, ptr noundef @__func__.perturb_sources_at_tau, i32 noundef 101, ptr noundef %170)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #4
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %173

171:                                              ; preds = %92
  br label %172

172:                                              ; preds = %171, %91
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %173

173:                                              ; preds = %172, %162, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %174 = load i32, ptr %7, align 4
  ret i32 %174
}

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

; Function Attrs: nounwind
declare double @log(double noundef) #2

declare i32 @array_interpolate_two_bis(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

declare i32 @array_interpolate_spline(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 }

!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 2472}
!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 2480}
!17 = !{!14, !6, i64 2392}
!18 = !{!14, !6, i64 2464}
!19 = !{!14, !6, i64 2336}
!20 = !{!14, !6, i64 2360}
!21 = !{!14, !10, i64 2400}
!22 = !{!14, !6, i64 2488}
!23 = !{!14, !6, i64 2496}


; 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.1 = external hidden unnamed_addr constant [212 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.perturb_sources_at_tau = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [302 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @perturb_sources_at_tau(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %10 = tail call double @log(double noundef %4) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 2472
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load double, ptr %12, align 8, !tbaa !13
  %14 = fcmp olt double %10, %13
  br i1 %14, label %19, label %15

15:                                               ; preds = %6
  %16 = getelementptr inbounds i8, ptr %0, i64 2480
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = icmp slt i32 %17, 2
  br i1 %18, label %19, label %46

19:                                               ; preds = %15, %6
  %20 = getelementptr inbounds i8, ptr %0, i64 2392
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %0, i64 2464
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = sext i32 %1 to i64
  %25 = getelementptr inbounds ptr, ptr %23, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %0, i64 2336
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = getelementptr inbounds i32, ptr %28, i64 %24
  %30 = load i32, ptr %29, align 4, !tbaa !19
  %31 = mul nsw i32 %30, %2
  %32 = add nsw i32 %31, %3
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %26, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %0, i64 2360
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds i32, ptr %37, i64 %24
  %39 = load i32, ptr %38, align 4, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %0, i64 2400
  %41 = load i32, ptr %40, align 8, !tbaa !21
  %42 = getelementptr inbounds i8, ptr %0, i64 27610
  %43 = tail call i32 @array_interpolate_two_bis(ptr noundef %21, i32 noundef 1, i32 noundef 0, ptr noundef %35, i32 noundef %39, i32 noundef %41, double noundef %4, ptr noundef %5, i32 noundef %39, ptr noundef nonnull %42) #4
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %75

45:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull %42) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %42, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_sources_at_tau, i32 noundef 81, ptr noundef nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #4
  br label %75

46:                                               ; preds = %15
  %47 = getelementptr inbounds i8, ptr %0, i64 2488
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = sext i32 %1 to i64
  %50 = getelementptr inbounds ptr, ptr %48, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds i8, ptr %0, i64 2336
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds i32, ptr %53, i64 %49
  %55 = load i32, ptr %54, align 4, !tbaa !19
  %56 = mul nsw i32 %55, %2
  %57 = add nsw i32 %56, %3
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %51, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %0, i64 2496
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = getelementptr inbounds ptr, ptr %62, i64 %49
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds ptr, ptr %64, i64 %58
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = getelementptr inbounds i8, ptr %0, i64 2360
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = getelementptr inbounds i32, ptr %68, i64 %49
  %70 = load i32, ptr %69, align 4, !tbaa !19
  %71 = getelementptr inbounds i8, ptr %0, i64 27610
  %72 = call i32 @array_interpolate_spline(ptr noundef nonnull %12, i32 noundef %17, ptr noundef %60, ptr noundef %66, i32 noundef %70, double noundef %10, ptr noundef nonnull %7, ptr noundef %5, i32 noundef %70, ptr noundef nonnull %71) #4
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, ptr noundef nonnull %71) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %71, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_sources_at_tau, i32 noundef 101, ptr noundef nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #4
  br label %75

75:                                               ; preds = %19, %46, %74, %45
  %.0 = phi i32 [ 1, %45 ], [ 1, %74 ], [ 0, %46 ], [ 0, %19 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #2

declare i32 @array_interpolate_two_bis(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

declare i32 @array_interpolate_spline(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { "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 }

!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 2472}
!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 = !{!11, !11, i64 0}
!14 = !{!6, !10, i64 2480}
!15 = !{!6, !12, i64 2392}
!16 = !{!6, !12, i64 2464}
!17 = !{!12, !12, i64 0}
!18 = !{!6, !12, i64 2336}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !12, i64 2360}
!21 = !{!6, !10, i64 2400}
!22 = !{!6, !12, i64 2488}
!23 = !{!6, !12, i64 2496}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass