; LLVM IR from musetronstar/tagd :: tagl/src (lemon)

; 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.lemon = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr }
%struct.symbol = type { ptr, i32, i32, ptr, ptr, i32, i32, ptr, i32, i32, ptr, i32, ptr, i32, i32, i32, ptr }
%struct.rule = type { ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.Reprint = external hidden unnamed_addr constant [29 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [12 x i8], align 1
@stdout = external global ptr, align 8
@.str.96 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [6 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @Reprint(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.lemon, ptr %11, i32 0, i32 34
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.92, ptr noundef %13)
  store i32 10, ptr %7, align 4, !tbaa !12
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %15

15:                                               ; preds = %40, %1
  %16 = load i32, ptr %5, align 4, !tbaa !12
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.lemon, ptr %17, i32 0, i32 7
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = icmp slt i32 %16, %19
  br i1 %20, label %21, label %43

21:                                               ; preds = %15
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.lemon, ptr %22, i32 0, i32 15
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = load i32, ptr %5, align 4, !tbaa !12
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %24, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.symbol, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = call i64 @strlen(ptr noundef %31) #6
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %8, align 4, !tbaa !12
  %34 = load i32, ptr %8, align 4, !tbaa !12
  %35 = load i32, ptr %7, align 4, !tbaa !12
  %36 = icmp sgt i32 %34, %35
  br i1 %36, label %37, label %39

37:                                               ; preds = %21
  %38 = load i32, ptr %8, align 4, !tbaa !12
  store i32 %38, ptr %7, align 4, !tbaa !12
  br label %39

39:                                               ; preds = %37, %21
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %5, align 4, !tbaa !12
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %5, align 4, !tbaa !12
  br label %15, !llvm.loop !17

43:                                               ; preds = %15
  %44 = load i32, ptr %7, align 4, !tbaa !12
  %45 = add nsw i32 %44, 5
  %46 = sdiv i32 76, %45
  store i32 %46, ptr %9, align 4, !tbaa !12
  %47 = load i32, ptr %9, align 4, !tbaa !12
  %48 = icmp slt i32 %47, 1
  br i1 %48, label %49, label %50

49:                                               ; preds = %43
  store i32 1, ptr %9, align 4, !tbaa !12
  br label %50

50:                                               ; preds = %49, %43
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.lemon, ptr %51, i32 0, i32 7
  %53 = load i32, ptr %52, align 8, !tbaa !13
  %54 = load i32, ptr %9, align 4, !tbaa !12
  %55 = add nsw i32 %53, %54
  %56 = sub nsw i32 %55, 1
  %57 = load i32, ptr %9, align 4, !tbaa !12
  %58 = sdiv i32 %56, %57
  store i32 %58, ptr %10, align 4, !tbaa !12
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %59

59:                                               ; preds = %101, %50
  %60 = load i32, ptr %5, align 4, !tbaa !12
  %61 = load i32, ptr %10, align 4, !tbaa !12
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %104

63:                                               ; preds = %59
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.93)
  %65 = load i32, ptr %5, align 4, !tbaa !12
  store i32 %65, ptr %6, align 4, !tbaa !12
  br label %66

66:                                               ; preds = %95, %63
  %67 = load i32, ptr %6, align 4, !tbaa !12
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.lemon, ptr %68, i32 0, i32 7
  %70 = load i32, ptr %69, align 8, !tbaa !13
  %71 = icmp slt i32 %67, %70
  br i1 %71, label %72, label %99

72:                                               ; preds = %66
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.lemon, ptr %73, i32 0, i32 15
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  %76 = load i32, ptr %6, align 4, !tbaa !12
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds ptr, ptr %75, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  store ptr %79, ptr %4, align 8, !tbaa !5
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.symbol, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !19
  %83 = load i32, ptr %6, align 4, !tbaa !12
  %84 = icmp eq i32 %82, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %72
  br label %87

86:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.94, ptr noundef @.str.3, i32 noundef 3153, ptr noundef @__PRETTY_FUNCTION__.Reprint) #7
  unreachable

87:                                               ; preds = %85
  %88 = load i32, ptr %6, align 4, !tbaa !12
  %89 = load i32, ptr %7, align 4, !tbaa !12
  %90 = load i32, ptr %7, align 4, !tbaa !12
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.symbol, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.95, i32 noundef %88, i32 noundef %89, i32 noundef %90, ptr noundef %93)
  br label %95

95:                                               ; preds = %87
  %96 = load i32, ptr %10, align 4, !tbaa !12
  %97 = load i32, ptr %6, align 4, !tbaa !12
  %98 = add nsw i32 %97, %96
  store i32 %98, ptr %6, align 4, !tbaa !12
  br label %66, !llvm.loop !20

99:                                               ; preds = %66
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %101

101:                                              ; preds = %99
  %102 = load i32, ptr %5, align 4, !tbaa !12
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %5, align 4, !tbaa !12
  br label %59, !llvm.loop !21

104:                                              ; preds = %59
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.lemon, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !22
  store ptr %107, ptr %3, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %128, %104
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %132

111:                                              ; preds = %108
  %112 = load ptr, ptr @stdout, align 8, !tbaa !5
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  call void @rule_print(ptr noundef %112, ptr noundef %113)
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.96)
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.rule, ptr %115, i32 0, i32 11
  %117 = load ptr, ptr %116, align 8, !tbaa !23
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %126

119:                                              ; preds = %111
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.rule, ptr %120, i32 0, i32 11
  %122 = load ptr, ptr %121, align 8, !tbaa !23
  %123 = getelementptr inbounds %struct.symbol, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.97, ptr noundef %124)
  br label %126

126:                                              ; preds = %119, %111
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %128

128:                                              ; preds = %126
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.rule, ptr %129, i32 0, i32 20
  %131 = load ptr, ptr %130, align 8, !tbaa !25
  store ptr %131, ptr %3, align 8, !tbaa !5
  br label %108, !llvm.loop !26

132:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @rule_print(ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 = { 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 #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 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { noreturn 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, !6, i64 224}
!10 = !{!"lemon", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !6, i64 280}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 40}
!14 = !{!10, !6, i64 72}
!15 = !{!16, !6, i64 0}
!16 = !{!"symbol", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!16, !11, i64 8}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{!10, !6, i64 8}
!23 = !{!24, !6, i64 80}
!24 = !{!"rule", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !6, i64 120, !6, i64 128}
!25 = !{!24, !6, i64 128}
!26 = distinct !{!26, !18}


; 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.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.Reprint = external hidden unnamed_addr constant [29 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [12 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.96 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @Reprint(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 224
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, ptr noundef %3)
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load i32, ptr %5, align 8, !tbaa !11
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 72
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %10
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %10 ]
  %.03746 = phi i32 [ 10, %.lr.ph ], [ %spec.select, %10 ]
  %11 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %13) #5
  %.fr76 = freeze i64 %14
  %15 = trunc i64 %.fr76 to i32
  %spec.select = tail call i32 @llvm.smax.i32(i32 %.03746, i32 %15)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %10, !llvm.loop !16

._crit_edge:                                      ; preds = %10
  %16 = add nuw nsw i32 %spec.select, 5
  %17 = udiv i32 76, %16
  %18 = icmp ugt i32 %spec.select, 71
  %spec.select75 = select i1 %18, i32 1, i32 %17
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %._crit_edge, %1
  %.037.lcssa74 = phi i32 [ 10, %1 ], [ %spec.select, %._crit_edge ]
  %19 = phi i32 [ 5, %1 ], [ %spec.select75, %._crit_edge ]
  %20 = add i32 %6, -1
  %21 = add i32 %20, %19
  %22 = sdiv i32 %21, %19
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %._crit_edge.thread
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = zext nneg i32 %22 to i64
  br label %26

26:                                               ; preds = %.lr.ph55, %._crit_edge52
  %indvars.iv64 = phi i64 [ 0, %.lr.ph55 ], [ %indvars.iv.next65, %._crit_edge52 ]
  %indvars69 = trunc i64 %indvars.iv64 to i32
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.93)
  %28 = load i32, ptr %5, align 8, !tbaa !11
  %29 = icmp sgt i32 %28, %indvars69
  br i1 %29, label %.lr.ph51, label %._crit_edge52

.lr.ph51:                                         ; preds = %26, %38
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %38 ], [ %indvars.iv64, %26 ]
  %30 = load ptr, ptr %24, align 8, !tbaa !12
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv66
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !18
  %35 = zext i32 %34 to i64
  %36 = icmp eq i64 %indvars.iv66, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %.lr.ph51
  tail call void @__assert_fail(ptr noundef nonnull @.str.94, ptr noundef nonnull @.str.3, i32 noundef 3153, ptr noundef nonnull @__PRETTY_FUNCTION__.Reprint) #6
  unreachable

38:                                               ; preds = %.lr.ph51
  %39 = load ptr, ptr %32, align 8, !tbaa !14
  %40 = trunc nuw i64 %indvars.iv66 to i32
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95, i32 noundef %40, i32 noundef %.037.lcssa74, i32 noundef %.037.lcssa74, ptr noundef %39)
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, %25
  %42 = load i32, ptr %5, align 8, !tbaa !11
  %43 = trunc nuw i64 %indvars.iv.next67 to i32
  %44 = icmp sgt i32 %42, %43
  br i1 %44, label %.lr.ph51, label %._crit_edge52, !llvm.loop !19

._crit_edge52:                                    ; preds = %38, %26
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next65, %25
  br i1 %exitcond71.not, label %._crit_edge56, label %26, !llvm.loop !20

._crit_edge56:                                    ; preds = %._crit_edge52, %._crit_edge.thread
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %.057 = load ptr, ptr %46, align 8, !tbaa !13
  %.not58 = icmp eq ptr %.057, null
  br i1 %.not58, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %._crit_edge56, %54
  %.059 = phi ptr [ %.0, %54 ], [ %.057, %._crit_edge56 ]
  %47 = load ptr, ptr @stdout, align 8, !tbaa !13
  tail call void @rule_print(ptr noundef %47, ptr noundef nonnull %.059)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.96)
  %49 = getelementptr inbounds i8, ptr %.059, i64 80
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %.not44 = icmp eq ptr %50, null
  br i1 %.not44, label %54, label %51

51:                                               ; preds = %.lr.ph61
  %52 = load ptr, ptr %50, align 8, !tbaa !14
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.97, ptr noundef %52)
  br label %54

54:                                               ; preds = %51, %.lr.ph61
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %56 = getelementptr inbounds i8, ptr %.059, i64 128
  %.0 = load ptr, ptr %56, align 8, !tbaa !13
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge62, label %.lr.ph61, !llvm.loop !23

._crit_edge62:                                    ; preds = %54, %._crit_edge56
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @rule_print(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { noreturn 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 "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 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { noreturn 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, !7, i64 224}
!6 = !{!"lemon", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !7, i64 280}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 40}
!12 = !{!6, !7, i64 72}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"symbol", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !7, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !7, i64 96}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!15, !10, i64 8}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = !{!22, !7, i64 80}
!22 = !{!"rule", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !7, i64 120, !7, i64 128}
!23 = distinct !{!23, !17}


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