; LLVM IR from NishkarshRaj/Computer-Graphics :: Logistics/Scan converting a straight line (Bresenhams)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %6)
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %8)
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %7)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %9)
  %24 = load float, ptr %9, align 4, !tbaa !5
  %25 = load float, ptr %8, align 4, !tbaa !5
  %26 = fsub float %24, %25
  store float %26, ptr %11, align 4, !tbaa !5
  %27 = load float, ptr %7, align 4, !tbaa !5
  %28 = load float, ptr %6, align 4, !tbaa !5
  %29 = fsub float %27, %28
  store float %29, ptr %12, align 4, !tbaa !5
  %30 = load float, ptr %11, align 4, !tbaa !5
  %31 = fptosi float %30 to i32
  store i32 %31, ptr %4, align 4, !tbaa !9
  %32 = load float, ptr %12, align 4, !tbaa !5
  %33 = fptosi float %32 to i32
  store i32 %33, ptr %5, align 4, !tbaa !9
  %34 = load float, ptr %11, align 4, !tbaa !5
  %35 = load float, ptr %12, align 4, !tbaa !5
  %36 = fdiv float %34, %35
  store float %36, ptr %10, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = mul nsw i32 2, %37
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = sub nsw i32 %38, %39
  store i32 %40, ptr %3, align 4, !tbaa !9
  %41 = load float, ptr %10, align 4, !tbaa !5
  %42 = fpext float %41 to double
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %42)
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %44)
  %46 = load float, ptr %10, align 4, !tbaa !5
  %47 = fcmp olt float %46, 1.000000e+00
  br i1 %47, label %48, label %104

48:                                               ; preds = %0
  store i32 1, ptr %2, align 4, !tbaa !9
  %49 = load i32, ptr %2, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !9
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %49)
  %52 = load float, ptr %6, align 4, !tbaa !5
  %53 = fpext float %52 to double
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %53)
  %55 = load float, ptr %8, align 4, !tbaa !5
  %56 = fpext float %55 to double
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %56)
  br label %58

58:                                               ; preds = %102, %48
  %59 = load float, ptr %6, align 4, !tbaa !5
  %60 = load float, ptr %7, align 4, !tbaa !5
  %61 = fcmp olt float %59, %60
  br i1 %61, label %62, label %103

62:                                               ; preds = %58
  %63 = load i32, ptr %2, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !9
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %63)
  %66 = load float, ptr %6, align 4, !tbaa !5
  %67 = fadd float %66, 1.000000e+00
  store float %67, ptr %6, align 4, !tbaa !5
  %68 = load float, ptr %6, align 4, !tbaa !5
  %69 = fpext float %68 to double
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %69)
  %71 = load i32, ptr %3, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 0
  br i1 %72, label %73, label %83

73:                                               ; preds = %62
  %74 = load i32, ptr %3, align 4, !tbaa !9
  %75 = load i32, ptr %4, align 4, !tbaa !9
  %76 = mul nsw i32 2, %75
  %77 = add nsw i32 %74, %76
  store i32 %77, ptr %3, align 4, !tbaa !9
  %78 = load float, ptr %8, align 4, !tbaa !5
  %79 = fpext float %78 to double
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %79)
  %81 = load i32, ptr %3, align 4, !tbaa !9
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %81)
  br label %102

83:                                               ; preds = %62
  %84 = load i32, ptr %3, align 4, !tbaa !9
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %86, label %101

86:                                               ; preds = %83
  %87 = load i32, ptr %3, align 4, !tbaa !9
  %88 = load i32, ptr %4, align 4, !tbaa !9
  %89 = mul nsw i32 2, %88
  %90 = add nsw i32 %87, %89
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = mul nsw i32 2, %91
  %93 = sub nsw i32 %90, %92
  store i32 %93, ptr %3, align 4, !tbaa !9
  %94 = load float, ptr %8, align 4, !tbaa !5
  %95 = fadd float %94, 1.000000e+00
  store float %95, ptr %8, align 4, !tbaa !5
  %96 = load float, ptr %8, align 4, !tbaa !5
  %97 = fpext float %96 to double
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %97)
  %99 = load i32, ptr %3, align 4, !tbaa !9
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %99)
  br label %101

101:                                              ; preds = %86, %83
  br label %102

102:                                              ; preds = %101, %73
  br label %58, !llvm.loop !11

103:                                              ; preds = %58
  br label %159

104:                                              ; preds = %0
  store i32 1, ptr %2, align 4, !tbaa !9
  %105 = load i32, ptr %2, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %2, align 4, !tbaa !9
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %105)
  %108 = load float, ptr %6, align 4, !tbaa !5
  %109 = fpext float %108 to double
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %109)
  %111 = load float, ptr %8, align 4, !tbaa !5
  %112 = fpext float %111 to double
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %112)
  br label %114

114:                                              ; preds = %157, %104
  %115 = load float, ptr %8, align 4, !tbaa !5
  %116 = load float, ptr %9, align 4, !tbaa !5
  %117 = fcmp olt float %115, %116
  br i1 %117, label %118, label %158

118:                                              ; preds = %114
  %119 = load i32, ptr %2, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %2, align 4, !tbaa !9
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %119)
  %122 = load float, ptr %8, align 4, !tbaa !5
  %123 = fadd float %122, 1.000000e+00
  store float %123, ptr %8, align 4, !tbaa !5
  %124 = load float, ptr %8, align 4, !tbaa !5
  %125 = fpext float %124 to double
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %125)
  %127 = load i32, ptr %3, align 4, !tbaa !9
  %128 = icmp slt i32 %127, 0
  br i1 %128, label %129, label %139

129:                                              ; preds = %118
  %130 = load i32, ptr %3, align 4, !tbaa !9
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = mul nsw i32 2, %131
  %133 = add nsw i32 %130, %132
  store i32 %133, ptr %3, align 4, !tbaa !9
  %134 = load float, ptr %6, align 4, !tbaa !5
  %135 = fpext float %134 to double
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %135)
  %137 = load i32, ptr %3, align 4, !tbaa !9
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %137)
  br label %157

139:                                              ; preds = %118
  %140 = load i32, ptr %3, align 4, !tbaa !9
  %141 = icmp sge i32 %140, 0
  br i1 %141, label %142, label %156

142:                                              ; preds = %139
  %143 = load i32, ptr %3, align 4, !tbaa !9
  %144 = load i32, ptr %4, align 4, !tbaa !9
  %145 = sub nsw i32 %143, %144
  %146 = load i32, ptr %5, align 4, !tbaa !9
  %147 = mul nsw i32 2, %146
  %148 = add nsw i32 %145, %147
  store i32 %148, ptr %3, align 4, !tbaa !9
  %149 = load float, ptr %6, align 4, !tbaa !5
  %150 = fadd float %149, 1.000000e+00
  store float %150, ptr %6, align 4, !tbaa !5
  %151 = load float, ptr %6, align 4, !tbaa !5
  %152 = fpext float %151 to double
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %152)
  %154 = load i32, ptr %3, align 4, !tbaa !9
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %154)
  br label %156

156:                                              ; preds = %142, %139
  br label %157

157:                                              ; preds = %156, %129
  br label %114, !llvm.loop !13

158:                                              ; preds = %114
  br label %159

159:                                              ; preds = %158, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  ret i32 0
}

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

attributes #0 = { mustprogress norecurse 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 = { "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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %1)
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %3)
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %2)
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %4)
  %16 = load float, ptr %4, align 4, !tbaa !5
  %17 = load float, ptr %3, align 4, !tbaa !5
  %18 = fsub float %16, %17
  %19 = load float, ptr %2, align 4, !tbaa !5
  %20 = load float, ptr %1, align 4, !tbaa !5
  %21 = fsub float %19, %20
  %22 = fptosi float %18 to i32
  %23 = fptosi float %21 to i32
  %24 = fdiv float %18, %21
  %25 = shl nsw i32 %22, 1
  %26 = sub nsw i32 %25, %23
  %27 = fpext float %24 to double
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %27)
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %26)
  %30 = fcmp olt float %24, 1.000000e+00
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef 1)
  %32 = load float, ptr %1, align 4, !tbaa !5
  %33 = fpext float %32 to double
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %33)
  %35 = load float, ptr %3, align 4, !tbaa !5
  %36 = fpext float %35 to double
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %36)
  br i1 %30, label %38, label %65

38:                                               ; preds = %0
  %39 = load float, ptr %1, align 4, !tbaa !5
  %40 = load float, ptr %2, align 4, !tbaa !5
  %41 = fcmp olt float %39, %40
  br i1 %41, label %.lr.ph37, label %.loopexit

.lr.ph37:                                         ; preds = %38
  %42 = sub i32 %22, %23
  %43 = shl i32 %42, 1
  br label %44

44:                                               ; preds = %.lr.ph37, %58
  %.036 = phi i32 [ 2, %.lr.ph37 ], [ %45, %58 ]
  %.03035 = phi i32 [ %26, %.lr.ph37 ], [ %.sink, %58 ]
  %45 = add nuw nsw i32 %.036, 1
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.036)
  %47 = load float, ptr %1, align 4, !tbaa !5
  %48 = fadd float %47, 1.000000e+00
  store float %48, ptr %1, align 4, !tbaa !5
  %49 = fpext float %48 to double
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %49)
  %51 = icmp slt i32 %.03035, 0
  %52 = load float, ptr %3, align 4, !tbaa !5
  br i1 %51, label %53, label %55

53:                                               ; preds = %44
  %54 = add nsw i32 %.03035, %25
  br label %58

55:                                               ; preds = %44
  %56 = add i32 %43, %.03035
  %57 = fadd float %52, 1.000000e+00
  store float %57, ptr %3, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %55, %53
  %.sink42 = phi float [ %57, %55 ], [ %52, %53 ]
  %.sink = phi i32 [ %56, %55 ], [ %54, %53 ]
  %59 = fpext float %.sink42 to double
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %59)
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.sink)
  %62 = load float, ptr %1, align 4, !tbaa !5
  %63 = load float, ptr %2, align 4, !tbaa !5
  %64 = fcmp olt float %62, %63
  br i1 %64, label %44, label %.loopexit, !llvm.loop !9

65:                                               ; preds = %0
  %66 = load float, ptr %3, align 4, !tbaa !5
  %67 = load float, ptr %4, align 4, !tbaa !5
  %68 = fcmp olt float %66, %67
  br i1 %68, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %65
  %69 = shl nsw i32 %23, 1
  br label %70

70:                                               ; preds = %.lr.ph, %84
  %.134 = phi i32 [ 2, %.lr.ph ], [ %71, %84 ]
  %.233 = phi i32 [ %26, %.lr.ph ], [ %.sink43, %84 ]
  %71 = add nuw nsw i32 %.134, 1
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.134)
  %73 = load float, ptr %3, align 4, !tbaa !5
  %74 = fadd float %73, 1.000000e+00
  store float %74, ptr %3, align 4, !tbaa !5
  %75 = fpext float %74 to double
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %75)
  %77 = icmp slt i32 %.233, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %70
  %79 = load float, ptr %1, align 4, !tbaa !5
  br label %84

80:                                               ; preds = %70
  %81 = sub nsw i32 %.233, %22
  %82 = load float, ptr %1, align 4, !tbaa !5
  %83 = fadd float %82, 1.000000e+00
  store float %83, ptr %1, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %80, %78
  %.sink45 = phi float [ %83, %80 ], [ %79, %78 ]
  %.pn = phi i32 [ %81, %80 ], [ %.233, %78 ]
  %.sink43 = add nsw i32 %.pn, %69
  %85 = fpext float %.sink45 to double
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %85)
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.sink43)
  %88 = load float, ptr %3, align 4, !tbaa !5
  %89 = load float, ptr %4, align 4, !tbaa !5
  %90 = fcmp olt float %88, %89
  br i1 %90, label %70, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %84, %58, %65, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nofree norecurse 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 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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