; LLVM IR from ggml-org/ggml :: examples/mnist/mnist-common.ll (Z17mnist_image_printP8_IO_FILEP16ggml_opt_dataseti)

; 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.ggml_tensor = type { i32, ptr, [4 x i64], [4 x i64], i32, [16 x i32], i32, [10 x ptr], ptr, i64, ptr, [64 x i8], ptr, [8 x i8] }

@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare ptr @ggml_opt_dataset_data(ptr noundef) #2

declare ptr @ggml_get_data_f32(ptr noundef) #2

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17mnist_image_printP8_IO_FILEP16ggml_opt_dataseti(ptr noundef %0, ptr noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call ptr @ggml_opt_dataset_data(ptr noundef %13)
  store ptr %14, ptr %7, align 8, !tbaa !5
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ggml_tensor, ptr %15, i32 0, i32 2
  %17 = getelementptr inbounds [4 x i64], ptr %16, i64 0, i64 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = icmp eq i64 %18, 784
  br i1 %19, label %21, label %20

20:                                               ; preds = %3
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.1, i32 noundef 44, ptr noundef @.str.2, ptr noundef @.str.3) #7
  unreachable

21:                                               ; preds = %3
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ggml_tensor, ptr %24, i32 0, i32 2
  %26 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 1
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = icmp slt i64 %23, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %21
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.1, i32 noundef 45, ptr noundef @.str.2, ptr noundef @.str.4) #7
  unreachable

30:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call ptr @ggml_get_data_f32(ptr noundef %31)
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = mul nsw i32 %33, 784
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds float, ptr %32, i64 %35
  store ptr %36, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %37

37:                                               ; preds = %68, %30
  %38 = load i64, ptr %9, align 8, !tbaa !11
  %39 = icmp slt i64 %38, 28
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %71

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %62, %41
  %43 = load i64, ptr %11, align 8, !tbaa !11
  %44 = icmp slt i64 %43, 28
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %65

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i64, ptr %9, align 8, !tbaa !11
  %49 = mul nsw i64 %48, 28
  %50 = load i64, ptr %11, align 8, !tbaa !11
  %51 = add nsw i64 %49, %50
  %52 = getelementptr inbounds float, ptr %47, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !13
  %54 = fmul float 2.550000e+02, %53
  %55 = call float @llvm.round.f32(float %54)
  %56 = fptosi float %55 to i32
  store i32 %56, ptr %12, align 4, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.5, i32 noundef %58, i32 noundef %59, i32 noundef %60) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %62

62:                                               ; preds = %46
  %63 = load i64, ptr %11, align 8, !tbaa !11
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %11, align 8, !tbaa !11
  br label %42, !llvm.loop !15

65:                                               ; preds = %45
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.6) #6
  br label %68

68:                                               ; preds = %65
  %69 = load i64, ptr %9, align 8, !tbaa !11
  %70 = add nsw i64 %69, 1
  store i64 %70, ptr %9, align 8, !tbaa !11
  br label %37, !llvm.loop !17

71:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn "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 = { mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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.1 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = 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

declare ptr @ggml_opt_dataset_data(ptr noundef) local_unnamed_addr #1

declare ptr @ggml_get_data_f32(ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17mnist_image_printP8_IO_FILEP16ggml_opt_dataseti(ptr nocapture noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = tail call ptr @ggml_opt_dataset_data(ptr noundef %1)
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i64 %6, 784
  br i1 %7, label %9, label %8

8:                                                ; preds = %3
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.1, i32 noundef 44, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3) #5
  unreachable

9:                                                ; preds = %3
  %10 = sext i32 %2 to i64
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = icmp sgt i64 %12, %10
  br i1 %13, label %15, label %14

14:                                               ; preds = %9
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.1, i32 noundef 45, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4) #5
  unreachable

15:                                               ; preds = %9
  %16 = tail call ptr @ggml_get_data_f32(ptr noundef nonnull %4)
  %17 = mul nsw i32 %2, 784
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds float, ptr %16, i64 %18
  br label %.preheader

.preheader:                                       ; preds = %15, %.preheader
  %.019 = phi i64 [ 0, %15 ], [ %189, %.preheader ]
  %.idx = mul nuw nsw i64 %.019, 112
  %20 = getelementptr inbounds i8, ptr %19, i64 %.idx
  %21 = load float, ptr %20, align 4, !tbaa !9
  %22 = fmul float %21, 2.550000e+02
  %23 = tail call float @llvm.round.f32(float %22)
  %24 = fptosi float %23 to i32
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %24, i32 noundef %24, i32 noundef %24) #6
  %26 = getelementptr inbounds i8, ptr %20, i64 4
  %27 = load float, ptr %26, align 4, !tbaa !9
  %28 = fmul float %27, 2.550000e+02
  %29 = tail call float @llvm.round.f32(float %28)
  %30 = fptosi float %29 to i32
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %30, i32 noundef %30, i32 noundef %30) #6
  %32 = getelementptr inbounds i8, ptr %20, i64 8
  %33 = load float, ptr %32, align 4, !tbaa !9
  %34 = fmul float %33, 2.550000e+02
  %35 = tail call float @llvm.round.f32(float %34)
  %36 = fptosi float %35 to i32
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %36, i32 noundef %36, i32 noundef %36) #6
  %38 = getelementptr inbounds i8, ptr %20, i64 12
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = fmul float %39, 2.550000e+02
  %41 = tail call float @llvm.round.f32(float %40)
  %42 = fptosi float %41 to i32
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %42, i32 noundef %42, i32 noundef %42) #6
  %44 = getelementptr inbounds i8, ptr %20, i64 16
  %45 = load float, ptr %44, align 4, !tbaa !9
  %46 = fmul float %45, 2.550000e+02
  %47 = tail call float @llvm.round.f32(float %46)
  %48 = fptosi float %47 to i32
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %48, i32 noundef %48, i32 noundef %48) #6
  %50 = getelementptr inbounds i8, ptr %20, i64 20
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = fmul float %51, 2.550000e+02
  %53 = tail call float @llvm.round.f32(float %52)
  %54 = fptosi float %53 to i32
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %54, i32 noundef %54, i32 noundef %54) #6
  %56 = getelementptr inbounds i8, ptr %20, i64 24
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = fmul float %57, 2.550000e+02
  %59 = tail call float @llvm.round.f32(float %58)
  %60 = fptosi float %59 to i32
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %60, i32 noundef %60, i32 noundef %60) #6
  %62 = getelementptr inbounds i8, ptr %20, i64 28
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = fmul float %63, 2.550000e+02
  %65 = tail call float @llvm.round.f32(float %64)
  %66 = fptosi float %65 to i32
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %66, i32 noundef %66, i32 noundef %66) #6
  %68 = getelementptr inbounds i8, ptr %20, i64 32
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = fmul float %69, 2.550000e+02
  %71 = tail call float @llvm.round.f32(float %70)
  %72 = fptosi float %71 to i32
  %73 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %72, i32 noundef %72, i32 noundef %72) #6
  %74 = getelementptr inbounds i8, ptr %20, i64 36
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = fmul float %75, 2.550000e+02
  %77 = tail call float @llvm.round.f32(float %76)
  %78 = fptosi float %77 to i32
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %78, i32 noundef %78, i32 noundef %78) #6
  %80 = getelementptr inbounds i8, ptr %20, i64 40
  %81 = load float, ptr %80, align 4, !tbaa !9
  %82 = fmul float %81, 2.550000e+02
  %83 = tail call float @llvm.round.f32(float %82)
  %84 = fptosi float %83 to i32
  %85 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %84, i32 noundef %84, i32 noundef %84) #6
  %86 = getelementptr inbounds i8, ptr %20, i64 44
  %87 = load float, ptr %86, align 4, !tbaa !9
  %88 = fmul float %87, 2.550000e+02
  %89 = tail call float @llvm.round.f32(float %88)
  %90 = fptosi float %89 to i32
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %90, i32 noundef %90, i32 noundef %90) #6
  %92 = getelementptr inbounds i8, ptr %20, i64 48
  %93 = load float, ptr %92, align 4, !tbaa !9
  %94 = fmul float %93, 2.550000e+02
  %95 = tail call float @llvm.round.f32(float %94)
  %96 = fptosi float %95 to i32
  %97 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %96, i32 noundef %96, i32 noundef %96) #6
  %98 = getelementptr inbounds i8, ptr %20, i64 52
  %99 = load float, ptr %98, align 4, !tbaa !9
  %100 = fmul float %99, 2.550000e+02
  %101 = tail call float @llvm.round.f32(float %100)
  %102 = fptosi float %101 to i32
  %103 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %102, i32 noundef %102, i32 noundef %102) #6
  %104 = getelementptr inbounds i8, ptr %20, i64 56
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = fmul float %105, 2.550000e+02
  %107 = tail call float @llvm.round.f32(float %106)
  %108 = fptosi float %107 to i32
  %109 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %108, i32 noundef %108, i32 noundef %108) #6
  %110 = getelementptr inbounds i8, ptr %20, i64 60
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = fmul float %111, 2.550000e+02
  %113 = tail call float @llvm.round.f32(float %112)
  %114 = fptosi float %113 to i32
  %115 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %114, i32 noundef %114, i32 noundef %114) #6
  %116 = getelementptr inbounds i8, ptr %20, i64 64
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = fmul float %117, 2.550000e+02
  %119 = tail call float @llvm.round.f32(float %118)
  %120 = fptosi float %119 to i32
  %121 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %120, i32 noundef %120, i32 noundef %120) #6
  %122 = getelementptr inbounds i8, ptr %20, i64 68
  %123 = load float, ptr %122, align 4, !tbaa !9
  %124 = fmul float %123, 2.550000e+02
  %125 = tail call float @llvm.round.f32(float %124)
  %126 = fptosi float %125 to i32
  %127 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %126, i32 noundef %126, i32 noundef %126) #6
  %128 = getelementptr inbounds i8, ptr %20, i64 72
  %129 = load float, ptr %128, align 4, !tbaa !9
  %130 = fmul float %129, 2.550000e+02
  %131 = tail call float @llvm.round.f32(float %130)
  %132 = fptosi float %131 to i32
  %133 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %132, i32 noundef %132, i32 noundef %132) #6
  %134 = getelementptr inbounds i8, ptr %20, i64 76
  %135 = load float, ptr %134, align 4, !tbaa !9
  %136 = fmul float %135, 2.550000e+02
  %137 = tail call float @llvm.round.f32(float %136)
  %138 = fptosi float %137 to i32
  %139 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %138, i32 noundef %138, i32 noundef %138) #6
  %140 = getelementptr inbounds i8, ptr %20, i64 80
  %141 = load float, ptr %140, align 4, !tbaa !9
  %142 = fmul float %141, 2.550000e+02
  %143 = tail call float @llvm.round.f32(float %142)
  %144 = fptosi float %143 to i32
  %145 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %144, i32 noundef %144, i32 noundef %144) #6
  %146 = getelementptr inbounds i8, ptr %20, i64 84
  %147 = load float, ptr %146, align 4, !tbaa !9
  %148 = fmul float %147, 2.550000e+02
  %149 = tail call float @llvm.round.f32(float %148)
  %150 = fptosi float %149 to i32
  %151 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %150, i32 noundef %150, i32 noundef %150) #6
  %152 = getelementptr inbounds i8, ptr %20, i64 88
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = fmul float %153, 2.550000e+02
  %155 = tail call float @llvm.round.f32(float %154)
  %156 = fptosi float %155 to i32
  %157 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %156, i32 noundef %156, i32 noundef %156) #6
  %158 = getelementptr inbounds i8, ptr %20, i64 92
  %159 = load float, ptr %158, align 4, !tbaa !9
  %160 = fmul float %159, 2.550000e+02
  %161 = tail call float @llvm.round.f32(float %160)
  %162 = fptosi float %161 to i32
  %163 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %162, i32 noundef %162, i32 noundef %162) #6
  %164 = getelementptr inbounds i8, ptr %20, i64 96
  %165 = load float, ptr %164, align 4, !tbaa !9
  %166 = fmul float %165, 2.550000e+02
  %167 = tail call float @llvm.round.f32(float %166)
  %168 = fptosi float %167 to i32
  %169 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %168, i32 noundef %168, i32 noundef %168) #6
  %170 = getelementptr inbounds i8, ptr %20, i64 100
  %171 = load float, ptr %170, align 4, !tbaa !9
  %172 = fmul float %171, 2.550000e+02
  %173 = tail call float @llvm.round.f32(float %172)
  %174 = fptosi float %173 to i32
  %175 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %174, i32 noundef %174, i32 noundef %174) #6
  %176 = getelementptr inbounds i8, ptr %20, i64 104
  %177 = load float, ptr %176, align 4, !tbaa !9
  %178 = fmul float %177, 2.550000e+02
  %179 = tail call float @llvm.round.f32(float %178)
  %180 = fptosi float %179 to i32
  %181 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %180, i32 noundef %180, i32 noundef %180) #6
  %182 = getelementptr inbounds i8, ptr %20, i64 108
  %183 = load float, ptr %182, align 4, !tbaa !9
  %184 = fmul float %183, 2.550000e+02
  %185 = tail call float @llvm.round.f32(float %184)
  %186 = fptosi float %185 to i32
  %187 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %186, i32 noundef %186, i32 noundef %186) #6
  %188 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.6) #6
  %189 = add nuw nsw i64 %.019, 1
  %exitcond.not = icmp eq i64 %189, 28
  br i1 %exitcond.not, label %190, label %.preheader, !llvm.loop !11

190:                                              ; preds = %.preheader
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #4

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 = { "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 = { noreturn "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 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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