; LLVM IR from Sytronik/pyin-rs :: test (test)

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

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 24000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = mul i32 %19, 3
  store i32 %20, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  %23 = mul i64 8, %22
  %24 = call noalias ptr @malloc(i64 noundef %23) #6
  store ptr %24, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 2048, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %42, %0
  %26 = load i32, ptr %11, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp ult i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %45

30:                                               ; preds = %25
  %31 = load i32, ptr %11, align 4, !tbaa !5
  %32 = sitofp i32 %31 to double
  %33 = fmul double 0x40978FDB9EFFEA46, %32
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = uitofp i32 %34 to double
  %36 = fdiv double %33, %35
  %37 = call double @sin(double noundef %36) #5
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %38, i64 %40
  store double %37, ptr %41, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %30
  %43 = load i32, ptr %11, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %11, align 4, !tbaa !5
  br label %25, !llvm.loop !13

45:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %46 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %46, ptr %12, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %58, %45
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = mul i32 2, %49
  %51 = icmp ult i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %61

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  store double 0.000000e+00, ptr %57, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %53
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !5
  br label %47, !llvm.loop !15

61:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = mul i32 2, %62
  store i32 %63, ptr %13, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %82, %61
  %65 = load i32, ptr %13, align 4, !tbaa !5
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = mul i32 3, %66
  %68 = icmp ult i32 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %85

70:                                               ; preds = %64
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = sitofp i32 %71 to double
  %73 = fmul double 0x40A78FDB9EFFEA46, %72
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = uitofp i32 %74 to double
  %76 = fdiv double %73, %75
  %77 = call double @sin(double noundef %76) #5
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  store double %77, ptr %81, align 8, !tbaa !11
  br label %82

82:                                               ; preds = %70
  %83 = load i32, ptr %13, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %13, align 4, !tbaa !5
  br label %64, !llvm.loop !16

85:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = call i32 @pyin(ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %86, i32 noundef %87, i32 noundef %88, double noundef 8.000000e+01, double noundef 8.000000e+02, i32 noundef %89, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00, double noundef 0x7FF8000000000000, i1 noundef zeroext true, i32 noundef 0)
  store i32 %90, ptr %14, align 4, !tbaa !5
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %91)
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %93)
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = icmp ugt i32 %95, 0
  br i1 %96, label %97, label %175

97:                                               ; preds = %85
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %111, %97
  %100 = load i32, ptr %15, align 4, !tbaa !5
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = icmp ult i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %114

104:                                              ; preds = %99
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !11
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %109)
  br label %111

111:                                              ; preds = %104
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %15, align 4, !tbaa !5
  br label %99, !llvm.loop !17

114:                                              ; preds = %103
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %129, %114
  %118 = load i32, ptr %16, align 4, !tbaa !5
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = icmp ult i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %132

122:                                              ; preds = %117
  %123 = load ptr, ptr %7, align 8, !tbaa !9
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %127)
  br label %129

129:                                              ; preds = %122
  %130 = load i32, ptr %16, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %16, align 4, !tbaa !5
  br label %117, !llvm.loop !18

132:                                              ; preds = %121
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %152, %132
  %136 = load i32, ptr %17, align 4, !tbaa !5
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = icmp ult i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %155

140:                                              ; preds = %135
  %141 = load ptr, ptr %8, align 8, !tbaa !9
  %142 = load i32, ptr %17, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i8, ptr %141, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !19, !range !21, !noundef !22
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %149

147:                                              ; preds = %140
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %151

149:                                              ; preds = %140
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %151

151:                                              ; preds = %149, %147
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %17, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %17, align 4, !tbaa !5
  br label %135, !llvm.loop !23

155:                                              ; preds = %139
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %170, %155
  %159 = load i32, ptr %18, align 4, !tbaa !5
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = icmp ult i32 %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %173

163:                                              ; preds = %158
  %164 = load ptr, ptr %9, align 8, !tbaa !9
  %165 = load i32, ptr %18, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %168)
  br label %170

170:                                              ; preds = %163
  %171 = load i32, ptr %18, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %18, align 4, !tbaa !5
  br label %158, !llvm.loop !24

173:                                              ; preds = %162
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %175

175:                                              ; preds = %173, %85
  %176 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %176) #5
  %177 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %177) #5
  %178 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %178) #5
  %179 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %179) #5
  %180 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %180) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

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

; Function Attrs: nounwind
declare double @sin(double 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 @pyin(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, i1 noundef zeroext, i32 noundef) #4

declare i32 @printf(ptr noundef, ...) #4

; Function Attrs: nounwind
declare void @free(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 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{!20, !20, i64 0}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


; 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 [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = tail call noalias dereferenceable_or_null(576000) ptr @malloc(i64 noundef 576000) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %7, %0
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next.2, %7 ]
  %8 = trunc nuw nsw i64 %indvars.iv to i32
  %9 = uitofp nneg i32 %8 to double
  %10 = fmul double %9, 0x40978FDB9EFFEA46
  %11 = fdiv double %10, 2.400000e+04
  %12 = tail call double @sin(double noundef %11) #9
  %13 = getelementptr inbounds double, ptr %6, i64 %indvars.iv
  store double %12, ptr %13, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = trunc nuw nsw i64 %indvars.iv.next to i32
  %15 = uitofp nneg i32 %14 to double
  %16 = fmul double %15, 0x40978FDB9EFFEA46
  %17 = fdiv double %16, 2.400000e+04
  %18 = tail call double @sin(double noundef %17) #9
  %19 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next
  store double %18, ptr %19, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %20 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  %21 = uitofp nneg i32 %20 to double
  %22 = fmul double %21, 0x40978FDB9EFFEA46
  %23 = fdiv double %22, 2.400000e+04
  %24 = tail call double @sin(double noundef %23) #9
  %25 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next.1
  store double %24, ptr %25, align 8, !tbaa !11
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %exitcond.not.2 = icmp eq i64 %indvars.iv.next.2, 24000
  br i1 %exitcond.not.2, label %.preheader46.preheader, label %7, !llvm.loop !13

.preheader46.preheader:                           ; preds = %7
  %scevgep = getelementptr i8, ptr %6, i64 192000
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(192000) %scevgep, i8 0, i64 192000, i1 false), !tbaa !11
  br label %.preheader

26:                                               ; preds = %.preheader
  %27 = call i32 @pyin(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 72000, i32 noundef 24000, double noundef 8.000000e+01, double noundef 8.000000e+02, i32 noundef 2048, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00, double noundef 0x7FF8000000000000, i1 noundef zeroext true, i32 noundef 0) #9
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %27)
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %29)
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %92, label %50

.preheader:                                       ; preds = %.preheader, %.preheader46.preheader
  %indvars.iv71 = phi i64 [ 48000, %.preheader46.preheader ], [ %indvars.iv.next72.2, %.preheader ]
  %32 = trunc nuw nsw i64 %indvars.iv71 to i32
  %33 = uitofp nneg i32 %32 to double
  %34 = fmul double %33, 0x40A78FDB9EFFEA46
  %35 = fdiv double %34, 2.400000e+04
  %36 = tail call double @sin(double noundef %35) #9
  %37 = getelementptr inbounds double, ptr %6, i64 %indvars.iv71
  store double %36, ptr %37, align 8, !tbaa !11
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %38 = trunc nuw nsw i64 %indvars.iv.next72 to i32
  %39 = uitofp nneg i32 %38 to double
  %40 = fmul double %39, 0x40A78FDB9EFFEA46
  %41 = fdiv double %40, 2.400000e+04
  %42 = tail call double @sin(double noundef %41) #9
  %43 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next72
  store double %42, ptr %43, align 8, !tbaa !11
  %indvars.iv.next72.1 = add nuw nsw i64 %indvars.iv71, 2
  %44 = trunc nuw nsw i64 %indvars.iv.next72.1 to i32
  %45 = uitofp nneg i32 %44 to double
  %46 = fmul double %45, 0x40A78FDB9EFFEA46
  %47 = fdiv double %46, 2.400000e+04
  %48 = tail call double @sin(double noundef %47) #9
  %49 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next72.1
  store double %48, ptr %49, align 8, !tbaa !11
  %indvars.iv.next72.2 = add nuw nsw i64 %indvars.iv71, 3
  %exitcond74.not.2 = icmp eq i64 %indvars.iv.next72.2, 72000
  br i1 %exitcond74.not.2, label %26, label %.preheader, !llvm.loop !15

50:                                               ; preds = %26
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %.not63 = icmp eq i32 %52, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %50
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %.not64 = icmp eq i32 %55, 0
  br i1 %.not64, label %._crit_edge54, label %.lr.ph53

.lr.ph:                                           ; preds = %50, %.lr.ph
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph ], [ 0, %50 ]
  %56 = load ptr, ptr %1, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 %indvars.iv75
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %58)
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = icmp ult i64 %indvars.iv.next76, %61
  br i1 %62, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge54:                                    ; preds = %.lr.ph53, %._crit_edge
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %.not65 = icmp eq i32 %65, 0
  br i1 %.not65, label %._crit_edge58, label %.lr.ph57

.lr.ph53:                                         ; preds = %._crit_edge, %.lr.ph53
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %.lr.ph53 ], [ 0, %._crit_edge ]
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 %indvars.iv78
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %68)
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = icmp ult i64 %indvars.iv.next79, %71
  br i1 %72, label %.lr.ph53, label %._crit_edge54, !llvm.loop !17

._crit_edge58:                                    ; preds = %.lr.ph57, %._crit_edge54
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %.not66 = icmp eq i32 %75, 0
  br i1 %.not66, label %._crit_edge62, label %.lr.ph61

.lr.ph57:                                         ; preds = %._crit_edge54, %.lr.ph57
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %.lr.ph57 ], [ 0, %._crit_edge54 ]
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 %indvars.iv81
  %78 = load i8, ptr %77, align 1, !tbaa !18, !range !20, !noundef !21
  %79 = trunc nuw i8 %78 to i1
  %.str.8..str.9 = select i1 %79, ptr @.str.8, ptr @.str.9
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.8..str.9)
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = icmp ult i64 %indvars.iv.next82, %82
  br i1 %83, label %.lr.ph57, label %._crit_edge58, !llvm.loop !22

._crit_edge62:                                    ; preds = %.lr.ph61, %._crit_edge58
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %92

.lr.ph61:                                         ; preds = %._crit_edge58, %.lr.ph61
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph61 ], [ 0, %._crit_edge58 ]
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 %indvars.iv84
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %87)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = icmp ult i64 %indvars.iv.next85, %90
  br i1 %91, label %.lr.ph61, label %._crit_edge62, !llvm.loop !23

92:                                               ; preds = %._crit_edge62, %26
  call void @free(ptr noundef %6) #9
  %93 = load ptr, ptr %1, align 8, !tbaa !5
  call void @free(ptr noundef %93) #9
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %94) #9
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %95) #9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %96) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  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 allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double 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 @pyin(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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 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 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 #4 = { "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 = { nofree 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !19, i64 0}
!19 = !{!"_Bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


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