; LLVM IR from intuitive-robots/mdt_policy :: pyhash-0.9.3/src/fnv (fnv32)

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

@program = external hidden global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@usage = external hidden global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@optind = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [32769 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32769, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 -1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %22, ptr @program, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %58, %2
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = call i32 @getopt(i32 noundef %24, ptr noundef %25, ptr noundef @.str) #7
  store i32 %26, ptr %18, align 4, !tbaa !5
  %27 = icmp ne i32 %26, -1
  br i1 %27, label %28, label %59

28:                                               ; preds = %23
  %29 = load i32, ptr %18, align 4, !tbaa !5
  switch i32 %29, label %53 [
    i32 98, label %30
    i32 109, label %33
    i32 115, label %34
    i32 116, label %35
    i32 118, label %52
  ]

30:                                               ; preds = %28
  %31 = load ptr, ptr @optarg, align 8, !tbaa !9
  %32 = call i32 @atoi(ptr noundef %31) #8
  store i32 %32, ptr %12, align 4, !tbaa !5
  br label %58

33:                                               ; preds = %28
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %58

34:                                               ; preds = %28
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %58

35:                                               ; preds = %28
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call i32 @atoi(ptr noundef %36) #8
  store i32 %37, ptr %13, align 4, !tbaa !5
  %38 = load i32, ptr %13, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %43, label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %13, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %43, label %51

43:                                               ; preds = %40, %35
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = load ptr, ptr @program, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.1, ptr noundef %45) #7
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = load ptr, ptr @usage, align 8, !tbaa !9
  %49 = load ptr, ptr @program, align 8, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef @.str.2) #7
  call void @exit(i32 noundef 1) #9
  unreachable

51:                                               ; preds = %40
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %58

52:                                               ; preds = %28
  store i32 1, ptr %10, align 4, !tbaa !5
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %58

53:                                               ; preds = %28
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load ptr, ptr @usage, align 8, !tbaa !9
  %56 = load ptr, ptr @program, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef @.str.2) #7
  call void @exit(i32 noundef 1) #9
  unreachable

58:                                               ; preds = %52, %51, %34, %33, %30
  br label %23, !llvm.loop !11

59:                                               ; preds = %23
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = icmp sge i32 %60, 0
  br i1 %61, label %62, label %85

62:                                               ; preds = %59
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 32
  br i1 %64, label %65, label %69

65:                                               ; preds = %62
  %66 = load ptr, ptr @stderr, align 8, !tbaa !9
  %67 = load ptr, ptr @program, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.3, ptr noundef %67) #7
  call void @exit(i32 noundef 2) #9
  unreachable

69:                                               ; preds = %62
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %76

72:                                               ; preds = %69
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = load ptr, ptr @program, align 8, !tbaa !9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.4, ptr noundef %74) #7
  call void @exit(i32 noundef 3) #9
  unreachable

76:                                               ; preds = %69
  %77 = load i32, ptr @optind, align 4, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = load ptr, ptr @stderr, align 8, !tbaa !9
  %82 = load ptr, ptr @program, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.5, ptr noundef %82) #7
  call void @exit(i32 noundef 4) #9
  unreachable

84:                                               ; preds = %76
  br label %85

85:                                               ; preds = %84, %59
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %97

88:                                               ; preds = %85
  %89 = load i32, ptr @optind, align 4, !tbaa !5
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = icmp sge i32 %89, %90
  br i1 %91, label %92, label %97

92:                                               ; preds = %88
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = load ptr, ptr @usage, align 8, !tbaa !9
  %95 = load ptr, ptr @program, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef @.str.2) #7
  call void @exit(i32 noundef 5) #9
  unreachable

97:                                               ; preds = %88, %85
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = icmp slt i32 %98, 0
  br i1 %99, label %103, label %100

100:                                              ; preds = %97
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = icmp sgt i32 %101, 32
  br i1 %102, label %103, label %108

103:                                              ; preds = %100, %97
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = load ptr, ptr @program, align 8, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.6, ptr noundef %105, i32 noundef %106, i32 noundef 32) #7
  call void @exit(i32 noundef 6) #9
  unreachable

108:                                              ; preds = %100
  %109 = load i32, ptr %12, align 4, !tbaa !5
  %110 = icmp eq i32 %109, 32
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  store i32 -1, ptr %15, align 4, !tbaa !5
  br label %116

112:                                              ; preds = %108
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = shl i32 1, %113
  %115 = sub nsw i32 %114, 1
  store i32 %115, ptr %15, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %112, %111
  %117 = load ptr, ptr @program, align 8, !tbaa !9
  %118 = call ptr @strrchr(ptr noundef %117, i32 noundef 47) #8
  store ptr %118, ptr %17, align 8, !tbaa !9
  %119 = load ptr, ptr %17, align 8, !tbaa !9
  %120 = icmp eq ptr %119, null
  br i1 %120, label %121, label %123

121:                                              ; preds = %116
  %122 = load ptr, ptr @program, align 8, !tbaa !9
  store ptr %122, ptr %17, align 8, !tbaa !9
  br label %126

123:                                              ; preds = %116
  %124 = load ptr, ptr %17, align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %124, i32 1
  store ptr %125, ptr %17, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %123, %121
  %127 = load ptr, ptr %17, align 8, !tbaa !9
  %128 = call i32 @strcmp(ptr noundef %127, ptr noundef @.str.7) #8
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %126
  store i32 0, ptr %8, align 4, !tbaa !5
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %147

131:                                              ; preds = %126
  %132 = load ptr, ptr %17, align 8, !tbaa !9
  %133 = call i32 @strcmp(ptr noundef %132, ptr noundef @.str.8) #8
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %131
  store i32 -2128831035, ptr %8, align 4, !tbaa !5
  store i32 2, ptr %14, align 4, !tbaa !5
  br label %146

136:                                              ; preds = %131
  %137 = load ptr, ptr %17, align 8, !tbaa !9
  %138 = call i32 @strcmp(ptr noundef %137, ptr noundef @.str.9) #8
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %136
  store i32 -2128831035, ptr %8, align 4, !tbaa !5
  store i32 3, ptr %14, align 4, !tbaa !5
  br label %145

141:                                              ; preds = %136
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = load ptr, ptr @program, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.10, ptr noundef %143) #7
  call void @exit(i32 noundef 7) #9
  unreachable

145:                                              ; preds = %140
  br label %146

146:                                              ; preds = %145, %135
  br label %147

147:                                              ; preds = %146, %130
  %148 = load i32, ptr %13, align 4, !tbaa !5
  %149 = icmp sge i32 %148, 0
  br i1 %149, label %150, label %168

150:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %151 = load i32, ptr %14, align 4, !tbaa !5
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = load i32, ptr %15, align 4, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = load i32, ptr %13, align 4, !tbaa !5
  %156 = call i32 @test_fnv32(i32 noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef %154, i32 noundef %155)
  store i32 %156, ptr %19, align 4, !tbaa !5
  %157 = load i32, ptr %19, align 4, !tbaa !5
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %165

159:                                              ; preds = %150
  %160 = load i32, ptr %11, align 4, !tbaa !5
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %164

162:                                              ; preds = %159
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %164

164:                                              ; preds = %162, %159
  call void @exit(i32 noundef 0) #9
  unreachable

165:                                              ; preds = %150
  %166 = load i32, ptr %19, align 4, !tbaa !5
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %166)
  call void @exit(i32 noundef 8) #9
  unreachable

168:                                              ; preds = %147
  %169 = load i32, ptr %9, align 4, !tbaa !5
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %215

171:                                              ; preds = %168
  %172 = load i32, ptr @optind, align 4, !tbaa !5
  store i32 %172, ptr %18, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %211, %171
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = load i32, ptr %4, align 4, !tbaa !5
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %177, label %214

177:                                              ; preds = %173
  %178 = load i32, ptr %14, align 4, !tbaa !5
  switch i32 %178, label %195 [
    i32 1, label %179
    i32 2, label %179
    i32 3, label %187
  ]

179:                                              ; preds = %177, %177
  %180 = load ptr, ptr %5, align 8, !tbaa !9
  %181 = load i32, ptr %18, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds ptr, ptr %180, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !9
  %185 = load i32, ptr %8, align 4, !tbaa !5
  %186 = call i32 @fnv_32_str(ptr noundef %184, i32 noundef %185)
  store i32 %186, ptr %8, align 4, !tbaa !5
  br label %198

187:                                              ; preds = %177
  %188 = load ptr, ptr %5, align 8, !tbaa !9
  %189 = load i32, ptr %18, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds ptr, ptr %188, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !5
  %194 = call i32 @fnv_32a_str(ptr noundef %192, i32 noundef %193)
  store i32 %194, ptr %8, align 4, !tbaa !5
  br label %198

195:                                              ; preds = %177
  %196 = load ptr, ptr @program, align 8, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !5
  call void @unknown_hash_type(ptr noundef %196, i32 noundef %197, i32 noundef 9)
  br label %198

198:                                              ; preds = %195, %187, %179
  %199 = load i32, ptr %10, align 4, !tbaa !5
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %210

201:                                              ; preds = %198
  %202 = load i32, ptr %8, align 4, !tbaa !5
  %203 = load i32, ptr %15, align 4, !tbaa !5
  %204 = load i32, ptr %11, align 4, !tbaa !5
  %205 = load ptr, ptr %5, align 8, !tbaa !9
  %206 = load i32, ptr %18, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds ptr, ptr %205, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  call void @print_fnv32(i32 noundef %202, i32 noundef %203, i32 noundef %204, ptr noundef %209)
  br label %210

210:                                              ; preds = %201, %198
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %18, align 4, !tbaa !5
  br label %173, !llvm.loop !13

214:                                              ; preds = %173
  br label %320

215:                                              ; preds = %168
  %216 = load i32, ptr @optind, align 4, !tbaa !5
  %217 = load i32, ptr %4, align 4, !tbaa !5
  %218 = icmp sge i32 %216, %217
  br i1 %218, label %219, label %251

219:                                              ; preds = %215
  br label %220

220:                                              ; preds = %242, %219
  %221 = getelementptr inbounds [32769 x i8], ptr %6, i64 0, i64 0
  %222 = call i64 @read(i32 noundef 0, ptr noundef %221, i64 noundef 32768)
  %223 = trunc i64 %222 to i32
  store i32 %223, ptr %7, align 4, !tbaa !5
  %224 = icmp sgt i32 %223, 0
  br i1 %224, label %225, label %243

225:                                              ; preds = %220
  %226 = load i32, ptr %14, align 4, !tbaa !5
  switch i32 %226, label %239 [
    i32 1, label %227
    i32 2, label %227
    i32 3, label %233
  ]

227:                                              ; preds = %225, %225
  %228 = getelementptr inbounds [32769 x i8], ptr %6, i64 0, i64 0
  %229 = load i32, ptr %7, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = call i32 @fnv_32_buf(ptr noundef %228, i64 noundef %230, i32 noundef %231)
  store i32 %232, ptr %8, align 4, !tbaa !5
  br label %242

233:                                              ; preds = %225
  %234 = getelementptr inbounds [32769 x i8], ptr %6, i64 0, i64 0
  %235 = load i32, ptr %7, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = load i32, ptr %8, align 4, !tbaa !5
  %238 = call i32 @fnv_32a_buf(ptr noundef %234, i64 noundef %236, i32 noundef %237)
  store i32 %238, ptr %8, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %233, %225
  %240 = load ptr, ptr @program, align 8, !tbaa !9
  %241 = load i32, ptr %14, align 4, !tbaa !5
  call void @unknown_hash_type(ptr noundef %240, i32 noundef %241, i32 noundef 10)
  br label %242

242:                                              ; preds = %239, %227
  br label %220, !llvm.loop !14

243:                                              ; preds = %220
  %244 = load i32, ptr %10, align 4, !tbaa !5
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %250

246:                                              ; preds = %243
  %247 = load i32, ptr %8, align 4, !tbaa !5
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = load i32, ptr %11, align 4, !tbaa !5
  call void @print_fnv32(i32 noundef %247, i32 noundef %248, i32 noundef %249, ptr noundef @.str.13)
  br label %250

250:                                              ; preds = %246, %243
  br label %319

251:                                              ; preds = %215
  %252 = load i32, ptr @optind, align 4, !tbaa !5
  store i32 %252, ptr %18, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %315, %251
  %254 = load i32, ptr %18, align 4, !tbaa !5
  %255 = load i32, ptr %4, align 4, !tbaa !5
  %256 = icmp slt i32 %254, %255
  br i1 %256, label %257, label %318

257:                                              ; preds = %253
  %258 = load ptr, ptr %5, align 8, !tbaa !9
  %259 = load i32, ptr %18, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds ptr, ptr %258, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !9
  %263 = call i32 (ptr, i32, ...) @open(ptr noundef %262, i32 noundef 0)
  store i32 %263, ptr %16, align 4, !tbaa !5
  %264 = load i32, ptr %16, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 0
  br i1 %265, label %266, label %275

266:                                              ; preds = %257
  %267 = load ptr, ptr @stderr, align 8, !tbaa !9
  %268 = load ptr, ptr @program, align 8, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !9
  %270 = load i32, ptr %18, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds ptr, ptr %269, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !9
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %267, ptr noundef @.str.14, ptr noundef %268, ptr noundef %273) #7
  call void @exit(i32 noundef 4) #9
  unreachable

275:                                              ; preds = %257
  br label %276

276:                                              ; preds = %299, %275
  %277 = load i32, ptr %16, align 4, !tbaa !5
  %278 = getelementptr inbounds [32769 x i8], ptr %6, i64 0, i64 0
  %279 = call i64 @read(i32 noundef %277, ptr noundef %278, i64 noundef 32768)
  %280 = trunc i64 %279 to i32
  store i32 %280, ptr %7, align 4, !tbaa !5
  %281 = icmp sgt i32 %280, 0
  br i1 %281, label %282, label %300

282:                                              ; preds = %276
  %283 = load i32, ptr %14, align 4, !tbaa !5
  switch i32 %283, label %296 [
    i32 1, label %284
    i32 2, label %284
    i32 3, label %290
  ]

284:                                              ; preds = %282, %282
  %285 = getelementptr inbounds [32769 x i8], ptr %6, i64 0, i64 0
  %286 = load i32, ptr %7, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = load i32, ptr %8, align 4, !tbaa !5
  %289 = call i32 @fnv_32_buf(ptr noundef %285, i64 noundef %287, i32 noundef %288)
  store i32 %289, ptr %8, align 4, !tbaa !5
  br label %299

290:                                              ; preds = %282
  %291 = getelementptr inbounds [32769 x i8], ptr %6, i64 0, i64 0
  %292 = load i32, ptr %7, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = load i32, ptr %8, align 4, !tbaa !5
  %295 = call i32 @fnv_32a_buf(ptr noundef %291, i64 noundef %293, i32 noundef %294)
  store i32 %295, ptr %8, align 4, !tbaa !5
  br label %296

296:                                              ; preds = %290, %282
  %297 = load ptr, ptr @program, align 8, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !5
  call void @unknown_hash_type(ptr noundef %297, i32 noundef %298, i32 noundef 11)
  br label %299

299:                                              ; preds = %296, %284
  br label %276, !llvm.loop !15

300:                                              ; preds = %276
  %301 = load i32, ptr %10, align 4, !tbaa !5
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %312

303:                                              ; preds = %300
  %304 = load i32, ptr %8, align 4, !tbaa !5
  %305 = load i32, ptr %15, align 4, !tbaa !5
  %306 = load i32, ptr %11, align 4, !tbaa !5
  %307 = load ptr, ptr %5, align 8, !tbaa !9
  %308 = load i32, ptr %18, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds ptr, ptr %307, i64 %309
  %311 = load ptr, ptr %310, align 8, !tbaa !9
  call void @print_fnv32(i32 noundef %304, i32 noundef %305, i32 noundef %306, ptr noundef %311)
  br label %312

312:                                              ; preds = %303, %300
  %313 = load i32, ptr %16, align 4, !tbaa !5
  %314 = call i32 @close(i32 noundef %313)
  br label %315

315:                                              ; preds = %312
  %316 = load i32, ptr %18, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %18, align 4, !tbaa !5
  br label %253, !llvm.loop !16

318:                                              ; preds = %253
  br label %319

319:                                              ; preds = %318, %250
  br label %320

320:                                              ; preds = %319, %214
  %321 = load i32, ptr %10, align 4, !tbaa !5
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %327, label %323

323:                                              ; preds = %320
  %324 = load i32, ptr %8, align 4, !tbaa !5
  %325 = load i32, ptr %15, align 4, !tbaa !5
  %326 = load i32, ptr %11, align 4, !tbaa !5
  call void @print_fnv32(i32 noundef %324, i32 noundef %325, i32 noundef %326, ptr noundef @.str.15)
  br label %327

327:                                              ; preds = %323, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 32769, ptr %6) #7
  ret i32 0
}

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
declare hidden i32 @test_fnv32(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

declare i32 @fnv_32_str(ptr noundef, i32 noundef) #6

declare i32 @fnv_32a_str(ptr noundef, i32 noundef) #6

declare void @unknown_hash_type(ptr noundef, i32 noundef, i32 noundef) #6

declare void @print_fnv32(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #6

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #6

declare i32 @fnv_32_buf(ptr noundef, i64 noundef, i32 noundef) #6

declare i32 @fnv_32a_buf(ptr noundef, i64 noundef, i32 noundef) #6

declare i32 @open(ptr noundef, i32 noundef, ...) #6

declare i32 @close(i32 noundef) #6

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

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 = { 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 = { inlinehint nounwind willreturn memory(read) 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

@program = external hidden local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@usage = external hidden local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [32769 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32769, ptr nonnull %3) #9
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %4, ptr @program, align 8, !tbaa !5
  br label %.outer

.outer:                                           ; preds = %10, %2
  %.not113 = phi i1 [ false, %10 ], [ true, %2 ]
  %.099.ph = phi i32 [ %.099.ph294, %10 ], [ 0, %2 ]
  %.097.ph = phi i32 [ %.097.ph295.ph, %10 ], [ 0, %2 ]
  %.095.ph = phi i32 [ %.095, %10 ], [ 32, %2 ]
  %.093.ph = phi i32 [ %.093.ph297.ph301, %10 ], [ -1, %2 ]
  br label %.outer293.outer

.outer293.outer:                                  ; preds = %22, %.outer
  %.099.ph294.ph = phi i32 [ 1, %22 ], [ %.099.ph, %.outer ]
  %.097.ph295.ph = phi i32 [ 1, %22 ], [ %.097.ph, %.outer ]
  %.095.ph296.ph = phi i32 [ %.095, %22 ], [ %.095.ph, %.outer ]
  %.093.ph297.ph = phi i32 [ %.093.ph297.ph301, %22 ], [ %.093.ph, %.outer ]
  br label %.outer293.outer298

.outer293.outer298:                               ; preds = %.outer293.outer, %11
  %.099.ph294.ph299 = phi i32 [ %.099.ph294.ph, %.outer293.outer ], [ 1, %11 ]
  %.095.ph296.ph300 = phi i32 [ %.095.ph296.ph, %.outer293.outer ], [ %.095, %11 ]
  %.093.ph297.ph301 = phi i32 [ %.093.ph297.ph, %.outer293.outer ], [ %13, %11 ]
  br label %.outer293

.outer293:                                        ; preds = %5, %.outer293.outer298
  %.099.ph294 = phi i32 [ %.099.ph294.ph299, %.outer293.outer298 ], [ 1, %5 ]
  %.095.ph296 = phi i32 [ %.095.ph296.ph300, %.outer293.outer298 ], [ %.095, %5 ]
  br label %5

5:                                                ; preds = %.outer293, %7
  %.095 = phi i32 [ %9, %7 ], [ %.095.ph296, %.outer293 ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str) #9
  switch i32 %6, label %23 [
    i32 -1, label %28
    i32 98, label %7
    i32 109, label %.outer293
    i32 115, label %10
    i32 116, label %11
    i32 118, label %22
  ], !llvm.loop !9

7:                                                ; preds = %5
  %8 = load ptr, ptr @optarg, align 8, !tbaa !5
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #10
  br label %5, !llvm.loop !9

10:                                               ; preds = %5
  br label %.outer, !llvm.loop !9

11:                                               ; preds = %5
  %12 = load ptr, ptr @optarg, align 8, !tbaa !5
  %13 = tail call i32 @atoi(ptr nocapture noundef %12) #10
  %or.cond = icmp ugt i32 %13, 1
  br i1 %or.cond, label %14, label %.outer293.outer298, !llvm.loop !9

14:                                               ; preds = %11
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = load ptr, ptr @program, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.1, ptr noundef %16) #11
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = load ptr, ptr @usage, align 8, !tbaa !5
  %20 = load ptr, ptr @program, align 8, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef nonnull @.str.2) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

22:                                               ; preds = %5
  br label %.outer293.outer, !llvm.loop !9

23:                                               ; preds = %5
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = load ptr, ptr @usage, align 8, !tbaa !5
  %26 = load ptr, ptr @program, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef nonnull @.str.2) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

28:                                               ; preds = %5
  %29 = icmp sgt i32 %.093.ph297.ph301, -1
  br i1 %29, label %30, label %47

30:                                               ; preds = %28
  %.not111 = icmp eq i32 %.095, 32
  br i1 %.not111, label %35, label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = load ptr, ptr @program, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.3, ptr noundef %33) #11
  tail call void @exit(i32 noundef 2) #12
  unreachable

35:                                               ; preds = %30
  br i1 %.not113, label %40, label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = load ptr, ptr @program, align 8, !tbaa !5
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.4, ptr noundef %38) #11
  tail call void @exit(i32 noundef 3) #12
  unreachable

40:                                               ; preds = %35
  %41 = load i32, ptr @optind, align 4
  %42 = icmp slt i32 %41, %0
  br i1 %42, label %43, label %.thread132

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = load ptr, ptr @program, align 8, !tbaa !5
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.5, ptr noundef %45) #11
  tail call void @exit(i32 noundef 4) #12
  unreachable

47:                                               ; preds = %28
  %48 = load i32, ptr @optind, align 4
  %.not114 = icmp slt i32 %48, %0
  %or.cond121 = select i1 %.not113, i1 true, i1 %.not114
  br i1 %or.cond121, label %54, label %49

49:                                               ; preds = %47
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = load ptr, ptr @usage, align 8, !tbaa !5
  %52 = load ptr, ptr @program, align 8, !tbaa !5
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef nonnull @.str.2) #11
  tail call void @exit(i32 noundef 5) #12
  unreachable

54:                                               ; preds = %47
  %or.cond3 = icmp ugt i32 %.095, 32
  br i1 %or.cond3, label %55, label %.thread132

55:                                               ; preds = %54
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = load ptr, ptr @program, align 8, !tbaa !5
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.6, ptr noundef %57, i32 noundef %.095, i32 noundef 32) #11
  tail call void @exit(i32 noundef 6) #12
  unreachable

.thread132:                                       ; preds = %40, %54
  %.not113130137 = phi i1 [ %.not113, %54 ], [ true, %40 ]
  %59 = phi i32 [ %48, %54 ], [ %41, %40 ]
  %.not114131136 = phi i1 [ %.not114, %54 ], [ false, %40 ]
  %60 = icmp eq i32 %.095, 32
  %notmask = shl nsw i32 -1, %.095
  %61 = xor i32 %notmask, -1
  %.091 = select i1 %60, i32 -1, i32 %61
  %62 = load ptr, ptr @program, align 8, !tbaa !5
  %63 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) %62, i32 noundef 47) #10
  %64 = icmp eq ptr %63, null
  %65 = getelementptr inbounds i8, ptr %63, i64 1
  %.088 = select i1 %64, ptr %62, ptr %65
  %66 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.088, ptr noundef nonnull dereferenceable(1) @.str.7) #10
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %77, label %68

68:                                               ; preds = %.thread132
  %69 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.088, ptr noundef nonnull dereferenceable(1) @.str.8) #10
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %77, label %71

71:                                               ; preds = %68
  %72 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.088, ptr noundef nonnull dereferenceable(1) @.str.9) #10
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %77, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.10, ptr noundef %62) #11
  tail call void @exit(i32 noundef 7) #12
  unreachable

77:                                               ; preds = %71, %68, %.thread132
  %switch = phi i1 [ true, %.thread132 ], [ true, %68 ], [ false, %71 ]
  %.092 = phi i32 [ 1, %.thread132 ], [ 2, %68 ], [ 3, %71 ]
  %.089 = phi i32 [ 0, %.thread132 ], [ -2128831035, %68 ], [ -2128831035, %71 ]
  br i1 %29, label %78, label %87

78:                                               ; preds = %77
  %79 = tail call i32 @test_fnv32(i32 noundef %.092, i32 noundef %.089, i32 noundef %.091, i32 noundef %.097.ph295.ph, i32 noundef %.093.ph297.ph301)
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %78
  %.not120 = icmp eq i32 %.097.ph295.ph, 0
  br i1 %.not120, label %84, label %82

82:                                               ; preds = %81
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %84

84:                                               ; preds = %82, %81
  tail call void @exit(i32 noundef 0) #12
  unreachable

85:                                               ; preds = %78
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %79)
  tail call void @exit(i32 noundef 8) #12
  unreachable

87:                                               ; preds = %77
  br i1 %.not113130137, label %104, label %.preheader147

.preheader147:                                    ; preds = %87
  %88 = icmp slt i32 %59, %0
  br i1 %88, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader147
  %.not119 = icmp eq i32 %.099.ph294, 0
  %89 = sext i32 %59 to i64
  br i1 %switch, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %.not119, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split.us
  %indvars.iv218 = phi i64 [ %indvars.iv.next219, %.lr.ph.split.us.split.us ], [ %89, %.lr.ph.split.us ]
  %.190161.us.us = phi i32 [ %92, %.lr.ph.split.us.split.us ], [ %.089, %.lr.ph.split.us ]
  %90 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv218
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = tail call i32 @fnv_32_str(ptr noundef %91, i32 noundef %.190161.us.us) #9
  %indvars.iv.next219 = add nsw i64 %indvars.iv218, 1
  %lftr.wideiv221 = trunc i64 %indvars.iv.next219 to i32
  %exitcond222.not = icmp eq i32 %lftr.wideiv221, %0
  br i1 %exitcond222.not, label %.loopexit, label %.lr.ph.split.us.split.us, !llvm.loop !11

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split
  %indvars.iv213 = phi i64 [ %indvars.iv.next214, %.lr.ph.split.us.split ], [ %89, %.lr.ph.split.us ]
  %.190161.us = phi i32 [ %95, %.lr.ph.split.us.split ], [ %.089, %.lr.ph.split.us ]
  %93 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv213
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = tail call i32 @fnv_32_str(ptr noundef %94, i32 noundef %.190161.us) #9
  %96 = load ptr, ptr %93, align 8, !tbaa !5
  tail call void @print_fnv32(i32 noundef %95, i32 noundef %.091, i32 noundef %.097.ph295.ph, ptr noundef %96) #9
  %indvars.iv.next214 = add nsw i64 %indvars.iv213, 1
  %lftr.wideiv216 = trunc i64 %indvars.iv.next214 to i32
  %exitcond217.not = icmp eq i32 %lftr.wideiv216, %0
  br i1 %exitcond217.not, label %.loopexit, label %.lr.ph.split.us.split, !llvm.loop !11

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %.not119, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %.lr.ph.split.split.us
  %indvars.iv208 = phi i64 [ %indvars.iv.next209, %.lr.ph.split.split.us ], [ %89, %.lr.ph.split ]
  %.190161.us164 = phi i32 [ %99, %.lr.ph.split.split.us ], [ %.089, %.lr.ph.split ]
  %97 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv208
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = tail call i32 @fnv_32a_str(ptr noundef %98, i32 noundef %.190161.us164) #9
  %indvars.iv.next209 = add nsw i64 %indvars.iv208, 1
  %lftr.wideiv211 = trunc i64 %indvars.iv.next209 to i32
  %exitcond212.not = icmp eq i32 %lftr.wideiv211, %0
  br i1 %exitcond212.not, label %.loopexit, label %.lr.ph.split.split.us, !llvm.loop !11

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %.lr.ph.split.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.split ], [ %89, %.lr.ph.split ]
  %.190161 = phi i32 [ %102, %.lr.ph.split.split ], [ %.089, %.lr.ph.split ]
  %100 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = tail call i32 @fnv_32a_str(ptr noundef %101, i32 noundef %.190161) #9
  %103 = load ptr, ptr %100, align 8, !tbaa !5
  tail call void @print_fnv32(i32 noundef %102, i32 noundef %.091, i32 noundef %.097.ph295.ph, ptr noundef %103) #9
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %lftr.wideiv, %0
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph.split.split, !llvm.loop !11

104:                                              ; preds = %87
  br i1 %.not114131136, label %.preheader145, label %.preheader146

.preheader146:                                    ; preds = %104
  %105 = call i64 @read(i32 noundef 0, ptr noundef nonnull %3, i64 noundef 32768) #9
  %106 = trunc i64 %105 to i32
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %.lr.ph170, label %._crit_edge

.lr.ph170:                                        ; preds = %.preheader146
  br i1 %switch, label %.lr.ph170.split.us, label %.lr.ph170.split

.lr.ph170.split.us:                               ; preds = %.lr.ph170, %.lr.ph170.split.us
  %108 = phi i64 [ %111, %.lr.ph170.split.us ], [ %105, %.lr.ph170 ]
  %.3169.us = phi i32 [ %110, %.lr.ph170.split.us ], [ %.089, %.lr.ph170 ]
  %109 = and i64 %108, 2147483647
  %110 = call i32 @fnv_32_buf(ptr noundef nonnull %3, i64 noundef %109, i32 noundef %.3169.us) #9
  %111 = call i64 @read(i32 noundef 0, ptr noundef nonnull %3, i64 noundef 32768) #9
  %112 = trunc i64 %111 to i32
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph170.split.us, label %._crit_edge, !llvm.loop !12

.preheader145:                                    ; preds = %104
  %114 = icmp slt i32 %59, %0
  br i1 %114, label %.lr.ph180, label %.loopexit

.lr.ph180:                                        ; preds = %.preheader145
  %.not116 = icmp eq i32 %.099.ph294, 0
  %115 = sext i32 %59 to i64
  br label %123

.lr.ph170.split:                                  ; preds = %.lr.ph170, %.lr.ph170.split
  %116 = phi i64 [ %120, %.lr.ph170.split ], [ %105, %.lr.ph170 ]
  %.3169 = phi i32 [ %118, %.lr.ph170.split ], [ %.089, %.lr.ph170 ]
  %117 = and i64 %116, 2147483647
  %118 = call i32 @fnv_32a_buf(ptr noundef nonnull %3, i64 noundef %117, i32 noundef %.3169) #9
  %119 = load ptr, ptr @program, align 8, !tbaa !5
  call void @unknown_hash_type(ptr noundef %119, i32 noundef %.092, i32 noundef 10) #9
  %120 = call i64 @read(i32 noundef 0, ptr noundef nonnull %3, i64 noundef 32768) #9
  %121 = trunc i64 %120 to i32
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.lr.ph170.split, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph170.split, %.lr.ph170.split.us, %.preheader146
  %.3.lcssa = phi i32 [ %.089, %.preheader146 ], [ %110, %.lr.ph170.split.us ], [ %118, %.lr.ph170.split ]
  %.not117 = icmp eq i32 %.099.ph294, 0
  br i1 %.not117, label %.thread138, label %.thread142

.thread142:                                       ; preds = %._crit_edge
  call void @print_fnv32(i32 noundef %.3.lcssa, i32 noundef %.091, i32 noundef %.097.ph295.ph, ptr noundef nonnull @.str.13) #9
  br label %153

123:                                              ; preds = %.lr.ph180, %151
  %indvars.iv223 = phi i64 [ %115, %.lr.ph180 ], [ %indvars.iv.next224, %151 ]
  %.6178 = phi i32 [ %.089, %.lr.ph180 ], [ %.7.lcssa, %151 ]
  %124 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv223
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = call i32 (ptr, i32, ...) @open(ptr noundef %125, i32 noundef 0) #9
  %127 = icmp slt i32 %126, 0
  br i1 %127, label %137, label %.preheader

.preheader:                                       ; preds = %123
  %128 = call i64 @read(i32 noundef %126, ptr noundef nonnull %3, i64 noundef 32768) #9
  %129 = trunc i64 %128 to i32
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %.lr.ph174, label %._crit_edge175

.lr.ph174:                                        ; preds = %.preheader
  br i1 %switch, label %.lr.ph174.split.us, label %.lr.ph174.split

.lr.ph174.split.us:                               ; preds = %.lr.ph174, %.lr.ph174.split.us
  %131 = phi i64 [ %134, %.lr.ph174.split.us ], [ %128, %.lr.ph174 ]
  %.7173.us = phi i32 [ %133, %.lr.ph174.split.us ], [ %.6178, %.lr.ph174 ]
  %132 = and i64 %131, 2147483647
  %133 = call i32 @fnv_32_buf(ptr noundef nonnull %3, i64 noundef %132, i32 noundef %.7173.us) #9
  %134 = call i64 @read(i32 noundef %126, ptr noundef nonnull %3, i64 noundef 32768) #9
  %135 = trunc i64 %134 to i32
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %.lr.ph174.split.us, label %._crit_edge175, !llvm.loop !13

137:                                              ; preds = %123
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = load ptr, ptr @program, align 8, !tbaa !5
  %140 = load ptr, ptr %124, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.14, ptr noundef %139, ptr noundef %140) #11
  call void @exit(i32 noundef 4) #12
  unreachable

.lr.ph174.split:                                  ; preds = %.lr.ph174, %.lr.ph174.split
  %142 = phi i64 [ %146, %.lr.ph174.split ], [ %128, %.lr.ph174 ]
  %.7173 = phi i32 [ %144, %.lr.ph174.split ], [ %.6178, %.lr.ph174 ]
  %143 = and i64 %142, 2147483647
  %144 = call i32 @fnv_32a_buf(ptr noundef nonnull %3, i64 noundef %143, i32 noundef %.7173) #9
  %145 = load ptr, ptr @program, align 8, !tbaa !5
  call void @unknown_hash_type(ptr noundef %145, i32 noundef %.092, i32 noundef 11) #9
  %146 = call i64 @read(i32 noundef %126, ptr noundef nonnull %3, i64 noundef 32768) #9
  %147 = trunc i64 %146 to i32
  %148 = icmp sgt i32 %147, 0
  br i1 %148, label %.lr.ph174.split, label %._crit_edge175, !llvm.loop !13

._crit_edge175:                                   ; preds = %.lr.ph174.split, %.lr.ph174.split.us, %.preheader
  %.7.lcssa = phi i32 [ %.6178, %.preheader ], [ %133, %.lr.ph174.split.us ], [ %144, %.lr.ph174.split ]
  br i1 %.not116, label %151, label %149

149:                                              ; preds = %._crit_edge175
  %150 = load ptr, ptr %124, align 8, !tbaa !5
  call void @print_fnv32(i32 noundef %.7.lcssa, i32 noundef %.091, i32 noundef %.097.ph295.ph, ptr noundef %150) #9
  br label %151

151:                                              ; preds = %149, %._crit_edge175
  %152 = call i32 @close(i32 noundef %126) #9
  %indvars.iv.next224 = add nsw i64 %indvars.iv223, 1
  %lftr.wideiv226 = trunc i64 %indvars.iv.next224 to i32
  %exitcond227.not = icmp eq i32 %lftr.wideiv226, %0
  br i1 %exitcond227.not, label %.loopexit, label %123, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us, %.lr.ph.split.us.split, %.lr.ph.split.us.split.us, %151, %.preheader147, %.preheader145
  %.10 = phi i32 [ %.089, %.preheader145 ], [ %.089, %.preheader147 ], [ %.7.lcssa, %151 ], [ %92, %.lr.ph.split.us.split.us ], [ %95, %.lr.ph.split.us.split ], [ %99, %.lr.ph.split.split.us ], [ %102, %.lr.ph.split.split ]
  %.not118 = icmp eq i32 %.099.ph294, 0
  br i1 %.not118, label %.thread138, label %153

.thread138:                                       ; preds = %._crit_edge, %.loopexit
  %.10141 = phi i32 [ %.10, %.loopexit ], [ %.3.lcssa, %._crit_edge ]
  call void @print_fnv32(i32 noundef %.10141, i32 noundef %.091, i32 noundef %.097.ph295.ph, ptr noundef nonnull @.str.15) #9
  br label %153

153:                                              ; preds = %.thread142, %.thread138, %.loopexit
  call void @llvm.lifetime.end.p0(i64 32769, ptr nonnull %3) #9
  ret i32 0
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare hidden i32 @test_fnv32(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

declare i32 @fnv_32_str(ptr noundef, i32 noundef) local_unnamed_addr #7

declare i32 @fnv_32a_str(ptr noundef, i32 noundef) local_unnamed_addr #7

declare void @unknown_hash_type(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

declare void @print_fnv32(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #8

declare i32 @fnv_32_buf(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #7

declare i32 @fnv_32a_buf(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #8

declare i32 @close(i32 noundef) local_unnamed_addr #7

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { "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 = { nofree "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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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