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

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

@.str = external hidden unnamed_addr constant [107 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.background_at_tau = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [186 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [202 x i8], align 1

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

29:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #3
  %30 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %31 = load double, ptr %9, align 8, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.background, ptr %32, i32 0, i32 101
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds double, ptr %34, i64 0
  %36 = load double, ptr %35, align 8, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %30, ptr noundef @.str, double noundef %31, double noundef %36)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #3
  %37 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %38 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %37, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.background, ptr %39, i32 0, i32 149
  %41 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  %42 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %41, ptr noundef @.str.3, ptr noundef @__func__.background_at_tau, i32 noundef 118, ptr noundef %42)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %191

43:                                               ; preds = %6
  %44 = load double, ptr %9, align 8, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.background, ptr %45, i32 0, i32 101
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.background, ptr %48, i32 0, i32 100
  %50 = load i32, ptr %49, align 4, !tbaa !16
  %51 = sub nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %47, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fcmp ogt double %44, %54
  br i1 %55, label %56, label %75

56:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #3
  %57 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %58 = load double, ptr %9, align 8, !tbaa !9
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.background, ptr %59, i32 0, i32 101
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.background, ptr %62, i32 0, i32 100
  %64 = load i32, ptr %63, align 4, !tbaa !16
  %65 = sub nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %61, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %57, ptr noundef @.str.4, double noundef %58, double noundef %68)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #3
  %69 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %70 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %69, ptr noundef @.str.1, ptr noundef @.str.5, ptr noundef %70)
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.background, ptr %71, i32 0, i32 149
  %73 = getelementptr inbounds [2048 x i8], ptr %72, i64 0, i64 0
  %74 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %73, ptr noundef @.str.3, ptr noundef @__func__.background_at_tau, i32 noundef 122, ptr noundef %74)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %191

75:                                               ; preds = %43
  %76 = load i16, ptr %10, align 2, !tbaa !11
  %77 = sext i16 %76 to i32
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.background, ptr %78, i32 0, i32 142
  %80 = load i16, ptr %79, align 2, !tbaa !17
  %81 = sext i16 %80 to i32
  %82 = icmp eq i32 %77, %81
  br i1 %82, label %83, label %87

83:                                               ; preds = %75
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.background, ptr %84, i32 0, i32 98
  %86 = load i32, ptr %85, align 4, !tbaa !18
  store i32 %86, ptr %14, align 4, !tbaa !19
  br label %104

87:                                               ; preds = %75
  %88 = load i16, ptr %10, align 2, !tbaa !11
  %89 = sext i16 %88 to i32
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.background, ptr %90, i32 0, i32 141
  %92 = load i16, ptr %91, align 8, !tbaa !20
  %93 = sext i16 %92 to i32
  %94 = icmp eq i32 %89, %93
  br i1 %94, label %95, label %99

95:                                               ; preds = %87
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.background, ptr %96, i32 0, i32 97
  %98 = load i32, ptr %97, align 8, !tbaa !21
  store i32 %98, ptr %14, align 4, !tbaa !19
  br label %103

99:                                               ; preds = %87
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.background, ptr %100, i32 0, i32 99
  %102 = load i32, ptr %101, align 8, !tbaa !22
  store i32 %102, ptr %14, align 4, !tbaa !19
  br label %103

103:                                              ; preds = %99, %95
  br label %104

104:                                              ; preds = %103, %83
  %105 = load i16, ptr %11, align 2, !tbaa !11
  %106 = sext i16 %105 to i32
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.background, ptr %107, i32 0, i32 144
  %109 = load i16, ptr %108, align 2, !tbaa !23
  %110 = sext i16 %109 to i32
  %111 = icmp eq i32 %106, %110
  br i1 %111, label %112, label %147

112:                                              ; preds = %104
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.background, ptr %113, i32 0, i32 101
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.background, ptr %116, i32 0, i32 100
  %118 = load i32, ptr %117, align 4, !tbaa !16
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.background, ptr %119, i32 0, i32 103
  %121 = load ptr, ptr %120, align 8, !tbaa !24
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.background, ptr %122, i32 0, i32 105
  %124 = load ptr, ptr %123, align 8, !tbaa !25
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.background, ptr %125, i32 0, i32 99
  %127 = load i32, ptr %126, align 8, !tbaa !22
  %128 = load double, ptr %9, align 8, !tbaa !9
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load i32, ptr %14, align 4, !tbaa !19
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.background, ptr %132, i32 0, i32 149
  %134 = getelementptr inbounds [2048 x i8], ptr %133, i64 0, i64 0
  %135 = call i32 @array_interpolate_spline(ptr noundef %115, i32 noundef %118, ptr noundef %121, ptr noundef %124, i32 noundef %127, double noundef %128, ptr noundef %129, ptr noundef %130, i32 noundef %131, ptr noundef %134)
  %136 = icmp eq i32 %135, 1
  br i1 %136, label %137, label %146

137:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #3
  %138 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.background, ptr %139, i32 0, i32 149
  %141 = getelementptr inbounds [2048 x i8], ptr %140, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %138, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %141)
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.background, ptr %142, i32 0, i32 149
  %144 = getelementptr inbounds [2048 x i8], ptr %143, i64 0, i64 0
  %145 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %144, ptr noundef @.str.3, ptr noundef @__func__.background_at_tau, i32 noundef 155, ptr noundef %145)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %191

146:                                              ; preds = %112
  br label %147

147:                                              ; preds = %146, %104
  %148 = load i16, ptr %11, align 2, !tbaa !11
  %149 = sext i16 %148 to i32
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.background, ptr %150, i32 0, i32 145
  %152 = load i16, ptr %151, align 8, !tbaa !26
  %153 = sext i16 %152 to i32
  %154 = icmp eq i32 %149, %153
  br i1 %154, label %155, label %190

155:                                              ; preds = %147
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.background, ptr %156, i32 0, i32 101
  %158 = load ptr, ptr %157, align 8, !tbaa !13
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.background, ptr %159, i32 0, i32 100
  %161 = load i32, ptr %160, align 4, !tbaa !16
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.background, ptr %162, i32 0, i32 103
  %164 = load ptr, ptr %163, align 8, !tbaa !24
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.background, ptr %165, i32 0, i32 105
  %167 = load ptr, ptr %166, align 8, !tbaa !25
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.background, ptr %168, i32 0, i32 99
  %170 = load i32, ptr %169, align 8, !tbaa !22
  %171 = load double, ptr %9, align 8, !tbaa !9
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = load i32, ptr %14, align 4, !tbaa !19
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.background, ptr %175, i32 0, i32 149
  %177 = getelementptr inbounds [2048 x i8], ptr %176, i64 0, i64 0
  %178 = call i32 @array_interpolate_spline_growing_closeby(ptr noundef %158, i32 noundef %161, ptr noundef %164, ptr noundef %167, i32 noundef %170, double noundef %171, ptr noundef %172, ptr noundef %173, i32 noundef %174, ptr noundef %177)
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %189

180:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #3
  %181 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.background, ptr %182, i32 0, i32 149
  %184 = getelementptr inbounds [2048 x i8], ptr %183, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %181, ptr noundef @.str.6, ptr noundef @.str.8, ptr noundef %184)
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.background, ptr %185, i32 0, i32 149
  %187 = getelementptr inbounds [2048 x i8], ptr %186, i64 0, i64 0
  %188 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %187, ptr noundef @.str.3, ptr noundef @__func__.background_at_tau, i32 noundef 170, ptr noundef %188)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %191

189:                                              ; preds = %155
  br label %190

190:                                              ; preds = %189, %147
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %191

191:                                              ; preds = %190, %180, %137, %56, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %192 = load i32, ptr %7, align 4
  ret i32 %192
}

; 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, ...) #2

; 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) #2

declare i32 @array_interpolate_spline_growing_closeby(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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 = { "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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !6, i64 632}
!14 = !{!"background", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !15, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !12, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !12, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !15, i64 208, !15, i64 212, !10, i64 216, !15, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !6, i64 256, !10, i64 264, !6, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !15, i64 360, !6, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !15, i64 464, !15, i64 468, !15, i64 472, !15, i64 476, !15, i64 480, !15, i64 484, !15, i64 488, !15, i64 492, !15, i64 496, !15, i64 500, !15, i64 504, !15, i64 508, !15, i64 512, !15, i64 516, !15, i64 520, !15, i64 524, !15, i64 528, !15, i64 532, !15, i64 536, !15, i64 540, !15, i64 544, !15, i64 548, !15, i64 552, !15, i64 556, !15, i64 560, !15, i64 564, !15, i64 568, !15, i64 572, !15, i64 576, !15, i64 580, !15, i64 584, !15, i64 588, !15, i64 592, !15, i64 596, !15, i64 600, !15, i64 604, !15, i64 608, !15, i64 612, !15, i64 616, !15, i64 620, !15, i64 624, !15, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !15, i64 672, !15, i64 676, !15, i64 680, !15, i64 684, !15, i64 688, !15, i64 692, !15, i64 696, !15, i64 700, !15, i64 704, !15, i64 708, !15, i64 712, !15, i64 716, !15, i64 720, !12, i64 724, !12, i64 726, !12, i64 728, !12, i64 730, !12, i64 732, !12, i64 734, !12, i64 736, !12, i64 738, !12, i64 740, !12, i64 742, !12, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !12, i64 840, !12, i64 842, !12, i64 844, !12, i64 846, !12, i64 848, !12, i64 850, !7, i64 852, !12, i64 2900, !7, i64 2902}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 628}
!17 = !{!14, !12, i64 842}
!18 = !{!14, !15, i64 620}
!19 = !{!15, !15, i64 0}
!20 = !{!14, !12, i64 840}
!21 = !{!14, !15, i64 616}
!22 = !{!14, !15, i64 624}
!23 = !{!14, !12, i64 846}
!24 = !{!14, !6, i64 648}
!25 = !{!14, !6, i64 664}
!26 = !{!14, !12, i64 848}


; 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 [107 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.background_at_tau = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [186 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [202 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @background_at_tau(ptr noundef %0, double noundef %1, i16 noundef signext %2, i16 noundef signext %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = getelementptr inbounds i8, ptr %0, i64 632
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = load double, ptr %14, align 8, !tbaa !13
  %16 = fcmp ogt double %15, %1
  br i1 %16, label %17, label %19

17:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str, double noundef %1, double noundef %15) #3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull %7) #3
  %18 = getelementptr inbounds i8, ptr %0, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_at_tau, i32 noundef 118, ptr noundef nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #3
  br label %70

19:                                               ; preds = %6
  %20 = getelementptr inbounds i8, ptr %0, i64 628
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = sext i32 %21 to i64
  %23 = getelementptr double, ptr %14, i64 %22
  %24 = getelementptr i8, ptr %23, i64 -8
  %25 = load double, ptr %24, align 8, !tbaa !13
  %26 = fcmp olt double %25, %1
  br i1 %26, label %27, label %29

27:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.4, double noundef %1, double noundef %25) #3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5, ptr noundef nonnull %9) #3
  %28 = getelementptr inbounds i8, ptr %0, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_at_tau, i32 noundef 122, ptr noundef nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #3
  br label %70

29:                                               ; preds = %19
  %30 = getelementptr inbounds i8, ptr %0, i64 842
  %31 = load i16, ptr %30, align 2, !tbaa !15
  %32 = icmp eq i16 %31, %2
  br i1 %32, label %37, label %33

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %0, i64 840
  %35 = load i16, ptr %34, align 8, !tbaa !16
  %36 = icmp eq i16 %35, %2
  %. = select i1 %36, i64 616, i64 624
  br label %37

37:                                               ; preds = %33, %29
  %.sink = phi i64 [ 620, %29 ], [ %., %33 ]
  %38 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %.0 = load i32, ptr %38, align 4, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %0, i64 846
  %40 = load i16, ptr %39, align 2, !tbaa !18
  %41 = icmp eq i16 %40, %3
  br i1 %41, label %42, label %53

42:                                               ; preds = %37
  %43 = getelementptr inbounds i8, ptr %0, i64 648
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = getelementptr inbounds i8, ptr %0, i64 664
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %0, i64 624
  %48 = load i32, ptr %47, align 8, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %0, i64 2902
  %50 = tail call i32 @array_interpolate_spline(ptr noundef nonnull %14, i32 noundef %21, ptr noundef %44, ptr noundef %46, i32 noundef %48, double noundef %1, ptr noundef %4, ptr noundef %5, i32 noundef %.0, ptr noundef nonnull %49) #3
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull %49) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %49, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_at_tau, i32 noundef 155, ptr noundef nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #3
  br label %70

53:                                               ; preds = %42, %37
  %54 = getelementptr inbounds i8, ptr %0, i64 848
  %55 = load i16, ptr %54, align 8, !tbaa !22
  %56 = icmp eq i16 %55, %3
  br i1 %56, label %57, label %70

57:                                               ; preds = %53
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load i32, ptr %20, align 4, !tbaa !14
  %60 = getelementptr inbounds i8, ptr %0, i64 648
  %61 = load ptr, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds i8, ptr %0, i64 664
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  %64 = getelementptr inbounds i8, ptr %0, i64 624
  %65 = load i32, ptr %64, align 8, !tbaa !21
  %66 = getelementptr inbounds i8, ptr %0, i64 2902
  %67 = tail call i32 @array_interpolate_spline_growing_closeby(ptr noundef %58, i32 noundef %59, ptr noundef %61, ptr noundef %63, i32 noundef %65, double noundef %1, ptr noundef %4, ptr noundef %5, i32 noundef %.0, ptr noundef nonnull %66) #3
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.8, ptr noundef nonnull %66) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %66, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_at_tau, i32 noundef 170, ptr noundef nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #3
  br label %70

70:                                               ; preds = %53, %57, %69, %52, %27, %17
  %.047 = phi i32 [ 1, %17 ], [ 1, %27 ], [ 1, %52 ], [ 1, %69 ], [ 0, %57 ], [ 0, %53 ]
  ret i32 %.047
}

; 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 #2

; 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 #2

declare i32 @array_interpolate_spline_growing_closeby(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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 = { "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, !12, i64 632}
!6 = !{!"background", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !7, i64 184, !7, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !7, i64 216, !10, i64 224, !12, i64 232, !12, i64 240, !7, i64 248, !12, i64 256, !7, i64 264, !12, i64 272, !7, i64 280, !12, i64 288, !7, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !10, i64 360, !12, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !11, i64 724, !11, i64 726, !11, i64 728, !11, i64 730, !11, i64 732, !11, i64 734, !11, i64 736, !11, i64 738, !11, i64 740, !11, i64 742, !11, i64 744, !12, i64 752, !12, i64 760, !12, i64 768, !12, i64 776, !12, i64 784, !12, i64 792, !12, i64 800, !12, i64 808, !12, i64 816, !12, i64 824, !12, i64 832, !11, i64 840, !11, i64 842, !11, i64 844, !11, i64 846, !11, i64 848, !11, i64 850, !8, i64 852, !11, i64 2900, !8, i64 2902}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 628}
!15 = !{!6, !11, i64 842}
!16 = !{!6, !11, i64 840}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !11, i64 846}
!19 = !{!6, !12, i64 648}
!20 = !{!6, !12, i64 664}
!21 = !{!6, !10, i64 624}
!22 = !{!6, !11, i64 848}


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