; LLVM IR from csviragh/robotsim :: src/utilities (output_utils)

; 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.phase_t = type { ptr, ptr, ptr, ptr, i32, i32 }

@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @WriteOutTrajectories(ptr noundef %0, i1 noundef zeroext %1, i1 noundef zeroext %2, double noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  %15 = zext i1 %1 to i8
  store i8 %15, ptr %8, align 1, !tbaa !9
  %16 = zext i1 %2 to i8
  store i8 %16, ptr %9, align 1, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %17 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %18 = trunc i8 %17 to i1
  br i1 %18, label %19, label %23

19:                                               ; preds = %6
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  %21 = load double, ptr %10, align 8, !tbaa !11
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.20, double noundef %21) #3
  br label %23

23:                                               ; preds = %19, %6
  %24 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %30

26:                                               ; preds = %23
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = load double, ptr %10, align 8, !tbaa !11
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.20, double noundef %28) #3
  br label %30

30:                                               ; preds = %26, %23
  store i32 0, ptr %13, align 4, !tbaa !15
  br label %31

31:                                               ; preds = %116, %30
  %32 = load i32, ptr %13, align 4, !tbaa !15
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.phase_t, ptr %33, i32 0, i32 5
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %36 = icmp slt i32 %32, %35
  br i1 %36, label %37, label %119

37:                                               ; preds = %31
  %38 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %39 = trunc i8 %38 to i1
  %40 = zext i1 %39 to i32
  %41 = icmp eq i32 1, %40
  br i1 %41, label %42, label %85

42:                                               ; preds = %37
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %43

43:                                               ; preds = %60, %42
  %44 = load i32, ptr %14, align 4, !tbaa !15
  %45 = icmp slt i32 %44, 3
  br i1 %45, label %46, label %63

46:                                               ; preds = %43
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.phase_t, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %51 = load i32, ptr %13, align 4, !tbaa !15
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %50, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = load i32, ptr %14, align 4, !tbaa !15
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.20, double noundef %58) #3
  br label %60

60:                                               ; preds = %46
  %61 = load i32, ptr %14, align 4, !tbaa !15
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %14, align 4, !tbaa !15
  br label %43, !llvm.loop !20

63:                                               ; preds = %43
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %64

64:                                               ; preds = %81, %63
  %65 = load i32, ptr %14, align 4, !tbaa !15
  %66 = icmp slt i32 %65, 3
  br i1 %66, label %67, label %84

67:                                               ; preds = %64
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.phase_t, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = load i32, ptr %13, align 4, !tbaa !15
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !15
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.20, double noundef %79) #3
  br label %81

81:                                               ; preds = %67
  %82 = load i32, ptr %14, align 4, !tbaa !15
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %14, align 4, !tbaa !15
  br label %64, !llvm.loop !23

84:                                               ; preds = %64
  br label %85

85:                                               ; preds = %84, %37
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %86

86:                                               ; preds = %112, %85
  %87 = load i32, ptr %14, align 4, !tbaa !15
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.phase_t, ptr %88, i32 0, i32 4
  %90 = load i32, ptr %89, align 8, !tbaa !24
  %91 = icmp slt i32 %87, %90
  br i1 %91, label %92, label %115

92:                                               ; preds = %86
  %93 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %94 = trunc i8 %93 to i1
  %95 = zext i1 %94 to i32
  %96 = icmp eq i32 1, %95
  br i1 %96, label %97, label %111

97:                                               ; preds = %92
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.phase_t, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !25
  %102 = load i32, ptr %13, align 4, !tbaa !15
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = load i32, ptr %14, align 4, !tbaa !15
  %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, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.20, double noundef %109) #3
  br label %111

111:                                              ; preds = %97, %92
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %14, align 4, !tbaa !15
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %14, align 4, !tbaa !15
  br label %86, !llvm.loop !26

115:                                              ; preds = %86
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %13, align 4, !tbaa !15
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %13, align 4, !tbaa !15
  br label %31, !llvm.loop !27

119:                                              ; preds = %31
  %120 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.21) #3
  br label %125

125:                                              ; preds = %122, %119
  %126 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %131

128:                                              ; preds = %125
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.21) #3
  br label %131

131:                                              ; preds = %128, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !16, i64 36}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !16, i64 32, !16, i64 36}
!19 = !{!18, !6, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!18, !6, i64 8}
!23 = distinct !{!23, !21}
!24 = !{!18, !16, i64 32}
!25 = !{!18, !6, i64 16}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}


; 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.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @WriteOutTrajectories(ptr nocapture noundef readonly %0, i1 noundef zeroext %1, i1 noundef zeroext %2, double noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5) local_unnamed_addr #1 {
  br i1 %1, label %7, label %9

7:                                                ; preds = %6
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %3) #2
  br label %9

9:                                                ; preds = %7, %6
  br i1 %2, label %10, label %12

10:                                               ; preds = %9
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.20, double noundef %3) #2
  br label %12

12:                                               ; preds = %10, %9
  %13 = getelementptr inbounds i8, ptr %0, i64 36
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  br i1 %1, label %.lr.ph40.split.us, label %.lr.ph40.split

.lr.ph40.split.us:                                ; preds = %.lr.ph40
  br i1 %2, label %.preheader34.us.us, label %.preheader34.us

.preheader34.us.us:                               ; preds = %.lr.ph40.split.us, %._crit_edge.split.us.us.us
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %._crit_edge.split.us.us.us ], [ 0, %.lr.ph40.split.us ]
  %19 = load ptr, ptr %0, align 8, !tbaa !11
  %20 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv72
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  %22 = load double, ptr %21, align 8, !tbaa !13
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %22) #2
  %24 = load ptr, ptr %0, align 8, !tbaa !11
  %25 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv72
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load double, ptr %27, align 8, !tbaa !13
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %28) #2
  %30 = load ptr, ptr %0, align 8, !tbaa !11
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv72
  %32 = load ptr, ptr %31, align 8, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !13
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %34) #2
  %36 = load ptr, ptr %16, align 8, !tbaa !15
  %37 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv72
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %39) #2
  %41 = load ptr, ptr %16, align 8, !tbaa !15
  %42 = getelementptr inbounds ptr, ptr %41, i64 %indvars.iv72
  %43 = load ptr, ptr %42, align 8, !tbaa !12
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = load double, ptr %44, align 8, !tbaa !13
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %45) #2
  %47 = load ptr, ptr %16, align 8, !tbaa !15
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv72
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = load double, ptr %50, align 8, !tbaa !13
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %51) #2
  %53 = load i32, ptr %17, align 8, !tbaa !16
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph.us.us, label %._crit_edge.split.us.us.us

._crit_edge.split.us.us.us:                       ; preds = %.lr.ph.us.us, %.preheader34.us.us
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv.next73, %56
  br i1 %57, label %.preheader34.us.us, label %._crit_edge41, !llvm.loop !17

.lr.ph.us.us:                                     ; preds = %.preheader34.us.us, %.lr.ph.us.us
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.lr.ph.us.us ], [ 0, %.preheader34.us.us ]
  %58 = load ptr, ptr %18, align 8, !tbaa !19
  %59 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv72
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  %61 = getelementptr inbounds double, ptr %60, i64 %indvars.iv69
  %62 = load double, ptr %61, align 8, !tbaa !13
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.20, double noundef %62) #2
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %64 = load i32, ptr %17, align 8, !tbaa !16
  %65 = sext i32 %64 to i64
  %66 = icmp slt i64 %indvars.iv.next70, %65
  br i1 %66, label %.lr.ph.us.us, label %._crit_edge.split.us.us.us, !llvm.loop !20

.preheader34.us:                                  ; preds = %.lr.ph40.split.us, %.preheader34.us
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %.preheader34.us ], [ 0, %.lr.ph40.split.us ]
  %67 = load ptr, ptr %0, align 8, !tbaa !11
  %68 = getelementptr inbounds ptr, ptr %67, i64 %indvars.iv60
  %69 = load ptr, ptr %68, align 8, !tbaa !12
  %70 = load double, ptr %69, align 8, !tbaa !13
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %70) #2
  %72 = load ptr, ptr %0, align 8, !tbaa !11
  %73 = getelementptr inbounds ptr, ptr %72, i64 %indvars.iv60
  %74 = load ptr, ptr %73, align 8, !tbaa !12
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load double, ptr %75, align 8, !tbaa !13
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %76) #2
  %78 = load ptr, ptr %0, align 8, !tbaa !11
  %79 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv60
  %80 = load ptr, ptr %79, align 8, !tbaa !12
  %81 = getelementptr inbounds i8, ptr %80, i64 16
  %82 = load double, ptr %81, align 8, !tbaa !13
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %82) #2
  %84 = load ptr, ptr %16, align 8, !tbaa !15
  %85 = getelementptr inbounds ptr, ptr %84, i64 %indvars.iv60
  %86 = load ptr, ptr %85, align 8, !tbaa !12
  %87 = load double, ptr %86, align 8, !tbaa !13
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %87) #2
  %89 = load ptr, ptr %16, align 8, !tbaa !15
  %90 = getelementptr inbounds ptr, ptr %89, i64 %indvars.iv60
  %91 = load ptr, ptr %90, align 8, !tbaa !12
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load double, ptr %92, align 8, !tbaa !13
  %94 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %93) #2
  %95 = load ptr, ptr %16, align 8, !tbaa !15
  %96 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv60
  %97 = load ptr, ptr %96, align 8, !tbaa !12
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = load double, ptr %98, align 8, !tbaa !13
  %100 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.20, double noundef %99) #2
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %101 = load i32, ptr %13, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv.next61, %102
  br i1 %103, label %.preheader34.us, label %._crit_edge41, !llvm.loop !17

.lr.ph40.split:                                   ; preds = %.lr.ph40
  %104 = load i32, ptr %17, align 8, !tbaa !16
  %105 = icmp sgt i32 %104, 0
  br i1 %105, label %.lr.ph40.split.split, label %._crit_edge41.thread

.lr.ph40.split.split:                             ; preds = %.lr.ph40.split, %._crit_edge
  %106 = phi i32 [ %118, %._crit_edge ], [ %14, %.lr.ph40.split ]
  %107 = phi i32 [ %119, %._crit_edge ], [ %104, %.lr.ph40.split ]
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %._crit_edge ], [ 0, %.lr.ph40.split ]
  %108 = icmp sgt i32 %107, 0
  %brmerge.not = and i1 %108, %2
  br i1 %brmerge.not, label %.lr.ph.split.us, label %._crit_edge

.lr.ph.split.us:                                  ; preds = %.lr.ph40.split.split, %.lr.ph.split.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.us ], [ 0, %.lr.ph40.split.split ]
  %109 = load ptr, ptr %18, align 8, !tbaa !19
  %110 = getelementptr inbounds ptr, ptr %109, i64 %indvars.iv51
  %111 = load ptr, ptr %110, align 8, !tbaa !12
  %112 = getelementptr inbounds double, ptr %111, i64 %indvars.iv
  %113 = load double, ptr %112, align 8, !tbaa !13
  %114 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.20, double noundef %113) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %115 = load i32, ptr %17, align 8, !tbaa !16
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next, %116
  br i1 %117, label %.lr.ph.split.us, label %._crit_edge.loopexit, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %.lr.ph.split.us
  %.pre = load i32, ptr %13, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph40.split.split, %._crit_edge.loopexit
  %118 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %106, %.lr.ph40.split.split ]
  %119 = phi i32 [ %115, %._crit_edge.loopexit ], [ %107, %.lr.ph40.split.split ]
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %120 = sext i32 %118 to i64
  %121 = icmp slt i64 %indvars.iv.next52, %120
  br i1 %121, label %.lr.ph40.split.split, label %._crit_edge41, !llvm.loop !21

._crit_edge41:                                    ; preds = %._crit_edge, %.preheader34.us, %._crit_edge.split.us.us.us, %12
  br i1 %1, label %122, label %._crit_edge41.thread

122:                                              ; preds = %._crit_edge41
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.21) #2
  br label %._crit_edge41.thread

._crit_edge41.thread:                             ; preds = %.lr.ph40.split, %122, %._crit_edge41
  br i1 %2, label %124, label %126

124:                                              ; preds = %._crit_edge41.thread
  %125 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.21) #2
  br label %126

126:                                              ; preds = %124, %._crit_edge41.thread
  ret void
}

attributes #0 = { 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 #1 = { nofree 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 #2 = { 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, !10, i64 36}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !10, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !7, i64 16}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass