; 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.6 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [69 x i8], align 1
@__func__.utils_displayHash = external hidden unnamed_addr constant [18 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.10 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @utils_displayHash(i8 noundef zeroext %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3, ptr noundef %4, i16 noundef zeroext %5) #0 {
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %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 [3 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
  store i8 %0, ptr %7, align 1, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !8
  store ptr %2, ptr %9, align 8, !tbaa !8
  store i8 %3, ptr %10, align 1, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !8
  store i16 %5, ptr %12, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #4
  store i16 0, ptr %13, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #4
  store i16 0, ptr %14, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 512, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr %16) #4
  %28 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 512, i1 false)
  %29 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %29, i8 0, i64 3, i1 false)
  %30 = load ptr, ptr %9, align 8, !tbaa !8
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %82

32:                                               ; preds = %6
  %33 = load i8, ptr %7, align 1, !tbaa !5
  %34 = zext i8 %33 to i32
  switch i32 %34, label %75 [
    i32 1, label %35
    i32 2, label %45
    i32 3, label %55
    i32 4, label %65
  ]

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

45:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 1200, ptr %18) #4
  %46 = getelementptr inbounds [1200 x i8], ptr %18, i64 0, i64 0
  %47 = load ptr, ptr %8, align 8, !tbaa !8
  %48 = load i8, ptr %10, align 1, !tbaa !5
  %49 = zext i8 %48 to i32
  %50 = load ptr, ptr %9, align 8, !tbaa !8
  %51 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %46, i64 noundef 1200, ptr noundef @.str.1, ptr noundef %47, i32 noundef %49, ptr noundef %50) #4
  %52 = load ptr, ptr @stdout, align 8, !tbaa !8
  %53 = getelementptr inbounds [1200 x i8], ptr %18, i64 0, i64 0
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.3, ptr noundef %53) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %18) #4
  br label %81

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

65:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 1200, ptr %20) #4
  %66 = getelementptr inbounds [1200 x i8], ptr %20, i64 0, i64 0
  %67 = load ptr, ptr %8, align 8, !tbaa !8
  %68 = load i8, ptr %10, align 1, !tbaa !5
  %69 = zext i8 %68 to i32
  %70 = load ptr, ptr %9, align 8, !tbaa !8
  %71 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %66, i64 noundef 1200, ptr noundef @.str.1, ptr noundef %67, i32 noundef %69, ptr noundef %70) #4
  %72 = load ptr, ptr @stdout, align 8, !tbaa !8
  %73 = getelementptr inbounds [1200 x i8], ptr %20, i64 0, i64 0
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.5, ptr noundef %73) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %20) #4
  br label %81

75:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 1200, ptr %21) #4
  %76 = getelementptr inbounds [1200 x i8], ptr %21, i64 0, i64 0
  %77 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %76, i64 noundef 1200, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @__func__.utils_displayHash, i32 noundef 98) #4
  %78 = load ptr, ptr @stdout, align 8, !tbaa !8
  %79 = getelementptr inbounds [1200 x i8], ptr %21, i64 0, i64 0
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.2, ptr noundef %79) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %21) #4
  store i32 1, ptr %22, align 4
  br label %222

81:                                               ; preds = %65, %55, %45, %35
  br label %82

82:                                               ; preds = %81, %6
  %83 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %84 = load ptr, ptr %8, align 8, !tbaa !8
  %85 = call ptr @strcpy(ptr noundef %83, ptr noundef %84) #4
  store i16 0, ptr %14, align 2, !tbaa !10
  br label %86

86:                                               ; preds = %95, %82
  %87 = load i16, ptr %14, align 2, !tbaa !10
  %88 = zext i16 %87 to i32
  %89 = load i8, ptr %10, align 1, !tbaa !5
  %90 = zext i8 %89 to i32
  %91 = icmp slt i32 %88, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %86
  %93 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %94 = call ptr @strcat(ptr noundef %93, ptr noundef @.str.8) #4
  br label %95

95:                                               ; preds = %92
  %96 = load i16, ptr %14, align 2, !tbaa !10
  %97 = add i16 %96, 1
  store i16 %97, ptr %14, align 2, !tbaa !10
  br label %86, !llvm.loop !12

98:                                               ; preds = %86
  store i16 0, ptr %13, align 2, !tbaa !10
  br label %99

99:                                               ; preds = %216, %98
  %100 = load i16, ptr %13, align 2, !tbaa !10
  %101 = zext i16 %100 to i32
  %102 = load i16, ptr %12, align 2, !tbaa !10
  %103 = zext i16 %102 to i32
  %104 = icmp sle i32 %101, %103
  br i1 %104, label %105, label %219

105:                                              ; preds = %99
  %106 = load i16, ptr %13, align 2, !tbaa !10
  %107 = zext i16 %106 to i32
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %114

109:                                              ; preds = %105
  %110 = load i16, ptr %13, align 2, !tbaa !10
  %111 = zext i16 %110 to i32
  %112 = srem i32 %111, 16
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %120, label %114

114:                                              ; preds = %109, %105
  %115 = load i16, ptr %13, align 2, !tbaa !10
  %116 = zext i16 %115 to i32
  %117 = load i16, ptr %12, align 2, !tbaa !10
  %118 = zext i16 %117 to i32
  %119 = icmp eq i32 %116, %118
  br i1 %119, label %120, label %175

120:                                              ; preds = %114, %109
  %121 = load i8, ptr %7, align 1, !tbaa !5
  %122 = zext i8 %121 to i32
  switch i32 %122, label %151 [
    i32 1, label %123
    i32 2, label %130
    i32 3, label %137
    i32 4, label %144
  ]

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

130:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 1200, ptr %24) #4
  %131 = getelementptr inbounds [1200 x i8], ptr %24, i64 0, i64 0
  %132 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %133 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %131, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %132) #4
  %134 = load ptr, ptr @stdout, align 8, !tbaa !8
  %135 = getelementptr inbounds [1200 x i8], ptr %24, i64 0, i64 0
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.3, ptr noundef %135) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %24) #4
  br label %157

137:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 1200, ptr %25) #4
  %138 = getelementptr inbounds [1200 x i8], ptr %25, i64 0, i64 0
  %139 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %140 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %138, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %139) #4
  %141 = load ptr, ptr @stdout, align 8, !tbaa !8
  %142 = getelementptr inbounds [1200 x i8], ptr %25, i64 0, i64 0
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.4, ptr noundef %142) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %25) #4
  br label %157

144:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 1200, ptr %26) #4
  %145 = getelementptr inbounds [1200 x i8], ptr %26, i64 0, i64 0
  %146 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %147 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %145, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %146) #4
  %148 = load ptr, ptr @stdout, align 8, !tbaa !8
  %149 = getelementptr inbounds [1200 x i8], ptr %26, i64 0, i64 0
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.5, ptr noundef %149) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %26) #4
  br label %157

151:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 1200, ptr %27) #4
  %152 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %153 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %152, i64 noundef 1200, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @__func__.utils_displayHash, i32 noundef 130) #4
  %154 = load ptr, ptr @stdout, align 8, !tbaa !8
  %155 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.2, ptr noundef %155) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %27) #4
  br label %157

157:                                              ; preds = %151, %144, %137, %130, %123
  %158 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %158, i8 0, i64 512, i1 false)
  %159 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %160 = load ptr, ptr %8, align 8, !tbaa !8
  %161 = call ptr @strcpy(ptr noundef %159, ptr noundef %160) #4
  store i16 0, ptr %14, align 2, !tbaa !10
  br label %162

162:                                              ; preds = %171, %157
  %163 = load i16, ptr %14, align 2, !tbaa !10
  %164 = zext i16 %163 to i32
  %165 = load i8, ptr %10, align 1, !tbaa !5
  %166 = zext i8 %165 to i32
  %167 = icmp slt i32 %164, %166
  br i1 %167, label %168, label %174

168:                                              ; preds = %162
  %169 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %170 = call ptr @strcat(ptr noundef %169, ptr noundef @.str.8) #4
  br label %171

171:                                              ; preds = %168
  %172 = load i16, ptr %14, align 2, !tbaa !10
  %173 = add i16 %172, 1
  store i16 %173, ptr %14, align 2, !tbaa !10
  br label %162, !llvm.loop !14

174:                                              ; preds = %162
  br label %188

175:                                              ; preds = %114
  %176 = load i16, ptr %13, align 2, !tbaa !10
  %177 = zext i16 %176 to i32
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %187

179:                                              ; preds = %175
  %180 = load i16, ptr %13, align 2, !tbaa !10
  %181 = zext i16 %180 to i32
  %182 = srem i32 %181, 4
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %187

184:                                              ; preds = %179
  %185 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %186 = call ptr @strcat(ptr noundef %185, ptr noundef @.str.8) #4
  br label %187

187:                                              ; preds = %184, %179, %175
  br label %188

188:                                              ; preds = %187, %174
  %189 = load i16, ptr %13, align 2, !tbaa !10
  %190 = zext i16 %189 to i32
  %191 = load i16, ptr %12, align 2, !tbaa !10
  %192 = zext i16 %191 to i32
  %193 = icmp slt i32 %190, %192
  br i1 %193, label %194, label %215

194:                                              ; preds = %188
  %195 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 0
  %196 = load ptr, ptr %11, align 8, !tbaa !8
  %197 = load i16, ptr %13, align 2, !tbaa !10
  %198 = zext i16 %197 to i64
  %199 = getelementptr inbounds i8, ptr %196, i64 %198
  %200 = load i8, ptr %199, align 1, !tbaa !5
  %201 = sext i8 %200 to i32
  %202 = and i32 %201, 240
  %203 = ashr i32 %202, 4
  %204 = load ptr, ptr %11, align 8, !tbaa !8
  %205 = load i16, ptr %13, align 2, !tbaa !10
  %206 = zext i16 %205 to i64
  %207 = getelementptr inbounds i8, ptr %204, i64 %206
  %208 = load i8, ptr %207, align 1, !tbaa !5
  %209 = sext i8 %208 to i32
  %210 = and i32 %209, 15
  %211 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %195, ptr noundef @.str.10, i32 noundef %203, i32 noundef %210) #4
  %212 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %213 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 0
  %214 = call ptr @strcat(ptr noundef %212, ptr noundef %213) #4
  br label %215

215:                                              ; preds = %194, %188
  br label %216

216:                                              ; preds = %215
  %217 = load i16, ptr %13, align 2, !tbaa !10
  %218 = add i16 %217, 1
  store i16 %218, ptr %13, align 2, !tbaa !10
  br label %99, !llvm.loop !15

219:                                              ; preds = %99
  %220 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %220, i8 0, i64 512, i1 false)
  %221 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %221, i8 0, i64 3, i1 false)
  store i32 0, ptr %22, align 4
  br label %222

222:                                              ; preds = %219, %75
  call void @llvm.lifetime.end.p0(i64 3, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #4
  %223 = load i32, ptr %22, align 4
  switch i32 %223, label %225 [
    i32 0, label %224
    i32 1, label %224
  ]

224:                                              ; preds = %222, %222
  ret void

225:                                              ; preds = %222
  unreachable
}

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

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

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

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #3

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { 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 = !{!"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.6 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [69 x i8], align 1
@__func__.utils_displayHash = external hidden unnamed_addr constant [18 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.10 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @utils_displayHash(i8 noundef zeroext %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3, ptr nocapture noundef readonly %4, i16 noundef zeroext %5) local_unnamed_addr #0 {
  %7 = alloca [512 x i8], align 16
  %8 = alloca [3 x i8], align 1
  %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
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %8) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %7, i8 0, i64 512, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %8, i8 0, i64 3, i1 false)
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %44, label %19

19:                                               ; preds = %6
  switch i8 %0, label %40 [
    i8 1, label %20
    i8 2, label %25
    i8 3, label %30
    i8 4, label %35
  ]

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %9) #5
  %21 = zext i8 %3 to i32
  %22 = 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 %21, ptr noundef nonnull %2) #5
  %23 = load ptr, ptr @stdout, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.2, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %9) #5
  br label %44

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %10) #5
  %26 = zext i8 %3 to i32
  %27 = 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 %26, ptr noundef nonnull %2) #5
  %28 = load ptr, ptr @stdout, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.3, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %10) #5
  br label %44

30:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %11) #5
  %31 = zext i8 %3 to i32
  %32 = 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 %31, ptr noundef nonnull %2) #5
  %33 = load ptr, ptr @stdout, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.4, ptr noundef nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %11) #5
  br label %44

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

40:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %13) #5
  %41 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1200, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__.utils_displayHash, i32 noundef 98) #5
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.2, ptr noundef nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %13) #5
  br label %.loopexit56

44:                                               ; preds = %20, %25, %30, %35, %6
  %45 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %1) #5
  %46 = zext i8 %3 to i16
  %.not53 = icmp eq i8 %3, 0
  br i1 %.not53, label %.preheader.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %44, %.lr.ph
  %.049 = phi i16 [ %48, %.lr.ph ], [ 0, %44 ]
  %47 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  %48 = add nuw nsw i16 %.049, 1
  %exitcond.not = icmp eq i16 %48, %46
  br i1 %exitcond.not, label %.preheader.preheader, label %.lr.ph, !llvm.loop !9

.preheader.preheader:                             ; preds = %.lr.ph, %44
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %93
  %49 = phi i32 [ %95, %93 ], [ 0, %.preheader.preheader ]
  %.03752 = phi i16 [ %94, %93 ], [ 0, %.preheader.preheader ]
  %.not43 = icmp ne i16 %.03752, 0
  %50 = and i32 %49, 15
  %51 = icmp eq i32 %50, 0
  %or.cond = and i1 %.not43, %51
  %52 = icmp eq i16 %.03752, %5
  %or.cond45 = or i1 %52, %or.cond
  br i1 %or.cond45, label %53, label %78

53:                                               ; preds = %.preheader
  switch i8 %0, label %70 [
    i8 1, label %54
    i8 2, label %58
    i8 3, label %62
    i8 4, label %66
  ]

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

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

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

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

70:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %18) #5
  %71 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1200, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__.utils_displayHash, i32 noundef 130) #5
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.2, ptr noundef nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %18) #5
  br label %74

74:                                               ; preds = %70, %66, %62, %58, %54
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %7, i8 0, i64 512, i1 false)
  %75 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %1) #5
  br i1 %.not53, label %.loopexit, label %.lr.ph51

.lr.ph51:                                         ; preds = %74, %.lr.ph51
  %.150 = phi i16 [ %77, %.lr.ph51 ], [ 0, %74 ]
  %76 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  %77 = add nuw nsw i16 %.150, 1
  %exitcond55.not = icmp eq i16 %77, %46
  br i1 %exitcond55.not, label %.loopexit, label %.lr.ph51, !llvm.loop !11

78:                                               ; preds = %.preheader
  %79 = and i32 %49, 3
  %80 = icmp eq i32 %79, 0
  %or.cond48 = and i1 %.not43, %80
  br i1 %or.cond48, label %81, label %.loopexit

81:                                               ; preds = %78
  %82 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph51, %74, %78, %81
  %83 = icmp ult i16 %.03752, %5
  br i1 %83, label %84, label %93

84:                                               ; preds = %.loopexit
  %85 = zext i16 %.03752 to i64
  %86 = getelementptr inbounds i8, ptr %4, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !12
  %88 = zext i8 %87 to i32
  %89 = lshr i32 %88, 4
  %90 = and i32 %88, 15
  %91 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %89, i32 noundef %90) #5
  %92 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %8) #5
  br label %93

93:                                               ; preds = %.loopexit, %84
  %94 = add i16 %.03752, 1
  %95 = zext i16 %94 to i32
  %.not42 = icmp ugt i16 %94, %5
  br i1 %.not42, label %.loopexit56, label %.preheader, !llvm.loop !13

.loopexit56:                                      ; preds = %93, %40
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #5
  ret void
}

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

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

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

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

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

; 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 #4

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

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

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


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