; LLVM IR from jim-b/ECCSI-SAKKE :: src/utils (utils)

; 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"

@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [64 x i8], align 1
@__func__.utils_convertHexStringToOctetString = external hidden unnamed_addr constant [36 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [32 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 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local signext i16 @utils_convertHexStringToOctetString(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca [1200 x i8], align 16
  %16 = alloca [1200 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 1, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  store i16 0, ptr %10, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #5
  store i16 0, ptr %11, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #5
  store i16 1, ptr %12, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 0, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 0, ptr %14, align 1, !tbaa !11
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %132

19:                                               ; preds = %4
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %29

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1200, ptr %15) #5
  %24 = getelementptr inbounds [1200 x i8], ptr %15, i64 0, i64 0
  %25 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %24, i64 noundef 1200, ptr noundef @.str.23, ptr noundef @.str.7, ptr noundef @__func__.utils_convertHexStringToOctetString, i32 noundef 487) #5
  %26 = load ptr, ptr @stdout, align 8, !tbaa !5
  %27 = getelementptr inbounds [1200 x i8], ptr %15, i64 0, i64 0
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.2, ptr noundef %27) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr %15) #5
  br label %131

29:                                               ; preds = %19
  store i16 0, ptr %11, align 2, !tbaa !12
  store i16 0, ptr %11, align 2, !tbaa !12
  br label %30

30:                                               ; preds = %50, %29
  %31 = load i16, ptr %11, align 2, !tbaa !12
  %32 = sext i16 %31 to i64
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call i64 @strlen(ptr noundef %33) #6
  %35 = icmp ult i64 %32, %34
  br i1 %35, label %36, label %53

36:                                               ; preds = %30
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load i16, ptr %11, align 2, !tbaa !12
  %39 = sext i16 %38 to i64
  %40 = getelementptr inbounds i8, ptr %37, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = call signext i8 @utils_xtod(i8 noundef signext %41)
  store i8 %42, ptr %13, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = icmp ne i32 %43, -1
  br i1 %44, label %45, label %49

45:                                               ; preds = %36
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %46, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %45, %36
  br label %50

50:                                               ; preds = %49
  %51 = load i16, ptr %11, align 2, !tbaa !12
  %52 = add i16 %51, 1
  store i16 %52, ptr %11, align 2, !tbaa !12
  br label %30, !llvm.loop !14

53:                                               ; preds = %30
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  store i8 0, ptr %9, align 1, !tbaa !11
  br label %130

58:                                               ; preds = %53
  %59 = load i64, ptr %6, align 8, !tbaa !9
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 %59, ptr %60, align 8, !tbaa !9
  %61 = load i64, ptr %6, align 8, !tbaa !9
  %62 = add i64 %61, 1
  %63 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %62) #7
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %63, ptr %64, align 8, !tbaa !5
  %65 = icmp ne ptr %63, null
  br i1 %65, label %66, label %123

66:                                               ; preds = %58
  store i16 0, ptr %10, align 2, !tbaa !12
  store i8 0, ptr %14, align 1, !tbaa !11
  store i16 0, ptr %12, align 2, !tbaa !12
  %67 = load i64, ptr %6, align 8, !tbaa !9
  %68 = trunc i64 %67 to i16
  store i16 %68, ptr %10, align 2, !tbaa !12
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = call i64 @strlen(ptr noundef %69) #6
  %71 = sub i64 %70, 1
  %72 = trunc i64 %71 to i16
  store i16 %72, ptr %11, align 2, !tbaa !12
  br label %73

73:                                               ; preds = %119, %66
  %74 = load i16, ptr %11, align 2, !tbaa !12
  %75 = sext i16 %74 to i32
  %76 = icmp sge i32 %75, 0
  br i1 %76, label %77, label %122

77:                                               ; preds = %73
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i16, ptr %11, align 2, !tbaa !12
  %80 = sext i16 %79 to i64
  %81 = getelementptr inbounds i8, ptr %78, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !11
  %83 = call signext i8 @utils_xtod(i8 noundef signext %82)
  store i8 %83, ptr %13, align 1, !tbaa !11
  %84 = zext i8 %83 to i32
  %85 = icmp ne i32 %84, -1
  br i1 %85, label %86, label %118

86:                                               ; preds = %77
  %87 = load i16, ptr %12, align 2, !tbaa !12
  %88 = icmp ne i16 %87, 0
  br i1 %88, label %89, label %102

89:                                               ; preds = %86
  %90 = load i8, ptr %13, align 1, !tbaa !11
  %91 = zext i8 %90 to i32
  %92 = mul nsw i32 %91, 16
  %93 = load i8, ptr %14, align 1, !tbaa !11
  %94 = zext i8 %93 to i32
  %95 = add nsw i32 %92, %94
  %96 = trunc i32 %95 to i8
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i16, ptr %10, align 2, !tbaa !12
  %100 = zext i16 %99 to i64
  %101 = getelementptr inbounds i8, ptr %98, i64 %100
  store i8 %96, ptr %101, align 1, !tbaa !11
  store i16 0, ptr %12, align 2, !tbaa !12
  br label %117

102:                                              ; preds = %86
  %103 = load i8, ptr %13, align 1, !tbaa !11
  store i8 %103, ptr %14, align 1, !tbaa !11
  store i16 1, ptr %12, align 2, !tbaa !12
  %104 = load i16, ptr %10, align 2, !tbaa !12
  %105 = add i16 %104, -1
  store i16 %105, ptr %10, align 2, !tbaa !12
  %106 = load i16, ptr %11, align 2, !tbaa !12
  %107 = sext i16 %106 to i32
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %116

109:                                              ; preds = %102
  %110 = load i8, ptr %13, align 1, !tbaa !11
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i16, ptr %10, align 2, !tbaa !12
  %114 = zext i16 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  store i8 %110, ptr %115, align 1, !tbaa !11
  br label %116

116:                                              ; preds = %109, %102
  br label %117

117:                                              ; preds = %116, %89
  br label %118

118:                                              ; preds = %117, %77
  br label %119

119:                                              ; preds = %118
  %120 = load i16, ptr %11, align 2, !tbaa !12
  %121 = add i16 %120, -1
  store i16 %121, ptr %11, align 2, !tbaa !12
  br label %73, !llvm.loop !16

122:                                              ; preds = %73
  store i8 0, ptr %9, align 1, !tbaa !11
  br label %129

123:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 1200, ptr %16) #5
  %124 = getelementptr inbounds [1200 x i8], ptr %16, i64 0, i64 0
  %125 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %124, i64 noundef 1200, ptr noundef @.str.24, ptr noundef @.str.7, ptr noundef @__func__.utils_convertHexStringToOctetString, i32 noundef 541) #5
  %126 = load ptr, ptr @stdout, align 8, !tbaa !5
  %127 = getelementptr inbounds [1200 x i8], ptr %16, i64 0, i64 0
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.2, ptr noundef %127) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr %16) #5
  br label %129

129:                                              ; preds = %123, %122
  br label %130

130:                                              ; preds = %129, %57
  br label %131

131:                                              ; preds = %130, %23
  br label %132

132:                                              ; preds = %131, %4
  %133 = load i8, ptr %9, align 1, !tbaa !11
  %134 = zext i8 %133 to i16
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  ret i16 %134
}

; Function Attrs: nounwind uwtable
declare hidden signext i8 @utils_xtod(i8 noundef signext) #3

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

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 = { 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 #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 allocsize(0,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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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"

@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [64 x i8], align 1
@__func__.utils_convertHexStringToOctetString = external hidden unnamed_addr constant [36 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local signext range(i16 0, 2) i16 @utils_convertHexStringToOctetString(ptr noundef readonly %0, i64 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3) local_unnamed_addr #3 {
  %5 = alloca [1200 x i8], align 16
  %6 = alloca [1200 x i8], align 16
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.loopexit, label %7

7:                                                ; preds = %4
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %.not40 = icmp eq ptr %8, null
  br i1 %.not40, label %.preheader, label %9

.preheader:                                       ; preds = %7
  %char0 = load i8, ptr %0, align 1
  %.not51 = icmp eq i8 %char0, 0
  br i1 %.not51, label %.preheader.._crit_edge_crit_edge, label %.lr.ph

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre = load i64, ptr %3, align 8, !tbaa !9
  br label %._crit_edge

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %5) #5
  %10 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 1200, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__.utils_convertHexStringToOctetString, i32 noundef 487) #5
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.2, ptr noundef nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %5) #5
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %13 = phi i64 [ %20, %.lr.ph ], [ 0, %.preheader ]
  %.03243 = phi i16 [ %19, %.lr.ph ], [ 0, %.preheader ]
  %14 = getelementptr inbounds i8, ptr %0, i64 %13
  %15 = load i8, ptr %14, align 1, !tbaa !11
  %16 = tail call signext i8 @utils_xtod(i8 noundef signext %15)
  %17 = load i64, ptr %3, align 8, !tbaa !9
  %18 = add i64 %17, 1
  store i64 %18, ptr %3, align 8, !tbaa !9
  %19 = add i16 %.03243, 1
  %20 = sext i16 %19 to i64
  %21 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  %22 = icmp ugt i64 %21, %20
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %.preheader.._crit_edge_crit_edge
  %23 = phi i64 [ %.pre, %.preheader.._crit_edge_crit_edge ], [ %18, %.lr.ph ]
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %.loopexit, label %25

25:                                               ; preds = %._crit_edge
  store i64 %1, ptr %3, align 8, !tbaa !9
  %26 = add i64 %1, 1
  %27 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %26) #7
  store ptr %27, ptr %2, align 8, !tbaa !5
  %.not41 = icmp eq ptr %27, null
  br i1 %.not41, label %51, label %28

28:                                               ; preds = %25
  %29 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  %30 = trunc i64 %29 to i16
  %.13344 = add i16 %30, -1
  %31 = icmp sgt i16 %.13344, -1
  br i1 %31, label %.lr.ph50.preheader, label %.loopexit

.lr.ph50.preheader:                               ; preds = %28
  %32 = trunc i64 %1 to i16
  %33 = zext nneg i16 %.13344 to i64
  br label %.lr.ph50

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %49
  %indvars.iv = phi i64 [ %33, %.lr.ph50.preheader ], [ %indvars.iv.next, %49 ]
  %.047 = phi i8 [ 0, %.lr.ph50.preheader ], [ %.1, %49 ]
  %.03046 = phi i16 [ 0, %.lr.ph50.preheader ], [ %.131, %49 ]
  %.03445 = phi i16 [ %32, %.lr.ph50.preheader ], [ %.135, %49 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = tail call signext i8 @utils_xtod(i8 noundef signext %35)
  %.not42 = icmp eq i16 %.03046, 0
  br i1 %.not42, label %43, label %37

37:                                               ; preds = %.lr.ph50
  %38 = shl i8 %36, 4
  %39 = add i8 %38, %.047
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = zext i16 %.03445 to i64
  %42 = getelementptr inbounds i8, ptr %40, i64 %41
  store i8 %39, ptr %42, align 1, !tbaa !11
  br label %49

43:                                               ; preds = %.lr.ph50
  %44 = add i16 %.03445, -1
  %45 = icmp eq i64 %indvars.iv, 0
  br i1 %45, label %.thread, label %49

.thread:                                          ; preds = %43
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = zext i16 %44 to i64
  %48 = getelementptr inbounds i8, ptr %46, i64 %47
  store i8 %36, ptr %48, align 1, !tbaa !11
  br label %.loopexit

49:                                               ; preds = %43, %37
  %.135 = phi i16 [ %.03445, %37 ], [ %44, %43 ]
  %.131 = phi i16 [ 0, %37 ], [ 1, %43 ]
  %.1 = phi i8 [ %.047, %37 ], [ %36, %43 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %50 = icmp sgt i64 %indvars.iv, 0
  br i1 %50, label %.lr.ph50, label %.loopexit, !llvm.loop !14

51:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %6) #5
  %52 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 1200, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__.utils_convertHexStringToOctetString, i32 noundef 541) #5
  %53 = load ptr, ptr @stdout, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.2, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %6) #5
  br label %.loopexit

.loopexit:                                        ; preds = %49, %.thread, %28, %._crit_edge, %9, %51, %4
  %.036 = phi i16 [ 1, %9 ], [ 1, %51 ], [ 1, %4 ], [ 0, %._crit_edge ], [ 0, %28 ], [ 0, %.thread ], [ 0, %49 ]
  ret i16 %.036
}

; Function Attrs: nounwind uwtable
declare hidden signext i8 @utils_xtod(i8 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(0,1) }

!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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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