; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/examples (altonegen)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [505 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [96 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [1 x i8], align 1
@stdout = external global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [7 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 i32, align 4
  %7 = alloca ptr, align 8
  %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 float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %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) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 4, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 -1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1000, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store float 1.000000e+00, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i32 1
  store ptr %25, ptr %5, align 8, !tbaa !9
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %4, align 4, !tbaa !5
  %28 = call i32 @InitAL(ptr noundef %5, ptr noundef %4)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %397

31:                                               ; preds = %2
  %32 = call signext i8 @alIsExtensionPresent(ptr noundef @.str)
  %33 = icmp ne i8 %32, 0
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.1) #7
  call void @CloseAL()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %397

37:                                               ; preds = %31
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %319, %37
  %39 = load i32, ptr %17, align 4, !tbaa !5
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %42, label %322

42:                                               ; preds = %38
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = load i32, ptr %17, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.2) #8
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %66, label %50

50:                                               ; preds = %42
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = load i32, ptr %17, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = call i32 @strcmp(ptr noundef %55, ptr noundef @.str.3) #8
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %66, label %58

58:                                               ; preds = %50
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = load i32, ptr %17, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 @strcmp(ptr noundef %63, ptr noundef @.str.4) #8
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %58, %50, %42
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.5, ptr noundef %68) #7
  call void @CloseAL()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %397

70:                                               ; preds = %58
  %71 = load i32, ptr %17, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %96

75:                                               ; preds = %70
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = load i32, ptr %17, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = call i32 @strcmp(ptr noundef %80, ptr noundef @.str.6) #8
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %96

83:                                               ; preds = %75
  %84 = load i32, ptr %17, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %17, align 4, !tbaa !5
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  %87 = load i32, ptr %17, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds ptr, ptr %86, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call i32 @atoi(ptr noundef %90) #8
  store i32 %91, ptr %11, align 4, !tbaa !5
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = icmp sle i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %83
  store i32 4, ptr %11, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %94, %83
  br label %318

96:                                               ; preds = %75, %70
  %97 = load i32, ptr %17, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %187

101:                                              ; preds = %96
  %102 = load ptr, ptr %5, align 8, !tbaa !9
  %103 = load i32, ptr %17, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds ptr, ptr %102, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef @.str.7) #8
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %117, label %109

109:                                              ; preds = %101
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  %111 = load i32, ptr %17, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = call i32 @strcmp(ptr noundef %114, ptr noundef @.str.8) #8
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %187

117:                                              ; preds = %109, %101
  %118 = load i32, ptr %17, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %17, align 4, !tbaa !5
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = call i32 @strcmp(ptr noundef %124, ptr noundef @.str.9) #8
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %128

127:                                              ; preds = %117
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %186

128:                                              ; preds = %117
  %129 = load ptr, ptr %5, align 8, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = call i32 @strcmp(ptr noundef %133, ptr noundef @.str.10) #8
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %128
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %185

137:                                              ; preds = %128
  %138 = load ptr, ptr %5, align 8, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds ptr, ptr %138, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !9
  %143 = call i32 @strcmp(ptr noundef %142, ptr noundef @.str.11) #8
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %137
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %184

146:                                              ; preds = %137
  %147 = load ptr, ptr %5, align 8, !tbaa !9
  %148 = load i32, ptr %17, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds ptr, ptr %147, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = call i32 @strcmp(ptr noundef %151, ptr noundef @.str.12) #8
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %146
  store i32 3, ptr %6, align 4, !tbaa !5
  br label %183

155:                                              ; preds = %146
  %156 = load ptr, ptr %5, align 8, !tbaa !9
  %157 = load i32, ptr %17, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds ptr, ptr %156, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  %161 = call i32 @strcmp(ptr noundef %160, ptr noundef @.str.13) #8
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %155
  store i32 4, ptr %6, align 4, !tbaa !5
  br label %182

164:                                              ; preds = %155
  %165 = load ptr, ptr %5, align 8, !tbaa !9
  %166 = load i32, ptr %17, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds ptr, ptr %165, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = call i32 @strcmp(ptr noundef %169, ptr noundef @.str.14) #8
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %164
  store i32 5, ptr %6, align 4, !tbaa !5
  br label %181

173:                                              ; preds = %164
  %174 = load ptr, ptr @stderr, align 8, !tbaa !9
  %175 = load ptr, ptr %5, align 8, !tbaa !9
  %176 = load i32, ptr %17, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds ptr, ptr %175, i64 %177
  %179 = load ptr, ptr %178, align 8, !tbaa !9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.15, ptr noundef %179) #7
  br label %181

181:                                              ; preds = %173, %172
  br label %182

182:                                              ; preds = %181, %163
  br label %183

183:                                              ; preds = %182, %154
  br label %184

184:                                              ; preds = %183, %145
  br label %185

185:                                              ; preds = %184, %136
  br label %186

186:                                              ; preds = %185, %127
  br label %317

187:                                              ; preds = %109, %96
  %188 = load i32, ptr %17, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %192, label %228

192:                                              ; preds = %187
  %193 = load ptr, ptr %5, align 8, !tbaa !9
  %194 = load i32, ptr %17, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds ptr, ptr %193, i64 %195
  %197 = load ptr, ptr %196, align 8, !tbaa !9
  %198 = call i32 @strcmp(ptr noundef %197, ptr noundef @.str.16) #8
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %208, label %200

200:                                              ; preds = %192
  %201 = load ptr, ptr %5, align 8, !tbaa !9
  %202 = load i32, ptr %17, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = call i32 @strcmp(ptr noundef %205, ptr noundef @.str.17) #8
  %207 = icmp eq i32 %206, 0
  br i1 %207, label %208, label %228

208:                                              ; preds = %200, %192
  %209 = load i32, ptr %17, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %17, align 4, !tbaa !5
  %211 = load ptr, ptr %5, align 8, !tbaa !9
  %212 = load i32, ptr %17, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !9
  %216 = call i32 @atoi(ptr noundef %215) #8
  store i32 %216, ptr %13, align 4, !tbaa !5
  %217 = load i32, ptr %13, align 4, !tbaa !5
  %218 = icmp slt i32 %217, 1
  br i1 %218, label %219, label %227

219:                                              ; preds = %208
  %220 = load ptr, ptr @stderr, align 8, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !9
  %222 = load i32, ptr %17, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds ptr, ptr %221, i64 %223
  %225 = load ptr, ptr %224, align 8, !tbaa !9
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.18, ptr noundef %225) #7
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %219, %208
  br label %316

228:                                              ; preds = %200, %187
  %229 = load i32, ptr %17, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  %231 = load i32, ptr %4, align 4, !tbaa !5
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %233, label %273

233:                                              ; preds = %228
  %234 = load ptr, ptr %5, align 8, !tbaa !9
  %235 = load i32, ptr %17, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds ptr, ptr %234, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !9
  %239 = call i32 @strcmp(ptr noundef %238, ptr noundef @.str.19) #8
  %240 = icmp eq i32 %239, 0
  br i1 %240, label %249, label %241

241:                                              ; preds = %233
  %242 = load ptr, ptr %5, align 8, !tbaa !9
  %243 = load i32, ptr %17, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds ptr, ptr %242, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !9
  %247 = call i32 @strcmp(ptr noundef %246, ptr noundef @.str.20) #8
  %248 = icmp eq i32 %247, 0
  br i1 %248, label %249, label %273

249:                                              ; preds = %241, %233
  %250 = load i32, ptr %17, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %17, align 4, !tbaa !5
  %252 = load ptr, ptr %5, align 8, !tbaa !9
  %253 = load i32, ptr %17, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds ptr, ptr %252, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !9
  %257 = call double @atof(ptr noundef %256) #8
  %258 = fptrunc double %257 to float
  store float %258, ptr %16, align 4, !tbaa !11
  %259 = load float, ptr %16, align 4, !tbaa !11
  %260 = fcmp olt float %259, 0.000000e+00
  br i1 %260, label %264, label %261

261:                                              ; preds = %249
  %262 = load float, ptr %16, align 4, !tbaa !11
  %263 = fcmp ogt float %262, 1.000000e+00
  br i1 %263, label %264, label %272

264:                                              ; preds = %261, %249
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = load ptr, ptr %5, align 8, !tbaa !9
  %267 = load i32, ptr %17, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds ptr, ptr %266, i64 %268
  %270 = load ptr, ptr %269, align 8, !tbaa !9
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.21, ptr noundef %270) #7
  store float 1.000000e+00, ptr %16, align 4, !tbaa !11
  br label %272

272:                                              ; preds = %264, %261
  br label %315

273:                                              ; preds = %241, %228
  %274 = load i32, ptr %17, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = load i32, ptr %4, align 4, !tbaa !5
  %277 = icmp slt i32 %275, %276
  br i1 %277, label %278, label %314

278:                                              ; preds = %273
  %279 = load ptr, ptr %5, align 8, !tbaa !9
  %280 = load i32, ptr %17, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds ptr, ptr %279, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !9
  %284 = call i32 @strcmp(ptr noundef %283, ptr noundef @.str.22) #8
  %285 = icmp eq i32 %284, 0
  br i1 %285, label %294, label %286

286:                                              ; preds = %278
  %287 = load ptr, ptr %5, align 8, !tbaa !9
  %288 = load i32, ptr %17, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds ptr, ptr %287, i64 %289
  %291 = load ptr, ptr %290, align 8, !tbaa !9
  %292 = call i32 @strcmp(ptr noundef %291, ptr noundef @.str.23) #8
  %293 = icmp eq i32 %292, 0
  br i1 %293, label %294, label %314

294:                                              ; preds = %286, %278
  %295 = load i32, ptr %17, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %17, align 4, !tbaa !5
  %297 = load ptr, ptr %5, align 8, !tbaa !9
  %298 = load i32, ptr %17, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds ptr, ptr %297, i64 %299
  %301 = load ptr, ptr %300, align 8, !tbaa !9
  %302 = call i32 @atoi(ptr noundef %301) #8
  store i32 %302, ptr %12, align 4, !tbaa !5
  %303 = load i32, ptr %12, align 4, !tbaa !5
  %304 = icmp slt i32 %303, 40
  br i1 %304, label %305, label %313

305:                                              ; preds = %294
  %306 = load ptr, ptr @stderr, align 8, !tbaa !9
  %307 = load ptr, ptr %5, align 8, !tbaa !9
  %308 = load i32, ptr %17, 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
  %312 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %306, ptr noundef @.str.24, ptr noundef %311) #7
  store i32 40, ptr %12, align 4, !tbaa !5
  br label %313

313:                                              ; preds = %305, %294
  br label %314

314:                                              ; preds = %313, %286, %273
  br label %315

315:                                              ; preds = %314, %272
  br label %316

316:                                              ; preds = %315, %227
  br label %317

317:                                              ; preds = %316, %186
  br label %318

318:                                              ; preds = %317, %95
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %17, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %17, align 4, !tbaa !5
  br label %38, !llvm.loop !13

322:                                              ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %323 = call ptr @alcGetCurrentContext()
  %324 = call ptr @alcGetContextsDevice(ptr noundef %323)
  store ptr %324, ptr %19, align 8, !tbaa !9
  %325 = load ptr, ptr %19, align 8, !tbaa !9
  call void @alcGetIntegerv(ptr noundef %325, i32 noundef 4103, i32 noundef 1, ptr noundef %14)
  %326 = load ptr, ptr %19, align 8, !tbaa !9
  %327 = call i32 @alcGetError(ptr noundef %326)
  %328 = icmp eq i32 %327, 0
  br i1 %328, label %329, label %331

329:                                              ; preds = %322
  br i1 true, label %330, label %331

330:                                              ; preds = %329
  br label %332

331:                                              ; preds = %329, %322
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.27, i32 noundef 290, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

332:                                              ; preds = %330
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %333 = load i32, ptr %12, align 4, !tbaa !5
  %334 = icmp slt i32 %333, 0
  br i1 %334, label %335, label %337

335:                                              ; preds = %332
  %336 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %336, ptr %12, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %335, %332
  %338 = load i32, ptr %6, align 4, !tbaa !5
  %339 = load i32, ptr %11, align 4, !tbaa !5
  %340 = load i32, ptr %13, align 4, !tbaa !5
  %341 = load i32, ptr %12, align 4, !tbaa !5
  %342 = load float, ptr %16, align 4, !tbaa !11
  %343 = call i32 @CreateWave(i32 noundef %338, i32 noundef %339, i32 noundef %340, i32 noundef %341, float noundef %342)
  store i32 %343, ptr %9, align 4, !tbaa !5
  %344 = load i32, ptr %9, align 4, !tbaa !5
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %347, label %346

346:                                              ; preds = %337
  call void @CloseAL()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %397

347:                                              ; preds = %337
  %348 = load i32, ptr %13, align 4, !tbaa !5
  %349 = load i32, ptr %6, align 4, !tbaa !5
  %350 = call ptr @GetWaveTypeName(i32 noundef %349)
  %351 = load i32, ptr %12, align 4, !tbaa !5
  %352 = load i32, ptr %14, align 4, !tbaa !5
  %353 = load i32, ptr %11, align 4, !tbaa !5
  %354 = load i32, ptr %11, align 4, !tbaa !5
  %355 = icmp ne i32 %354, 1
  %356 = zext i1 %355 to i64
  %357 = select i1 %355, ptr @.str.29, ptr @.str.30
  %358 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, i32 noundef %348, ptr noundef %350, i32 noundef %351, i32 noundef %352, i32 noundef %353, ptr noundef %357)
  %359 = load ptr, ptr @stdout, align 8, !tbaa !9
  %360 = call i32 @fflush(ptr noundef %359)
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @alGenSources(i32 noundef 1, ptr noundef %8)
  %361 = load i32, ptr %8, align 4, !tbaa !5
  %362 = load i32, ptr %9, align 4, !tbaa !5
  call void @alSourcei(i32 noundef %361, i32 noundef 4105, i32 noundef %362)
  %363 = call i32 @alGetError()
  %364 = icmp eq i32 %363, 0
  br i1 %364, label %365, label %367

365:                                              ; preds = %347
  br i1 true, label %366, label %367

366:                                              ; preds = %365
  br label %368

367:                                              ; preds = %365, %347
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.27, i32 noundef 311, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

368:                                              ; preds = %366
  store i32 -1, ptr %10, align 4, !tbaa !5
  %369 = load i32, ptr %8, align 4, !tbaa !5
  call void @alSourcePlay(i32 noundef %369)
  br label %370

370:                                              ; preds = %394, %368
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @al_nssleep(i64 noundef 10000000)
  %371 = load i32, ptr %8, align 4, !tbaa !5
  call void @alGetSourcei(i32 noundef %371, i32 noundef 4112, ptr noundef %15)
  %372 = load i32, ptr %8, align 4, !tbaa !5
  call void @alGetSourcei(i32 noundef %372, i32 noundef 4133, ptr noundef %20)
  %373 = load i32, ptr %12, align 4, !tbaa !5
  %374 = load i32, ptr %20, align 4, !tbaa !5
  %375 = sdiv i32 %374, %373
  store i32 %375, ptr %20, align 4, !tbaa !5
  %376 = load i32, ptr %20, align 4, !tbaa !5
  %377 = load i32, ptr %10, align 4, !tbaa !5
  %378 = icmp sgt i32 %376, %377
  br i1 %378, label %379, label %386

379:                                              ; preds = %370
  %380 = load i32, ptr %11, align 4, !tbaa !5
  %381 = load i32, ptr %20, align 4, !tbaa !5
  %382 = sub nsw i32 %380, %381
  %383 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, i32 noundef %382)
  %384 = load ptr, ptr @stdout, align 8, !tbaa !9
  %385 = call i32 @fflush(ptr noundef %384)
  br label %386

386:                                              ; preds = %379, %370
  %387 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %387, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %388

388:                                              ; preds = %386
  %389 = call i32 @alGetError()
  %390 = icmp eq i32 %389, 0
  br i1 %390, label %391, label %394

391:                                              ; preds = %388
  %392 = load i32, ptr %15, align 4, !tbaa !5
  %393 = icmp eq i32 %392, 4114
  br label %394

394:                                              ; preds = %391, %388
  %395 = phi i1 [ false, %388 ], [ %393, %391 ]
  br i1 %395, label %370, label %396, !llvm.loop !15

396:                                              ; preds = %394
  call void @alDeleteSources(i32 noundef 1, ptr noundef %8)
  call void @alDeleteBuffers(i32 noundef 1, ptr noundef %9)
  call void @CloseAL()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %397

397:                                              ; preds = %396, %346, %66, %34, %30
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %398 = load i32, ptr %3, align 4
  ret i32 %398
}

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

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

declare signext i8 @alIsExtensionPresent(ptr noundef) #2

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

declare void @CloseAL() #2

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

declare ptr @alcGetContextsDevice(ptr noundef) #2

declare ptr @alcGetCurrentContext() #2

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

declare i32 @alcGetError(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @GetWaveTypeName(i32 noundef) #0

declare i32 @fflush(ptr noundef) #2

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

declare void @alSourcei(i32 noundef, i32 noundef, i32 noundef) #2

declare i32 @alGetError() #2

declare void @alSourcePlay(i32 noundef) #2

declare void @al_nssleep(i64 noundef) #2

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

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

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

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 = { "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 = { 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 #6 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [505 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [96 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [1 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %11, ptr %4, align 8, !tbaa !5
  %12 = add nsw i32 %0, -1
  store i32 %12, ptr %3, align 4, !tbaa !9
  %13 = call i32 @InitAL(ptr noundef nonnull %4, ptr noundef nonnull %3) #7
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %171

14:                                               ; preds = %2
  %15 = call signext i8 @alIsExtensionPresent(ptr noundef nonnull @.str) #7
  %.not81 = icmp eq i8 %15, 0
  br i1 %.not81, label %18, label %.preheader

.preheader:                                       ; preds = %14
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

18:                                               ; preds = %14
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.1) #8
  br label %.sink.split

.lr.ph:                                           ; preds = %.preheader, %126
  %21 = phi i32 [ %128, %126 ], [ %16, %.preheader ]
  %.06197 = phi i32 [ %127, %126 ], [ 0, %.preheader ]
  %.06296 = phi float [ %.163, %126 ], [ 1.000000e+00, %.preheader ]
  %.06495 = phi i32 [ %.165, %126 ], [ 1000, %.preheader ]
  %.06694 = phi i32 [ %.167, %126 ], [ -1, %.preheader ]
  %.06893 = phi i32 [ %.169, %126 ], [ 4, %.preheader ]
  %.07192 = phi i32 [ %.172, %126 ], [ 0, %.preheader ]
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = sext i32 %.06197 to i64
  %24 = getelementptr inbounds ptr, ptr %22, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.2) #9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %34, label %28

28:                                               ; preds = %.lr.ph
  %29 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %34, label %31

31:                                               ; preds = %28
  %32 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.4) #9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %31, %28, %.lr.ph
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.5, ptr noundef %10) #8
  br label %.sink.split

37:                                               ; preds = %31
  %38 = add nsw i32 %.06197, 1
  %39 = icmp slt i32 %38, %21
  br i1 %39, label %40, label %126

40:                                               ; preds = %37
  %41 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.6) #9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %49

43:                                               ; preds = %40
  %44 = sext i32 %38 to i64
  %45 = getelementptr inbounds ptr, ptr %22, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = call i32 @atoi(ptr nocapture noundef %46) #9
  %48 = icmp slt i32 %47, 1
  %spec.store.select = select i1 %48, i32 4, i32 %47
  br label %126

49:                                               ; preds = %40
  %50 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.7) #9
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  %53 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.8) #9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %79

55:                                               ; preds = %52, %49
  %56 = sext i32 %38 to i64
  %57 = getelementptr inbounds ptr, ptr %22, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %126, label %61

61:                                               ; preds = %55
  %62 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %126, label %64

64:                                               ; preds = %61
  %65 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.11) #9
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %126, label %67

67:                                               ; preds = %64
  %68 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %126, label %70

70:                                               ; preds = %67
  %71 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.13) #9
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %126, label %73

73:                                               ; preds = %70
  %74 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.14) #9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %126, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.15, ptr noundef %58) #8
  br label %126

79:                                               ; preds = %52
  %80 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.16) #9
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  %83 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.17) #9
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %94

85:                                               ; preds = %82, %79
  %86 = sext i32 %38 to i64
  %87 = getelementptr inbounds ptr, ptr %22, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = call i32 @atoi(ptr nocapture noundef %88) #9
  %90 = icmp slt i32 %89, 1
  br i1 %90, label %91, label %126

91:                                               ; preds = %85
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.18, ptr noundef nonnull %88) #8
  br label %126

94:                                               ; preds = %82
  %95 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.19) #9
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %100, label %97

97:                                               ; preds = %94
  %98 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.20) #9
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %111

100:                                              ; preds = %97, %94
  %101 = sext i32 %38 to i64
  %102 = getelementptr inbounds ptr, ptr %22, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = call double @atof(ptr noundef %103) #9
  %105 = fptrunc double %104 to float
  %106 = fcmp olt float %105, 0.000000e+00
  %107 = fcmp ogt float %105, 1.000000e+00
  %or.cond = or i1 %106, %107
  br i1 %or.cond, label %108, label %126

108:                                              ; preds = %100
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.21, ptr noundef nonnull %103) #8
  br label %126

111:                                              ; preds = %97
  %112 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.22) #9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %117, label %114

114:                                              ; preds = %111
  %115 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.23) #9
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %126

117:                                              ; preds = %114, %111
  %118 = sext i32 %38 to i64
  %119 = getelementptr inbounds ptr, ptr %22, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = call i32 @atoi(ptr nocapture noundef %120) #9
  %122 = icmp slt i32 %121, 40
  br i1 %122, label %123, label %126

123:                                              ; preds = %117
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.24, ptr noundef nonnull %120) #8
  br label %126

126:                                              ; preds = %37, %73, %70, %67, %64, %61, %55, %43, %91, %85, %114, %123, %117, %108, %100, %76
  %.172 = phi i32 [ %.07192, %43 ], [ %.07192, %76 ], [ %.07192, %91 ], [ %.07192, %85 ], [ %.07192, %108 ], [ %.07192, %100 ], [ %.07192, %123 ], [ %.07192, %117 ], [ %.07192, %114 ], [ 0, %55 ], [ 1, %61 ], [ 2, %64 ], [ 3, %67 ], [ 4, %70 ], [ 5, %73 ], [ %.07192, %37 ]
  %.169 = phi i32 [ %spec.store.select, %43 ], [ %.06893, %76 ], [ %.06893, %91 ], [ %.06893, %85 ], [ %.06893, %108 ], [ %.06893, %100 ], [ %.06893, %123 ], [ %.06893, %117 ], [ %.06893, %114 ], [ %.06893, %55 ], [ %.06893, %61 ], [ %.06893, %64 ], [ %.06893, %67 ], [ %.06893, %70 ], [ %.06893, %73 ], [ %.06893, %37 ]
  %.167 = phi i32 [ %.06694, %43 ], [ %.06694, %76 ], [ %.06694, %91 ], [ %.06694, %85 ], [ %.06694, %108 ], [ %.06694, %100 ], [ 40, %123 ], [ %121, %117 ], [ %.06694, %114 ], [ %.06694, %55 ], [ %.06694, %61 ], [ %.06694, %64 ], [ %.06694, %67 ], [ %.06694, %70 ], [ %.06694, %73 ], [ %.06694, %37 ]
  %.165 = phi i32 [ %.06495, %43 ], [ %.06495, %76 ], [ 1, %91 ], [ %89, %85 ], [ %.06495, %108 ], [ %.06495, %100 ], [ %.06495, %123 ], [ %.06495, %117 ], [ %.06495, %114 ], [ %.06495, %55 ], [ %.06495, %61 ], [ %.06495, %64 ], [ %.06495, %67 ], [ %.06495, %70 ], [ %.06495, %73 ], [ %.06495, %37 ]
  %.163 = phi float [ %.06296, %43 ], [ %.06296, %76 ], [ %.06296, %91 ], [ %.06296, %85 ], [ 1.000000e+00, %108 ], [ %105, %100 ], [ %.06296, %123 ], [ %.06296, %117 ], [ %.06296, %114 ], [ %.06296, %55 ], [ %.06296, %61 ], [ %.06296, %64 ], [ %.06296, %67 ], [ %.06296, %70 ], [ %.06296, %73 ], [ %.06296, %37 ]
  %.1 = phi i32 [ %38, %43 ], [ %38, %76 ], [ %38, %91 ], [ %38, %85 ], [ %38, %108 ], [ %38, %100 ], [ %38, %123 ], [ %38, %117 ], [ %.06197, %114 ], [ %38, %55 ], [ %38, %61 ], [ %38, %64 ], [ %38, %67 ], [ %38, %70 ], [ %38, %73 ], [ %.06197, %37 ]
  %127 = add nsw i32 %.1, 1
  %128 = load i32, ptr %3, align 4, !tbaa !9
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %126, %.preheader
  %.071.lcssa = phi i32 [ 0, %.preheader ], [ %.172, %126 ]
  %.068.lcssa = phi i32 [ 4, %.preheader ], [ %.169, %126 ]
  %.066.lcssa = phi i32 [ -1, %.preheader ], [ %.167, %126 ]
  %.064.lcssa = phi i32 [ 1000, %.preheader ], [ %.165, %126 ]
  %.062.lcssa = phi float [ 1.000000e+00, %.preheader ], [ %.163, %126 ]
  %130 = call ptr @alcGetCurrentContext() #7
  %131 = call ptr @alcGetContextsDevice(ptr noundef %130) #7
  call void @alcGetIntegerv(ptr noundef %131, i32 noundef 4103, i32 noundef 1, ptr noundef nonnull %7) #7
  %132 = call i32 @alcGetError(ptr noundef %131) #7
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %135, label %134

134:                                              ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.27, i32 noundef 290, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

135:                                              ; preds = %._crit_edge
  %136 = icmp slt i32 %.066.lcssa, 0
  %137 = load i32, ptr %7, align 4
  %spec.select = select i1 %136, i32 %137, i32 %.066.lcssa
  %138 = call i32 @CreateWave(i32 noundef %.071.lcssa, i32 noundef %.068.lcssa, i32 noundef %.064.lcssa, i32 noundef %spec.select, float noundef %.062.lcssa)
  store i32 %138, ptr %6, align 4, !tbaa !9
  %.not82 = icmp eq i32 %138, 0
  br i1 %.not82, label %.sink.split, label %139

139:                                              ; preds = %135
  %140 = call ptr @GetWaveTypeName(i32 noundef %.071.lcssa)
  %141 = load i32, ptr %7, align 4, !tbaa !9
  %.not83 = icmp eq i32 %.068.lcssa, 1
  %142 = select i1 %.not83, ptr @.str.30, ptr @.str.29
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, i32 noundef %.064.lcssa, ptr noundef %140, i32 noundef %spec.select, i32 noundef %141, i32 noundef %.068.lcssa, ptr noundef nonnull %142)
  %144 = load ptr, ptr @stdout, align 8, !tbaa !5
  %145 = call i32 @fflush(ptr noundef %144)
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @alGenSources(i32 noundef 1, ptr noundef nonnull %5) #7
  %146 = load i32, ptr %5, align 4, !tbaa !9
  call void @alSourcei(i32 noundef %146, i32 noundef 4105, i32 noundef %138) #7
  %147 = call i32 @alGetError() #7
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %139
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.27, i32 noundef 311, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

150:                                              ; preds = %139
  %151 = load i32, ptr %5, align 4, !tbaa !9
  call void @alSourcePlay(i32 noundef %151) #7
  br label %152

152:                                              ; preds = %163, %150
  %.070 = phi i32 [ -1, %150 ], [ %164, %163 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @al_nssleep(i64 noundef 10000000) #7
  %153 = load i32, ptr %5, align 4, !tbaa !9
  call void @alGetSourcei(i32 noundef %153, i32 noundef 4112, ptr noundef nonnull %8) #7
  %154 = load i32, ptr %5, align 4, !tbaa !9
  call void @alGetSourcei(i32 noundef %154, i32 noundef 4133, ptr noundef nonnull %9) #7
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = sdiv i32 %155, %spec.select
  store i32 %156, ptr %9, align 4, !tbaa !9
  %157 = icmp sgt i32 %156, %.070
  br i1 %157, label %158, label %163

158:                                              ; preds = %152
  %159 = sub nsw i32 %.068.lcssa, %156
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, i32 noundef %159)
  %161 = load ptr, ptr @stdout, align 8, !tbaa !5
  %162 = call i32 @fflush(ptr noundef %161)
  %.pre = load i32, ptr %9, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %158, %152
  %164 = phi i32 [ %.pre, %158 ], [ %156, %152 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %165 = call i32 @alGetError() #7
  %166 = icmp eq i32 %165, 0
  %167 = load i32, ptr %8, align 4
  %168 = icmp eq i32 %167, 4114
  %169 = select i1 %166, i1 %168, i1 false
  br i1 %169, label %152, label %170, !llvm.loop !13

170:                                              ; preds = %163
  call void @alDeleteSources(i32 noundef 1, ptr noundef nonnull %5) #7
  call void @alDeleteBuffers(i32 noundef 1, ptr noundef nonnull %6) #7
  br label %.sink.split

.sink.split:                                      ; preds = %135, %18, %34, %170
  %.0.ph = phi i32 [ 1, %18 ], [ 0, %170 ], [ 1, %34 ], [ 1, %135 ]
  call void @CloseAL() #7
  br label %171

171:                                              ; preds = %.sink.split, %2
  %.0 = phi i32 [ 1, %2 ], [ %.0.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  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

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

declare signext i8 @alIsExtensionPresent(ptr noundef) local_unnamed_addr #2

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

declare void @CloseAL() local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

declare ptr @alcGetContextsDevice(ptr noundef) local_unnamed_addr #2

declare ptr @alcGetCurrentContext() local_unnamed_addr #2

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

declare i32 @alcGetError(ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

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

declare void @alSourcei(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @alGetError() local_unnamed_addr #2

declare void @alSourcePlay(i32 noundef) local_unnamed_addr #2

declare void @al_nssleep(i64 noundef) local_unnamed_addr #2

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

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

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

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 = { "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 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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