; LLVM IR from vertver/Fresponze-old :: modules/opus/tests (test_opus_encode)

; 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 [93 x i8], align 1
@stderr = external global ptr, align 8
@__const.fuzz_encoder_settings.sampling_rates = external hidden unnamed_addr constant [5 x i32], align 16
@__const.fuzz_encoder_settings.channels = external hidden unnamed_addr constant [2 x i32], align 4
@__const.fuzz_encoder_settings.applications = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.bitrates = external hidden unnamed_addr constant [11 x i32], align 16
@__const.fuzz_encoder_settings.force_channels = external hidden unnamed_addr constant [4 x i32], align 16
@__const.fuzz_encoder_settings.use_vbr = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.vbr_constraints = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.complexities = external hidden unnamed_addr constant [11 x i32], align 16
@__const.fuzz_encoder_settings.max_bandwidths = external hidden unnamed_addr constant [6 x i32], align 16
@__const.fuzz_encoder_settings.signals = external hidden unnamed_addr constant [4 x i32], align 16
@__const.fuzz_encoder_settings.inband_fecs = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.packet_loss_perc = external hidden unnamed_addr constant [4 x i32], align 16
@__const.fuzz_encoder_settings.lsb_depths = external hidden unnamed_addr constant [2 x i32], align 4
@__const.fuzz_encoder_settings.prediction_disabled = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.use_dtx = external hidden unnamed_addr constant [2 x i32], align 4
@__const.fuzz_encoder_settings.frame_sizes_ms_x2 = external hidden unnamed_addr constant [9 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [232 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @fast_rand() #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_frame_size_enum(i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @_test_failed(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @test_encode(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @fuzz_encoder_settings(i32 noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [5 x i32], align 16
  %11 = alloca [2 x i32], align 4
  %12 = alloca [3 x i32], align 4
  %13 = alloca [11 x i32], align 16
  %14 = alloca [4 x i32], align 16
  %15 = alloca [3 x i32], align 4
  %16 = alloca [3 x i32], align 4
  %17 = alloca [11 x i32], align 16
  %18 = alloca [6 x i32], align 16
  %19 = alloca [4 x i32], align 16
  %20 = alloca [3 x i32], align 4
  %21 = alloca [4 x i32], align 16
  %22 = alloca [2 x i32], align 4
  %23 = alloca [3 x i32], align 4
  %24 = alloca [2 x i32], align 4
  %25 = alloca [9 x i32], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 20, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.fuzz_encoder_settings.sampling_rates, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @__const.fuzz_encoder_settings.channels, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 @__const.fuzz_encoder_settings.applications, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.fuzz_encoder_settings.bitrates, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.fuzz_encoder_settings.force_channels, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 @__const.fuzz_encoder_settings.use_vbr, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 @__const.fuzz_encoder_settings.vbr_constraints, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.fuzz_encoder_settings.complexities, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.fuzz_encoder_settings.max_bandwidths, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.fuzz_encoder_settings.signals, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 @__const.fuzz_encoder_settings.inband_fecs, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 @__const.fuzz_encoder_settings.packet_loss_perc, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 @__const.fuzz_encoder_settings.lsb_depths, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 @__const.fuzz_encoder_settings.prediction_disabled, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 @__const.fuzz_encoder_settings.use_dtx, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 @__const.fuzz_encoder_settings.frame_sizes_ms_x2, i64 36, i1 false)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %337, %2
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %48, label %340

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %49 = call i32 @fast_rand()
  %50 = zext i32 %49 to i64
  %51 = urem i64 %50, 20
  %52 = udiv i64 %51, 4
  %53 = getelementptr inbounds [5 x i32], ptr %10, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  store i32 %54, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %55 = call i32 @fast_rand()
  %56 = zext i32 %55 to i64
  %57 = urem i64 %56, 8
  %58 = udiv i64 %57, 4
  %59 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  store i32 %60, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %61 = call i32 @fast_rand()
  %62 = zext i32 %61 to i64
  %63 = urem i64 %62, 12
  %64 = udiv i64 %63, 4
  %65 = getelementptr inbounds [3 x i32], ptr %12, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %28, align 4, !tbaa !5
  %67 = load i32, ptr %26, align 4, !tbaa !5
  %68 = load i32, ptr %27, align 4, !tbaa !5
  %69 = call ptr @opus_decoder_create(i32 noundef %67, i32 noundef %68, ptr noundef %9)
  store ptr %69, ptr %6, align 8, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %75, label %72

72:                                               ; preds = %48
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %76

75:                                               ; preds = %72, %48
  call void @_test_failed(ptr noundef @.str, i32 noundef 217) #8
  unreachable

76:                                               ; preds = %72
  %77 = load i32, ptr %26, align 4, !tbaa !5
  %78 = load i32, ptr %27, align 4, !tbaa !5
  %79 = load i32, ptr %28, align 4, !tbaa !5
  %80 = call ptr @opus_encoder_create(i32 noundef %77, i32 noundef %78, i32 noundef %79, ptr noundef %9)
  store ptr %80, ptr %5, align 8, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %86, label %83

83:                                               ; preds = %76
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %87

86:                                               ; preds = %83, %76
  call void @_test_failed(ptr noundef @.str, i32 noundef 220) #8
  unreachable

87:                                               ; preds = %83
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %331, %87
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %92, label %334

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %93 = call i32 @fast_rand()
  %94 = zext i32 %93 to i64
  %95 = urem i64 %94, 44
  %96 = udiv i64 %95, 4
  %97 = getelementptr inbounds [11 x i32], ptr %13, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  store i32 %98, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %99 = call i32 @fast_rand()
  %100 = zext i32 %99 to i64
  %101 = urem i64 %100, 16
  %102 = udiv i64 %101, 4
  %103 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  store i32 %104, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %105 = call i32 @fast_rand()
  %106 = zext i32 %105 to i64
  %107 = urem i64 %106, 12
  %108 = udiv i64 %107, 4
  %109 = getelementptr inbounds [3 x i32], ptr %15, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  store i32 %110, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %111 = call i32 @fast_rand()
  %112 = zext i32 %111 to i64
  %113 = urem i64 %112, 12
  %114 = udiv i64 %113, 4
  %115 = getelementptr inbounds [3 x i32], ptr %16, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %117 = call i32 @fast_rand()
  %118 = zext i32 %117 to i64
  %119 = urem i64 %118, 44
  %120 = udiv i64 %119, 4
  %121 = getelementptr inbounds [11 x i32], ptr %17, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  store i32 %122, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %123 = call i32 @fast_rand()
  %124 = zext i32 %123 to i64
  %125 = urem i64 %124, 24
  %126 = udiv i64 %125, 4
  %127 = getelementptr inbounds [6 x i32], ptr %18, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  store i32 %128, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %129 = call i32 @fast_rand()
  %130 = zext i32 %129 to i64
  %131 = urem i64 %130, 16
  %132 = udiv i64 %131, 4
  %133 = getelementptr inbounds [4 x i32], ptr %19, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  store i32 %134, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %135 = call i32 @fast_rand()
  %136 = zext i32 %135 to i64
  %137 = urem i64 %136, 12
  %138 = udiv i64 %137, 4
  %139 = getelementptr inbounds [3 x i32], ptr %20, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  store i32 %140, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %141 = call i32 @fast_rand()
  %142 = zext i32 %141 to i64
  %143 = urem i64 %142, 16
  %144 = udiv i64 %143, 4
  %145 = getelementptr inbounds [4 x i32], ptr %21, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  store i32 %146, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %147 = call i32 @fast_rand()
  %148 = zext i32 %147 to i64
  %149 = urem i64 %148, 8
  %150 = udiv i64 %149, 4
  %151 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %153 = call i32 @fast_rand()
  %154 = zext i32 %153 to i64
  %155 = urem i64 %154, 12
  %156 = udiv i64 %155, 4
  %157 = getelementptr inbounds [3 x i32], ptr %23, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  store i32 %158, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %159 = call i32 @fast_rand()
  %160 = zext i32 %159 to i64
  %161 = urem i64 %160, 8
  %162 = udiv i64 %161, 4
  %163 = getelementptr inbounds [2 x i32], ptr %24, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  store i32 %164, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %165 = call i32 @fast_rand()
  %166 = zext i32 %165 to i64
  %167 = urem i64 %166, 36
  %168 = udiv i64 %167, 4
  %169 = getelementptr inbounds [9 x i32], ptr %25, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  store i32 %170, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %171 = load i32, ptr %41, align 4, !tbaa !5
  %172 = load i32, ptr %26, align 4, !tbaa !5
  %173 = mul nsw i32 %171, %172
  %174 = sdiv i32 %173, 2000
  store i32 %174, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %175 = load i32, ptr %42, align 4, !tbaa !5
  %176 = load i32, ptr %26, align 4, !tbaa !5
  %177 = call i32 @get_frame_size_enum(i32 noundef %175, i32 noundef %176)
  store i32 %177, ptr %43, align 4, !tbaa !5
  %178 = load i32, ptr %30, align 4, !tbaa !5
  %179 = load i32, ptr %27, align 4, !tbaa !5
  %180 = icmp slt i32 %178, %179
  br i1 %180, label %181, label %183

181:                                              ; preds = %92
  %182 = load i32, ptr %30, align 4, !tbaa !5
  br label %185

183:                                              ; preds = %92
  %184 = load i32, ptr %27, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %183, %181
  %186 = phi i32 [ %182, %181 ], [ %184, %183 ]
  store i32 %186, ptr %30, align 4, !tbaa !5
  %187 = load ptr, ptr %5, align 8, !tbaa !9
  %188 = load i32, ptr %29, align 4, !tbaa !5
  %189 = icmp eq i32 %188, 0
  %190 = zext i1 %189 to i32
  %191 = load i32, ptr %29, align 4, !tbaa !5
  %192 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %187, i32 noundef 4002, i32 noundef %191)
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %185
  call void @_test_failed(ptr noundef @.str, i32 noundef 240) #8
  unreachable

195:                                              ; preds = %185
  %196 = load ptr, ptr %5, align 8, !tbaa !9
  %197 = load i32, ptr %30, align 4, !tbaa !5
  %198 = icmp eq i32 %197, 0
  %199 = zext i1 %198 to i32
  %200 = load i32, ptr %30, align 4, !tbaa !5
  %201 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %196, i32 noundef 4022, i32 noundef %200)
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %195
  call void @_test_failed(ptr noundef @.str, i32 noundef 241) #8
  unreachable

204:                                              ; preds = %195
  %205 = load ptr, ptr %5, align 8, !tbaa !9
  %206 = load i32, ptr %31, align 4, !tbaa !5
  %207 = icmp eq i32 %206, 0
  %208 = zext i1 %207 to i32
  %209 = load i32, ptr %31, align 4, !tbaa !5
  %210 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %205, i32 noundef 4006, i32 noundef %209)
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %204
  call void @_test_failed(ptr noundef @.str, i32 noundef 242) #8
  unreachable

213:                                              ; preds = %204
  %214 = load ptr, ptr %5, align 8, !tbaa !9
  %215 = load i32, ptr %32, align 4, !tbaa !5
  %216 = icmp eq i32 %215, 0
  %217 = zext i1 %216 to i32
  %218 = load i32, ptr %32, align 4, !tbaa !5
  %219 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %214, i32 noundef 4020, i32 noundef %218)
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %222

221:                                              ; preds = %213
  call void @_test_failed(ptr noundef @.str, i32 noundef 243) #8
  unreachable

222:                                              ; preds = %213
  %223 = load ptr, ptr %5, align 8, !tbaa !9
  %224 = load i32, ptr %33, align 4, !tbaa !5
  %225 = icmp eq i32 %224, 0
  %226 = zext i1 %225 to i32
  %227 = load i32, ptr %33, align 4, !tbaa !5
  %228 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %223, i32 noundef 4010, i32 noundef %227)
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %231

230:                                              ; preds = %222
  call void @_test_failed(ptr noundef @.str, i32 noundef 244) #8
  unreachable

231:                                              ; preds = %222
  %232 = load ptr, ptr %5, align 8, !tbaa !9
  %233 = load i32, ptr %34, align 4, !tbaa !5
  %234 = icmp eq i32 %233, 0
  %235 = zext i1 %234 to i32
  %236 = load i32, ptr %34, align 4, !tbaa !5
  %237 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %232, i32 noundef 4004, i32 noundef %236)
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %240

239:                                              ; preds = %231
  call void @_test_failed(ptr noundef @.str, i32 noundef 245) #8
  unreachable

240:                                              ; preds = %231
  %241 = load ptr, ptr %5, align 8, !tbaa !9
  %242 = load i32, ptr %35, align 4, !tbaa !5
  %243 = icmp eq i32 %242, 0
  %244 = zext i1 %243 to i32
  %245 = load i32, ptr %35, align 4, !tbaa !5
  %246 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %241, i32 noundef 4024, i32 noundef %245)
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %249

248:                                              ; preds = %240
  call void @_test_failed(ptr noundef @.str, i32 noundef 246) #8
  unreachable

249:                                              ; preds = %240
  %250 = load ptr, ptr %5, align 8, !tbaa !9
  %251 = load i32, ptr %36, align 4, !tbaa !5
  %252 = icmp eq i32 %251, 0
  %253 = zext i1 %252 to i32
  %254 = load i32, ptr %36, align 4, !tbaa !5
  %255 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %250, i32 noundef 4012, i32 noundef %254)
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %249
  call void @_test_failed(ptr noundef @.str, i32 noundef 247) #8
  unreachable

258:                                              ; preds = %249
  %259 = load ptr, ptr %5, align 8, !tbaa !9
  %260 = load i32, ptr %37, align 4, !tbaa !5
  %261 = icmp eq i32 %260, 0
  %262 = zext i1 %261 to i32
  %263 = load i32, ptr %37, align 4, !tbaa !5
  %264 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %259, i32 noundef 4014, i32 noundef %263)
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %267

266:                                              ; preds = %258
  call void @_test_failed(ptr noundef @.str, i32 noundef 248) #8
  unreachable

267:                                              ; preds = %258
  %268 = load ptr, ptr %5, align 8, !tbaa !9
  %269 = load i32, ptr %38, align 4, !tbaa !5
  %270 = icmp eq i32 %269, 0
  %271 = zext i1 %270 to i32
  %272 = load i32, ptr %38, align 4, !tbaa !5
  %273 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %268, i32 noundef 4036, i32 noundef %272)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %276

275:                                              ; preds = %267
  call void @_test_failed(ptr noundef @.str, i32 noundef 249) #8
  unreachable

276:                                              ; preds = %267
  %277 = load ptr, ptr %5, align 8, !tbaa !9
  %278 = load i32, ptr %39, align 4, !tbaa !5
  %279 = icmp eq i32 %278, 0
  %280 = zext i1 %279 to i32
  %281 = load i32, ptr %39, align 4, !tbaa !5
  %282 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %277, i32 noundef 4042, i32 noundef %281)
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %285

284:                                              ; preds = %276
  call void @_test_failed(ptr noundef @.str, i32 noundef 250) #8
  unreachable

285:                                              ; preds = %276
  %286 = load ptr, ptr %5, align 8, !tbaa !9
  %287 = load i32, ptr %40, align 4, !tbaa !5
  %288 = icmp eq i32 %287, 0
  %289 = zext i1 %288 to i32
  %290 = load i32, ptr %40, align 4, !tbaa !5
  %291 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %286, i32 noundef 4016, i32 noundef %290)
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %294

293:                                              ; preds = %285
  call void @_test_failed(ptr noundef @.str, i32 noundef 251) #8
  unreachable

294:                                              ; preds = %285
  %295 = load ptr, ptr %5, align 8, !tbaa !9
  %296 = load i32, ptr %43, align 4, !tbaa !5
  %297 = icmp eq i32 %296, 0
  %298 = zext i1 %297 to i32
  %299 = load i32, ptr %43, align 4, !tbaa !5
  %300 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %295, i32 noundef 4040, i32 noundef %299)
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %303

302:                                              ; preds = %294
  call void @_test_failed(ptr noundef @.str, i32 noundef 252) #8
  unreachable

303:                                              ; preds = %294
  %304 = load ptr, ptr %5, align 8, !tbaa !9
  %305 = load i32, ptr %27, align 4, !tbaa !5
  %306 = load i32, ptr %42, align 4, !tbaa !5
  %307 = load ptr, ptr %6, align 8, !tbaa !9
  %308 = call i32 @test_encode(ptr noundef %304, i32 noundef %305, i32 noundef %306, ptr noundef %307)
  %309 = icmp ne i32 %308, 0
  br i1 %309, label %310, label %330

310:                                              ; preds = %303
  %311 = load ptr, ptr @stderr, align 8, !tbaa !9
  %312 = load i32, ptr %26, align 4, !tbaa !5
  %313 = sdiv i32 %312, 1000
  %314 = load i32, ptr %27, align 4, !tbaa !5
  %315 = load i32, ptr %28, align 4, !tbaa !5
  %316 = load i32, ptr %29, align 4, !tbaa !5
  %317 = load i32, ptr %30, align 4, !tbaa !5
  %318 = load i32, ptr %31, align 4, !tbaa !5
  %319 = load i32, ptr %32, align 4, !tbaa !5
  %320 = load i32, ptr %33, align 4, !tbaa !5
  %321 = load i32, ptr %34, align 4, !tbaa !5
  %322 = load i32, ptr %35, align 4, !tbaa !5
  %323 = load i32, ptr %36, align 4, !tbaa !5
  %324 = load i32, ptr %37, align 4, !tbaa !5
  %325 = load i32, ptr %38, align 4, !tbaa !5
  %326 = load i32, ptr %39, align 4, !tbaa !5
  %327 = load i32, ptr %40, align 4, !tbaa !5
  %328 = load i32, ptr %41, align 4, !tbaa !5
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %311, ptr noundef @.str.3, i32 noundef %313, i32 noundef %314, i32 noundef %315, i32 noundef %316, i32 noundef %317, i32 noundef %318, i32 noundef %319, i32 noundef %320, i32 noundef %321, i32 noundef %322, i32 noundef %323, i32 noundef %324, i32 noundef %325, i32 noundef %326, i32 noundef %327, i32 noundef %328) #7
  call void @_test_failed(ptr noundef @.str, i32 noundef 263) #8
  unreachable

330:                                              ; preds = %303
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %331

331:                                              ; preds = %330
  %332 = load i32, ptr %8, align 4, !tbaa !5
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %8, align 4, !tbaa !5
  br label %88, !llvm.loop !11

334:                                              ; preds = %88
  %335 = load ptr, ptr %5, align 8, !tbaa !9
  call void @opus_encoder_destroy(ptr noundef %335)
  %336 = load ptr, ptr %6, align 8, !tbaa !9
  call void @opus_decoder_destroy(ptr noundef %336)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %337

337:                                              ; preds = %334
  %338 = load i32, ptr %7, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %7, align 4, !tbaa !5
  br label %44, !llvm.loop !13

340:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 36, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 44, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 44, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

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

declare void @opus_encoder_destroy(ptr noundef) #6

declare void @opus_decoder_destroy(ptr noundef) #6

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

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

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


; 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 [93 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@__const.fuzz_encoder_settings.sampling_rates = external hidden unnamed_addr constant [5 x i32], align 16
@__const.fuzz_encoder_settings.channels = external hidden unnamed_addr constant [2 x i32], align 4
@__const.fuzz_encoder_settings.applications = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.bitrates = external hidden unnamed_addr constant [11 x i32], align 16
@__const.fuzz_encoder_settings.force_channels = external hidden unnamed_addr constant [4 x i32], align 16
@__const.fuzz_encoder_settings.use_vbr = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.vbr_constraints = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.complexities = external hidden unnamed_addr constant [11 x i32], align 16
@__const.fuzz_encoder_settings.max_bandwidths = external hidden unnamed_addr constant [6 x i32], align 16
@__const.fuzz_encoder_settings.signals = external hidden unnamed_addr constant [4 x i32], align 16
@__const.fuzz_encoder_settings.inband_fecs = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.packet_loss_perc = external hidden unnamed_addr constant [4 x i32], align 16
@__const.fuzz_encoder_settings.lsb_depths = external hidden unnamed_addr constant [2 x i32], align 4
@__const.fuzz_encoder_settings.prediction_disabled = external hidden unnamed_addr constant [3 x i32], align 4
@__const.fuzz_encoder_settings.use_dtx = external hidden unnamed_addr constant [2 x i32], align 4
@__const.fuzz_encoder_settings.frame_sizes_ms_x2 = external hidden unnamed_addr constant [9 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [232 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @fast_rand() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_frame_size_enum(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @_test_failed(ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @fuzz_encoder_settings(i32 noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %4 = icmp sgt i32 %0, 0
  br i1 %4, label %.lr.ph331, label %._crit_edge332

.lr.ph331:                                        ; preds = %2
  %5 = icmp sgt i32 %1, 0
  br i1 %5, label %.lr.ph331.split.us, label %.lr.ph331.split

.lr.ph331.split.us:                               ; preds = %.lr.ph331, %._crit_edge.us
  %.0329.us = phi i32 [ %144, %._crit_edge.us ], [ 0, %.lr.ph331 ]
  %6 = call i32 @fast_rand()
  %7 = urem i32 %6, 20
  %8 = lshr i32 %7, 2
  %9 = zext nneg i32 %8 to i64
  %10 = getelementptr inbounds [5 x i32], ptr @__const.fuzz_encoder_settings.sampling_rates, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = call i32 @fast_rand()
  %13 = lshr i32 %12, 2
  %14 = and i32 %13, 1
  %15 = zext nneg i32 %14 to i64
  %16 = getelementptr inbounds [2 x i32], ptr @__const.fuzz_encoder_settings.channels, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = call i32 @fast_rand()
  %19 = urem i32 %18, 12
  %20 = lshr i32 %19, 2
  %21 = zext nneg i32 %20 to i64
  %22 = getelementptr inbounds [3 x i32], ptr @__const.fuzz_encoder_settings.applications, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = call ptr @opus_decoder_create(i32 noundef %11, i32 noundef %17, ptr noundef nonnull %3) #7
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp ne i32 %25, 0
  %27 = icmp eq ptr %24, null
  %or.cond.us = select i1 %26, i1 true, i1 %27
  br i1 %or.cond.us, label %.split.us, label %28

28:                                               ; preds = %.lr.ph331.split.us
  %29 = call ptr @opus_encoder_create(i32 noundef %11, i32 noundef %17, i32 noundef %23, ptr noundef nonnull %3) #7
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = icmp ne i32 %30, 0
  %32 = icmp eq ptr %29, null
  %or.cond3.us = select i1 %31, i1 true, i1 %32
  br i1 %or.cond3.us, label %.split334.us, label %.preheader.us

33:                                               ; preds = %142
  %34 = add nuw nsw i32 %.084328.us, 1
  %exitcond625.not = icmp eq i32 %34, %1
  br i1 %exitcond625.not, label %._crit_edge.us, label %.preheader.us, !llvm.loop !9

.preheader.us:                                    ; preds = %28, %33
  %.084328.us = phi i32 [ %34, %33 ], [ 0, %28 ]
  %35 = call i32 @fast_rand()
  %36 = urem i32 %35, 44
  %37 = lshr i32 %36, 2
  %38 = zext nneg i32 %37 to i64
  %39 = getelementptr inbounds [11 x i32], ptr @__const.fuzz_encoder_settings.bitrates, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = call i32 @fast_rand()
  %42 = lshr i32 %41, 2
  %43 = and i32 %42, 3
  %44 = zext nneg i32 %43 to i64
  %45 = getelementptr inbounds [4 x i32], ptr @__const.fuzz_encoder_settings.force_channels, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = call i32 @fast_rand()
  %48 = urem i32 %47, 12
  %49 = lshr i32 %48, 2
  %50 = zext nneg i32 %49 to i64
  %51 = getelementptr inbounds [3 x i32], ptr @__const.fuzz_encoder_settings.use_vbr, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = call i32 @fast_rand()
  %54 = urem i32 %53, 12
  %55 = lshr i32 %54, 2
  %56 = zext nneg i32 %55 to i64
  %57 = getelementptr inbounds [3 x i32], ptr @__const.fuzz_encoder_settings.vbr_constraints, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = call i32 @fast_rand()
  %60 = urem i32 %59, 44
  %61 = lshr i32 %60, 2
  %62 = zext nneg i32 %61 to i64
  %63 = getelementptr inbounds [11 x i32], ptr @__const.fuzz_encoder_settings.complexities, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = call i32 @fast_rand()
  %66 = urem i32 %65, 24
  %67 = lshr i32 %66, 2
  %68 = zext nneg i32 %67 to i64
  %69 = getelementptr inbounds [6 x i32], ptr @__const.fuzz_encoder_settings.max_bandwidths, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = call i32 @fast_rand()
  %72 = lshr i32 %71, 2
  %73 = and i32 %72, 3
  %74 = zext nneg i32 %73 to i64
  %75 = getelementptr inbounds [4 x i32], ptr @__const.fuzz_encoder_settings.signals, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = call i32 @fast_rand()
  %78 = urem i32 %77, 12
  %79 = lshr i32 %78, 2
  %80 = zext nneg i32 %79 to i64
  %81 = getelementptr inbounds [3 x i32], ptr @__const.fuzz_encoder_settings.inband_fecs, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = call i32 @fast_rand()
  %84 = lshr i32 %83, 2
  %85 = and i32 %84, 3
  %86 = zext nneg i32 %85 to i64
  %87 = getelementptr inbounds [4 x i32], ptr @__const.fuzz_encoder_settings.packet_loss_perc, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = call i32 @fast_rand()
  %90 = lshr i32 %89, 2
  %91 = and i32 %90, 1
  %92 = zext nneg i32 %91 to i64
  %93 = getelementptr inbounds [2 x i32], ptr @__const.fuzz_encoder_settings.lsb_depths, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = call i32 @fast_rand()
  %96 = urem i32 %95, 12
  %97 = lshr i32 %96, 2
  %98 = zext nneg i32 %97 to i64
  %99 = getelementptr inbounds [3 x i32], ptr @__const.fuzz_encoder_settings.prediction_disabled, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = call i32 @fast_rand()
  %102 = lshr i32 %101, 2
  %103 = and i32 %102, 1
  %104 = zext nneg i32 %103 to i64
  %105 = getelementptr inbounds [2 x i32], ptr @__const.fuzz_encoder_settings.use_dtx, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = call i32 @fast_rand()
  %108 = urem i32 %107, 36
  %109 = lshr i32 %108, 2
  %110 = zext nneg i32 %109 to i64
  %111 = getelementptr inbounds [9 x i32], ptr @__const.fuzz_encoder_settings.frame_sizes_ms_x2, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = mul nsw i32 %112, %11
  %114 = sdiv i32 %113, 2000
  %115 = call i32 @get_frame_size_enum(i32 noundef %114, i32 noundef %11)
  %116 = call i32 @llvm.smin.i32(i32 %46, i32 %17)
  %117 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4002, i32 noundef %40) #7
  %.not.us = icmp eq i32 %117, 0
  br i1 %.not.us, label %118, label %.split336.us

118:                                              ; preds = %.preheader.us
  %119 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4022, i32 noundef %116) #7
  %.not87.us = icmp eq i32 %119, 0
  br i1 %.not87.us, label %120, label %.split338.us

120:                                              ; preds = %118
  %121 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4006, i32 noundef %52) #7
  %.not88.us = icmp eq i32 %121, 0
  br i1 %.not88.us, label %122, label %.split340.us

122:                                              ; preds = %120
  %123 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4020, i32 noundef %58) #7
  %.not89.us = icmp eq i32 %123, 0
  br i1 %.not89.us, label %124, label %.split342.us

124:                                              ; preds = %122
  %125 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4010, i32 noundef %64) #7
  %.not90.us = icmp eq i32 %125, 0
  br i1 %.not90.us, label %126, label %.split344.us

126:                                              ; preds = %124
  %127 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4004, i32 noundef %70) #7
  %.not91.us = icmp eq i32 %127, 0
  br i1 %.not91.us, label %128, label %.split346.us

128:                                              ; preds = %126
  %129 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4024, i32 noundef %76) #7
  %.not92.us = icmp eq i32 %129, 0
  br i1 %.not92.us, label %130, label %.split348.us

130:                                              ; preds = %128
  %131 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4012, i32 noundef %82) #7
  %.not93.us = icmp eq i32 %131, 0
  br i1 %.not93.us, label %132, label %.split350.us

132:                                              ; preds = %130
  %133 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4014, i32 noundef %88) #7
  %.not94.us = icmp eq i32 %133, 0
  br i1 %.not94.us, label %134, label %.split352.us

134:                                              ; preds = %132
  %135 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4036, i32 noundef %94) #7
  %.not95.us = icmp eq i32 %135, 0
  br i1 %.not95.us, label %136, label %.split354.us

136:                                              ; preds = %134
  %137 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4042, i32 noundef %100) #7
  %.not96.us = icmp eq i32 %137, 0
  br i1 %.not96.us, label %138, label %.split356.us

138:                                              ; preds = %136
  %139 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4016, i32 noundef %106) #7
  %.not97.us = icmp eq i32 %139, 0
  br i1 %.not97.us, label %140, label %.split358.us

140:                                              ; preds = %138
  %141 = call i32 (ptr, i32, ...) @opus_encoder_ctl(ptr noundef %29, i32 noundef 4040, i32 noundef %115) #7
  %.not98.us = icmp eq i32 %141, 0
  br i1 %.not98.us, label %142, label %.split360.us

142:                                              ; preds = %140
  %143 = call i32 @test_encode(ptr noundef %29, i32 noundef %17, i32 noundef %114, ptr noundef %24)
  %.not99.us = icmp eq i32 %143, 0
  br i1 %.not99.us, label %33, label %.split362.us

._crit_edge.us:                                   ; preds = %33
  call void @opus_encoder_destroy(ptr noundef %29) #7
  call void @opus_decoder_destroy(ptr noundef %24) #7
  %144 = add nuw nsw i32 %.0329.us, 1
  %exitcond626.not = icmp eq i32 %144, %0
  br i1 %exitcond626.not, label %._crit_edge332, label %.lr.ph331.split.us, !llvm.loop !11

.lr.ph331.split:                                  ; preds = %.lr.ph331, %.preheader
  %.0329 = phi i32 [ %172, %.preheader ], [ 0, %.lr.ph331 ]
  %145 = call i32 @fast_rand()
  %146 = urem i32 %145, 20
  %147 = lshr i32 %146, 2
  %148 = zext nneg i32 %147 to i64
  %149 = getelementptr inbounds [5 x i32], ptr @__const.fuzz_encoder_settings.sampling_rates, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = call i32 @fast_rand()
  %152 = lshr i32 %151, 2
  %153 = and i32 %152, 1
  %154 = zext nneg i32 %153 to i64
  %155 = getelementptr inbounds [2 x i32], ptr @__const.fuzz_encoder_settings.channels, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = call i32 @fast_rand()
  %158 = urem i32 %157, 12
  %159 = lshr i32 %158, 2
  %160 = zext nneg i32 %159 to i64
  %161 = getelementptr inbounds [3 x i32], ptr @__const.fuzz_encoder_settings.applications, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = call ptr @opus_decoder_create(i32 noundef %150, i32 noundef %156, ptr noundef nonnull %3) #7
  %164 = load i32, ptr %3, align 4, !tbaa !5
  %165 = icmp ne i32 %164, 0
  %166 = icmp eq ptr %163, null
  %or.cond = select i1 %165, i1 true, i1 %166
  br i1 %or.cond, label %.split.us, label %167

.split.us:                                        ; preds = %.lr.ph331.split, %.lr.ph331.split.us
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 217) #8
  unreachable

167:                                              ; preds = %.lr.ph331.split
  %168 = call ptr @opus_encoder_create(i32 noundef %150, i32 noundef %156, i32 noundef %162, ptr noundef nonnull %3) #7
  %169 = load i32, ptr %3, align 4, !tbaa !5
  %170 = icmp ne i32 %169, 0
  %171 = icmp eq ptr %168, null
  %or.cond3 = select i1 %170, i1 true, i1 %171
  br i1 %or.cond3, label %.split334.us, label %.preheader

.preheader:                                       ; preds = %167
  call void @opus_encoder_destroy(ptr noundef nonnull %168) #7
  call void @opus_decoder_destroy(ptr noundef nonnull %163) #7
  %172 = add nuw nsw i32 %.0329, 1
  %exitcond.not = icmp eq i32 %172, %0
  br i1 %exitcond.not, label %._crit_edge332, label %.lr.ph331.split, !llvm.loop !11

.split334.us:                                     ; preds = %167, %28
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 220) #8
  unreachable

.split336.us:                                     ; preds = %.preheader.us
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 240) #8
  unreachable

.split338.us:                                     ; preds = %118
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 241) #8
  unreachable

.split340.us:                                     ; preds = %120
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 242) #8
  unreachable

.split342.us:                                     ; preds = %122
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 243) #8
  unreachable

.split344.us:                                     ; preds = %124
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 244) #8
  unreachable

.split346.us:                                     ; preds = %126
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 245) #8
  unreachable

.split348.us:                                     ; preds = %128
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 246) #8
  unreachable

.split350.us:                                     ; preds = %130
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 247) #8
  unreachable

.split352.us:                                     ; preds = %132
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 248) #8
  unreachable

.split354.us:                                     ; preds = %134
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 249) #8
  unreachable

.split356.us:                                     ; preds = %136
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 250) #8
  unreachable

.split358.us:                                     ; preds = %138
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 251) #8
  unreachable

.split360.us:                                     ; preds = %140
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 252) #8
  unreachable

.split362.us:                                     ; preds = %142
  %173 = load ptr, ptr @stderr, align 8, !tbaa !12
  %174 = sdiv i32 %11, 1000
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef nonnull @.str.3, i32 noundef %174, i32 noundef %17, i32 noundef %23, i32 noundef %40, i32 noundef %116, i32 noundef %52, i32 noundef %58, i32 noundef %64, i32 noundef %70, i32 noundef %76, i32 noundef %82, i32 noundef %88, i32 noundef %94, i32 noundef %100, i32 noundef %106, i32 noundef %112) #9
  call void @_test_failed(ptr noundef nonnull @.str, i32 noundef 263) #8
  unreachable

._crit_edge332:                                   ; preds = %.preheader, %._crit_edge.us, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret void
}

declare ptr @opus_decoder_create(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare ptr @opus_encoder_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @opus_encoder_ctl(ptr noundef, i32 noundef, ...) local_unnamed_addr #5

declare void @opus_encoder_destroy(ptr noundef) local_unnamed_addr #5

declare void @opus_decoder_destroy(ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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


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