; LLVM IR from onnx/onnx-mlir :: src/Runtime (OMTensor)

; 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.1 = external hidden unnamed_addr constant [73 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@__PRETTY_FUNCTION__.omTensorPrint = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = 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: 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

; Function Attrs: nounwind uwtable
define dso_local void @omTensorPrint(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = call i64 @strlen(ptr noundef %9) #7
  store i64 %10, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  store ptr %11, ptr %6, align 8, !tbaa !5
  %12 = load i64, ptr %5, align 8, !tbaa !9
  %13 = icmp sge i64 %12, 2
  br i1 %13, label %14, label %32

14:                                               ; preds = %2
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 0
  %17 = load i8, ptr %16, align 1, !tbaa !11
  %18 = sext i8 %17 to i32
  %19 = icmp eq i32 %18, 37
  br i1 %19, label %20, label %32

20:                                               ; preds = %14
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = sext i8 %23 to i32
  %25 = icmp eq i32 %24, 105
  br i1 %25, label %26, label %32

26:                                               ; preds = %20
  %27 = call ptr (...) @getInstrumentFile()
  store ptr %27, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 2
  store ptr %29, ptr %3, align 8, !tbaa !5
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = sub nsw i64 %30, 2
  store i64 %31, ptr %5, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %26, %20, %14, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 0, ptr %7, align 1, !tbaa !12
  br label %33

33:                                               ; preds = %115, %110, %32
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = icmp sgt i64 %34, 0
  br i1 %35, label %36, label %126

36:                                               ; preds = %33
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 0
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 37
  br i1 %41, label %42, label %115

42:                                               ; preds = %36
  %43 = load i64, ptr %5, align 8, !tbaa !9
  %44 = icmp slt i64 %43, 2
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.2) #6
  store i32 1, ptr %8, align 4
  br label %139

48:                                               ; preds = %42
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 1
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  %53 = icmp eq i32 %52, 100
  br i1 %53, label %54, label %63

54:                                               ; preds = %48
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  br i1 true, label %58, label %59

58:                                               ; preds = %57
  br label %60

59:                                               ; preds = %57, %54
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 634, ptr noundef @__PRETTY_FUNCTION__.omTensorPrint) #8
  unreachable

60:                                               ; preds = %58
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  call void @printData(ptr noundef %61, ptr noundef %62)
  store i8 1, ptr %7, align 1, !tbaa !12
  br label %110

63:                                               ; preds = %48
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = sext i8 %66 to i32
  %68 = icmp eq i32 %67, 115
  br i1 %68, label %69, label %78

69:                                               ; preds = %63
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  br i1 true, label %73, label %74

73:                                               ; preds = %72
  br label %75

74:                                               ; preds = %72, %69
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 638, ptr noundef @__PRETTY_FUNCTION__.omTensorPrint) #8
  unreachable

75:                                               ; preds = %73
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  call void @printSignature(ptr noundef %76, ptr noundef %77)
  store i8 1, ptr %7, align 1, !tbaa !12
  br label %109

78:                                               ; preds = %63
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 1
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = icmp eq i32 %82, 116
  br i1 %83, label %84, label %93

84:                                               ; preds = %78
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %89

87:                                               ; preds = %84
  br i1 true, label %88, label %89

88:                                               ; preds = %87
  br label %90

89:                                               ; preds = %87, %84
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 642, ptr noundef @__PRETTY_FUNCTION__.omTensorPrint) #8
  unreachable

90:                                               ; preds = %88
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  call void @printType(ptr noundef %91, ptr noundef %92)
  store i8 1, ptr %7, align 1, !tbaa !12
  br label %108

93:                                               ; preds = %78
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 1
  %96 = load i8, ptr %95, align 1, !tbaa !11
  %97 = sext i8 %96 to i32
  %98 = icmp eq i32 %97, 101
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  store i32 1, ptr %8, align 4
  br label %139

100:                                              ; preds = %93
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 1
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %105 = sext i8 %104 to i32
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.5, i32 noundef %105) #6
  br label %107

107:                                              ; preds = %100
  br label %108

108:                                              ; preds = %107, %90
  br label %109

109:                                              ; preds = %108, %75
  br label %110

110:                                              ; preds = %109, %60
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 2
  store ptr %112, ptr %3, align 8, !tbaa !5
  %113 = load i64, ptr %5, align 8, !tbaa !9
  %114 = sub nsw i64 %113, 2
  store i64 %114, ptr %5, align 8, !tbaa !9
  br label %33, !llvm.loop !14

115:                                              ; preds = %36
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 0
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = sext i8 %119 to i32
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.6, i32 noundef %120) #6
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i32 1
  store ptr %123, ptr %3, align 8, !tbaa !5
  %124 = load i64, ptr %5, align 8, !tbaa !9
  %125 = add nsw i64 %124, -1
  store i64 %125, ptr %5, align 8, !tbaa !9
  br label %33, !llvm.loop !14

126:                                              ; preds = %33
  %127 = load i8, ptr %7, align 1, !tbaa !12, !range !16, !noundef !17
  %128 = trunc i8 %127 to i1
  br i1 %128, label %138, label %129

129:                                              ; preds = %126
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.7) #6
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  call void @printSignature(ptr noundef %132, ptr noundef %133)
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  call void @printData(ptr noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.7) #6
  br label %138

138:                                              ; preds = %129, %126
  store i32 0, ptr %8, align 4
  br label %139

139:                                              ; preds = %138, %99, %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %140 = load i32, ptr %8, align 4
  switch i32 %140, label %142 [
    i32 0, label %141
    i32 1, label %141
  ]

141:                                              ; preds = %139, %139
  ret void

142:                                              ; preds = %139
  unreachable
}

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

declare ptr @getInstrumentFile(...) #4

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

; Function Attrs: nounwind uwtable
declare hidden void @printData(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @printSignature(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @printType(ptr noundef, ptr noundef) #2

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { "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 "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}


; 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 [73 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@__PRETTY_FUNCTION__.omTensorPrint = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 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: nounwind uwtable
define dso_local void @omTensorPrint(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #5
  %4 = load ptr, ptr @stdout, align 8, !tbaa !5
  %5 = icmp sgt i64 %3, 1
  br i1 %5, label %6, label %17

6:                                                ; preds = %2
  %7 = load i8, ptr %0, align 1, !tbaa !9
  %8 = icmp eq i8 %7, 37
  br i1 %8, label %9, label %.lr.ph.lr.ph

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 1
  %11 = load i8, ptr %10, align 1, !tbaa !9
  %12 = icmp eq i8 %11, 105
  br i1 %12, label %13, label %.lr.ph.lr.ph

13:                                               ; preds = %9
  %14 = tail call ptr (...) @getInstrumentFile() #6
  %15 = getelementptr inbounds i8, ptr %0, i64 2
  %16 = add nsw i64 %3, -2
  br label %17

17:                                               ; preds = %13, %2
  %.040 = phi ptr [ %15, %13 ], [ %0, %2 ]
  %.038 = phi i64 [ %16, %13 ], [ %3, %2 ]
  %.037 = phi ptr [ %14, %13 ], [ %4, %2 ]
  %18 = icmp sgt i64 %.038, 0
  br i1 %18, label %.lr.ph.lr.ph, label %.critedge

.lr.ph.lr.ph:                                     ; preds = %6, %9, %17
  %.037122 = phi ptr [ %.037, %17 ], [ %4, %9 ], [ %4, %6 ]
  %.038121 = phi i64 [ %.038, %17 ], [ %3, %9 ], [ %3, %6 ]
  %.040120 = phi ptr [ %.040, %17 ], [ %0, %9 ], [ %0, %6 ]
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.lr.ph.us, label %.lr.ph

.lr.ph.us:                                        ; preds = %.lr.ph.lr.ph, %.lr.ph.us.backedge
  %.13958.us = phi i64 [ %.13958.us.be, %.lr.ph.us.backedge ], [ %.038121, %.lr.ph.lr.ph ]
  %.14157.us = phi ptr [ %.14157.us.be, %.lr.ph.us.backedge ], [ %.040120, %.lr.ph.lr.ph ]
  %19 = load i8, ptr %.14157.us, align 1, !tbaa !9
  %20 = icmp eq i8 %19, 37
  br i1 %20, label %27, label %21

21:                                               ; preds = %.lr.ph.us
  %22 = sext i8 %19 to i32
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037122, ptr noundef nonnull @.str.6, i32 noundef %22) #6
  %24 = getelementptr inbounds i8, ptr %.14157.us, i64 1
  %25 = add nsw i64 %.13958.us, -1
  %26 = icmp sgt i64 %.13958.us, 1
  br i1 %26, label %.lr.ph.us.backedge, label %.critedge

.lr.ph.us.backedge:                               ; preds = %21, %.outer.us
  %.13958.us.be = phi i64 [ %25, %21 ], [ %35, %.outer.us ]
  %.14157.us.be = phi ptr [ %24, %21 ], [ %34, %.outer.us ]
  br label %.lr.ph.us, !llvm.loop !10

27:                                               ; preds = %.lr.ph.us
  %28 = icmp eq i64 %.13958.us, 1
  br i1 %28, label %.split.us, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %.14157.us, i64 1
  %31 = load i8, ptr %30, align 1, !tbaa !9
  switch i8 %31, label %.outer.us [
    i8 100, label %.split69.us
    i8 115, label %.split67.us
    i8 116, label %.split65.us
    i8 101, label %.loopexit
  ]

.outer.us:                                        ; preds = %29
  %32 = sext i8 %31 to i32
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037122, ptr noundef nonnull @.str.5, i32 noundef %32) #6
  %34 = getelementptr inbounds i8, ptr %.14157.us, i64 2
  %35 = add nsw i64 %.13958.us, -2
  %36 = icmp sgt i64 %.13958.us, 2
  br i1 %36, label %.lr.ph.us.backedge, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer
  %.0.ph62 = phi i1 [ %.1, %.outer ], [ false, %.lr.ph.lr.ph ]
  %.139.ph61 = phi i64 [ %53, %.outer ], [ %.038121, %.lr.ph.lr.ph ]
  %.141.ph60 = phi ptr [ %52, %.outer ], [ %.040120, %.lr.ph.lr.ph ]
  br label %37

37:                                               ; preds = %.lr.ph, %55
  %.13958 = phi i64 [ %.139.ph61, %.lr.ph ], [ %59, %55 ]
  %.14157 = phi ptr [ %.141.ph60, %.lr.ph ], [ %58, %55 ]
  %38 = load i8, ptr %.14157, align 1, !tbaa !9
  %39 = icmp eq i8 %38, 37
  br i1 %39, label %40, label %55

40:                                               ; preds = %37
  %41 = icmp eq i64 %.13958, 1
  br i1 %41, label %.split.us, label %43

.split.us:                                        ; preds = %40, %27
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037122, ptr noundef nonnull @.str.2) #6
  br label %.loopexit

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %.14157, i64 1
  %45 = load i8, ptr %44, align 1, !tbaa !9
  switch i8 %45, label %49 [
    i8 100, label %46
    i8 115, label %47
    i8 116, label %48
    i8 101, label %.loopexit
  ]

46:                                               ; preds = %43
  tail call void @printData(ptr noundef %.037122, ptr noundef nonnull %1)
  br label %.outer

.split69.us:                                      ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 634, ptr noundef nonnull @__PRETTY_FUNCTION__.omTensorPrint) #7
  unreachable

47:                                               ; preds = %43
  tail call void @printSignature(ptr noundef %.037122, ptr noundef nonnull %1)
  br label %.outer

.split67.us:                                      ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 638, ptr noundef nonnull @__PRETTY_FUNCTION__.omTensorPrint) #7
  unreachable

48:                                               ; preds = %43
  tail call void @printType(ptr noundef %.037122, ptr noundef nonnull %1)
  br label %.outer

.split65.us:                                      ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 642, ptr noundef nonnull @__PRETTY_FUNCTION__.omTensorPrint) #7
  unreachable

49:                                               ; preds = %43
  %50 = sext i8 %45 to i32
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037122, ptr noundef nonnull @.str.5, i32 noundef %50) #6
  br label %.outer

.outer:                                           ; preds = %47, %49, %48, %46
  %.1 = phi i1 [ true, %46 ], [ true, %47 ], [ true, %48 ], [ %.0.ph62, %49 ]
  %52 = getelementptr inbounds i8, ptr %.14157, i64 2
  %53 = add nsw i64 %.13958, -2
  %54 = icmp sgt i64 %.13958, 2
  br i1 %54, label %.lr.ph, label %.outer._crit_edge, !llvm.loop !10

55:                                               ; preds = %37
  %56 = sext i8 %38 to i32
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037122, ptr noundef nonnull @.str.6, i32 noundef %56) #6
  %58 = getelementptr inbounds i8, ptr %.14157, i64 1
  %59 = add nsw i64 %.13958, -1
  %60 = icmp sgt i64 %.13958, 1
  br i1 %60, label %37, label %.outer._crit_edge, !llvm.loop !10

.outer._crit_edge:                                ; preds = %.outer, %55
  %.0.ph.lcssa56 = phi i1 [ %.0.ph62, %55 ], [ %.1, %.outer ]
  br i1 %.0.ph.lcssa56, label %.loopexit, label %.critedge

.critedge:                                        ; preds = %.outer.us, %21, %17, %.outer._crit_edge
  %.037123 = phi ptr [ %.037, %17 ], [ %.037122, %.outer._crit_edge ], [ %.037122, %21 ], [ %.037122, %.outer.us ]
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037123, ptr noundef nonnull @.str.7) #6
  tail call void @printSignature(ptr noundef %.037123, ptr noundef %1)
  tail call void @printData(ptr noundef %.037123, ptr noundef %1)
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.037123, ptr noundef nonnull @.str.7) #6
  br label %.loopexit

.loopexit:                                        ; preds = %43, %29, %.outer._crit_edge, %.critedge, %.split.us
  ret void
}

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

declare ptr @getInstrumentFile(...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @printData(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @printSignature(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @printType(ptr noundef, ptr noundef) local_unnamed_addr #1

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 = { 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 = { 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 = { "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 = { 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 #5 = { nounwind willreturn memory(read) }
attributes #6 = { nounwind }
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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass