; LLVM IR from kacperks/Fractal_Engine :: Engine/Thirdparty/cmake/Engine/Thirdparty/cmake/openal-soft/examples (main)

; 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 [138 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 i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = 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
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %24, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 4, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 -1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1000, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store float 1.000000e+00, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i32 1
  store ptr %26, ptr %5, align 8, !tbaa !9
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %4, align 4, !tbaa !5
  %29 = call i32 @InitAL(ptr noundef %5, ptr noundef %4)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %410

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

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

38:                                               ; preds = %32
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %318, %38
  %40 = load i32, ptr %18, align 4, !tbaa !5
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %321

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

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

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

67:                                               ; preds = %59, %51, %43
  %68 = load ptr, ptr @stderr, align 8, !tbaa !9
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.5, ptr noundef %69) #7
  call void @CloseAL()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %410

71:                                               ; preds = %59
  %72 = load i32, ptr %18, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %94

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

84:                                               ; preds = %76
  %85 = load i32, ptr %18, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %18, align 4, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = load i32, ptr %18, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds ptr, ptr %87, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call i32 @atoi(ptr noundef %91) #8
  %93 = sub nsw i32 %92, 1
  store i32 %93, ptr %12, align 4, !tbaa !5
  br label %316

94:                                               ; preds = %76, %71
  %95 = load i32, ptr %18, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %99, label %185

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

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

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

125:                                              ; preds = %115
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %184

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

134:                                              ; preds = %126
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %183

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

143:                                              ; preds = %135
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %182

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

152:                                              ; preds = %144
  store i32 3, ptr %6, align 4, !tbaa !5
  br label %181

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

161:                                              ; preds = %153
  store i32 4, ptr %6, align 4, !tbaa !5
  br label %180

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

170:                                              ; preds = %162
  store i32 5, ptr %6, align 4, !tbaa !5
  br label %179

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

179:                                              ; preds = %171, %170
  br label %180

180:                                              ; preds = %179, %161
  br label %181

181:                                              ; preds = %180, %152
  br label %182

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

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

184:                                              ; preds = %183, %125
  br label %315

185:                                              ; preds = %107, %94
  %186 = load i32, ptr %18, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  %188 = load i32, ptr %4, align 4, !tbaa !5
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %190, label %226

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

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

206:                                              ; preds = %198, %190
  %207 = load i32, ptr %18, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %18, align 4, !tbaa !5
  %209 = load ptr, ptr %5, align 8, !tbaa !9
  %210 = load i32, ptr %18, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !9
  %214 = call i32 @atoi(ptr noundef %213) #8
  store i32 %214, ptr %14, align 4, !tbaa !5
  %215 = load i32, ptr %14, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 1
  br i1 %216, label %217, label %225

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

225:                                              ; preds = %217, %206
  br label %314

226:                                              ; preds = %198, %185
  %227 = load i32, ptr %18, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  %229 = load i32, ptr %4, align 4, !tbaa !5
  %230 = icmp slt i32 %228, %229
  br i1 %230, label %231, label %271

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

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

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

259:                                              ; preds = %247
  %260 = load float, ptr %17, align 4, !tbaa !11
  %261 = fcmp ogt float %260, 1.000000e+00
  br i1 %261, label %262, label %270

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

270:                                              ; preds = %262, %259
  br label %313

271:                                              ; preds = %239, %226
  %272 = load i32, ptr %18, align 4, !tbaa !5
  %273 = add nsw i32 %272, 1
  %274 = load i32, ptr %4, align 4, !tbaa !5
  %275 = icmp slt i32 %273, %274
  br i1 %275, label %276, label %312

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

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

292:                                              ; preds = %284, %276
  %293 = load i32, ptr %18, align 4, !tbaa !5
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %18, align 4, !tbaa !5
  %295 = load ptr, ptr %5, align 8, !tbaa !9
  %296 = load i32, ptr %18, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds ptr, ptr %295, i64 %297
  %299 = load ptr, ptr %298, align 8, !tbaa !9
  %300 = call i32 @atoi(ptr noundef %299) #8
  store i32 %300, ptr %13, align 4, !tbaa !5
  %301 = load i32, ptr %13, align 4, !tbaa !5
  %302 = icmp slt i32 %301, 40
  br i1 %302, label %303, label %311

303:                                              ; preds = %292
  %304 = load ptr, ptr @stderr, align 8, !tbaa !9
  %305 = load ptr, ptr %5, align 8, !tbaa !9
  %306 = load i32, ptr %18, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds ptr, ptr %305, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !9
  %310 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %304, ptr noundef @.str.24, ptr noundef %309) #7
  store i32 40, ptr %13, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %303, %292
  br label %312

312:                                              ; preds = %311, %284, %271
  br label %313

313:                                              ; preds = %312, %270
  br label %314

314:                                              ; preds = %313, %225
  br label %315

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

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

317:                                              ; preds = %316
  br label %318

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

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

328:                                              ; preds = %321
  br i1 true, label %329, label %330

329:                                              ; preds = %328
  br label %331

330:                                              ; preds = %328, %321
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.27, i32 noundef 278, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

331:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %332 = load i32, ptr %13, align 4, !tbaa !5
  %333 = icmp slt i32 %332, 0
  br i1 %333, label %334, label %336

334:                                              ; preds = %331
  %335 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %335, ptr %13, align 4, !tbaa !5
  br label %336

336:                                              ; preds = %334, %331
  %337 = load i32, ptr %6, align 4, !tbaa !5
  %338 = load i32, ptr %14, align 4, !tbaa !5
  %339 = load i32, ptr %13, align 4, !tbaa !5
  %340 = load float, ptr %17, align 4, !tbaa !11
  %341 = call i32 @CreateWave(i32 noundef %337, i32 noundef %338, i32 noundef %339, float noundef %340)
  store i32 %341, ptr %9, align 4, !tbaa !5
  %342 = load i32, ptr %9, align 4, !tbaa !5
  %343 = icmp ne i32 %342, 0
  br i1 %343, label %345, label %344

344:                                              ; preds = %336
  call void @CloseAL()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %410

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

364:                                              ; preds = %345
  br i1 true, label %365, label %366

365:                                              ; preds = %364
  br label %367

366:                                              ; preds = %364, %345
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.27, i32 noundef 299, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

367:                                              ; preds = %365
  store i32 0, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !5
  %368 = load i32, ptr %8, align 4, !tbaa !5
  %369 = load i32, ptr %12, align 4, !tbaa !5
  %370 = icmp sgt i32 %369, 0
  %371 = zext i1 %370 to i64
  %372 = select i1 %370, i32 1, i32 0
  call void @alSourcei(i32 noundef %368, i32 noundef 4103, i32 noundef %372)
  %373 = load i32, ptr %8, align 4, !tbaa !5
  call void @alSourcePlay(i32 noundef %373)
  br label %374

374:                                              ; preds = %407, %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @al_nssleep(i64 noundef 10000000)
  %375 = load i32, ptr %8, align 4, !tbaa !5
  call void @alGetSourcei(i32 noundef %375, i32 noundef 4133, ptr noundef %21)
  %376 = load i32, ptr %8, align 4, !tbaa !5
  call void @alGetSourcei(i32 noundef %376, i32 noundef 4112, ptr noundef %16)
  %377 = load i32, ptr %21, align 4, !tbaa !5
  %378 = load i32, ptr %10, align 4, !tbaa !5
  %379 = icmp slt i32 %377, %378
  br i1 %379, label %380, label %399

380:                                              ; preds = %374
  %381 = load i32, ptr %16, align 4, !tbaa !5
  %382 = icmp eq i32 %381, 4114
  br i1 %382, label %383, label %399

383:                                              ; preds = %380
  %384 = load i32, ptr %11, align 4, !tbaa !5
  %385 = add nsw i32 %384, 1
  store i32 %385, ptr %11, align 4, !tbaa !5
  %386 = load i32, ptr %11, align 4, !tbaa !5
  %387 = load i32, ptr %12, align 4, !tbaa !5
  %388 = icmp sge i32 %386, %387
  br i1 %388, label %389, label %391

389:                                              ; preds = %383
  %390 = load i32, ptr %8, align 4, !tbaa !5
  call void @alSourcei(i32 noundef %390, i32 noundef 4103, i32 noundef 0)
  br label %391

391:                                              ; preds = %389, %383
  %392 = load i32, ptr %12, align 4, !tbaa !5
  %393 = load i32, ptr %11, align 4, !tbaa !5
  %394 = sub nsw i32 %392, %393
  %395 = add nsw i32 %394, 1
  %396 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, i32 noundef %395)
  %397 = load ptr, ptr @stdout, align 8, !tbaa !9
  %398 = call i32 @fflush(ptr noundef %397)
  br label %399

399:                                              ; preds = %391, %380, %374
  %400 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %400, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %401

401:                                              ; preds = %399
  %402 = call i32 @alGetError()
  %403 = icmp eq i32 %402, 0
  br i1 %403, label %404, label %407

404:                                              ; preds = %401
  %405 = load i32, ptr %16, align 4, !tbaa !5
  %406 = icmp eq i32 %405, 4114
  br label %407

407:                                              ; preds = %404, %401
  %408 = phi i1 [ false, %401 ], [ %406, %404 ]
  br i1 %408, label %374, label %409, !llvm.loop !15

409:                                              ; preds = %407
  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 %19, align 4
  br label %410

410:                                              ; preds = %409, %344, %67, %35, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  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
  %411 = load i32, ptr %3, align 4
  ret i32 %411
}

; 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, 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 [138 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 %180

14:                                               ; preds = %2
  %15 = call signext i8 @alIsExtensionPresent(ptr noundef nonnull @.str) #7
  %.not86 = icmp eq i8 %15, 0
  br i1 %.not86, 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 ]
  %.065103 = phi i32 [ %127, %126 ], [ 0, %.preheader ]
  %.066102 = phi float [ %.167, %126 ], [ 1.000000e+00, %.preheader ]
  %.068101 = phi i32 [ %.169, %126 ], [ 1000, %.preheader ]
  %.070100 = phi i32 [ %.171, %126 ], [ -1, %.preheader ]
  %.07299 = phi i32 [ %.173, %126 ], [ 4, %.preheader ]
  %.07798 = phi i32 [ %.178, %126 ], [ 0, %.preheader ]
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = sext i32 %.065103 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 %.065103, 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 = add nsw i32 %47, -1
  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, %76, %100, %108, %117, %123, %114, %85, %91, %43
  %.178 = phi i32 [ %.07798, %43 ], [ %.07798, %76 ], [ %.07798, %91 ], [ %.07798, %85 ], [ %.07798, %108 ], [ %.07798, %100 ], [ %.07798, %123 ], [ %.07798, %117 ], [ %.07798, %114 ], [ 0, %55 ], [ 1, %61 ], [ 2, %64 ], [ 3, %67 ], [ 4, %70 ], [ 5, %73 ], [ %.07798, %37 ]
  %.173 = phi i32 [ %48, %43 ], [ %.07299, %76 ], [ %.07299, %91 ], [ %.07299, %85 ], [ %.07299, %108 ], [ %.07299, %100 ], [ %.07299, %123 ], [ %.07299, %117 ], [ %.07299, %114 ], [ %.07299, %55 ], [ %.07299, %61 ], [ %.07299, %64 ], [ %.07299, %67 ], [ %.07299, %70 ], [ %.07299, %73 ], [ %.07299, %37 ]
  %.171 = phi i32 [ %.070100, %43 ], [ %.070100, %76 ], [ %.070100, %91 ], [ %.070100, %85 ], [ %.070100, %108 ], [ %.070100, %100 ], [ 40, %123 ], [ %121, %117 ], [ %.070100, %114 ], [ %.070100, %55 ], [ %.070100, %61 ], [ %.070100, %64 ], [ %.070100, %67 ], [ %.070100, %70 ], [ %.070100, %73 ], [ %.070100, %37 ]
  %.169 = phi i32 [ %.068101, %43 ], [ %.068101, %76 ], [ 1, %91 ], [ %89, %85 ], [ %.068101, %108 ], [ %.068101, %100 ], [ %.068101, %123 ], [ %.068101, %117 ], [ %.068101, %114 ], [ %.068101, %55 ], [ %.068101, %61 ], [ %.068101, %64 ], [ %.068101, %67 ], [ %.068101, %70 ], [ %.068101, %73 ], [ %.068101, %37 ]
  %.167 = phi float [ %.066102, %43 ], [ %.066102, %76 ], [ %.066102, %91 ], [ %.066102, %85 ], [ 1.000000e+00, %108 ], [ %105, %100 ], [ %.066102, %123 ], [ %.066102, %117 ], [ %.066102, %114 ], [ %.066102, %55 ], [ %.066102, %61 ], [ %.066102, %64 ], [ %.066102, %67 ], [ %.066102, %70 ], [ %.066102, %73 ], [ %.066102, %37 ]
  %.1 = phi i32 [ %38, %43 ], [ %38, %76 ], [ %38, %91 ], [ %38, %85 ], [ %38, %108 ], [ %38, %100 ], [ %38, %123 ], [ %38, %117 ], [ %.065103, %114 ], [ %38, %55 ], [ %38, %61 ], [ %38, %64 ], [ %38, %67 ], [ %38, %70 ], [ %38, %73 ], [ %.065103, %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
  %.077.lcssa = phi i32 [ 0, %.preheader ], [ %.178, %126 ]
  %.072.lcssa = phi i32 [ 4, %.preheader ], [ %.173, %126 ]
  %.070.lcssa = phi i32 [ -1, %.preheader ], [ %.171, %126 ]
  %.068.lcssa = phi i32 [ 1000, %.preheader ], [ %.169, %126 ]
  %.066.lcssa = phi float [ 1.000000e+00, %.preheader ], [ %.167, %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 278, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

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

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

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

151:                                              ; preds = %139
  %152 = load i32, ptr %5, align 4, !tbaa !9
  %153 = icmp sgt i32 %.072.lcssa, 0
  %154 = zext i1 %153 to i32
  call void @alSourcei(i32 noundef %152, i32 noundef 4103, i32 noundef %154) #7
  %155 = load i32, ptr %5, align 4, !tbaa !9
  call void @alSourcePlay(i32 noundef %155) #7
  br label %156

156:                                              ; preds = %172, %151
  %.076 = phi i32 [ 0, %151 ], [ %173, %172 ]
  %.074 = phi i32 [ 0, %151 ], [ %.175, %172 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @al_nssleep(i64 noundef 10000000) #7
  %157 = load i32, ptr %5, align 4, !tbaa !9
  call void @alGetSourcei(i32 noundef %157, i32 noundef 4133, ptr noundef nonnull %9) #7
  %158 = load i32, ptr %5, align 4, !tbaa !9
  call void @alGetSourcei(i32 noundef %158, i32 noundef 4112, ptr noundef nonnull %8) #7
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = icmp slt i32 %159, %.076
  %161 = load i32, ptr %8, align 4
  %162 = icmp eq i32 %161, 4114
  %or.cond3 = select i1 %160, i1 %162, i1 false
  br i1 %or.cond3, label %163, label %172

163:                                              ; preds = %156
  %164 = add nsw i32 %.074, 1
  %.not89 = icmp slt i32 %164, %.072.lcssa
  br i1 %.not89, label %167, label %165

165:                                              ; preds = %163
  %166 = load i32, ptr %5, align 4, !tbaa !9
  call void @alSourcei(i32 noundef %166, i32 noundef 4103, i32 noundef 0) #7
  br label %167

167:                                              ; preds = %165, %163
  %168 = sub i32 %.072.lcssa, %.074
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, i32 noundef %168)
  %170 = load ptr, ptr @stdout, align 8, !tbaa !5
  %171 = call i32 @fflush(ptr noundef %170)
  %.pre = load i32, ptr %9, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %167, %156
  %173 = phi i32 [ %.pre, %167 ], [ %159, %156 ]
  %.175 = phi i32 [ %164, %167 ], [ %.074, %156 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %174 = call i32 @alGetError() #7
  %175 = icmp eq i32 %174, 0
  %176 = load i32, ptr %8, align 4
  %177 = icmp eq i32 %176, 4114
  %178 = select i1 %175, i1 %177, i1 false
  br i1 %178, label %156, label %179, !llvm.loop !13

179:                                              ; preds = %172
  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, %179
  %.0.ph = phi i32 [ 1, %18 ], [ 0, %179 ], [ 1, %34 ], [ 1, %135 ]
  call void @CloseAL() #7
  br label %180

180:                                              ; 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, 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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass