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

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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

; 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 ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local void @utils_BNdump(i8 noundef zeroext %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3, ptr noundef %4) #3 {
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca [512 x i8], align 16
  %16 = alloca [2 x i8], align 1
  %17 = alloca [1200 x i8], align 16
  %18 = alloca [1200 x i8], align 16
  %19 = alloca [1200 x i8], align 16
  %20 = alloca [1200 x i8], align 16
  %21 = alloca [1200 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [1200 x i8], align 16
  %24 = alloca [1200 x i8], align 16
  %25 = alloca [1200 x i8], align 16
  %26 = alloca [1200 x i8], align 16
  %27 = alloca [1200 x i8], align 16
  %28 = alloca [1200 x i8], align 16
  %29 = alloca [1200 x i8], align 16
  %30 = alloca [1200 x i8], align 16
  %31 = alloca [1200 x i8], align 16
  %32 = alloca [1200 x i8], align 16
  store i8 %0, ptr %6, align 1, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !8
  store ptr %2, ptr %8, align 8, !tbaa !8
  store i8 %3, ptr %9, align 1, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #6
  store i16 0, ptr %12, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #6
  store i16 0, ptr %13, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #6
  store i16 0, ptr %14, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 512, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #6
  %33 = load ptr, ptr %8, align 8, !tbaa !8
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %90

35:                                               ; preds = %5
  %36 = load i8, ptr %6, align 1, !tbaa !5
  %37 = zext i8 %36 to i32
  switch i32 %37, label %78 [
    i32 1, label %38
    i32 2, label %48
    i32 3, label %58
    i32 4, label %68
  ]

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1200, ptr %17) #6
  %39 = getelementptr inbounds [1200 x i8], ptr %17, i64 0, i64 0
  %40 = load ptr, ptr %7, align 8, !tbaa !8
  %41 = load i8, ptr %9, align 1, !tbaa !5
  %42 = zext i8 %41 to i32
  %43 = load ptr, ptr %8, align 8, !tbaa !8
  %44 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %39, i64 noundef 1200, ptr noundef @.str.1, ptr noundef %40, i32 noundef %42, ptr noundef %43) #6
  %45 = load ptr, ptr @stdout, align 8, !tbaa !8
  %46 = getelementptr inbounds [1200 x i8], ptr %17, i64 0, i64 0
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.2, ptr noundef %46) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %17) #6
  br label %89

48:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1200, ptr %18) #6
  %49 = getelementptr inbounds [1200 x i8], ptr %18, i64 0, i64 0
  %50 = load ptr, ptr %7, align 8, !tbaa !8
  %51 = load i8, ptr %9, align 1, !tbaa !5
  %52 = zext i8 %51 to i32
  %53 = load ptr, ptr %8, align 8, !tbaa !8
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %49, i64 noundef 1200, ptr noundef @.str.1, ptr noundef %50, i32 noundef %52, ptr noundef %53) #6
  %55 = load ptr, ptr @stdout, align 8, !tbaa !8
  %56 = getelementptr inbounds [1200 x i8], ptr %18, i64 0, i64 0
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.3, ptr noundef %56) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %18) #6
  br label %89

58:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1200, ptr %19) #6
  %59 = getelementptr inbounds [1200 x i8], ptr %19, i64 0, i64 0
  %60 = load ptr, ptr %7, align 8, !tbaa !8
  %61 = load i8, ptr %9, align 1, !tbaa !5
  %62 = zext i8 %61 to i32
  %63 = load ptr, ptr %8, align 8, !tbaa !8
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %59, i64 noundef 1200, ptr noundef @.str.1, ptr noundef %60, i32 noundef %62, ptr noundef %63) #6
  %65 = load ptr, ptr @stdout, align 8, !tbaa !8
  %66 = getelementptr inbounds [1200 x i8], ptr %19, i64 0, i64 0
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.4, ptr noundef %66) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %19) #6
  br label %89

68:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1200, ptr %20) #6
  %69 = getelementptr inbounds [1200 x i8], ptr %20, i64 0, i64 0
  %70 = load ptr, ptr %7, align 8, !tbaa !8
  %71 = load i8, ptr %9, align 1, !tbaa !5
  %72 = zext i8 %71 to i32
  %73 = load ptr, ptr %8, align 8, !tbaa !8
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %69, i64 noundef 1200, ptr noundef @.str.1, ptr noundef %70, i32 noundef %72, ptr noundef %73) #6
  %75 = load ptr, ptr @stdout, align 8, !tbaa !8
  %76 = getelementptr inbounds [1200 x i8], ptr %20, i64 0, i64 0
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.5, ptr noundef %76) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %20) #6
  br label %89

78:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1200, ptr %21) #6
  %79 = getelementptr inbounds [1200 x i8], ptr %21, i64 0, i64 0
  %80 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %79, i64 noundef 1200, ptr noundef @.str.9, ptr noundef @.str.11) #6
  %81 = load ptr, ptr @stdout, align 8, !tbaa !8
  %82 = getelementptr inbounds [1200 x i8], ptr %21, i64 0, i64 0
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.2, ptr noundef %82) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %21) #6
  %84 = load ptr, ptr %11, align 8, !tbaa !8
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %88

86:                                               ; preds = %78
  %87 = load ptr, ptr %11, align 8, !tbaa !8
  call void @free(ptr noundef %87) #6
  br label %88

88:                                               ; preds = %86, %78
  store i32 1, ptr %22, align 4
  br label %271

89:                                               ; preds = %68, %58, %48, %38
  br label %90

90:                                               ; preds = %89, %5
  %91 = load ptr, ptr %10, align 8, !tbaa !8
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %136

93:                                               ; preds = %90
  %94 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %95 = load ptr, ptr %7, align 8, !tbaa !8
  %96 = call ptr @strcpy(ptr noundef %94, ptr noundef %95) #6
  %97 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %98 = call ptr @strcat(ptr noundef %97, ptr noundef @.str.12) #6
  %99 = load i8, ptr %6, align 1, !tbaa !5
  %100 = zext i8 %99 to i32
  switch i32 %100, label %129 [
    i32 1, label %101
    i32 2, label %108
    i32 3, label %115
    i32 4, label %122
  ]

101:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1200, ptr %23) #6
  %102 = getelementptr inbounds [1200 x i8], ptr %23, i64 0, i64 0
  %103 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %104 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %102, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %103) #6
  %105 = load ptr, ptr @stdout, align 8, !tbaa !8
  %106 = getelementptr inbounds [1200 x i8], ptr %23, i64 0, i64 0
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.2, ptr noundef %106) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %23) #6
  br label %135

108:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1200, ptr %24) #6
  %109 = getelementptr inbounds [1200 x i8], ptr %24, i64 0, i64 0
  %110 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %111 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %109, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %110) #6
  %112 = load ptr, ptr @stdout, align 8, !tbaa !8
  %113 = getelementptr inbounds [1200 x i8], ptr %24, i64 0, i64 0
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.3, ptr noundef %113) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %24) #6
  br label %135

115:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1200, ptr %25) #6
  %116 = getelementptr inbounds [1200 x i8], ptr %25, i64 0, i64 0
  %117 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %118 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %116, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %117) #6
  %119 = load ptr, ptr @stdout, align 8, !tbaa !8
  %120 = getelementptr inbounds [1200 x i8], ptr %25, i64 0, i64 0
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.4, ptr noundef %120) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %25) #6
  br label %135

122:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1200, ptr %26) #6
  %123 = getelementptr inbounds [1200 x i8], ptr %26, i64 0, i64 0
  %124 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %125 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %123, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %124) #6
  %126 = load ptr, ptr @stdout, align 8, !tbaa !8
  %127 = getelementptr inbounds [1200 x i8], ptr %26, i64 0, i64 0
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.5, ptr noundef %127) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %26) #6
  br label %135

129:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1200, ptr %27) #6
  %130 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %131 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %130, i64 noundef 1200, ptr noundef @.str.9, ptr noundef @.str.13) #6
  %132 = load ptr, ptr @stdout, align 8, !tbaa !8
  %133 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.2, ptr noundef %133) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %27) #6
  br label %135

135:                                              ; preds = %129, %122, %115, %108, %101
  br label %263

136:                                              ; preds = %90
  %137 = load ptr, ptr %10, align 8, !tbaa !8
  %138 = call ptr @BN_bn2hex(ptr noundef %137)
  store ptr %138, ptr %11, align 8, !tbaa !8
  %139 = load ptr, ptr %11, align 8, !tbaa !8
  %140 = call i64 @strlen(ptr noundef %139) #7
  %141 = trunc i64 %140 to i16
  store i16 %141, ptr %12, align 2, !tbaa !10
  %142 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %143 = load ptr, ptr %7, align 8, !tbaa !8
  %144 = call ptr @strcpy(ptr noundef %142, ptr noundef %143) #6
  store i16 0, ptr %14, align 2, !tbaa !10
  br label %145

145:                                              ; preds = %154, %136
  %146 = load i16, ptr %14, align 2, !tbaa !10
  %147 = zext i16 %146 to i32
  %148 = load i8, ptr %9, align 1, !tbaa !5
  %149 = zext i8 %148 to i32
  %150 = icmp slt i32 %147, %149
  br i1 %150, label %151, label %157

151:                                              ; preds = %145
  %152 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %153 = call ptr @strcat(ptr noundef %152, ptr noundef @.str.8) #6
  br label %154

154:                                              ; preds = %151
  %155 = load i16, ptr %14, align 2, !tbaa !10
  %156 = add i16 %155, 1
  store i16 %156, ptr %14, align 2, !tbaa !10
  br label %145, !llvm.loop !12

157:                                              ; preds = %145
  store i16 0, ptr %13, align 2, !tbaa !10
  br label %158

158:                                              ; preds = %259, %157
  %159 = load i16, ptr %13, align 2, !tbaa !10
  %160 = zext i16 %159 to i32
  %161 = load i16, ptr %12, align 2, !tbaa !10
  %162 = zext i16 %161 to i32
  %163 = icmp sle i32 %160, %162
  br i1 %163, label %164, label %262

164:                                              ; preds = %158
  %165 = load i16, ptr %13, align 2, !tbaa !10
  %166 = zext i16 %165 to i32
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %173

168:                                              ; preds = %164
  %169 = load i16, ptr %13, align 2, !tbaa !10
  %170 = zext i16 %169 to i32
  %171 = srem i32 %170, 32
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %179, label %173

173:                                              ; preds = %168, %164
  %174 = load i16, ptr %13, align 2, !tbaa !10
  %175 = zext i16 %174 to i32
  %176 = load i16, ptr %12, align 2, !tbaa !10
  %177 = zext i16 %176 to i32
  %178 = icmp eq i32 %175, %177
  br i1 %178, label %179, label %234

179:                                              ; preds = %173, %168
  %180 = load i8, ptr %6, align 1, !tbaa !5
  %181 = zext i8 %180 to i32
  switch i32 %181, label %210 [
    i32 1, label %182
    i32 2, label %189
    i32 3, label %196
    i32 4, label %203
  ]

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 1200, ptr %28) #6
  %183 = getelementptr inbounds [1200 x i8], ptr %28, i64 0, i64 0
  %184 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %185 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %183, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %184) #6
  %186 = load ptr, ptr @stdout, align 8, !tbaa !8
  %187 = getelementptr inbounds [1200 x i8], ptr %28, i64 0, i64 0
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.2, ptr noundef %187) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %28) #6
  br label %216

189:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 1200, ptr %29) #6
  %190 = getelementptr inbounds [1200 x i8], ptr %29, i64 0, i64 0
  %191 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %192 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %190, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %191) #6
  %193 = load ptr, ptr @stdout, align 8, !tbaa !8
  %194 = getelementptr inbounds [1200 x i8], ptr %29, i64 0, i64 0
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.3, ptr noundef %194) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %29) #6
  br label %216

196:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 1200, ptr %30) #6
  %197 = getelementptr inbounds [1200 x i8], ptr %30, i64 0, i64 0
  %198 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %199 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %197, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %198) #6
  %200 = load ptr, ptr @stdout, align 8, !tbaa !8
  %201 = getelementptr inbounds [1200 x i8], ptr %30, i64 0, i64 0
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.4, ptr noundef %201) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %30) #6
  br label %216

203:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 1200, ptr %31) #6
  %204 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %205 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %206 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %204, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %205) #6
  %207 = load ptr, ptr @stdout, align 8, !tbaa !8
  %208 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.5, ptr noundef %208) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %31) #6
  br label %216

210:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 1200, ptr %32) #6
  %211 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %212 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %211, i64 noundef 1200, ptr noundef @.str.9, ptr noundef @.str.14) #6
  %213 = load ptr, ptr @stdout, align 8, !tbaa !8
  %214 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.2, ptr noundef %214) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %32) #6
  br label %216

216:                                              ; preds = %210, %203, %196, %189, %182
  %217 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %217, i8 0, i64 512, i1 false)
  %218 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %219 = load ptr, ptr %7, align 8, !tbaa !8
  %220 = call ptr @strcpy(ptr noundef %218, ptr noundef %219) #6
  store i16 0, ptr %14, align 2, !tbaa !10
  br label %221

221:                                              ; preds = %230, %216
  %222 = load i16, ptr %14, align 2, !tbaa !10
  %223 = zext i16 %222 to i32
  %224 = load i8, ptr %9, align 1, !tbaa !5
  %225 = zext i8 %224 to i32
  %226 = icmp slt i32 %223, %225
  br i1 %226, label %227, label %233

227:                                              ; preds = %221
  %228 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %229 = call ptr @strcat(ptr noundef %228, ptr noundef @.str.8) #6
  br label %230

230:                                              ; preds = %227
  %231 = load i16, ptr %14, align 2, !tbaa !10
  %232 = add i16 %231, 1
  store i16 %232, ptr %14, align 2, !tbaa !10
  br label %221, !llvm.loop !14

233:                                              ; preds = %221
  br label %247

234:                                              ; preds = %173
  %235 = load i16, ptr %13, align 2, !tbaa !10
  %236 = zext i16 %235 to i32
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %246

238:                                              ; preds = %234
  %239 = load i16, ptr %13, align 2, !tbaa !10
  %240 = zext i16 %239 to i32
  %241 = srem i32 %240, 8
  %242 = icmp eq i32 %241, 0
  br i1 %242, label %243, label %246

243:                                              ; preds = %238
  %244 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %245 = call ptr @strcat(ptr noundef %244, ptr noundef @.str.8) #6
  br label %246

246:                                              ; preds = %243, %238, %234
  br label %247

247:                                              ; preds = %246, %233
  %248 = getelementptr inbounds [2 x i8], ptr %16, i64 0, i64 0
  %249 = load ptr, ptr %11, align 8, !tbaa !8
  %250 = load i16, ptr %13, align 2, !tbaa !10
  %251 = zext i16 %250 to i64
  %252 = getelementptr inbounds i8, ptr %249, i64 %251
  %253 = load i8, ptr %252, align 1, !tbaa !5
  %254 = sext i8 %253 to i32
  %255 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %248, ptr noundef @.str.15, i32 noundef %254) #6
  %256 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %257 = getelementptr inbounds [2 x i8], ptr %16, i64 0, i64 0
  %258 = call ptr @strcat(ptr noundef %256, ptr noundef %257) #6
  br label %259

259:                                              ; preds = %247
  %260 = load i16, ptr %13, align 2, !tbaa !10
  %261 = add i16 %260, 1
  store i16 %261, ptr %13, align 2, !tbaa !10
  br label %158, !llvm.loop !15

262:                                              ; preds = %158
  br label %263

263:                                              ; preds = %262, %135
  %264 = load ptr, ptr %11, align 8, !tbaa !8
  %265 = icmp ne ptr %264, null
  br i1 %265, label %266, label %268

266:                                              ; preds = %263
  %267 = load ptr, ptr %11, align 8, !tbaa !8
  call void @free(ptr noundef %267) #6
  br label %268

268:                                              ; preds = %266, %263
  %269 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %269, i8 0, i64 512, i1 false)
  %270 = getelementptr inbounds [2 x i8], ptr %16, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %270, i8 0, i64 2, i1 false)
  store i32 0, ptr %22, align 4
  br label %271

271:                                              ; preds = %268, %88
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %272 = load i32, ptr %22, align 4
  switch i32 %272, label %274 [
    i32 0, label %273
    i32 1, label %273
  ]

273:                                              ; preds = %271, %271
  ret void

274:                                              ; preds = %271
  unreachable
}

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

declare ptr @BN_bn2hex(ptr noundef) #4

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

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

!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 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !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.1 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; 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: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @utils_BNdump(i8 noundef zeroext %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3, ptr noundef %4) local_unnamed_addr #4 {
  %6 = alloca [512 x i8], align 16
  %7 = alloca [2 x i8], align 1
  %8 = alloca [1200 x i8], align 16
  %9 = alloca [1200 x i8], align 16
  %10 = alloca [1200 x i8], align 16
  %11 = alloca [1200 x i8], align 16
  %12 = alloca [1200 x i8], align 16
  %13 = alloca [1200 x i8], align 16
  %14 = alloca [1200 x i8], align 16
  %15 = alloca [1200 x i8], align 16
  %16 = alloca [1200 x i8], align 16
  %17 = alloca [1200 x i8], align 16
  %18 = alloca [1200 x i8], align 16
  %19 = alloca [1200 x i8], align 16
  %20 = alloca [1200 x i8], align 16
  %21 = alloca [1200 x i8], align 16
  %22 = alloca [1200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %48, label %23

23:                                               ; preds = %5
  switch i8 %0, label %44 [
    i8 1, label %24
    i8 2, label %29
    i8 3, label %34
    i8 4, label %39
  ]

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %8) #8
  %25 = zext i8 %3 to i32
  %26 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef %1, i32 noundef %25, ptr noundef nonnull %2) #8
  %27 = load ptr, ptr @stdout, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.2, ptr noundef nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %8) #8
  br label %48

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %9) #8
  %30 = zext i8 %3 to i32
  %31 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %9, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef %1, i32 noundef %30, ptr noundef nonnull %2) #8
  %32 = load ptr, ptr @stdout, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.3, ptr noundef nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %9) #8
  br label %48

34:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %10) #8
  %35 = zext i8 %3 to i32
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef %1, i32 noundef %35, ptr noundef nonnull %2) #8
  %37 = load ptr, ptr @stdout, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.4, ptr noundef nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %10) #8
  br label %48

39:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %11) #8
  %40 = zext i8 %3 to i32
  %41 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef %1, i32 noundef %40, ptr noundef nonnull %2) #8
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.5, ptr noundef nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %11) #8
  br label %48

44:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %12) #8
  %45 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.11) #8
  %46 = load ptr, ptr @stdout, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.2, ptr noundef nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %12) #8
  br label %.thread

48:                                               ; preds = %24, %29, %34, %39, %5
  %49 = icmp eq ptr %4, null
  br i1 %49, label %50, label %73

50:                                               ; preds = %48
  %51 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %1) #8
  %52 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.12) #8
  switch i8 %0, label %69 [
    i8 1, label %53
    i8 2, label %57
    i8 3, label %61
    i8 4, label %65
  ]

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %13) #8
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %55 = load ptr, ptr @stdout, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.2, ptr noundef nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %13) #8
  br label %.thread

57:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %14) #8
  %58 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %59 = load ptr, ptr @stdout, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.3, ptr noundef nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %14) #8
  br label %.thread

61:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %15) #8
  %62 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %63 = load ptr, ptr @stdout, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.4, ptr noundef nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %15) #8
  br label %.thread

65:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %16) #8
  %66 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %67 = load ptr, ptr @stdout, align 8, !tbaa !5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.5, ptr noundef nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %16) #8
  br label %.thread

69:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %17) #8
  %70 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %17, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.13) #8
  %71 = load ptr, ptr @stdout, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.2, ptr noundef nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %17) #8
  br label %.thread

73:                                               ; preds = %48
  %74 = call ptr @BN_bn2hex(ptr noundef nonnull %4) #8
  %75 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %74) #9
  %76 = trunc i64 %75 to i32
  %77 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %1) #8
  %78 = zext i8 %3 to i16
  %.not63 = icmp eq i8 %3, 0
  br i1 %.not63, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %73
  %79 = and i32 %76, 65535
  %80 = trunc i64 %75 to i16
  br label %83

.lr.ph:                                           ; preds = %73, %.lr.ph
  %.059 = phi i16 [ %82, %.lr.ph ], [ 0, %73 ]
  %81 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  %82 = add nuw nsw i16 %.059, 1
  %exitcond.not = icmp eq i16 %82, %78
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !9

83:                                               ; preds = %.preheader, %.loopexit
  %84 = phi i32 [ 0, %.preheader ], [ %125, %.loopexit ]
  %.04262 = phi i16 [ 0, %.preheader ], [ %124, %.loopexit ]
  %.not50 = icmp ne i16 %.04262, 0
  %85 = and i32 %84, 31
  %86 = icmp eq i32 %85, 0
  %or.cond = and i1 %.not50, %86
  %87 = icmp eq i32 %79, %84
  %or.cond53 = or i1 %87, %or.cond
  br i1 %or.cond53, label %88, label %113

88:                                               ; preds = %83
  switch i8 %0, label %105 [
    i8 1, label %89
    i8 2, label %93
    i8 3, label %97
    i8 4, label %101
  ]

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %18) #8
  %90 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %91 = load ptr, ptr @stdout, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.2, ptr noundef nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %18) #8
  br label %109

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %19) #8
  %94 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %19, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %95 = load ptr, ptr @stdout, align 8, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.3, ptr noundef nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %19) #8
  br label %109

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %20) #8
  %98 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %20, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %99 = load ptr, ptr @stdout, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.4, ptr noundef nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %20) #8
  br label %109

101:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %21) #8
  %102 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %21, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %6) #8
  %103 = load ptr, ptr @stdout, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.5, ptr noundef nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %21) #8
  br label %109

105:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %22) #8
  %106 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %22, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.14) #8
  %107 = load ptr, ptr @stdout, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.2, ptr noundef nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %22) #8
  br label %109

109:                                              ; preds = %105, %101, %97, %93, %89
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %6, i8 0, i64 512, i1 false)
  %110 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %1) #8
  br i1 %.not63, label %.loopexit, label %.lr.ph61

.lr.ph61:                                         ; preds = %109, %.lr.ph61
  %.160 = phi i16 [ %112, %.lr.ph61 ], [ 0, %109 ]
  %111 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  %112 = add nuw nsw i16 %.160, 1
  %exitcond65.not = icmp eq i16 %112, %78
  br i1 %exitcond65.not, label %.loopexit, label %.lr.ph61, !llvm.loop !11

113:                                              ; preds = %83
  %114 = and i32 %84, 7
  %115 = icmp eq i32 %114, 0
  %or.cond56 = and i1 %.not50, %115
  br i1 %or.cond56, label %116, label %.loopexit

116:                                              ; preds = %113
  %117 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph61, %109, %113, %116
  %118 = zext i16 %.04262 to i64
  %119 = getelementptr inbounds i8, ptr %74, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !12
  %121 = sext i8 %120 to i32
  %122 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %121) #8
  %123 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #8
  %124 = add i16 %.04262, 1
  %125 = zext i16 %124 to i32
  %.not49 = icmp ugt i16 %124, %80
  br i1 %.not49, label %126, label %83, !llvm.loop !13

126:                                              ; preds = %.loopexit
  call void @free(ptr noundef nonnull %74) #8
  br label %.thread

.thread:                                          ; preds = %126, %69, %65, %61, %57, %53, %44
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #8
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

declare ptr @BN_bn2hex(ptr noundef) local_unnamed_addr #6

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #6 = { "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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}


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