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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [70 x i8], align 1
@__func__.perturb_find_approximation_number = external hidden unnamed_addr constant [34 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [225 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [18 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

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

33:                                               ; preds = %120, %11
  %34 = load i32, ptr %24, align 4, !tbaa !9
  %35 = load ptr, ptr %19, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.perturb_workspace, ptr %35, i32 0, i32 55
  %37 = load i32, ptr %36, align 8, !tbaa !13
  %38 = icmp slt i32 %34, %37
  br i1 %38, label %39, label %123

39:                                               ; preds = %33
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = load i32, ptr %17, align 4, !tbaa !9
  %45 = load double, ptr %18, align 8, !tbaa !11
  %46 = load double, ptr %20, align 8, !tbaa !11
  %47 = load ptr, ptr %19, align 8, !tbaa !5
  %48 = call i32 @perturb_approximations(ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, i32 noundef %44, double noundef %45, double noundef %46, ptr noundef %47)
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %59

50:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #3
  %51 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.perturbs, ptr %52, i32 0, i32 186
  %54 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %51, ptr noundef @.str, ptr noundef @.str.251, ptr noundef %54)
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.perturbs, ptr %55, i32 0, i32 186
  %57 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %58 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %57, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_number, i32 noundef 3267, ptr noundef %58)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %28, align 4
  br label %124

59:                                               ; preds = %39
  %60 = load ptr, ptr %19, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.perturb_workspace, ptr %60, i32 0, i32 56
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = load i32, ptr %24, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %62, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !9
  store i32 %66, ptr %25, align 4, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = load i32, ptr %17, align 4, !tbaa !9
  %72 = load double, ptr %18, align 8, !tbaa !11
  %73 = load double, ptr %21, align 8, !tbaa !11
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  %75 = call i32 @perturb_approximations(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, i32 noundef %71, double noundef %72, double noundef %73, ptr noundef %74)
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %86

77:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #3
  %78 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.perturbs, ptr %79, i32 0, i32 186
  %81 = getelementptr inbounds [2048 x i8], ptr %80, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str, ptr noundef @.str.252, ptr noundef %81)
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.perturbs, ptr %82, i32 0, i32 186
  %84 = getelementptr inbounds [2048 x i8], ptr %83, i64 0, i64 0
  %85 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %84, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_number, i32 noundef 3280, ptr noundef %85)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %28, align 4
  br label %124

86:                                               ; preds = %59
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.perturb_workspace, ptr %87, i32 0, i32 56
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = load i32, ptr %24, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  store i32 %93, ptr %26, align 4, !tbaa !9
  %94 = load i32, ptr %26, align 4, !tbaa !9
  %95 = load i32, ptr %25, align 4, !tbaa !9
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %97, label %105

97:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #3
  %98 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %98, ptr noundef @.str.253)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %31) #3
  %99 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %100 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %99, ptr noundef @.str.7, ptr noundef @.str.254, ptr noundef %100)
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.perturbs, ptr %101, i32 0, i32 186
  %103 = getelementptr inbounds [2048 x i8], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %103, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_number, i32 noundef 3286, ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %28, align 4
  br label %124

105:                                              ; preds = %86
  %106 = load i32, ptr %26, align 4, !tbaa !9
  %107 = load i32, ptr %25, align 4, !tbaa !9
  %108 = sub nsw i32 %106, %107
  %109 = load ptr, ptr %22, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = add nsw i32 %110, %108
  store i32 %111, ptr %109, align 4, !tbaa !9
  %112 = load i32, ptr %26, align 4, !tbaa !9
  %113 = load i32, ptr %25, align 4, !tbaa !9
  %114 = sub nsw i32 %112, %113
  %115 = add nsw i32 %114, 1
  %116 = load ptr, ptr %23, align 8, !tbaa !5
  %117 = load i32, ptr %24, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %116, i64 %118
  store i32 %115, ptr %119, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %105
  %121 = load i32, ptr %24, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %24, align 4, !tbaa !9
  br label %33, !llvm.loop !17

123:                                              ; preds = %33
  store i32 0, ptr %12, align 4
  store i32 1, ptr %28, align 4
  br label %124

124:                                              ; preds = %123, %97, %77, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  %125 = load i32, ptr %12, align 4
  ret i32 %125
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_approximations(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, ptr noundef) #2

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 360}
!14 = !{!"perturb_workspace", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !6, i64 312, !10, i64 320, !15, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !6, i64 368, !10, i64 376, !6, i64 384}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !6, i64 368}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [70 x i8], align 1
@__func__.perturb_find_approximation_number = external hidden unnamed_addr constant [34 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [225 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [18 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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @perturb_find_approximation_number(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, ptr noundef %6, double noundef %7, double noundef %8, ptr nocapture noundef %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #2 {
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  store i32 1, ptr %9, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %6, i64 360
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %11
  %19 = getelementptr inbounds i8, ptr %6, i64 368
  br label %20

20:                                               ; preds = %.lr.ph, %40
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %40 ]
  %21 = tail call i32 @perturb_approximations(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %7, ptr noundef nonnull %6)
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #3
  %24 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.251, ptr noundef nonnull %24) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %24, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_number, i32 noundef 3267, ptr noundef nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #3
  br label %.loopexit

25:                                               ; preds = %20
  %26 = load ptr, ptr %19, align 8, !tbaa !14
  %27 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = tail call i32 @perturb_approximations(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %8, ptr noundef nonnull %6)
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %33

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #3
  %32 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.252, ptr noundef nonnull %32) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %32, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_number, i32 noundef 3280, ptr noundef nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #3
  br label %.loopexit

33:                                               ; preds = %25
  %34 = load ptr, ptr %19, align 8, !tbaa !14
  %35 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp slt i32 %36, %28
  br i1 %37, label %38, label %40

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.253) #3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.254, ptr noundef nonnull %14) #3
  %39 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %39, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_number, i32 noundef 3286, ptr noundef nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #3
  br label %.loopexit

40:                                               ; preds = %33
  %41 = sub nsw i32 %36, %28
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = add nsw i32 %42, %41
  store i32 %43, ptr %9, align 4, !tbaa !5
  %44 = add nsw i32 %41, 1
  %45 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  store i32 %44, ptr %45, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = load i32, ptr %16, align 8, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next, %47
  br i1 %48, label %20, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %40, %11, %38, %31, %23
  %.0 = phi i32 [ 1, %23 ], [ 1, %31 ], [ 1, %38 ], [ 0, %11 ], [ 0, %40 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_approximations(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 360}
!10 = !{!"perturb_workspace", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !11, i64 312, !6, i64 320, !13, i64 324, !6, i64 328, !6, i64 332, !6, i64 336, !6, i64 340, !6, i64 344, !6, i64 348, !6, i64 352, !6, i64 356, !6, i64 360, !11, i64 368, !6, i64 376, !11, i64 384}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !11, i64 368}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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