; LLVM IR from gost-engine/engine :: gost12sum (get_line)

; 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.15 = external hidden unnamed_addr constant [18 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 uwtable
define dso_local i32 @get_line(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %17, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %189, %5
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = call i32 @feof(ptr noundef %19) #7
  %21 = icmp ne i32 %20, 0
  %22 = xor i1 %21, true
  br i1 %22, label %23, label %190

23:                                               ; preds = %18
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call ptr @fgets(ptr noundef %24, i32 noundef 4096, ptr noundef %25)
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %191

29:                                               ; preds = %23
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %30, ptr %14, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %36, %29
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 32
  br i1 %35, label %36, label %39

36:                                               ; preds = %31
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i32 1
  store ptr %38, ptr %14, align 8, !tbaa !5
  br label %31, !llvm.loop !12

39:                                               ; preds = %31
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = call i64 @strlen(ptr noundef %40) #8
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %13, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %62, %39
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %13, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %44, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 10
  br i1 %51, label %60, label %52

52:                                               ; preds = %43
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = icmp eq i32 %58, 13
  br label %60

60:                                               ; preds = %52, %43
  %61 = phi i1 [ true, %43 ], [ %59, %52 ]
  br i1 %61, label %62, label %67

62:                                               ; preds = %60
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %63, i64 %65
  store i8 0, ptr %66, align 1, !tbaa !11
  br label %43, !llvm.loop !14

67:                                               ; preds = %60
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  br label %183

71:                                               ; preds = %67
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = call ptr @strchr(ptr noundef %72, i32 noundef 32) #8
  store ptr %73, ptr %15, align 8, !tbaa !5
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = icmp eq ptr %74, null
  br i1 %75, label %81, label %76

76:                                               ; preds = %71
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 1
  %79 = call i64 @strlen(ptr noundef %78) #8
  %80 = icmp eq i64 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %76, %71
  br label %183

82:                                               ; preds = %76
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = ptrtoint ptr %83 to i64
  %86 = ptrtoint ptr %84 to i64
  %87 = sub i64 %85, %86
  %88 = trunc i64 %87 to i32
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %88, ptr %89, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %145, %82
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp slt i32 %91, %93
  br i1 %94, label %95, label %148

95:                                               ; preds = %90
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %96, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = sext i8 %100 to i32
  %102 = icmp slt i32 %101, 48
  br i1 %102, label %143, label %103

103:                                              ; preds = %95
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i8, ptr %104, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !11
  %109 = sext i8 %108 to i32
  %110 = icmp sgt i32 %109, 57
  br i1 %110, label %111, label %119

111:                                              ; preds = %103
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = sext i8 %116 to i32
  %118 = icmp slt i32 %117, 65
  br i1 %118, label %143, label %119

119:                                              ; preds = %111, %103
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i8, ptr %120, i64 %122
  %124 = load i8, ptr %123, align 1, !tbaa !11
  %125 = sext i8 %124 to i32
  %126 = icmp sgt i32 %125, 70
  br i1 %126, label %127, label %135

127:                                              ; preds = %119
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %128, i64 %130
  %132 = load i8, ptr %131, align 1, !tbaa !11
  %133 = sext i8 %132 to i32
  %134 = icmp slt i32 %133, 97
  br i1 %134, label %143, label %135

135:                                              ; preds = %127, %119
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i8, ptr %136, i64 %138
  %140 = load i8, ptr %139, align 1, !tbaa !11
  %141 = sext i8 %140 to i32
  %142 = icmp sgt i32 %141, 102
  br i1 %142, label %143, label %144

143:                                              ; preds = %135, %127, %111, %95
  br label %183

144:                                              ; preds = %135
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %12, align 4, !tbaa !9
  br label %90, !llvm.loop !15

148:                                              ; preds = %90
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !9
  %151 = icmp sgt i32 %150, 128
  br i1 %151, label %160, label %152

152:                                              ; preds = %148
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 64
  br i1 %155, label %156, label %163

156:                                              ; preds = %152
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 128
  br i1 %159, label %160, label %163

160:                                              ; preds = %156, %148
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %161, align 4, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 1 %162, i8 0, i64 129, i1 false)
  br label %174

163:                                              ; preds = %156, %152
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %164, ptr align 1 %165, i64 %168, i1 false)
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i8, ptr %169, i64 %172
  store i8 0, ptr %173, align 1, !tbaa !11
  br label %174

174:                                              ; preds = %163, %160
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %176, i64 1
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = call i64 @strlen(ptr noundef %178) #8
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %175, ptr align 1 %177, i64 %179, i1 false)
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = sdiv i32 %181, 2
  store i32 %182, ptr %180, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %191

183:                                              ; preds = %143, %81, %70
  %184 = load i32, ptr %10, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %189

186:                                              ; preds = %183
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %187)
  br label %189

189:                                              ; preds = %186, %183
  br label %18, !llvm.loop !16

190:                                              ; preds = %18
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %191

191:                                              ; preds = %190, %174, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %192 = load i32, ptr %6, align 4
  ret i32 %192
}

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

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #2

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strchr(ptr noundef, i32 noundef) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 "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 = { "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 = { nounwind willreturn memory(read) "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 nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

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

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


; 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.15 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 2) i32 @get_line(ptr nocapture noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i32 noundef %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = tail call i32 @feof(ptr noundef %0) #5
  %.not85 = icmp eq i32 %6, 0
  br i1 %.not85, label %.lr.ph87, label %.loopexit67

.lr.ph87:                                         ; preds = %5
  %.not63 = icmp eq i32 %3, 0
  br label %7

7:                                                ; preds = %.lr.ph87, %60
  %8 = tail call ptr @fgets(ptr noundef %2, i32 noundef 4096, ptr noundef %0)
  %.not60 = icmp eq ptr %8, null
  br i1 %.not60, label %.loopexit67, label %.preheader

.preheader:                                       ; preds = %7, %.preheader
  %.0 = phi ptr [ %11, %.preheader ], [ %2, %7 ]
  %9 = load i8, ptr %.0, align 1, !tbaa !5
  %10 = icmp eq i8 %9, 32
  %11 = getelementptr inbounds i8, ptr %.0, i64 1
  br i1 %10, label %.preheader, label %12, !llvm.loop !8

12:                                               ; preds = %.preheader
  %13 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0) #6
  %sext = shl i64 %13, 32
  %14 = ashr exact i64 %sext, 32
  br label %15

15:                                               ; preds = %.critedge, %12
  %indvars.iv = phi i64 [ %indvars.iv.next, %.critedge ], [ %14, %12 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %16 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next
  %17 = load i8, ptr %16, align 1, !tbaa !5
  switch i8 %17, label %18 [
    i8 10, label %.critedge
    i8 13, label %.critedge
  ]

.critedge:                                        ; preds = %15, %15
  store i8 0, ptr %16, align 1, !tbaa !5
  br label %15, !llvm.loop !10

18:                                               ; preds = %15
  %19 = icmp eq i64 %indvars.iv.next, 0
  br i1 %19, label %.loopexit, label %20

20:                                               ; preds = %18
  %21 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %.0, i32 noundef 32) #6
  %22 = icmp eq ptr %21, null
  br i1 %22, label %.loopexit, label %23

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %21, i64 1
  %char0 = load i8, ptr %24, align 1
  %25 = icmp eq i8 %char0, 0
  br i1 %25, label %.loopexit, label %26

26:                                               ; preds = %23
  %27 = ptrtoint ptr %21 to i64
  %28 = ptrtoint ptr %.0 to i64
  %29 = sub i64 %27, %28
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %4, align 4, !tbaa !11
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph.preheader, label %._crit_edge.thread.loopexit

.lr.ph.preheader:                                 ; preds = %26
  %32 = and i64 %29, 2147483647
  br label %.lr.ph

33:                                               ; preds = %39
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %34 = icmp ult i64 %indvars.iv.next99, %32
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph.preheader, %33
  %indvars.iv98 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next99, %33 ]
  %35 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv98
  %36 = load i8, ptr %35, align 1, !tbaa !5
  %37 = icmp slt i8 %36, 48
  %38 = add nsw i8 %36, -58
  %or.cond = icmp ult i8 %38, 7
  %or.cond66 = select i1 %37, i1 true, i1 %or.cond
  br i1 %or.cond66, label %.loopexit, label %39

39:                                               ; preds = %.lr.ph
  %40 = add nsw i8 %36, -71
  %or.cond64 = icmp ult i8 %40, 26
  %41 = icmp ugt i8 %36, 102
  %or.cond65 = or i1 %41, %or.cond64
  br i1 %or.cond65, label %.loopexit, label %33

._crit_edge:                                      ; preds = %33
  %42 = getelementptr inbounds i8, ptr %21, i64 1
  %43 = icmp sgt i32 %30, 128
  br i1 %43, label %46, label %._crit_edge.thread

._crit_edge.thread.loopexit:                      ; preds = %26
  %44 = getelementptr inbounds i8, ptr %21, i64 1
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %._crit_edge.thread.loopexit, %._crit_edge
  %45 = phi ptr [ %44, %._crit_edge.thread.loopexit ], [ %42, %._crit_edge ]
  switch i32 %30, label %46 [
    i32 64, label %48
    i32 128, label %48
  ]

46:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %47 = phi ptr [ %45, %._crit_edge.thread ], [ %42, %._crit_edge ]
  store i32 0, ptr %4, align 4, !tbaa !11
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(129) %1, i8 0, i64 129, i1 false)
  br label %53

48:                                               ; preds = %._crit_edge.thread, %._crit_edge.thread
  %49 = and i64 %29, 4294967295
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr nonnull align 1 %.0, i64 %49, i1 false)
  %50 = load i32, ptr %4, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %1, i64 %51
  store i8 0, ptr %52, align 1, !tbaa !5
  br label %53

53:                                               ; preds = %48, %46
  %54 = phi ptr [ %45, %48 ], [ %47, %46 ]
  %55 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %21) #6
  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %2, ptr nonnull align 1 %54, i64 %55, i1 false)
  %56 = load i32, ptr %4, align 4, !tbaa !11
  %57 = sdiv i32 %56, 2
  store i32 %57, ptr %4, align 4, !tbaa !11
  br label %.loopexit67

.loopexit:                                        ; preds = %39, %.lr.ph, %20, %23, %18
  br i1 %.not63, label %60, label %58

58:                                               ; preds = %.loopexit
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %2)
  br label %60

60:                                               ; preds = %58, %.loopexit
  %61 = tail call i32 @feof(ptr noundef %0) #5
  %.not = icmp eq i32 %61, 0
  br i1 %.not, label %7, label %.loopexit67, !llvm.loop !14

.loopexit67:                                      ; preds = %7, %60, %5, %53
  %.054 = phi i32 [ 1, %53 ], [ 0, %5 ], [ 0, %60 ], [ 0, %7 ]
  ret i32 %.054
}

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strchr(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #4

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

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


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