; LLVM IR from cruppstahl/upscaledb :: tools (ups_dump)

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

%struct.option_t = type { i32, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@_ZL4opts = external hidden global [6 x %struct.option_t], align 16
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef 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 i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i16, align 2
  %14 = alloca [1024 x i16], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = 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 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 3, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 16, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 16, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #6
  store i16 -1, ptr %13, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1024, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  call void @getopts_init(i32 noundef %21, ptr noundef %22, ptr noundef @.str)
  br label %23

23:                                               ; preds = %116, %2
  %24 = call i32 @getopts(ptr noundef @_ZL4opts, ptr noundef %7)
  store i32 %24, ptr %6, align 4, !tbaa !5
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %117

26:                                               ; preds = %23
  %27 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %27, label %113 [
    i32 2, label %28
    i32 3, label %46
    i32 4, label %70
    i32 5, label %84
    i32 -5, label %98
    i32 1, label %105
  ]

28:                                               ; preds = %26
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = icmp ne ptr %29, null
  br i1 %30, label %33, label %31

31:                                               ; preds = %28
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

33:                                               ; preds = %28
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = call i64 @strtoul(ptr noundef %34, ptr noundef %9, i32 noundef 0) #6
  %36 = trunc i64 %35 to i16
  store i16 %36, ptr %13, align 2, !tbaa !11
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %45

39:                                               ; preds = %33
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = icmp ne i8 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %39
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

45:                                               ; preds = %39, %33
  br label %116

46:                                               ; preds = %26
  %47 = load ptr, ptr %7, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %69

49:                                               ; preds = %46
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str.3) #7
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 2, ptr %10, align 4, !tbaa !5
  br label %68

54:                                               ; preds = %49
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = call i32 @strcmp(ptr noundef %55, ptr noundef @.str.4) #7
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %59, label %58

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

59:                                               ; preds = %54
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  %61 = call i32 @strcmp(ptr noundef %60, ptr noundef @.str.5) #7
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 3, ptr %10, align 4, !tbaa !5
  br label %66

64:                                               ; preds = %59
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

66:                                               ; preds = %63
  br label %67

67:                                               ; preds = %66, %58
  br label %68

68:                                               ; preds = %67, %53
  br label %69

69:                                               ; preds = %68, %46
  br label %116

70:                                               ; preds = %26
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = call i64 @strtoul(ptr noundef %71, ptr noundef %9, i32 noundef 0) #6
  %73 = trunc i64 %72 to i16
  %74 = sext i16 %73 to i32
  store i32 %74, ptr %11, align 4, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !9
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %83

77:                                               ; preds = %70
  %78 = load ptr, ptr %9, align 8, !tbaa !9
  %79 = load i8, ptr %78, align 1, !tbaa !13
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %77
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

83:                                               ; preds = %77, %70
  br label %116

84:                                               ; preds = %26
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = call i64 @strtoul(ptr noundef %85, ptr noundef %9, i32 noundef 0) #6
  %87 = trunc i64 %86 to i16
  %88 = sext i16 %87 to i32
  store i32 %88, ptr %12, align 4, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !9
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %97

91:                                               ; preds = %84
  %92 = load ptr, ptr %9, align 8, !tbaa !9
  %93 = load i8, ptr %92, align 1, !tbaa !13
  %94 = icmp ne i8 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %91
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

97:                                               ; preds = %91, %84
  br label %116

98:                                               ; preds = %26
  %99 = load ptr, ptr %8, align 8, !tbaa !9
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

103:                                              ; preds = %98
  %104 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %104, ptr %8, align 8, !tbaa !9
  br label %116

105:                                              ; preds = %26
  call void @print_banner(ptr noundef @.str)
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

113:                                              ; preds = %26
  %114 = load ptr, ptr %7, align 8, !tbaa !9
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %114)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

116:                                              ; preds = %103, %97, %83, %69, %45
  br label %23, !llvm.loop !14

117:                                              ; preds = %23
  %118 = load ptr, ptr %8, align 8, !tbaa !9
  %119 = icmp ne ptr %118, null
  br i1 %119, label %122, label %120

120:                                              ; preds = %117
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

122:                                              ; preds = %117
  %123 = load ptr, ptr %8, align 8, !tbaa !9
  %124 = call i32 @ups_env_open(ptr noundef %18, ptr noundef %123, i32 noundef 6, ptr noundef null)
  store i32 %124, ptr %17, align 4, !tbaa !5
  %125 = load i32, ptr %17, align 4, !tbaa !5
  %126 = icmp eq i32 %125, -21
  br i1 %126, label %127, label %130

127:                                              ; preds = %122
  %128 = load ptr, ptr %8, align 8, !tbaa !9
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %128)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

130:                                              ; preds = %122
  %131 = load i32, ptr %17, align 4, !tbaa !5
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %135

133:                                              ; preds = %130
  %134 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.20, i32 noundef %134)
  br label %135

135:                                              ; preds = %133, %130
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %18, align 8, !tbaa !9
  %138 = getelementptr inbounds [1024 x i16], ptr %14, i64 0, i64 0
  %139 = call i32 @ups_env_get_database_names(ptr noundef %137, ptr noundef %138, ptr noundef %16)
  store i32 %139, ptr %17, align 4, !tbaa !5
  %140 = load i32, ptr %17, align 4, !tbaa !5
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %144

142:                                              ; preds = %136
  %143 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.21, i32 noundef %143)
  br label %144

144:                                              ; preds = %142, %136
  %145 = load i16, ptr %13, align 2, !tbaa !11
  %146 = zext i16 %145 to i32
  %147 = icmp ne i32 %146, 65535
  br i1 %147, label %148, label %179

148:                                              ; preds = %144
  %149 = load ptr, ptr %18, align 8, !tbaa !9
  %150 = load i16, ptr %13, align 2, !tbaa !11
  %151 = call i32 @ups_env_open_db(ptr noundef %149, ptr noundef %19, i16 noundef zeroext %150, i32 noundef 0, ptr noundef null)
  store i32 %151, ptr %17, align 4, !tbaa !5
  %152 = load i32, ptr %17, align 4, !tbaa !5
  %153 = icmp eq i32 %152, -200
  br i1 %153, label %154, label %160

154:                                              ; preds = %148
  %155 = load i16, ptr %13, align 2, !tbaa !11
  %156 = zext i16 %155 to i32
  %157 = load i16, ptr %13, align 2, !tbaa !11
  %158 = zext i16 %157 to i32
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %156, i32 noundef %158)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

160:                                              ; preds = %148
  %161 = load i32, ptr %17, align 4, !tbaa !5
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %165

163:                                              ; preds = %160
  %164 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.23, i32 noundef %164)
  br label %165

165:                                              ; preds = %163, %160
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %19, align 8, !tbaa !9
  %168 = load i16, ptr %13, align 2, !tbaa !11
  %169 = load i32, ptr %11, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = load i32, ptr %12, align 4, !tbaa !5
  call void @_ZL13dump_databaseP8ups_db_ttiii(ptr noundef %167, i16 noundef zeroext %168, i32 noundef %169, i32 noundef %170, i32 noundef %171)
  %172 = load ptr, ptr %19, align 8, !tbaa !9
  %173 = call i32 @ups_db_close(ptr noundef %172, i32 noundef 0)
  store i32 %173, ptr %17, align 4, !tbaa !5
  %174 = load i32, ptr %17, align 4, !tbaa !5
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %178

176:                                              ; preds = %166
  %177 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.24, i32 noundef %177)
  br label %178

178:                                              ; preds = %176, %166
  br label %215

179:                                              ; preds = %144
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %211, %179
  %181 = load i32, ptr %15, align 4, !tbaa !5
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = icmp ult i32 %181, %182
  br i1 %183, label %184, label %214

184:                                              ; preds = %180
  %185 = load ptr, ptr %18, align 8, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds [1024 x i16], ptr %14, i64 0, i64 %187
  %189 = load i16, ptr %188, align 2, !tbaa !11
  %190 = call i32 @ups_env_open_db(ptr noundef %185, ptr noundef %19, i16 noundef zeroext %189, i32 noundef 0, ptr noundef null)
  store i32 %190, ptr %17, align 4, !tbaa !5
  %191 = load i32, ptr %17, align 4, !tbaa !5
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %195

193:                                              ; preds = %184
  %194 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.23, i32 noundef %194)
  br label %195

195:                                              ; preds = %193, %184
  %196 = load ptr, ptr %19, align 8, !tbaa !9
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds [1024 x i16], ptr %14, i64 0, i64 %198
  %200 = load i16, ptr %199, align 2, !tbaa !11
  %201 = load i32, ptr %11, align 4, !tbaa !5
  %202 = load i32, ptr %10, align 4, !tbaa !5
  %203 = load i32, ptr %12, align 4, !tbaa !5
  call void @_ZL13dump_databaseP8ups_db_ttiii(ptr noundef %196, i16 noundef zeroext %200, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  %204 = load ptr, ptr %19, align 8, !tbaa !9
  %205 = call i32 @ups_db_close(ptr noundef %204, i32 noundef 0)
  store i32 %205, ptr %17, align 4, !tbaa !5
  %206 = load i32, ptr %17, align 4, !tbaa !5
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %210

208:                                              ; preds = %195
  %209 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.24, i32 noundef %209)
  br label %210

210:                                              ; preds = %208, %195
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %15, align 4, !tbaa !5
  %213 = add i32 %212, 1
  store i32 %213, ptr %15, align 4, !tbaa !5
  br label %180, !llvm.loop !16

214:                                              ; preds = %180
  br label %215

215:                                              ; preds = %214, %178
  %216 = load ptr, ptr %18, align 8, !tbaa !9
  %217 = call i32 @ups_env_close(ptr noundef %216, i32 noundef 0)
  store i32 %217, ptr %17, align 4, !tbaa !5
  %218 = load i32, ptr %17, align 4, !tbaa !5
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %222

220:                                              ; preds = %215
  %221 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZL5errorPKci(ptr noundef @.str.25, i32 noundef %221)
  br label %222

222:                                              ; preds = %220, %215
  store i32 0, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %223

223:                                              ; preds = %222, %154, %127, %120, %113, %105, %101, %95, %81, %64, %43, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %224 = load i32, ptr %3, align 4
  ret i32 %224
}

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

declare void @getopts_init(i32 noundef, ptr noundef, ptr noundef) #2

declare i32 @getopts(ptr noundef, ptr noundef) #2

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

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

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

declare void @print_banner(ptr noundef) #2

declare i32 @ups_env_open(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL5errorPKci(ptr noundef, i32 noundef) #5

declare i32 @ups_env_get_database_names(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @ups_env_open_db(ptr noundef, ptr noundef, i16 noundef zeroext, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13dump_databaseP8ups_db_ttiii(ptr noundef, i16 noundef zeroext, i32 noundef, i32 noundef, i32 noundef) #5

declare i32 @ups_db_close(ptr noundef, i32 noundef) #2

declare i32 @ups_env_close(ptr noundef, i32 noundef) #2

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

attributes #0 = { mustprogress norecurse 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 = { "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 "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 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 #5 = { mustprogress 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.option_t = type { i32, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@_ZL4opts = external hidden global [6 x %struct.option_t], align 16
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [1024 x i16], align 16
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 1024, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  tail call void @getopts_init(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str)
  br label %9

9:                                                ; preds = %.backedge, %2
  %.045 = phi ptr [ null, %2 ], [ %.045.be, %.backedge ]
  %.043 = phi i32 [ 3, %2 ], [ %.043.be, %.backedge ]
  %.041 = phi i32 [ 16, %2 ], [ %.041.be, %.backedge ]
  %.039 = phi i32 [ 16, %2 ], [ %.039.be, %.backedge ]
  %.038 = phi i16 [ -1, %2 ], [ %.038.be, %.backedge ]
  %10 = call i32 @getopts(ptr noundef nonnull @_ZL4opts, ptr noundef nonnull %3)
  switch i32 %10, label %66 [
    i32 0, label %69
    i32 2, label %11
    i32 3, label %23
    i32 4, label %33
    i32 5, label %43
    i32 -5, label %53
    i32 1, label %58
  ]

11:                                               ; preds = %9
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %.not81 = icmp eq ptr %12, null
  br i1 %.not81, label %13, label %15

13:                                               ; preds = %11
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %113

15:                                               ; preds = %11
  %16 = call i64 @strtoul(ptr noundef nonnull %12, ptr noundef nonnull %4, i32 noundef 0) #7
  %17 = trunc i64 %16 to i16
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %.not82 = icmp eq ptr %18, null
  br i1 %.not82, label %.backedge, label %19

19:                                               ; preds = %15
  %20 = load i8, ptr %18, align 1, !tbaa !11
  %.not83 = icmp eq i8 %20, 0
  br i1 %.not83, label %.backedge, label %21

21:                                               ; preds = %19
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %113

23:                                               ; preds = %9
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %.not77 = icmp eq ptr %24, null
  br i1 %.not77, label %.backedge, label %25

25:                                               ; preds = %23
  %26 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.3) #8
  %.not78 = icmp eq i32 %26, 0
  br i1 %.not78, label %.backedge, label %27

27:                                               ; preds = %25
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.4) #8
  %.not79 = icmp eq i32 %28, 0
  br i1 %.not79, label %.backedge, label %29

29:                                               ; preds = %27
  %30 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.5) #8
  %.not80 = icmp eq i32 %30, 0
  br i1 %.not80, label %.backedge, label %31

.backedge:                                        ; preds = %29, %27, %25, %43, %49, %33, %39, %23, %15, %19, %56
  %.045.be = phi ptr [ %57, %56 ], [ %.045, %49 ], [ %.045, %43 ], [ %.045, %39 ], [ %.045, %33 ], [ %.045, %23 ], [ %.045, %19 ], [ %.045, %15 ], [ %.045, %25 ], [ %.045, %27 ], [ %.045, %29 ]
  %.043.be = phi i32 [ %.043, %56 ], [ %.043, %49 ], [ %.043, %43 ], [ %.043, %39 ], [ %.043, %33 ], [ %.043, %23 ], [ %.043, %19 ], [ %.043, %15 ], [ 2, %25 ], [ 1, %27 ], [ 3, %29 ]
  %.041.be = phi i32 [ %.041, %56 ], [ %.041, %49 ], [ %.041, %43 ], [ %37, %39 ], [ %37, %33 ], [ %.041, %23 ], [ %.041, %19 ], [ %.041, %15 ], [ %.041, %25 ], [ %.041, %27 ], [ %.041, %29 ]
  %.039.be = phi i32 [ %.039, %56 ], [ %47, %49 ], [ %47, %43 ], [ %.039, %39 ], [ %.039, %33 ], [ %.039, %23 ], [ %.039, %19 ], [ %.039, %15 ], [ %.039, %25 ], [ %.039, %27 ], [ %.039, %29 ]
  %.038.be = phi i16 [ %.038, %56 ], [ %.038, %49 ], [ %.038, %43 ], [ %.038, %39 ], [ %.038, %33 ], [ %.038, %23 ], [ %17, %19 ], [ %17, %15 ], [ %.038, %25 ], [ %.038, %27 ], [ %.038, %29 ]
  br label %9, !llvm.loop !12

31:                                               ; preds = %29
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %113

33:                                               ; preds = %9
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call i64 @strtoul(ptr noundef %34, ptr noundef nonnull %4, i32 noundef 0) #7
  %36 = trunc i64 %35 to i32
  %sext74 = shl i32 %36, 16
  %37 = ashr exact i32 %sext74, 16
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %.not75 = icmp eq ptr %38, null
  br i1 %.not75, label %.backedge, label %39

39:                                               ; preds = %33
  %40 = load i8, ptr %38, align 1, !tbaa !11
  %.not76 = icmp eq i8 %40, 0
  br i1 %.not76, label %.backedge, label %41

41:                                               ; preds = %39
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %113

43:                                               ; preds = %9
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call i64 @strtoul(ptr noundef %44, ptr noundef nonnull %4, i32 noundef 0) #7
  %46 = trunc i64 %45 to i32
  %sext = shl i32 %46, 16
  %47 = ashr exact i32 %sext, 16
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %.not72 = icmp eq ptr %48, null
  br i1 %.not72, label %.backedge, label %49

49:                                               ; preds = %43
  %50 = load i8, ptr %48, align 1, !tbaa !11
  %.not73 = icmp eq i8 %50, 0
  br i1 %.not73, label %.backedge, label %51

51:                                               ; preds = %49
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %113

53:                                               ; preds = %9
  %.not71 = icmp eq ptr %.045, null
  br i1 %.not71, label %56, label %54

54:                                               ; preds = %53
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %113

56:                                               ; preds = %53
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  br label %.backedge

58:                                               ; preds = %9
  call void @print_banner(ptr noundef nonnull @.str)
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  br label %113

66:                                               ; preds = %9
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %67)
  br label %113

69:                                               ; preds = %9
  %.not62 = icmp eq ptr %.045, null
  br i1 %.not62, label %70, label %72

70:                                               ; preds = %69
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %113

72:                                               ; preds = %69
  %73 = call i32 @ups_env_open(ptr noundef nonnull %7, ptr noundef nonnull %.045, i32 noundef 6, ptr noundef null)
  switch i32 %73, label %76 [
    i32 -21, label %74
    i32 0, label %77
  ]

74:                                               ; preds = %72
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull %.045)
  br label %113

76:                                               ; preds = %72
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.20, i32 noundef %73)
  br label %77

77:                                               ; preds = %72, %76
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = call i32 @ups_env_get_database_names(ptr noundef %78, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %.not64 = icmp eq i32 %79, 0
  br i1 %.not64, label %81, label %80

80:                                               ; preds = %77
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.21, i32 noundef %79)
  br label %81

81:                                               ; preds = %80, %77
  %82 = zext i16 %.038 to i32
  %.not65 = icmp eq i16 %.038, -1
  br i1 %.not65, label %.preheader, label %84

.preheader:                                       ; preds = %81
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %.not = icmp eq i32 %83, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

84:                                               ; preds = %81
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call i32 @ups_env_open_db(ptr noundef %85, ptr noundef nonnull %8, i16 noundef zeroext %.038, i32 noundef 0, ptr noundef null)
  switch i32 %86, label %89 [
    i32 -200, label %87
    i32 0, label %90
  ]

87:                                               ; preds = %84
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %82, i32 noundef %82)
  br label %113

89:                                               ; preds = %84
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.23, i32 noundef %86)
  br label %90

90:                                               ; preds = %84, %89
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZL13dump_databaseP8ups_db_ttiii(ptr noundef %91, i16 noundef zeroext %.038, i32 noundef %.041, i32 noundef %.043, i32 noundef %.039)
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = call i32 @ups_db_close(ptr noundef %92, i32 noundef 0)
  %.not69 = icmp eq i32 %93, 0
  br i1 %.not69, label %.loopexit, label %94

94:                                               ; preds = %90
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.24, i32 noundef %93)
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %106
  %indvars.iv = phi i64 [ %indvars.iv.next, %106 ], [ 0, %.preheader ]
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds [1024 x i16], ptr %5, i64 0, i64 %indvars.iv
  %97 = load i16, ptr %96, align 2, !tbaa !14
  %98 = call i32 @ups_env_open_db(ptr noundef %95, ptr noundef nonnull %8, i16 noundef zeroext %97, i32 noundef 0, ptr noundef null)
  %.not66 = icmp eq i32 %98, 0
  br i1 %.not66, label %100, label %99

99:                                               ; preds = %.lr.ph
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.23, i32 noundef %98)
  br label %100

100:                                              ; preds = %99, %.lr.ph
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i16, ptr %96, align 2, !tbaa !14
  call void @_ZL13dump_databaseP8ups_db_ttiii(ptr noundef %101, i16 noundef zeroext %102, i32 noundef %.041, i32 noundef %.043, i32 noundef %.039)
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = call i32 @ups_db_close(ptr noundef %103, i32 noundef 0)
  %.not67 = icmp eq i32 %104, 0
  br i1 %.not67, label %106, label %105

105:                                              ; preds = %100
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.24, i32 noundef %104)
  br label %106

106:                                              ; preds = %100, %105
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = icmp ult i64 %indvars.iv.next, %108
  br i1 %109, label %.lr.ph, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %106, %.preheader, %90, %94
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = call i32 @ups_env_close(ptr noundef %110, i32 noundef 0)
  %.not70 = icmp eq i32 %111, 0
  br i1 %.not70, label %113, label %112

112:                                              ; preds = %.loopexit
  call void @_ZL5errorPKci(ptr noundef nonnull @.str.25, i32 noundef %111)
  br label %113

113:                                              ; preds = %.loopexit, %112, %87, %74, %70, %66, %58, %54, %51, %41, %31, %21, %13
  %.047 = phi i32 [ -1, %66 ], [ 0, %58 ], [ -1, %54 ], [ -1, %51 ], [ -1, %41 ], [ -1, %31 ], [ -1, %21 ], [ -1, %13 ], [ -1, %74 ], [ -1, %87 ], [ -1, %70 ], [ 0, %112 ], [ 0, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 %.047
}

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

declare void @getopts_init(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @getopts(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #4

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

declare void @print_banner(ptr noundef) local_unnamed_addr #2

declare i32 @ups_env_open(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL5errorPKci(ptr noundef, i32 noundef) local_unnamed_addr #6

declare i32 @ups_env_get_database_names(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ups_env_open_db(ptr noundef, ptr noundef, i16 noundef zeroext, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13dump_databaseP8ups_db_ttiii(ptr noundef, i16 noundef zeroext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare i32 @ups_db_close(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @ups_env_close(ptr noundef, i32 noundef) 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) #1

attributes #0 = { mustprogress norecurse 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 = { "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 = { 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 "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 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 #6 = { mustprogress 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 #7 = { nounwind }
attributes #8 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !13}


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