; LLVM IR from STMicroelectronics/STMems_Machine_Learning_Core :: tools/mlc_tilt_angle_tool (DecisionTree_for_AngleDetection)

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

@fp_session = external hidden global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [25 x i8], align 1
@angle2 = external hidden global double, align 8
@angle1 = external hidden global double, align 8
@leaves = external hidden global i32, align 4
@angle_step = external hidden global double, align 8
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@rms_flags = external hidden global [255 x i32], align 16
@angles = external hidden global [255 x double], align 16
@h_acc = external hidden global [255 x double], align 16
@v_acc = external hidden global [255 x double], align 16
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [62 x i8], align 1
@h_ths = external hidden global [255 x double], align 16
@v_ths = external hidden global [255 x double], align 16
@max_rec_level = external hidden global i32, align 4
@tree_size = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dectree_design_init() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %4 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef @.str.25) #4
  %5 = load double, ptr @angle2, align 8, !tbaa !9
  %6 = load double, ptr @angle1, align 8, !tbaa !9
  %7 = fsub double %5, %6
  %8 = load i32, ptr @leaves, align 4, !tbaa !11
  %9 = sub nsw i32 %8, 1
  %10 = sitofp i32 %9 to double
  %11 = fdiv double %7, %10
  store double %11, ptr @angle_step, align 8, !tbaa !9
  %12 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %13 = load double, ptr @angle_step, align 8, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.26, double noundef %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %15

15:                                               ; preds = %48, %0
  %16 = load i32, ptr %1, align 4, !tbaa !11
  %17 = load i32, ptr @leaves, align 4, !tbaa !11
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %51

20:                                               ; preds = %15
  %21 = load i32, ptr %1, align 4, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [255 x i32], ptr @rms_flags, i64 0, i64 %22
  store i32 0, ptr %23, align 4, !tbaa !11
  %24 = load double, ptr @angle1, align 8, !tbaa !9
  %25 = load double, ptr @angle_step, align 8, !tbaa !9
  %26 = load i32, ptr %1, align 4, !tbaa !11
  %27 = sitofp i32 %26 to double
  %28 = call double @llvm.fmuladd.f64(double %25, double %27, double %24)
  %29 = load i32, ptr %1, align 4, !tbaa !11
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [255 x double], ptr @angles, i64 0, i64 %30
  store double %28, ptr %31, align 8, !tbaa !9
  %32 = load i32, ptr %1, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [255 x double], ptr @angles, i64 0, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = call double @angle2acc(double noundef %35, i32 noundef 0)
  %37 = load i32, ptr %1, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %38
  store double %36, ptr %39, align 8, !tbaa !9
  %40 = load i32, ptr %1, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [255 x double], ptr @angles, i64 0, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = call double @angle2acc(double noundef %43, i32 noundef 1)
  %45 = load i32, ptr %1, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %46
  store double %44, ptr %47, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %20
  %49 = load i32, ptr %1, align 4, !tbaa !11
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %1, align 4, !tbaa !11
  br label %15, !llvm.loop !13

51:                                               ; preds = %19
  %52 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %53 = load i32, ptr @leaves, align 4, !tbaa !11
  %54 = sub nsw i32 %53, 1
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.27, i32 noundef %54) #4
  %56 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %57 = load double, ptr @angle_step, align 8, !tbaa !9
  %58 = load double, ptr @angle1, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.28, double noundef %57, double noundef %58) #4
  %60 = load double, ptr @angle1, align 8, !tbaa !9
  %61 = fcmp oeq double %60, -1.800000e+02
  br i1 %61, label %62, label %80

62:                                               ; preds = %51
  %63 = load double, ptr @angle2, align 8, !tbaa !9
  %64 = fcmp oeq double %63, 1.800000e+02
  br i1 %64, label %65, label %80

65:                                               ; preds = %62
  %66 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.29) #4
  %68 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.30) #4
  %70 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %71 = load double, ptr getelementptr inbounds ([255 x double], ptr @angles, i64 0, i64 1), align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.31, double noundef %71) #4
  %73 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %74 = load i32, ptr @leaves, align 4, !tbaa !11
  %75 = sub nsw i32 %74, 2
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [255 x double], ptr @angles, i64 0, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.32, double noundef %78) #4
  br label %80

80:                                               ; preds = %65, %62, %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %142, %80
  %82 = load i32, ptr %2, align 4, !tbaa !11
  %83 = load i32, ptr @leaves, align 4, !tbaa !11
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %145

86:                                               ; preds = %81
  %87 = load i32, ptr %2, align 4, !tbaa !11
  %88 = load i32, ptr @leaves, align 4, !tbaa !11
  %89 = sub nsw i32 %88, 1
  %90 = icmp eq i32 %87, %89
  br i1 %90, label %91, label %112

91:                                               ; preds = %86
  %92 = load i32, ptr %2, align 4, !tbaa !11
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load double, ptr @h_acc, align 16, !tbaa !9
  %97 = fadd double %95, %96
  %98 = fdiv double %97, 2.000000e+00
  %99 = load i32, ptr %2, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [255 x double], ptr @h_ths, i64 0, i64 %100
  store double %98, ptr %101, align 8, !tbaa !9
  %102 = load i32, ptr %2, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = load double, ptr @v_acc, align 16, !tbaa !9
  %107 = fadd double %105, %106
  %108 = fdiv double %107, 2.000000e+00
  %109 = load i32, ptr %2, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [255 x double], ptr @v_ths, i64 0, i64 %110
  store double %108, ptr %111, align 8, !tbaa !9
  br label %141

112:                                              ; preds = %86
  %113 = load i32, ptr %2, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = load i32, ptr %2, align 4, !tbaa !11
  %118 = add nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = fadd double %116, %121
  %123 = fdiv double %122, 2.000000e+00
  %124 = load i32, ptr %2, align 4, !tbaa !11
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [255 x double], ptr @h_ths, i64 0, i64 %125
  store double %123, ptr %126, align 8, !tbaa !9
  %127 = load i32, ptr %2, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = load i32, ptr %2, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = fadd double %130, %135
  %137 = fdiv double %136, 2.000000e+00
  %138 = load i32, ptr %2, align 4, !tbaa !11
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [255 x double], ptr @v_ths, i64 0, i64 %139
  store double %137, ptr %140, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %112, %91
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %2, align 4, !tbaa !11
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %2, align 4, !tbaa !11
  br label %81, !llvm.loop !15

145:                                              ; preds = %85
  store i32 0, ptr @max_rec_level, align 4, !tbaa !11
  store i32 0, ptr @tree_size, align 4, !tbaa !11
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: nounwind uwtable
declare hidden double @angle2acc(double noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

@fp_session = external hidden local_unnamed_addr global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [25 x i8], align 1
@angle2 = external hidden local_unnamed_addr global double, align 8
@angle1 = external hidden local_unnamed_addr global double, align 8
@leaves = external hidden local_unnamed_addr global i32, align 4
@angle_step = external hidden local_unnamed_addr global double, align 8
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@rms_flags = external hidden local_unnamed_addr global [255 x i32], align 16
@angles = external hidden local_unnamed_addr global [255 x double], align 16
@h_acc = external hidden local_unnamed_addr global [255 x double], align 16
@v_acc = external hidden local_unnamed_addr global [255 x double], align 16
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [62 x i8], align 1
@h_ths = external hidden local_unnamed_addr global [255 x double], align 16
@v_ths = external hidden local_unnamed_addr global [255 x double], align 16
@max_rec_level = external hidden local_unnamed_addr global i32, align 4
@tree_size = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dectree_design_init() local_unnamed_addr #0 {
  %1 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %2 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.25) #3
  %3 = load double, ptr @angle2, align 8, !tbaa !9
  %4 = load double, ptr @angle1, align 8, !tbaa !9
  %5 = fsub double %3, %4
  %6 = load i32, ptr @leaves, align 4, !tbaa !11
  %7 = add nsw i32 %6, -1
  %8 = sitofp i32 %7 to double
  %9 = fdiv double %5, %8
  store double %9, ptr @angle_step, align 8, !tbaa !9
  %10 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.26, double noundef %9) #3
  %12 = load i32, ptr @leaves, align 4, !tbaa !11
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa = phi i32 [ %12, %0 ], [ %37, %.lr.ph ]
  %14 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %15 = add nsw i32 %.lcssa, -1
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.27, i32 noundef %15) #3
  %17 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %18 = load double, ptr @angle_step, align 8, !tbaa !9
  %19 = load double, ptr @angle1, align 8, !tbaa !9
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.28, double noundef %18, double noundef %19) #3
  %21 = load double, ptr @angle1, align 8, !tbaa !9
  %22 = fcmp oeq double %21, -1.800000e+02
  %23 = load double, ptr @angle2, align 8
  %24 = fcmp oeq double %23, 1.800000e+02
  %or.cond = select i1 %22, i1 %24, i1 false
  br i1 %or.cond, label %40, label %55

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %25 = getelementptr inbounds [255 x i32], ptr @rms_flags, i64 0, i64 %indvars.iv
  store i32 0, ptr %25, align 4, !tbaa !11
  %26 = load double, ptr @angle1, align 8, !tbaa !9
  %27 = load double, ptr @angle_step, align 8, !tbaa !9
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = uitofp nneg i32 %28 to double
  %30 = tail call double @llvm.fmuladd.f64(double %27, double %29, double %26)
  %31 = getelementptr inbounds [255 x double], ptr @angles, i64 0, i64 %indvars.iv
  store double %30, ptr %31, align 8, !tbaa !9
  %32 = tail call double @angle2acc(double noundef %30, i32 noundef 0)
  %33 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %indvars.iv
  store double %32, ptr %33, align 8, !tbaa !9
  %34 = load double, ptr %31, align 8, !tbaa !9
  %35 = tail call double @angle2acc(double noundef %34, i32 noundef 1)
  %36 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %indvars.iv
  store double %35, ptr %36, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr @leaves, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !13

40:                                               ; preds = %._crit_edge
  %41 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.29) #3
  %43 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.30) #3
  %45 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %46 = load double, ptr getelementptr inbounds (i8, ptr @angles, i64 8), align 8, !tbaa !9
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.31, double noundef %46) #3
  %48 = load ptr, ptr @fp_session, align 8, !tbaa !5
  %49 = load i32, ptr @leaves, align 4, !tbaa !11
  %50 = add nsw i32 %49, -2
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [255 x double], ptr @angles, i64 0, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.32, double noundef %53) #3
  br label %55

55:                                               ; preds = %40, %._crit_edge
  %56 = load i32, ptr @leaves, align 4, !tbaa !11
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph29, label %._crit_edge30

.lr.ph29:                                         ; preds = %55
  %58 = add nsw i32 %56, -1
  %59 = load double, ptr @h_acc, align 16
  %60 = load double, ptr @v_acc, align 16
  %61 = zext nneg i32 %58 to i64
  %wide.trip.count = zext nneg i32 %56 to i64
  %62 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %61
  %63 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %61
  br label %64

._crit_edge30:                                    ; preds = %83, %55
  store i32 0, ptr @max_rec_level, align 4, !tbaa !11
  store i32 0, ptr @tree_size, align 4, !tbaa !11
  ret void

64:                                               ; preds = %.lr.ph29, %83
  %indvars.iv33 = phi i64 [ 0, %.lr.ph29 ], [ %indvars.iv.next34.pre-phi, %83 ]
  %65 = icmp eq i64 %indvars.iv33, %61
  br i1 %65, label %66, label %71

66:                                               ; preds = %64
  %67 = load double, ptr %62, align 8, !tbaa !9
  %68 = fadd double %67, %59
  %69 = load double, ptr %63, align 8, !tbaa !9
  %70 = fadd double %69, %60
  %.pre = add nuw nsw i64 %indvars.iv33, 1
  br label %83

71:                                               ; preds = %64
  %72 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %indvars.iv33
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = add nuw nsw i64 %indvars.iv33, 1
  %75 = getelementptr inbounds [255 x double], ptr @h_acc, i64 0, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = fadd double %73, %76
  %78 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %indvars.iv33
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds [255 x double], ptr @v_acc, i64 0, i64 %74
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fadd double %79, %81
  br label %83

83:                                               ; preds = %66, %71
  %indvars.iv.next34.pre-phi = phi i64 [ %.pre, %66 ], [ %74, %71 ]
  %.sink36.in = phi double [ %68, %66 ], [ %77, %71 ]
  %.sink.in = phi double [ %70, %66 ], [ %82, %71 ]
  %.sink = fmul double %.sink.in, 5.000000e-01
  %.sink36 = fmul double %.sink36.in, 5.000000e-01
  %84 = getelementptr inbounds [255 x double], ptr @h_ths, i64 0, i64 %indvars.iv33
  store double %.sink36, ptr %84, align 8
  %85 = getelementptr inbounds [255 x double], ptr @v_ths, i64 0, i64 %indvars.iv33
  store double %.sink, ptr %85, align 8
  %exitcond.not = icmp eq i64 %indvars.iv.next34.pre-phi, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge30, label %64, !llvm.loop !15
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare hidden double @angle2acc(double noundef, i32 noundef) local_unnamed_addr #0

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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