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

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

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [88 x i8], align 1
@__func__.nonlinear_hmcode_fill_growtab = external hidden unnamed_addr constant [30 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

declare i32 @background_tau_of_z(ptr noundef, double noundef, ptr noundef) #1

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

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

declare i32 @background_at_tau(ptr noundef, double noundef, i16 noundef signext, i16 noundef signext, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @nonlinear_hmcode_fill_growtab(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca [2048 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca [2048 x i8], align 16
  %23 = alloca [2048 x i8], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.precision, ptr %24, i32 0, i32 163
  %26 = load i32, ptr %25, align 8, !tbaa !9
  store i32 %26, ptr %17, align 4, !tbaa !13
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.precision, ptr %27, i32 0, i32 166
  %29 = load double, ptr %28, align 8, !tbaa !14
  store double %29, ptr %11, align 8, !tbaa !15
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.precision, ptr %30, i32 0, i32 167
  %32 = load double, ptr %31, align 8, !tbaa !16
  store double %32, ptr %12, align 8, !tbaa !15
  store i32 0, ptr %16, align 4, !tbaa !13
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.background, ptr %33, i32 0, i32 99
  %35 = load i32, ptr %34, align 8, !tbaa !17
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, 8
  %38 = call noalias ptr @malloc(i64 noundef %37) #6
  store ptr %38, ptr %18, align 8, !tbaa !5
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %54

41:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.background, ptr %42, i32 0, i32 99
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = sext i32 %44 to i64
  %46 = mul i64 %45, 8
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %48 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %49 = load i32, ptr %19, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %48, ptr noundef @.str.15, ptr noundef @.str.79, i32 noundef %49)
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.nonlinear, ptr %50, i32 0, i32 45
  %52 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %53 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %52, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_fill_growtab, i32 noundef 3948, ptr noundef %53)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %142

54:                                               ; preds = %4
  store i32 0, ptr %15, align 4, !tbaa !13
  br label %55

55:                                               ; preds = %137, %54
  %56 = load i32, ptr %15, align 4, !tbaa !13
  %57 = load i32, ptr %17, align 4, !tbaa !13
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %59, label %140

59:                                               ; preds = %55
  %60 = load double, ptr %11, align 8, !tbaa !15
  %61 = load double, ptr %12, align 8, !tbaa !15
  %62 = load double, ptr %11, align 8, !tbaa !15
  %63 = fsub double %61, %62
  %64 = load i32, ptr %15, align 4, !tbaa !13
  %65 = sitofp i32 %64 to double
  %66 = fmul double %63, %65
  %67 = load i32, ptr %17, align 4, !tbaa !13
  %68 = sub nsw i32 %67, 1
  %69 = sitofp i32 %68 to double
  %70 = fdiv double %66, %69
  %71 = fadd double %60, %70
  store double %71, ptr %13, align 8, !tbaa !15
  %72 = load double, ptr %13, align 8, !tbaa !15
  %73 = fdiv double 1.000000e+00, %72
  %74 = fsub double %73, 1.000000e+00
  store double %74, ptr %10, align 8, !tbaa !15
  %75 = load double, ptr %10, align 8, !tbaa !15
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.nonlinear_workspace, ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = load i32, ptr %15, align 4, !tbaa !13
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  store double %75, ptr %81, align 8, !tbaa !15
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load double, ptr %10, align 8, !tbaa !15
  %84 = call i32 @background_tau_of_z(ptr noundef %82, double noundef %83, ptr noundef %14)
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %95

86:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #5
  %87 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.background, ptr %88, i32 0, i32 149
  %90 = getelementptr inbounds [2048 x i8], ptr %89, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %87, ptr noundef @.str.4, ptr noundef @.str.211, ptr noundef %90)
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.nonlinear, ptr %91, i32 0, i32 45
  %93 = getelementptr inbounds [2048 x i8], ptr %92, i64 0, i64 0
  %94 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %93, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_fill_growtab, i32 noundef 3961, ptr noundef %94)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %142

95:                                               ; preds = %59
  %96 = load double, ptr %14, align 8, !tbaa !15
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nonlinear_workspace, ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = load i32, ptr %15, align 4, !tbaa !13
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  store double %96, ptr %102, align 8, !tbaa !15
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load double, ptr %14, align 8, !tbaa !15
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.background, ptr %105, i32 0, i32 143
  %107 = load i16, ptr %106, align 4, !tbaa !23
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.background, ptr %108, i32 0, i32 144
  %110 = load i16, ptr %109, align 2, !tbaa !24
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  %112 = call i32 @background_at_tau(ptr noundef %103, double noundef %104, i16 noundef signext %107, i16 noundef signext %110, ptr noundef %16, ptr noundef %111)
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %123

114:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #5
  %115 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.background, ptr %116, i32 0, i32 149
  %118 = getelementptr inbounds [2048 x i8], ptr %117, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %115, ptr noundef @.str.4, ptr noundef @.str.204, ptr noundef %118)
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.nonlinear, ptr %119, i32 0, i32 45
  %121 = getelementptr inbounds [2048 x i8], ptr %120, i64 0, i64 0
  %122 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %121, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_fill_growtab, i32 noundef 3967, ptr noundef %122)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %142

123:                                              ; preds = %95
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.background, ptr %125, i32 0, i32 95
  %127 = load i32, ptr %126, align 8, !tbaa !25
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %124, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !15
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nonlinear_workspace, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !26
  %134 = load i32, ptr %15, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  store double %130, ptr %136, align 8, !tbaa !15
  br label %137

137:                                              ; preds = %123
  %138 = load i32, ptr %15, align 4, !tbaa !13
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %15, align 4, !tbaa !13
  br label %55, !llvm.loop !27

140:                                              ; preds = %55
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %141) #5
  store i32 0, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %142

142:                                              ; preds = %140, %114, %86, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %143 = load i32, ptr %5, align 4
  ret i32 %143
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 2256}
!10 = !{!"precision", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !11, i64 360, !12, i64 368, !11, i64 376, !12, i64 384, !12, i64 388, !11, i64 392, !12, i64 400, !11, i64 408, !12, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !12, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !11, i64 1400, !11, i64 1408, !11, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !11, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !11, i64 1520, !12, i64 1528, !11, i64 1536, !11, i64 1544, !12, i64 1552, !12, i64 1556, !12, i64 1560, !12, i64 1564, !12, i64 1568, !12, i64 1572, !12, i64 1576, !12, i64 1580, !11, i64 1584, !11, i64 1592, !11, i64 1600, !11, i64 1608, !11, i64 1616, !11, i64 1624, !11, i64 1632, !11, i64 1640, !12, i64 1648, !11, i64 1656, !11, i64 1664, !12, i64 1672, !11, i64 1680, !11, i64 1688, !12, i64 1696, !11, i64 1704, !12, i64 1712, !11, i64 1720, !11, i64 1728, !12, i64 1736, !11, i64 1744, !11, i64 1752, !11, i64 1760, !12, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !12, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !12, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !11, i64 1944, !11, i64 1952, !11, i64 1960, !11, i64 1968, !11, i64 1976, !11, i64 1984, !11, i64 1992, !11, i64 2000, !11, i64 2008, !11, i64 2016, !11, i64 2024, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !11, i64 2072, !11, i64 2080, !11, i64 2088, !11, i64 2096, !11, i64 2104, !11, i64 2112, !11, i64 2120, !11, i64 2128, !11, i64 2136, !11, i64 2144, !11, i64 2152, !11, i64 2160, !11, i64 2168, !11, i64 2176, !11, i64 2184, !11, i64 2192, !11, i64 2200, !11, i64 2208, !11, i64 2216, !11, i64 2224, !11, i64 2232, !11, i64 2240, !11, i64 2248, !12, i64 2256, !11, i64 2264, !11, i64 2272, !11, i64 2280, !11, i64 2288, !12, i64 2296, !11, i64 2304, !11, i64 2312, !12, i64 2320, !12, i64 2324, !12, i64 2328, !11, i64 2336, !11, i64 2344, !7, i64 2352}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !11, i64 2280}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 2288}
!17 = !{!18, !12, i64 624}
!18 = !{!"background", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !19, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !19, i64 176, !11, i64 184, !11, i64 192, !6, i64 200, !12, i64 208, !12, i64 212, !11, i64 216, !12, i64 224, !6, i64 232, !6, i64 240, !11, i64 248, !6, i64 256, !11, i64 264, !6, i64 272, !11, i64 280, !6, i64 288, !11, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !12, i64 360, !6, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !12, i64 520, !12, i64 524, !12, i64 528, !12, i64 532, !12, i64 536, !12, i64 540, !12, i64 544, !12, i64 548, !12, i64 552, !12, i64 556, !12, i64 560, !12, i64 564, !12, i64 568, !12, i64 572, !12, i64 576, !12, i64 580, !12, i64 584, !12, i64 588, !12, i64 592, !12, i64 596, !12, i64 600, !12, i64 604, !12, i64 608, !12, i64 612, !12, i64 616, !12, i64 620, !12, i64 624, !12, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !12, i64 672, !12, i64 676, !12, i64 680, !12, i64 684, !12, i64 688, !12, i64 692, !12, i64 696, !12, i64 700, !12, i64 704, !12, i64 708, !12, i64 712, !12, i64 716, !12, i64 720, !19, i64 724, !19, i64 726, !19, i64 728, !19, i64 730, !19, i64 732, !19, i64 734, !19, i64 736, !19, i64 738, !19, i64 740, !19, i64 742, !19, 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, !19, i64 840, !19, i64 842, !19, i64 844, !19, i64 846, !19, i64 848, !19, i64 850, !7, i64 852, !19, i64 2900, !7, i64 2902}
!19 = !{!"short", !7, i64 0}
!20 = !{!21, !6, i64 32}
!21 = !{!"nonlinear_workspace", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80}
!22 = !{!21, !6, i64 40}
!23 = !{!18, !19, i64 844}
!24 = !{!18, !19, i64 846}
!25 = !{!18, !12, i64 608}
!26 = !{!21, !6, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [88 x i8], align 1
@__func__.nonlinear_hmcode_fill_growtab = external hidden unnamed_addr constant [30 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

declare i32 @background_tau_of_z(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

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

declare i32 @background_at_tau(ptr noundef, double noundef, i16 noundef signext, i16 noundef signext, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_hmcode_fill_growtab(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #4 {
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 2256
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 2280
  %13 = load double, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %0, i64 2288
  %15 = load double, ptr %14, align 8, !tbaa !12
  store i32 0, ptr %6, align 4, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %1, i64 624
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = sext i32 %17 to i64
  %19 = shl nsw i64 %18, 3
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #6
  %21 = icmp eq ptr %20, null
  br i1 %21, label %32, label %.preheader

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

.lr.ph:                                           ; preds = %.preheader
  %23 = fsub double %15, %13
  %24 = add nsw i32 %11, -1
  %25 = uitofp nneg i32 %24 to double
  %26 = getelementptr inbounds i8, ptr %3, i64 32
  %27 = getelementptr inbounds i8, ptr %3, i64 40
  %28 = getelementptr inbounds i8, ptr %1, i64 844
  %29 = getelementptr inbounds i8, ptr %1, i64 846
  %30 = getelementptr inbounds i8, ptr %1, i64 608
  %31 = getelementptr inbounds i8, ptr %3, i64 24
  %wide.trip.count = zext nneg i32 %11 to i64
  br label %35

32:                                               ; preds = %4
  %33 = shl i32 %17, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.79, i32 noundef %33) #5
  %34 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %34, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_fill_growtab, i32 noundef 3948, ptr noundef nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %68

35:                                               ; preds = %.lr.ph, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %61 ]
  %36 = trunc nuw nsw i64 %indvars.iv to i32
  %37 = uitofp nneg i32 %36 to double
  %38 = fmul double %23, %37
  %39 = fdiv double %38, %25
  %40 = fadd double %13, %39
  %41 = fdiv double 1.000000e+00, %40
  %42 = fadd double %41, -1.000000e+00
  %43 = load ptr, ptr %26, align 8, !tbaa !18
  %44 = getelementptr inbounds double, ptr %43, i64 %indvars.iv
  store double %42, ptr %44, align 8, !tbaa !20
  %45 = call i32 @background_tau_of_z(ptr noundef nonnull %1, double noundef %42, ptr noundef nonnull %5) #5
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %50

47:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #5
  %48 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.211, ptr noundef nonnull %48) #5
  %49 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %49, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_fill_growtab, i32 noundef 3961, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  br label %68

50:                                               ; preds = %35
  %51 = load double, ptr %5, align 8, !tbaa !20
  %52 = load ptr, ptr %27, align 8, !tbaa !21
  %53 = getelementptr inbounds double, ptr %52, i64 %indvars.iv
  store double %51, ptr %53, align 8, !tbaa !20
  %54 = load i16, ptr %28, align 4, !tbaa !22
  %55 = load i16, ptr %29, align 2, !tbaa !23
  %56 = call i32 @background_at_tau(ptr noundef nonnull %1, double noundef %51, i16 noundef signext %54, i16 noundef signext %55, ptr noundef nonnull %6, ptr noundef nonnull %20) #5
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %58, label %61

58:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  %59 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.204, ptr noundef nonnull %59) #5
  %60 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %60, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_fill_growtab, i32 noundef 3967, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %68

61:                                               ; preds = %50
  %62 = load i32, ptr %30, align 8, !tbaa !24
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %20, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !20
  %66 = load ptr, ptr %31, align 8, !tbaa !25
  %67 = getelementptr inbounds double, ptr %66, i64 %indvars.iv
  store double %65, ptr %67, align 8, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %35, !llvm.loop !26

._crit_edge:                                      ; preds = %61, %.preheader
  call void @free(ptr noundef nonnull %20) #5
  br label %68

68:                                               ; preds = %._crit_edge, %58, %47, %32
  %.0 = phi i32 [ 1, %32 ], [ 1, %47 ], [ 1, %58 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret i32 %.0
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 2256}
!6 = !{!"precision", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !8, i64 104, !7, i64 360, !10, i64 368, !7, i64 376, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !7, i64 408, !10, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !10, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !7, i64 1400, !7, i64 1408, !7, i64 1416, !7, i64 1424, !7, i64 1432, !7, i64 1440, !7, i64 1448, !7, i64 1456, !7, i64 1464, !7, i64 1472, !7, i64 1480, !7, i64 1488, !7, i64 1496, !7, i64 1504, !7, i64 1512, !7, i64 1520, !10, i64 1528, !7, i64 1536, !7, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !7, i64 1584, !7, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !7, i64 1624, !7, i64 1632, !7, i64 1640, !10, i64 1648, !7, i64 1656, !7, i64 1664, !10, i64 1672, !7, i64 1680, !7, i64 1688, !10, i64 1696, !7, i64 1704, !10, i64 1712, !7, i64 1720, !7, i64 1728, !10, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !10, i64 1768, !7, i64 1776, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !10, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !7, i64 1928, !7, i64 1936, !7, i64 1944, !7, i64 1952, !7, i64 1960, !7, i64 1968, !7, i64 1976, !7, i64 1984, !7, i64 1992, !7, i64 2000, !7, i64 2008, !7, i64 2016, !7, i64 2024, !7, i64 2032, !7, i64 2040, !7, i64 2048, !7, i64 2056, !7, i64 2064, !7, i64 2072, !7, i64 2080, !7, i64 2088, !7, i64 2096, !7, i64 2104, !7, i64 2112, !7, i64 2120, !7, i64 2128, !7, i64 2136, !7, i64 2144, !7, i64 2152, !7, i64 2160, !7, i64 2168, !7, i64 2176, !7, i64 2184, !7, i64 2192, !7, i64 2200, !7, i64 2208, !7, i64 2216, !7, i64 2224, !7, i64 2232, !7, i64 2240, !7, i64 2248, !10, i64 2256, !7, i64 2264, !7, i64 2272, !7, i64 2280, !7, i64 2288, !10, i64 2296, !7, i64 2304, !7, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !7, i64 2336, !7, i64 2344, !8, i64 2352}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 2280}
!12 = !{!6, !7, i64 2288}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !10, i64 624}
!15 = !{!"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, !16, 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, !16, i64 176, !7, i64 184, !7, i64 192, !17, i64 200, !10, i64 208, !10, i64 212, !7, i64 216, !10, i64 224, !17, i64 232, !17, i64 240, !7, i64 248, !17, i64 256, !7, i64 264, !17, i64 272, !7, i64 280, !17, i64 288, !7, i64 296, !17, i64 304, !17, i64 312, !17, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !10, i64 360, !17, 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, !17, i64 632, !17, i64 640, !17, i64 648, !17, i64 656, !17, 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, !16, i64 724, !16, i64 726, !16, i64 728, !16, i64 730, !16, i64 732, !16, i64 734, !16, i64 736, !16, i64 738, !16, i64 740, !16, i64 742, !16, i64 744, !17, i64 752, !17, i64 760, !17, i64 768, !17, i64 776, !17, i64 784, !17, i64 792, !17, i64 800, !17, i64 808, !17, i64 816, !17, i64 824, !17, i64 832, !16, i64 840, !16, i64 842, !16, i64 844, !16, i64 846, !16, i64 848, !16, i64 850, !8, i64 852, !16, i64 2900, !8, i64 2902}
!16 = !{!"short", !8, i64 0}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!19, !17, i64 32}
!19 = !{!"nonlinear_workspace", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !7, i64 80}
!20 = !{!7, !7, i64 0}
!21 = !{!19, !17, i64 40}
!22 = !{!15, !16, i64 844}
!23 = !{!15, !16, i64 846}
!24 = !{!15, !10, i64 608}
!25 = !{!19, !17, i64 24}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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