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

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

@null_int_ptr = external dso_local global ptr, align 8
@null_uint_ptr = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [56 x i8], align 1
@__const.test_dec_api.l1res = external hidden unnamed_addr constant [4 x i32], align 16
@.str.18 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [56 x i8], align 1
@opus_rates = external hidden constant [5 x i32], align 16
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @test_dec_api() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [1276 x i8], align 16
  %8 = alloca [1920 x float], align 16
  %9 = alloca [1920 x i16], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [4 x i32], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 1276, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 7680, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 3840, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  %18 = load ptr, ptr @stdout, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str) #8
  %20 = load ptr, ptr @stdout, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.1) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %60, %0
  %23 = load i32, ptr %10, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 4
  br i1 %24, label %25, label %63

25:                                               ; preds = %22
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = call i32 @opus_decoder_get_size(i32 noundef %26)
  store i32 %27, ptr %4, align 4, !tbaa !5
  %28 = load i32, ptr %10, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %33, label %30

30:                                               ; preds = %25
  %31 = load i32, ptr %10, align 4, !tbaa !5
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %39

33:                                               ; preds = %30, %25
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp sle i32 %34, 2048
  br i1 %35, label %48, label %36

36:                                               ; preds = %33
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 65536
  br i1 %38, label %48, label %39

39:                                               ; preds = %36, %30
  %40 = load i32, ptr %10, align 4, !tbaa !5
  %41 = icmp ne i32 %40, 1
  br i1 %41, label %42, label %49

42:                                               ; preds = %39
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = icmp ne i32 %43, 2
  br i1 %44, label %45, label %49

45:                                               ; preds = %42
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45, %36, %33
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 106) #9
  unreachable

49:                                               ; preds = %45, %42, %39
  %50 = load ptr, ptr @stdout, align 8, !tbaa !9
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 0
  %55 = zext i1 %54 to i64
  %56 = select i1 %54, ptr @.str.4, ptr @.str.5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.3, i32 noundef %51, i32 noundef %52, ptr noundef %56) #8
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %6, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %49
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %10, align 4, !tbaa !5
  br label %22, !llvm.loop !11

63:                                               ; preds = %22
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %147, %63
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = icmp slt i32 %65, 4
  br i1 %66, label %67, label %150

67:                                               ; preds = %64
  store i32 -7, ptr %4, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %143, %67
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = icmp sle i32 %69, 96000
  br i1 %70, label %71, label %146

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = icmp eq i32 %72, 8000
  br i1 %73, label %86, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = icmp eq i32 %75, 12000
  br i1 %76, label %86, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = icmp eq i32 %78, 16000
  br i1 %79, label %86, label %80

80:                                               ; preds = %77
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 24000
  br i1 %82, label %86, label %83

83:                                               ; preds = %80
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 48000
  br i1 %85, label %86, label %93

86:                                               ; preds = %83, %80, %77, %74, %71
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = icmp eq i32 %87, 1
  br i1 %88, label %92, label %89

89:                                               ; preds = %86
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = icmp eq i32 %90, 2
  br i1 %91, label %92, label %93

92:                                               ; preds = %89, %86
  store i32 10, ptr %13, align 4
  br label %140

93:                                               ; preds = %89, %83
  %94 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %94, label %98 [
    i32 -5, label %95
    i32 -6, label %96
    i32 -7, label %97
  ]

95:                                               ; preds = %93
  store i32 -8000, ptr %12, align 4, !tbaa !5
  br label %100

96:                                               ; preds = %93
  store i32 2147483647, ptr %12, align 4, !tbaa !5
  br label %100

97:                                               ; preds = %93
  store i32 -2147483648, ptr %12, align 4, !tbaa !5
  br label %100

98:                                               ; preds = %93
  %99 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %99, ptr %12, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %98, %97, %96, %95
  store i32 0, ptr %11, align 4, !tbaa !5
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = call ptr @opus_decoder_create(i32 noundef %101, i32 noundef %102, ptr noundef %11)
  store ptr %103, ptr %2, align 8, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = icmp ne i32 %104, -1
  br i1 %105, label %109, label %106

106:                                              ; preds = %100
  %107 = load ptr, ptr %2, align 8, !tbaa !9
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %110

109:                                              ; preds = %106, %100
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 128) #9
  unreachable

110:                                              ; preds = %106
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %6, align 4, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = call ptr @opus_decoder_create(i32 noundef %113, i32 noundef %114, ptr noundef null)
  store ptr %115, ptr %2, align 8, !tbaa !9
  %116 = load ptr, ptr %2, align 8, !tbaa !9
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %119

118:                                              ; preds = %110
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 131) #9
  unreachable

119:                                              ; preds = %110
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %6, align 4, !tbaa !5
  %122 = call i32 @opus_decoder_get_size(i32 noundef 2)
  %123 = sext i32 %122 to i64
  %124 = call noalias ptr @malloc(i64 noundef %123) #10
  store ptr %124, ptr %2, align 8, !tbaa !9
  %125 = load ptr, ptr %2, align 8, !tbaa !9
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %128

127:                                              ; preds = %119
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 134) #9
  unreachable

128:                                              ; preds = %119
  %129 = load ptr, ptr %2, align 8, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = call i32 @opus_decoder_init(ptr noundef %129, i32 noundef %130, i32 noundef %131)
  store i32 %132, ptr %11, align 4, !tbaa !5
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = icmp ne i32 %133, -1
  br i1 %134, label %135, label %136

135:                                              ; preds = %128
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 136) #9
  unreachable

136:                                              ; preds = %128
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %6, align 4, !tbaa !5
  %139 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %139) #8
  store i32 0, ptr %13, align 4
  br label %140

140:                                              ; preds = %136, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %141 = load i32, ptr %13, align 4
  switch i32 %141, label %809 [
    i32 0, label %142
    i32 10, label %143
  ]

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142, %140
  %144 = load i32, ptr %4, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %4, align 4, !tbaa !5
  br label %68, !llvm.loop !13

146:                                              ; preds = %68
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %10, align 4, !tbaa !5
  br label %64, !llvm.loop !14

150:                                              ; preds = %64
  %151 = call ptr @opus_decoder_create(i32 noundef 48000, i32 noundef 2, ptr noundef %11)
  store ptr %151, ptr %2, align 8, !tbaa !9
  %152 = load i32, ptr %11, align 4, !tbaa !5
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %157, label %154

154:                                              ; preds = %150
  %155 = load ptr, ptr %2, align 8, !tbaa !9
  %156 = icmp eq ptr %155, null
  br i1 %156, label %157, label %158

157:                                              ; preds = %154, %150
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 144) #9
  unreachable

158:                                              ; preds = %154
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %6, align 4, !tbaa !5
  %161 = load ptr, ptr @stdout, align 8, !tbaa !9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.6) #8
  %163 = load ptr, ptr @stdout, align 8, !tbaa !9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.7) #8
  %165 = load ptr, ptr %2, align 8, !tbaa !9
  %166 = load ptr, ptr @null_uint_ptr, align 8, !tbaa !9
  %167 = load ptr, ptr @null_uint_ptr, align 8, !tbaa !9
  %168 = load ptr, ptr @null_uint_ptr, align 8, !tbaa !9
  %169 = ptrtoint ptr %167 to i64
  %170 = ptrtoint ptr %168 to i64
  %171 = sub i64 %169, %170
  %172 = sdiv exact i64 %171, 4
  %173 = getelementptr inbounds i32, ptr %166, i64 %172
  %174 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %165, i32 noundef 4031, ptr noundef %173)
  store i32 %174, ptr %11, align 4, !tbaa !5
  %175 = load i32, ptr %11, align 4, !tbaa !5
  %176 = icmp ne i32 %175, -1
  br i1 %176, label %177, label %178

177:                                              ; preds = %158
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 152) #9
  unreachable

178:                                              ; preds = %158
  %179 = load ptr, ptr %2, align 8, !tbaa !9
  %180 = ptrtoint ptr %1 to i64
  %181 = ptrtoint ptr %1 to i64
  %182 = sub i64 %180, %181
  %183 = sdiv exact i64 %182, 4
  %184 = getelementptr inbounds i32, ptr %1, i64 %183
  %185 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %179, i32 noundef 4031, ptr noundef %184)
  store i32 %185, ptr %11, align 4, !tbaa !5
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %189

188:                                              ; preds = %178
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 155) #9
  unreachable

189:                                              ; preds = %178
  %190 = load ptr, ptr @stdout, align 8, !tbaa !9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.8) #8
  %192 = load i32, ptr %6, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %6, align 4, !tbaa !5
  %194 = load ptr, ptr %2, align 8, !tbaa !9
  %195 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %194, i32 noundef -5)
  store i32 %195, ptr %11, align 4, !tbaa !5
  %196 = load i32, ptr %11, align 4, !tbaa !5
  %197 = icmp ne i32 %196, -5
  br i1 %197, label %198, label %199

198:                                              ; preds = %189
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 161) #9
  unreachable

199:                                              ; preds = %189
  %200 = load ptr, ptr @stdout, align 8, !tbaa !9
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.9) #8
  %202 = load i32, ptr %6, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %6, align 4, !tbaa !5
  %204 = load ptr, ptr %2, align 8, !tbaa !9
  %205 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %206 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %207 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %208 = ptrtoint ptr %206 to i64
  %209 = ptrtoint ptr %207 to i64
  %210 = sub i64 %208, %209
  %211 = sdiv exact i64 %210, 4
  %212 = getelementptr inbounds i32, ptr %205, i64 %211
  %213 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %204, i32 noundef 4009, ptr noundef %212)
  store i32 %213, ptr %11, align 4, !tbaa !5
  %214 = load i32, ptr %11, align 4, !tbaa !5
  %215 = icmp ne i32 %214, -1
  br i1 %215, label %216, label %217

216:                                              ; preds = %199
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 166) #9
  unreachable

217:                                              ; preds = %199
  %218 = load ptr, ptr %2, align 8, !tbaa !9
  %219 = ptrtoint ptr %4 to i64
  %220 = ptrtoint ptr %4 to i64
  %221 = sub i64 %219, %220
  %222 = sdiv exact i64 %221, 4
  %223 = getelementptr inbounds i32, ptr %4, i64 %222
  %224 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %218, i32 noundef 4009, ptr noundef %223)
  store i32 %224, ptr %11, align 4, !tbaa !5
  %225 = load i32, ptr %11, align 4, !tbaa !5
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %230, label %227

227:                                              ; preds = %217
  %228 = load i32, ptr %4, align 4, !tbaa !5
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %231

230:                                              ; preds = %227, %217
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 169) #9
  unreachable

231:                                              ; preds = %227
  %232 = load ptr, ptr @stdout, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.10) #8
  %234 = load i32, ptr %6, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %6, align 4, !tbaa !5
  %236 = load ptr, ptr %2, align 8, !tbaa !9
  %237 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %238 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %239 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %240 = ptrtoint ptr %238 to i64
  %241 = ptrtoint ptr %239 to i64
  %242 = sub i64 %240, %241
  %243 = sdiv exact i64 %242, 4
  %244 = getelementptr inbounds i32, ptr %237, i64 %243
  %245 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %236, i32 noundef 4029, ptr noundef %244)
  store i32 %245, ptr %11, align 4, !tbaa !5
  %246 = load i32, ptr %11, align 4, !tbaa !5
  %247 = icmp ne i32 %246, -1
  br i1 %247, label %248, label %249

248:                                              ; preds = %231
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 174) #9
  unreachable

249:                                              ; preds = %231
  %250 = load ptr, ptr %2, align 8, !tbaa !9
  %251 = ptrtoint ptr %4 to i64
  %252 = ptrtoint ptr %4 to i64
  %253 = sub i64 %251, %252
  %254 = sdiv exact i64 %253, 4
  %255 = getelementptr inbounds i32, ptr %4, i64 %254
  %256 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %250, i32 noundef 4029, ptr noundef %255)
  store i32 %256, ptr %11, align 4, !tbaa !5
  %257 = load i32, ptr %11, align 4, !tbaa !5
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %262, label %259

259:                                              ; preds = %249
  %260 = load i32, ptr %4, align 4, !tbaa !5
  %261 = icmp ne i32 %260, 48000
  br i1 %261, label %262, label %263

262:                                              ; preds = %259, %249
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 177) #9
  unreachable

263:                                              ; preds = %259
  %264 = load ptr, ptr @stdout, align 8, !tbaa !9
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.11) #8
  %266 = load i32, ptr %6, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %6, align 4, !tbaa !5
  %268 = load ptr, ptr %2, align 8, !tbaa !9
  %269 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %270 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %271 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %272 = ptrtoint ptr %270 to i64
  %273 = ptrtoint ptr %271 to i64
  %274 = sub i64 %272, %273
  %275 = sdiv exact i64 %274, 4
  %276 = getelementptr inbounds i32, ptr %269, i64 %275
  %277 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %268, i32 noundef 4033, ptr noundef %276)
  store i32 %277, ptr %11, align 4, !tbaa !5
  %278 = load i32, ptr %11, align 4, !tbaa !5
  %279 = icmp ne i32 %278, -1
  br i1 %279, label %280, label %281

280:                                              ; preds = %263
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 183) #9
  unreachable

281:                                              ; preds = %263
  %282 = load i32, ptr %6, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %6, align 4, !tbaa !5
  %284 = load ptr, ptr %2, align 8, !tbaa !9
  %285 = ptrtoint ptr %4 to i64
  %286 = ptrtoint ptr %4 to i64
  %287 = sub i64 %285, %286
  %288 = sdiv exact i64 %287, 4
  %289 = getelementptr inbounds i32, ptr %4, i64 %288
  %290 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %284, i32 noundef 4033, ptr noundef %289)
  store i32 %290, ptr %11, align 4, !tbaa !5
  %291 = load i32, ptr %11, align 4, !tbaa !5
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %299, label %293

293:                                              ; preds = %281
  %294 = load i32, ptr %4, align 4, !tbaa !5
  %295 = icmp sgt i32 %294, 0
  br i1 %295, label %299, label %296

296:                                              ; preds = %293
  %297 = load i32, ptr %4, align 4, !tbaa !5
  %298 = icmp slt i32 %297, -1
  br i1 %298, label %299, label %300

299:                                              ; preds = %296, %293, %281
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 187) #9
  unreachable

300:                                              ; preds = %296
  %301 = load i32, ptr %6, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %6, align 4, !tbaa !5
  %303 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 -4, ptr %303, align 16, !tbaa !15
  %304 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 2
  store i8 0, ptr %304, align 2, !tbaa !15
  %305 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 1
  store i8 0, ptr %305, align 1, !tbaa !15
  %306 = load ptr, ptr %2, align 8, !tbaa !9
  %307 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %308 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %309 = call i32 @opus_decode(ptr noundef %306, ptr noundef %307, i32 noundef 3, ptr noundef %308, i32 noundef 960, i32 noundef 0)
  %310 = icmp ne i32 %309, 960
  br i1 %310, label %311, label %312

311:                                              ; preds = %300
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 191) #9
  unreachable

312:                                              ; preds = %300
  %313 = load i32, ptr %6, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %6, align 4, !tbaa !5
  %315 = load ptr, ptr %2, align 8, !tbaa !9
  %316 = ptrtoint ptr %4 to i64
  %317 = ptrtoint ptr %4 to i64
  %318 = sub i64 %316, %317
  %319 = sdiv exact i64 %318, 4
  %320 = getelementptr inbounds i32, ptr %4, i64 %319
  %321 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %315, i32 noundef 4033, ptr noundef %320)
  store i32 %321, ptr %11, align 4, !tbaa !5
  %322 = load i32, ptr %11, align 4, !tbaa !5
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %330, label %324

324:                                              ; preds = %312
  %325 = load i32, ptr %4, align 4, !tbaa !5
  %326 = icmp sgt i32 %325, 0
  br i1 %326, label %330, label %327

327:                                              ; preds = %324
  %328 = load i32, ptr %4, align 4, !tbaa !5
  %329 = icmp slt i32 %328, -1
  br i1 %329, label %330, label %331

330:                                              ; preds = %327, %324, %312
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 195) #9
  unreachable

331:                                              ; preds = %327
  %332 = load i32, ptr %6, align 4, !tbaa !5
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %6, align 4, !tbaa !5
  %334 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 1, ptr %334, align 16, !tbaa !15
  %335 = load ptr, ptr %2, align 8, !tbaa !9
  %336 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %337 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %338 = call i32 @opus_decode(ptr noundef %335, ptr noundef %336, i32 noundef 1, ptr noundef %337, i32 noundef 960, i32 noundef 0)
  %339 = icmp ne i32 %338, 960
  br i1 %339, label %340, label %341

340:                                              ; preds = %331
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 198) #9
  unreachable

341:                                              ; preds = %331
  %342 = load i32, ptr %6, align 4, !tbaa !5
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr %6, align 4, !tbaa !5
  %344 = load ptr, ptr %2, align 8, !tbaa !9
  %345 = ptrtoint ptr %4 to i64
  %346 = ptrtoint ptr %4 to i64
  %347 = sub i64 %345, %346
  %348 = sdiv exact i64 %347, 4
  %349 = getelementptr inbounds i32, ptr %4, i64 %348
  %350 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %344, i32 noundef 4033, ptr noundef %349)
  store i32 %350, ptr %11, align 4, !tbaa !5
  %351 = load i32, ptr %11, align 4, !tbaa !5
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %359, label %353

353:                                              ; preds = %341
  %354 = load i32, ptr %4, align 4, !tbaa !5
  %355 = icmp sgt i32 %354, 0
  br i1 %355, label %359, label %356

356:                                              ; preds = %353
  %357 = load i32, ptr %4, align 4, !tbaa !5
  %358 = icmp slt i32 %357, -1
  br i1 %358, label %359, label %360

359:                                              ; preds = %356, %353, %341
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 202) #9
  unreachable

360:                                              ; preds = %356
  %361 = load i32, ptr %6, align 4, !tbaa !5
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %6, align 4, !tbaa !5
  %363 = load ptr, ptr @stdout, align 8, !tbaa !9
  %364 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %363, ptr noundef @.str.12) #8
  %365 = load ptr, ptr %2, align 8, !tbaa !9
  %366 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %367 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %368 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %369 = ptrtoint ptr %367 to i64
  %370 = ptrtoint ptr %368 to i64
  %371 = sub i64 %369, %370
  %372 = sdiv exact i64 %371, 4
  %373 = getelementptr inbounds i32, ptr %366, i64 %372
  %374 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %365, i32 noundef 4039, ptr noundef %373)
  store i32 %374, ptr %11, align 4, !tbaa !5
  %375 = load i32, ptr %11, align 4, !tbaa !5
  %376 = icmp ne i32 %375, -1
  br i1 %376, label %377, label %378

377:                                              ; preds = %360
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 207) #9
  unreachable

378:                                              ; preds = %360
  %379 = load ptr, ptr %2, align 8, !tbaa !9
  %380 = ptrtoint ptr %4 to i64
  %381 = ptrtoint ptr %4 to i64
  %382 = sub i64 %380, %381
  %383 = sdiv exact i64 %382, 4
  %384 = getelementptr inbounds i32, ptr %4, i64 %383
  %385 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %379, i32 noundef 4039, ptr noundef %384)
  store i32 %385, ptr %11, align 4, !tbaa !5
  %386 = load i32, ptr %11, align 4, !tbaa !5
  %387 = icmp ne i32 %386, 0
  br i1 %387, label %391, label %388

388:                                              ; preds = %378
  %389 = load i32, ptr %4, align 4, !tbaa !5
  %390 = icmp ne i32 %389, 960
  br i1 %390, label %391, label %392

391:                                              ; preds = %388, %378
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 210) #9
  unreachable

392:                                              ; preds = %388
  %393 = load i32, ptr %6, align 4, !tbaa !5
  %394 = add nsw i32 %393, 1
  store i32 %394, ptr %6, align 4, !tbaa !5
  %395 = load ptr, ptr @stdout, align 8, !tbaa !9
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %395, ptr noundef @.str.13) #8
  %397 = load ptr, ptr %2, align 8, !tbaa !9
  %398 = ptrtoint ptr %4 to i64
  %399 = ptrtoint ptr %4 to i64
  %400 = sub i64 %398, %399
  %401 = sdiv exact i64 %400, 4
  %402 = getelementptr inbounds i32, ptr %4, i64 %401
  %403 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %397, i32 noundef 4045, ptr noundef %402)
  store i32 %403, ptr %11, align 4, !tbaa !5
  %404 = load i32, ptr %11, align 4, !tbaa !5
  %405 = icmp ne i32 %404, 0
  br i1 %405, label %409, label %406

406:                                              ; preds = %392
  %407 = load i32, ptr %4, align 4, !tbaa !5
  %408 = icmp ne i32 %407, 0
  br i1 %408, label %409, label %410

409:                                              ; preds = %406, %392
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 217) #9
  unreachable

410:                                              ; preds = %406
  %411 = load i32, ptr %6, align 4, !tbaa !5
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %6, align 4, !tbaa !5
  %413 = load ptr, ptr %2, align 8, !tbaa !9
  %414 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %415 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %416 = load ptr, ptr @null_int_ptr, align 8, !tbaa !9
  %417 = ptrtoint ptr %415 to i64
  %418 = ptrtoint ptr %416 to i64
  %419 = sub i64 %417, %418
  %420 = sdiv exact i64 %419, 4
  %421 = getelementptr inbounds i32, ptr %414, i64 %420
  %422 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %413, i32 noundef 4045, ptr noundef %421)
  store i32 %422, ptr %11, align 4, !tbaa !5
  %423 = load i32, ptr %11, align 4, !tbaa !5
  %424 = icmp ne i32 %423, -1
  br i1 %424, label %425, label %426

425:                                              ; preds = %410
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 220) #9
  unreachable

426:                                              ; preds = %410
  %427 = load i32, ptr %6, align 4, !tbaa !5
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %6, align 4, !tbaa !5
  %429 = load ptr, ptr %2, align 8, !tbaa !9
  %430 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %429, i32 noundef 4034, i32 noundef -32769)
  store i32 %430, ptr %11, align 4, !tbaa !5
  %431 = load i32, ptr %11, align 4, !tbaa !5
  %432 = icmp ne i32 %431, -1
  br i1 %432, label %433, label %434

433:                                              ; preds = %426
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 223) #9
  unreachable

434:                                              ; preds = %426
  %435 = load i32, ptr %6, align 4, !tbaa !5
  %436 = add nsw i32 %435, 1
  store i32 %436, ptr %6, align 4, !tbaa !5
  %437 = load ptr, ptr %2, align 8, !tbaa !9
  %438 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %437, i32 noundef 4034, i32 noundef 32768)
  store i32 %438, ptr %11, align 4, !tbaa !5
  %439 = load i32, ptr %11, align 4, !tbaa !5
  %440 = icmp ne i32 %439, -1
  br i1 %440, label %441, label %442

441:                                              ; preds = %434
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 226) #9
  unreachable

442:                                              ; preds = %434
  %443 = load i32, ptr %6, align 4, !tbaa !5
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %6, align 4, !tbaa !5
  %445 = load ptr, ptr %2, align 8, !tbaa !9
  %446 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %445, i32 noundef 4034, i32 noundef -15)
  store i32 %446, ptr %11, align 4, !tbaa !5
  %447 = load i32, ptr %11, align 4, !tbaa !5
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %450

449:                                              ; preds = %442
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 229) #9
  unreachable

450:                                              ; preds = %442
  %451 = load i32, ptr %6, align 4, !tbaa !5
  %452 = add nsw i32 %451, 1
  store i32 %452, ptr %6, align 4, !tbaa !5
  %453 = load ptr, ptr %2, align 8, !tbaa !9
  %454 = ptrtoint ptr %4 to i64
  %455 = ptrtoint ptr %4 to i64
  %456 = sub i64 %454, %455
  %457 = sdiv exact i64 %456, 4
  %458 = getelementptr inbounds i32, ptr %4, i64 %457
  %459 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %453, i32 noundef 4045, ptr noundef %458)
  store i32 %459, ptr %11, align 4, !tbaa !5
  %460 = load i32, ptr %11, align 4, !tbaa !5
  %461 = icmp ne i32 %460, 0
  br i1 %461, label %465, label %462

462:                                              ; preds = %450
  %463 = load i32, ptr %4, align 4, !tbaa !5
  %464 = icmp ne i32 %463, -15
  br i1 %464, label %465, label %466

465:                                              ; preds = %462, %450
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 234) #9
  unreachable

466:                                              ; preds = %462
  %467 = load i32, ptr %6, align 4, !tbaa !5
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %6, align 4, !tbaa !5
  %469 = load ptr, ptr @stdout, align 8, !tbaa !9
  %470 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %469, ptr noundef @.str.14) #8
  %471 = load ptr, ptr @stdout, align 8, !tbaa !9
  %472 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %471, ptr noundef @.str.15) #8
  %473 = call i32 @opus_decoder_get_size(i32 noundef 2)
  %474 = sext i32 %473 to i64
  %475 = call noalias ptr @malloc(i64 noundef %474) #10
  store ptr %475, ptr %3, align 8, !tbaa !9
  %476 = load ptr, ptr %3, align 8, !tbaa !9
  %477 = load ptr, ptr %2, align 8, !tbaa !9
  %478 = call i32 @opus_decoder_get_size(i32 noundef 2)
  %479 = sext i32 %478 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %476, ptr align 1 %477, i64 %479, i1 false)
  %480 = load ptr, ptr %2, align 8, !tbaa !9
  %481 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef %480, i32 noundef 4028)
  %482 = icmp ne i32 %481, 0
  br i1 %482, label %483, label %484

483:                                              ; preds = %466
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 242) #9
  unreachable

484:                                              ; preds = %466
  %485 = load ptr, ptr %3, align 8, !tbaa !9
  %486 = load ptr, ptr %2, align 8, !tbaa !9
  %487 = call i32 @opus_decoder_get_size(i32 noundef 2)
  %488 = sext i32 %487 to i64
  %489 = call i32 @memcmp(ptr noundef %485, ptr noundef %486, i64 noundef %488) #11
  %490 = icmp eq i32 %489, 0
  br i1 %490, label %491, label %492

491:                                              ; preds = %484
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 243) #9
  unreachable

492:                                              ; preds = %484
  %493 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %493) #8
  %494 = load ptr, ptr @stdout, align 8, !tbaa !9
  %495 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %494, ptr noundef @.str.16) #8
  %496 = load i32, ptr %6, align 4, !tbaa !5
  %497 = add nsw i32 %496, 1
  store i32 %497, ptr %6, align 4, !tbaa !5
  %498 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 0, ptr %498, align 16, !tbaa !15
  %499 = load ptr, ptr %2, align 8, !tbaa !9
  %500 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %501 = call i32 @opus_decoder_get_nb_samples(ptr noundef %499, ptr noundef %500, i32 noundef 1)
  %502 = icmp ne i32 %501, 480
  br i1 %502, label %503, label %504

503:                                              ; preds = %492
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 250) #9
  unreachable

504:                                              ; preds = %492
  %505 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %506 = call i32 @opus_packet_get_nb_samples(ptr noundef %505, i32 noundef 1, i32 noundef 48000)
  %507 = icmp ne i32 %506, 480
  br i1 %507, label %508, label %509

508:                                              ; preds = %504
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 251) #9
  unreachable

509:                                              ; preds = %504
  %510 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %511 = call i32 @opus_packet_get_nb_samples(ptr noundef %510, i32 noundef 1, i32 noundef 96000)
  %512 = icmp ne i32 %511, 960
  br i1 %512, label %513, label %514

513:                                              ; preds = %509
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 252) #9
  unreachable

514:                                              ; preds = %509
  %515 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %516 = call i32 @opus_packet_get_nb_samples(ptr noundef %515, i32 noundef 1, i32 noundef 32000)
  %517 = icmp ne i32 %516, 320
  br i1 %517, label %518, label %519

518:                                              ; preds = %514
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 253) #9
  unreachable

519:                                              ; preds = %514
  %520 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %521 = call i32 @opus_packet_get_nb_samples(ptr noundef %520, i32 noundef 1, i32 noundef 8000)
  %522 = icmp ne i32 %521, 80
  br i1 %522, label %523, label %524

523:                                              ; preds = %519
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 254) #9
  unreachable

524:                                              ; preds = %519
  %525 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 3, ptr %525, align 16, !tbaa !15
  %526 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %527 = call i32 @opus_packet_get_nb_samples(ptr noundef %526, i32 noundef 1, i32 noundef 24000)
  %528 = icmp ne i32 %527, -4
  br i1 %528, label %529, label %530

529:                                              ; preds = %524
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 256) #9
  unreachable

530:                                              ; preds = %524
  %531 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 -1, ptr %531, align 16, !tbaa !15
  %532 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 1
  store i8 63, ptr %532, align 1, !tbaa !15
  %533 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %534 = call i32 @opus_packet_get_nb_samples(ptr noundef %533, i32 noundef 0, i32 noundef 24000)
  %535 = icmp ne i32 %534, -1
  br i1 %535, label %536, label %537

536:                                              ; preds = %530
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 259) #9
  unreachable

537:                                              ; preds = %530
  %538 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %539 = call i32 @opus_packet_get_nb_samples(ptr noundef %538, i32 noundef 2, i32 noundef 48000)
  %540 = icmp ne i32 %539, -4
  br i1 %540, label %541, label %542

541:                                              ; preds = %537
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 260) #9
  unreachable

542:                                              ; preds = %537
  %543 = load ptr, ptr %2, align 8, !tbaa !9
  %544 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %545 = call i32 @opus_decoder_get_nb_samples(ptr noundef %543, ptr noundef %544, i32 noundef 2)
  %546 = icmp ne i32 %545, -4
  br i1 %546, label %547, label %548

547:                                              ; preds = %542
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 261) #9
  unreachable

548:                                              ; preds = %542
  %549 = load ptr, ptr @stdout, align 8, !tbaa !9
  %550 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %549, ptr noundef @.str.17) #8
  %551 = load i32, ptr %6, align 4, !tbaa !5
  %552 = add nsw i32 %551, 9
  store i32 %552, ptr %6, align 4, !tbaa !5
  %553 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %554 = call i32 @opus_packet_get_nb_frames(ptr noundef %553, i32 noundef 0)
  %555 = icmp ne i32 -1, %554
  br i1 %555, label %556, label %557

556:                                              ; preds = %548
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 265) #9
  unreachable

557:                                              ; preds = %548
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %558

558:                                              ; preds = %617, %557
  %559 = load i32, ptr %4, align 4, !tbaa !5
  %560 = icmp slt i32 %559, 256
  br i1 %560, label %561, label %620

561:                                              ; preds = %558
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.test_dec_api.l1res, i64 16, i1 false)
  %562 = load i32, ptr %4, align 4, !tbaa !5
  %563 = trunc i32 %562 to i8
  %564 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 %563, ptr %564, align 16, !tbaa !15
  %565 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %566 = load i8, ptr %565, align 16, !tbaa !15
  %567 = zext i8 %566 to i32
  %568 = and i32 %567, 3
  %569 = sext i32 %568 to i64
  %570 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %569
  %571 = load i32, ptr %570, align 4, !tbaa !5
  %572 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %573 = call i32 @opus_packet_get_nb_frames(ptr noundef %572, i32 noundef 1)
  %574 = icmp ne i32 %571, %573
  br i1 %574, label %575, label %576

575:                                              ; preds = %561
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 269) #9
  unreachable

576:                                              ; preds = %561
  %577 = load i32, ptr %6, align 4, !tbaa !5
  %578 = add nsw i32 %577, 1
  store i32 %578, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %579

579:                                              ; preds = %613, %576
  %580 = load i32, ptr %5, align 4, !tbaa !5
  %581 = icmp slt i32 %580, 256
  br i1 %581, label %582, label %616

582:                                              ; preds = %579
  %583 = load i32, ptr %5, align 4, !tbaa !5
  %584 = trunc i32 %583 to i8
  %585 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 1
  store i8 %584, ptr %585, align 1, !tbaa !15
  %586 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %587 = load i8, ptr %586, align 16, !tbaa !15
  %588 = zext i8 %587 to i32
  %589 = and i32 %588, 3
  %590 = icmp ne i32 %589, 3
  br i1 %590, label %591, label %599

591:                                              ; preds = %582
  %592 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %593 = load i8, ptr %592, align 16, !tbaa !15
  %594 = zext i8 %593 to i32
  %595 = and i32 %594, 3
  %596 = sext i32 %595 to i64
  %597 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %596
  %598 = load i32, ptr %597, align 4, !tbaa !5
  br label %604

599:                                              ; preds = %582
  %600 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 1
  %601 = load i8, ptr %600, align 1, !tbaa !15
  %602 = zext i8 %601 to i32
  %603 = and i32 %602, 63
  br label %604

604:                                              ; preds = %599, %591
  %605 = phi i32 [ %598, %591 ], [ %603, %599 ]
  %606 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %607 = call i32 @opus_packet_get_nb_frames(ptr noundef %606, i32 noundef 2)
  %608 = icmp ne i32 %605, %607
  br i1 %608, label %609, label %610

609:                                              ; preds = %604
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 273) #9
  unreachable

610:                                              ; preds = %604
  %611 = load i32, ptr %6, align 4, !tbaa !5
  %612 = add nsw i32 %611, 1
  store i32 %612, ptr %6, align 4, !tbaa !5
  br label %613

613:                                              ; preds = %610
  %614 = load i32, ptr %5, align 4, !tbaa !5
  %615 = add nsw i32 %614, 1
  store i32 %615, ptr %5, align 4, !tbaa !5
  br label %579, !llvm.loop !16

616:                                              ; preds = %579
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %617

617:                                              ; preds = %616
  %618 = load i32, ptr %4, align 4, !tbaa !5
  %619 = add nsw i32 %618, 1
  store i32 %619, ptr %4, align 4, !tbaa !5
  br label %558, !llvm.loop !17

620:                                              ; preds = %558
  %621 = load ptr, ptr @stdout, align 8, !tbaa !9
  %622 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %621, ptr noundef @.str.18) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %623

623:                                              ; preds = %658, %620
  %624 = load i32, ptr %4, align 4, !tbaa !5
  %625 = icmp slt i32 %624, 256
  br i1 %625, label %626, label %661

626:                                              ; preds = %623
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %627 = load i32, ptr %4, align 4, !tbaa !5
  %628 = trunc i32 %627 to i8
  %629 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 %628, ptr %629, align 16, !tbaa !15
  %630 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %631 = load i8, ptr %630, align 16, !tbaa !15
  %632 = zext i8 %631 to i32
  %633 = ashr i32 %632, 4
  store i32 %633, ptr %15, align 4, !tbaa !5
  %634 = load i32, ptr %15, align 4, !tbaa !5
  %635 = and i32 %634, 7
  %636 = mul nsw i32 %635, 9
  %637 = load i32, ptr %15, align 4, !tbaa !5
  %638 = and i32 %637, 8
  %639 = sub nsw i32 63, %638
  %640 = and i32 %636, %639
  %641 = add nsw i32 %640, 2
  %642 = load i32, ptr %15, align 4, !tbaa !5
  %643 = and i32 %642, 8
  %644 = icmp ne i32 %643, 0
  %645 = zext i1 %644 to i32
  %646 = mul nsw i32 12, %645
  %647 = add nsw i32 %641, %646
  %648 = ashr i32 %647, 4
  %649 = add nsw i32 1101, %648
  store i32 %649, ptr %15, align 4, !tbaa !5
  %650 = load i32, ptr %15, align 4, !tbaa !5
  %651 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %652 = call i32 @opus_packet_get_bandwidth(ptr noundef %651)
  %653 = icmp ne i32 %650, %652
  br i1 %653, label %654, label %655

654:                                              ; preds = %626
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 284) #9
  unreachable

655:                                              ; preds = %626
  %656 = load i32, ptr %6, align 4, !tbaa !5
  %657 = add nsw i32 %656, 1
  store i32 %657, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %658

658:                                              ; preds = %655
  %659 = load i32, ptr %4, align 4, !tbaa !5
  %660 = add nsw i32 %659, 1
  store i32 %660, ptr %4, align 4, !tbaa !5
  br label %623, !llvm.loop !18

661:                                              ; preds = %623
  %662 = load ptr, ptr @stdout, align 8, !tbaa !9
  %663 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %662, ptr noundef @.str.19) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %664

664:                                              ; preds = %720, %661
  %665 = load i32, ptr %4, align 4, !tbaa !5
  %666 = icmp slt i32 %665, 256
  br i1 %666, label %667, label %723

667:                                              ; preds = %664
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %668 = load i32, ptr %4, align 4, !tbaa !5
  %669 = trunc i32 %668 to i8
  %670 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 %669, ptr %670, align 16, !tbaa !15
  %671 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %672 = load i8, ptr %671, align 16, !tbaa !15
  %673 = zext i8 %672 to i32
  %674 = ashr i32 %673, 3
  store i32 %674, ptr %16, align 4, !tbaa !5
  %675 = load i32, ptr %16, align 4, !tbaa !5
  %676 = and i32 %675, 3
  %677 = sub nsw i32 3, %676
  %678 = mul nsw i32 %677, 13
  %679 = and i32 %678, 119
  %680 = add nsw i32 %679, 9
  %681 = ashr i32 %680, 2
  %682 = load i32, ptr %16, align 4, !tbaa !5
  %683 = icmp sgt i32 %682, 13
  %684 = zext i1 %683 to i32
  %685 = load i32, ptr %16, align 4, !tbaa !5
  %686 = and i32 %685, 3
  %687 = icmp eq i32 %686, 3
  %688 = zext i1 %687 to i32
  %689 = sub nsw i32 3, %688
  %690 = mul nsw i32 %684, %689
  %691 = add nsw i32 %690, 1
  %692 = mul nsw i32 %681, %691
  %693 = mul nsw i32 %692, 25
  store i32 %693, ptr %16, align 4, !tbaa !5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %694

694:                                              ; preds = %716, %667
  %695 = load i32, ptr %17, align 4, !tbaa !5
  %696 = icmp slt i32 %695, 5
  br i1 %696, label %697, label %719

697:                                              ; preds = %694
  %698 = load i32, ptr %17, align 4, !tbaa !5
  %699 = sext i32 %698 to i64
  %700 = getelementptr inbounds [5 x i32], ptr @opus_rates, i64 0, i64 %699
  %701 = load i32, ptr %700, align 4, !tbaa !5
  %702 = mul nsw i32 %701, 3
  %703 = load i32, ptr %16, align 4, !tbaa !5
  %704 = sdiv i32 %702, %703
  %705 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %706 = load i32, ptr %17, align 4, !tbaa !5
  %707 = sext i32 %706 to i64
  %708 = getelementptr inbounds [5 x i32], ptr @opus_rates, i64 0, i64 %707
  %709 = load i32, ptr %708, align 4, !tbaa !5
  %710 = call i32 @opus_packet_get_samples_per_frame(ptr noundef %705, i32 noundef %709)
  %711 = icmp ne i32 %704, %710
  br i1 %711, label %712, label %713

712:                                              ; preds = %697
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 295) #9
  unreachable

713:                                              ; preds = %697
  %714 = load i32, ptr %6, align 4, !tbaa !5
  %715 = add nsw i32 %714, 1
  store i32 %715, ptr %6, align 4, !tbaa !5
  br label %716

716:                                              ; preds = %713
  %717 = load i32, ptr %17, align 4, !tbaa !5
  %718 = add nsw i32 %717, 1
  store i32 %718, ptr %17, align 4, !tbaa !5
  br label %694, !llvm.loop !19

719:                                              ; preds = %694
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %720

720:                                              ; preds = %719
  %721 = load i32, ptr %4, align 4, !tbaa !5
  %722 = add nsw i32 %721, 1
  store i32 %722, ptr %4, align 4, !tbaa !5
  br label %664, !llvm.loop !20

723:                                              ; preds = %664
  %724 = load ptr, ptr @stdout, align 8, !tbaa !9
  %725 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %724, ptr noundef @.str.20) #8
  %726 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 -1, ptr %726, align 16, !tbaa !15
  %727 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 1
  store i8 49, ptr %727, align 1, !tbaa !15
  store i32 2, ptr %5, align 4, !tbaa !5
  br label %728

728:                                              ; preds = %735, %723
  %729 = load i32, ptr %5, align 4, !tbaa !5
  %730 = icmp slt i32 %729, 51
  br i1 %730, label %731, label %738

731:                                              ; preds = %728
  %732 = load i32, ptr %5, align 4, !tbaa !5
  %733 = sext i32 %732 to i64
  %734 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 %733
  store i8 0, ptr %734, align 1, !tbaa !15
  br label %735

735:                                              ; preds = %731
  %736 = load i32, ptr %5, align 4, !tbaa !5
  %737 = add nsw i32 %736, 1
  store i32 %737, ptr %5, align 4, !tbaa !5
  br label %728, !llvm.loop !21

738:                                              ; preds = %728
  %739 = load ptr, ptr %2, align 8, !tbaa !9
  %740 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %741 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %742 = call i32 @opus_decode(ptr noundef %739, ptr noundef %740, i32 noundef 51, ptr noundef %741, i32 noundef 960, i32 noundef 0)
  %743 = icmp ne i32 %742, -4
  br i1 %743, label %744, label %745

744:                                              ; preds = %738
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 305) #9
  unreachable

745:                                              ; preds = %738
  %746 = load i32, ptr %6, align 4, !tbaa !5
  %747 = add nsw i32 %746, 1
  store i32 %747, ptr %6, align 4, !tbaa !5
  %748 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  store i8 -4, ptr %748, align 16, !tbaa !15
  %749 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 2
  store i8 0, ptr %749, align 2, !tbaa !15
  %750 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 1
  store i8 0, ptr %750, align 1, !tbaa !15
  %751 = load ptr, ptr %2, align 8, !tbaa !9
  %752 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %753 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %754 = call i32 @opus_decode(ptr noundef %751, ptr noundef %752, i32 noundef -1, ptr noundef %753, i32 noundef 960, i32 noundef 0)
  %755 = icmp ne i32 %754, -1
  br i1 %755, label %756, label %757

756:                                              ; preds = %745
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 309) #9
  unreachable

757:                                              ; preds = %745
  %758 = load i32, ptr %6, align 4, !tbaa !5
  %759 = add nsw i32 %758, 1
  store i32 %759, ptr %6, align 4, !tbaa !5
  %760 = load ptr, ptr %2, align 8, !tbaa !9
  %761 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %762 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %763 = call i32 @opus_decode(ptr noundef %760, ptr noundef %761, i32 noundef 3, ptr noundef %762, i32 noundef 60, i32 noundef 0)
  %764 = icmp ne i32 %763, -2
  br i1 %764, label %765, label %766

765:                                              ; preds = %757
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 311) #9
  unreachable

766:                                              ; preds = %757
  %767 = load i32, ptr %6, align 4, !tbaa !5
  %768 = add nsw i32 %767, 1
  store i32 %768, ptr %6, align 4, !tbaa !5
  %769 = load ptr, ptr %2, align 8, !tbaa !9
  %770 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %771 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %772 = call i32 @opus_decode(ptr noundef %769, ptr noundef %770, i32 noundef 3, ptr noundef %771, i32 noundef 480, i32 noundef 0)
  %773 = icmp ne i32 %772, -2
  br i1 %773, label %774, label %775

774:                                              ; preds = %766
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 313) #9
  unreachable

775:                                              ; preds = %766
  %776 = load i32, ptr %6, align 4, !tbaa !5
  %777 = add nsw i32 %776, 1
  store i32 %777, ptr %6, align 4, !tbaa !5
  %778 = load ptr, ptr %2, align 8, !tbaa !9
  %779 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %780 = getelementptr inbounds [1920 x i16], ptr %9, i64 0, i64 0
  %781 = call i32 @opus_decode(ptr noundef %778, ptr noundef %779, i32 noundef 3, ptr noundef %780, i32 noundef 960, i32 noundef 0)
  %782 = icmp ne i32 %781, 960
  br i1 %782, label %783, label %784

783:                                              ; preds = %775
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 315) #9
  unreachable

784:                                              ; preds = %775
  %785 = load i32, ptr %6, align 4, !tbaa !5
  %786 = add nsw i32 %785, 1
  store i32 %786, ptr %6, align 4, !tbaa !5
  %787 = load ptr, ptr @stdout, align 8, !tbaa !9
  %788 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %787, ptr noundef @.str.21) #8
  %789 = load ptr, ptr %2, align 8, !tbaa !9
  %790 = getelementptr inbounds [1276 x i8], ptr %7, i64 0, i64 0
  %791 = getelementptr inbounds [1920 x float], ptr %8, i64 0, i64 0
  %792 = call i32 @opus_decode_float(ptr noundef %789, ptr noundef %790, i32 noundef 3, ptr noundef %791, i32 noundef 960, i32 noundef 0)
  %793 = icmp ne i32 %792, 960
  br i1 %793, label %794, label %795

794:                                              ; preds = %784
  call void @_test_failed(ptr noundef @.str.2, i32 noundef 320) #9
  unreachable

795:                                              ; preds = %784
  %796 = load i32, ptr %6, align 4, !tbaa !5
  %797 = add nsw i32 %796, 1
  store i32 %797, ptr %6, align 4, !tbaa !5
  %798 = load ptr, ptr @stdout, align 8, !tbaa !9
  %799 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %798, ptr noundef @.str.22) #8
  %800 = load ptr, ptr %2, align 8, !tbaa !9
  call void @opus_decoder_destroy(ptr noundef %800)
  %801 = load i32, ptr %6, align 4, !tbaa !5
  %802 = add nsw i32 %801, 1
  store i32 %802, ptr %6, align 4, !tbaa !5
  %803 = load ptr, ptr @stdout, align 8, !tbaa !9
  %804 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %803, ptr noundef @.str.23) #8
  %805 = load ptr, ptr @stdout, align 8, !tbaa !9
  %806 = load i32, ptr %6, align 4, !tbaa !5
  %807 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %805, ptr noundef @.str.24, i32 noundef %806) #8
  %808 = load i32, ptr %6, align 4, !tbaa !5
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 3840, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 7680, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1276, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #8
  ret i32 %808

809:                                              ; preds = %140
  unreachable
}

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

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

declare i32 @opus_decoder_get_size(i32 noundef) #3

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare i32 @opus_decoder_init(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

declare i32 @opus_decoder_ctl(ptr noundef, i32 noundef, ...) #3

declare i32 @opus_decode(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

; 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) #6

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #7

declare i32 @opus_decoder_get_nb_samples(ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @opus_packet_get_nb_samples(ptr noundef, i32 noundef, i32 noundef) #3

declare i32 @opus_packet_get_nb_frames(ptr noundef, i32 noundef) #3

declare i32 @opus_packet_get_bandwidth(ptr noundef) #3

declare i32 @opus_packet_get_samples_per_frame(ptr noundef, i32 noundef) #3

declare i32 @opus_decode_float(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare void @opus_decoder_destroy(ptr noundef) #3

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

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

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

@null_int_ptr = external dso_local local_unnamed_addr global ptr, align 8
@null_uint_ptr = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [56 x i8], align 1
@__const.test_dec_api.l1res = external hidden unnamed_addr constant [4 x i32], align 16
@.str.18 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [56 x i8], align 1
@opus_rates = external hidden local_unnamed_addr constant [5 x i32], align 16
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [52 x i8], align 1
@switch.table.test_dec_api = private unnamed_addr constant [3 x i32] [i32 -2147483648, i32 2147483647, i32 -8000], align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2147483613, -2147483648) i32 @test_dec_api() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [1276 x i8], align 16
  %4 = alloca [1920 x float], align 16
  %5 = alloca [1920 x i16], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 1276, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 7680, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 3840, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  %7 = load ptr, ptr @stdout, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str) #10
  %9 = load ptr, ptr @stdout, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.1) #10
  %11 = tail call i32 @opus_decoder_get_size(i32 noundef 0) #10
  %.not273 = icmp eq i32 %11, 0
  br i1 %.not273, label %13, label %12

12:                                               ; preds = %23, %18, %13, %0
  tail call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 106) #11
  unreachable

13:                                               ; preds = %0
  %14 = load ptr, ptr @stdout, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.3, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @.str.5) #10
  %16 = tail call i32 @opus_decoder_get_size(i32 noundef 1) #10
  %17 = add i32 %16, -65537
  %or.cond3.1 = icmp ult i32 %17, -63488
  br i1 %or.cond3.1, label %12, label %18

18:                                               ; preds = %13
  %19 = load ptr, ptr @stdout, align 8, !tbaa !5
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.3, i32 noundef 1, i32 noundef %16, ptr noundef nonnull @.str.4) #10
  %21 = tail call i32 @opus_decoder_get_size(i32 noundef 2) #10
  %22 = add i32 %21, -65537
  %or.cond3.2 = icmp ult i32 %22, -63488
  br i1 %or.cond3.2, label %12, label %23

23:                                               ; preds = %18
  %24 = load ptr, ptr @stdout, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.3, i32 noundef 2, i32 noundef %21, ptr noundef nonnull @.str.4) #10
  %26 = tail call i32 @opus_decoder_get_size(i32 noundef 3) #10
  %.not274 = icmp eq i32 %26, 0
  br i1 %.not274, label %.preheader210, label %12

.preheader210:                                    ; preds = %23
  %27 = load ptr, ptr @stdout, align 8, !tbaa !5
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.3, i32 noundef 3, i32 noundef 0, ptr noundef nonnull @.str.5) #10
  br label %.preheader209

.preheader209:                                    ; preds = %.preheader210, %.split239.us
  %.1241 = phi i32 [ 0, %.preheader210 ], [ %74, %.split239.us ]
  %.1160240 = phi i32 [ 4, %.preheader210 ], [ %.us-phi, %.split239.us ]
  store i32 -7, ptr %2, align 4, !tbaa !9
  %29 = add nsw i32 %.1241, -1
  %or.cond17 = icmp ult i32 %29, 2
  br i1 %or.cond17, label %.preheader209.split.us, label %.preheader209.split

.preheader209.split.us:                           ; preds = %.preheader209, %49
  %.2230.us = phi i32 [ %.3.us, %49 ], [ %.1160240, %.preheader209 ]
  %storemerge205229.us = phi i32 [ %51, %49 ], [ -7, %.preheader209 ]
  switch i32 %storemerge205229.us, label %32 [
    i32 48000, label %49
    i32 24000, label %49
    i32 16000, label %49
    i32 12000, label %49
    i32 8000, label %49
    i32 -5, label %33
    i32 -6, label %31
    i32 -7, label %30
  ]

30:                                               ; preds = %.preheader209.split.us
  br label %33

31:                                               ; preds = %.preheader209.split.us
  br label %33

32:                                               ; preds = %.preheader209.split.us
  br label %33

33:                                               ; preds = %32, %31, %30, %.preheader209.split.us
  %.0157.us = phi i32 [ %storemerge205229.us, %32 ], [ -2147483648, %30 ], [ 2147483647, %31 ], [ -8000, %.preheader209.split.us ]
  store i32 0, ptr %6, align 4, !tbaa !9
  %34 = call ptr @opus_decoder_create(i32 noundef %.0157.us, i32 noundef %.1241, ptr noundef nonnull %6) #10
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp ne i32 %35, -1
  %37 = icmp ne ptr %34, null
  %or.cond19.us = select i1 %36, i1 true, i1 %37
  br i1 %or.cond19.us, label %.split.us, label %38

38:                                               ; preds = %33
  %39 = call ptr @opus_decoder_create(i32 noundef %.0157.us, i32 noundef %.1241, ptr noundef null) #10
  %.not206.us = icmp eq ptr %39, null
  br i1 %.not206.us, label %40, label %.split233.us

40:                                               ; preds = %38
  %41 = call i32 @opus_decoder_get_size(i32 noundef 2) #10
  %42 = sext i32 %41 to i64
  %43 = call noalias ptr @malloc(i64 noundef %42) #12
  %44 = icmp eq ptr %43, null
  br i1 %44, label %.split235.us, label %45

45:                                               ; preds = %40
  %46 = call i32 @opus_decoder_init(ptr noundef nonnull %43, i32 noundef %.0157.us, i32 noundef %.1241) #10
  store i32 %46, ptr %6, align 4, !tbaa !9
  %.not207.us = icmp eq i32 %46, -1
  br i1 %.not207.us, label %47, label %.split237.us

47:                                               ; preds = %45
  %48 = add nsw i32 %.2230.us, 3
  call void @free(ptr noundef nonnull %43) #10
  %.pre = load i32, ptr %2, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %.preheader209.split.us, %.preheader209.split.us, %.preheader209.split.us, %.preheader209.split.us, %.preheader209.split.us, %47
  %50 = phi i32 [ %.pre, %47 ], [ %storemerge205229.us, %.preheader209.split.us ], [ %storemerge205229.us, %.preheader209.split.us ], [ %storemerge205229.us, %.preheader209.split.us ], [ %storemerge205229.us, %.preheader209.split.us ], [ %storemerge205229.us, %.preheader209.split.us ]
  %.3.us = phi i32 [ %48, %47 ], [ %.2230.us, %.preheader209.split.us ], [ %.2230.us, %.preheader209.split.us ], [ %.2230.us, %.preheader209.split.us ], [ %.2230.us, %.preheader209.split.us ], [ %.2230.us, %.preheader209.split.us ]
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %2, align 4, !tbaa !9
  %52 = icmp slt i32 %50, 96000
  br i1 %52, label %.preheader209.split.us, label %.split239.us, !llvm.loop !11

.preheader209.split:                              ; preds = %.preheader209, %69
  %.2230 = phi i32 [ %70, %69 ], [ %.1160240, %.preheader209 ]
  %storemerge205229 = phi i32 [ %72, %69 ], [ -7, %.preheader209 ]
  %switch.tableidx = add i32 %storemerge205229, 7
  %53 = icmp ult i32 %switch.tableidx, 3
  br i1 %53, label %switch.lookup, label %55

switch.lookup:                                    ; preds = %.preheader209.split
  %54 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [3 x i32], ptr @switch.table.test_dec_api, i64 0, i64 %54
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %55

55:                                               ; preds = %.preheader209.split, %switch.lookup
  %.0157 = phi i32 [ %switch.load, %switch.lookup ], [ %storemerge205229, %.preheader209.split ]
  store i32 0, ptr %6, align 4, !tbaa !9
  %56 = call ptr @opus_decoder_create(i32 noundef %.0157, i32 noundef %.1241, ptr noundef nonnull %6) #10
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp ne i32 %57, -1
  %59 = icmp ne ptr %56, null
  %or.cond19 = select i1 %58, i1 true, i1 %59
  br i1 %or.cond19, label %.split.us, label %60

.split.us:                                        ; preds = %55, %33
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 128) #11
  unreachable

60:                                               ; preds = %55
  %61 = call ptr @opus_decoder_create(i32 noundef %.0157, i32 noundef %.1241, ptr noundef null) #10
  %.not206 = icmp eq ptr %61, null
  br i1 %.not206, label %62, label %.split233.us

.split233.us:                                     ; preds = %60, %38
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 131) #11
  unreachable

62:                                               ; preds = %60
  %63 = call i32 @opus_decoder_get_size(i32 noundef 2) #10
  %64 = sext i32 %63 to i64
  %65 = call noalias ptr @malloc(i64 noundef %64) #12
  %66 = icmp eq ptr %65, null
  br i1 %66, label %.split235.us, label %67

.split235.us:                                     ; preds = %62, %40
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 134) #11
  unreachable

67:                                               ; preds = %62
  %68 = call i32 @opus_decoder_init(ptr noundef nonnull %65, i32 noundef %.0157, i32 noundef %.1241) #10
  store i32 %68, ptr %6, align 4, !tbaa !9
  %.not207 = icmp eq i32 %68, -1
  br i1 %.not207, label %69, label %.split237.us

.split237.us:                                     ; preds = %67, %45
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 136) #11
  unreachable

69:                                               ; preds = %67
  %70 = add nsw i32 %.2230, 3
  call void @free(ptr noundef nonnull %65) #10
  %71 = load i32, ptr %2, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %2, align 4, !tbaa !9
  %73 = icmp slt i32 %71, 96000
  br i1 %73, label %.preheader209.split, label %.split239.us, !llvm.loop !11

.split239.us:                                     ; preds = %69, %49
  %.us-phi = phi i32 [ %.3.us, %49 ], [ %70, %69 ]
  %74 = add nuw nsw i32 %.1241, 1
  %exitcond.not = icmp eq i32 %74, 4
  br i1 %exitcond.not, label %75, label %.preheader209, !llvm.loop !13

75:                                               ; preds = %.split239.us
  %76 = call ptr @opus_decoder_create(i32 noundef 48000, i32 noundef 2, ptr noundef nonnull %6) #10
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  %79 = icmp eq ptr %76, null
  %or.cond21 = select i1 %78, i1 true, i1 %79
  br i1 %or.cond21, label %80, label %81

80:                                               ; preds = %75
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 144) #11
  unreachable

81:                                               ; preds = %75
  %82 = load ptr, ptr @stdout, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.6) #10
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.7) #10
  %86 = load ptr, ptr @null_uint_ptr, align 8, !tbaa !5
  %87 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4031, ptr noundef %86) #10
  store i32 %87, ptr %6, align 4, !tbaa !9
  %.not = icmp eq i32 %87, -1
  br i1 %.not, label %89, label %88

88:                                               ; preds = %81
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 152) #11
  unreachable

89:                                               ; preds = %81
  %90 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4031, ptr noundef nonnull %1) #10
  store i32 %90, ptr %6, align 4, !tbaa !9
  %.not169 = icmp eq i32 %90, 0
  br i1 %.not169, label %92, label %91

91:                                               ; preds = %89
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 155) #11
  unreachable

92:                                               ; preds = %89
  %93 = load ptr, ptr @stdout, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.8) #10
  %95 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef -5) #10
  store i32 %95, ptr %6, align 4, !tbaa !9
  %.not170 = icmp eq i32 %95, -5
  br i1 %.not170, label %97, label %96

96:                                               ; preds = %92
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 161) #11
  unreachable

97:                                               ; preds = %92
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.9) #10
  %100 = load ptr, ptr @null_int_ptr, align 8, !tbaa !5
  %101 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4009, ptr noundef %100) #10
  store i32 %101, ptr %6, align 4, !tbaa !9
  %.not171 = icmp eq i32 %101, -1
  br i1 %.not171, label %103, label %102

102:                                              ; preds = %97
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 166) #11
  unreachable

103:                                              ; preds = %97
  %104 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4009, ptr noundef nonnull %2) #10
  store i32 %104, ptr %6, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  %106 = load i32, ptr %2, align 4
  %107 = icmp ne i32 %106, 0
  %or.cond23 = select i1 %105, i1 true, i1 %107
  br i1 %or.cond23, label %108, label %109

108:                                              ; preds = %103
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 169) #11
  unreachable

109:                                              ; preds = %103
  %110 = load ptr, ptr @stdout, align 8, !tbaa !5
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.10) #10
  %112 = load ptr, ptr @null_int_ptr, align 8, !tbaa !5
  %113 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4029, ptr noundef %112) #10
  store i32 %113, ptr %6, align 4, !tbaa !9
  %.not172 = icmp eq i32 %113, -1
  br i1 %.not172, label %115, label %114

114:                                              ; preds = %109
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 174) #11
  unreachable

115:                                              ; preds = %109
  %116 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4029, ptr noundef nonnull %2) #10
  store i32 %116, ptr %6, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  %118 = load i32, ptr %2, align 4
  %119 = icmp ne i32 %118, 48000
  %or.cond25 = select i1 %117, i1 true, i1 %119
  br i1 %or.cond25, label %120, label %121

120:                                              ; preds = %115
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 177) #11
  unreachable

121:                                              ; preds = %115
  %122 = load ptr, ptr @stdout, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.11) #10
  %124 = load ptr, ptr @null_int_ptr, align 8, !tbaa !5
  %125 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4033, ptr noundef %124) #10
  store i32 %125, ptr %6, align 4, !tbaa !9
  %.not173 = icmp eq i32 %125, -1
  br i1 %.not173, label %127, label %126

126:                                              ; preds = %121
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 183) #11
  unreachable

127:                                              ; preds = %121
  %128 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4033, ptr noundef nonnull %2) #10
  store i32 %128, ptr %6, align 4, !tbaa !9
  %129 = icmp ne i32 %128, 0
  %130 = load i32, ptr %2, align 4
  %131 = add i32 %130, -1
  %132 = icmp ult i32 %131, -2
  %or.cond29 = select i1 %129, i1 true, i1 %132
  br i1 %or.cond29, label %133, label %134

133:                                              ; preds = %127
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 187) #11
  unreachable

134:                                              ; preds = %127
  store i8 -4, ptr %3, align 16, !tbaa !14
  %135 = getelementptr inbounds i8, ptr %3, i64 2
  store i8 0, ptr %135, align 2, !tbaa !14
  %136 = getelementptr inbounds i8, ptr %3, i64 1
  store i8 0, ptr %136, align 1, !tbaa !14
  %137 = call i32 @opus_decode(ptr noundef nonnull %76, ptr noundef nonnull %3, i32 noundef 3, ptr noundef nonnull %5, i32 noundef 960, i32 noundef 0) #10
  %.not174 = icmp eq i32 %137, 960
  br i1 %.not174, label %139, label %138

138:                                              ; preds = %134
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 191) #11
  unreachable

139:                                              ; preds = %134
  %140 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4033, ptr noundef nonnull %2) #10
  store i32 %140, ptr %6, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  %142 = load i32, ptr %2, align 4
  %143 = add i32 %142, -1
  %144 = icmp ult i32 %143, -2
  %or.cond33 = select i1 %141, i1 true, i1 %144
  br i1 %or.cond33, label %145, label %146

145:                                              ; preds = %139
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 195) #11
  unreachable

146:                                              ; preds = %139
  store i8 1, ptr %3, align 16, !tbaa !14
  %147 = call i32 @opus_decode(ptr noundef nonnull %76, ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %5, i32 noundef 960, i32 noundef 0) #10
  %.not175 = icmp eq i32 %147, 960
  br i1 %.not175, label %149, label %148

148:                                              ; preds = %146
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 198) #11
  unreachable

149:                                              ; preds = %146
  %150 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4033, ptr noundef nonnull %2) #10
  store i32 %150, ptr %6, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  %152 = load i32, ptr %2, align 4
  %153 = add i32 %152, -1
  %154 = icmp ult i32 %153, -2
  %or.cond37 = select i1 %151, i1 true, i1 %154
  br i1 %or.cond37, label %155, label %156

155:                                              ; preds = %149
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 202) #11
  unreachable

156:                                              ; preds = %149
  %157 = load ptr, ptr @stdout, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef nonnull @.str.12) #10
  %159 = load ptr, ptr @null_int_ptr, align 8, !tbaa !5
  %160 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4039, ptr noundef %159) #10
  store i32 %160, ptr %6, align 4, !tbaa !9
  %.not176 = icmp eq i32 %160, -1
  br i1 %.not176, label %162, label %161

161:                                              ; preds = %156
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 207) #11
  unreachable

162:                                              ; preds = %156
  %163 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4039, ptr noundef nonnull %2) #10
  store i32 %163, ptr %6, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  %165 = load i32, ptr %2, align 4
  %166 = icmp ne i32 %165, 960
  %or.cond39 = select i1 %164, i1 true, i1 %166
  br i1 %or.cond39, label %167, label %168

167:                                              ; preds = %162
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 210) #11
  unreachable

168:                                              ; preds = %162
  %169 = load ptr, ptr @stdout, align 8, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.13) #10
  %171 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4045, ptr noundef nonnull %2) #10
  store i32 %171, ptr %6, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  %173 = load i32, ptr %2, align 4
  %174 = icmp ne i32 %173, 0
  %or.cond41 = select i1 %172, i1 true, i1 %174
  br i1 %or.cond41, label %175, label %176

175:                                              ; preds = %168
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 217) #11
  unreachable

176:                                              ; preds = %168
  %177 = load ptr, ptr @null_int_ptr, align 8, !tbaa !5
  %178 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4045, ptr noundef %177) #10
  store i32 %178, ptr %6, align 4, !tbaa !9
  %.not177 = icmp eq i32 %178, -1
  br i1 %.not177, label %180, label %179

179:                                              ; preds = %176
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 220) #11
  unreachable

180:                                              ; preds = %176
  %181 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4034, i32 noundef -32769) #10
  store i32 %181, ptr %6, align 4, !tbaa !9
  %.not178 = icmp eq i32 %181, -1
  br i1 %.not178, label %183, label %182

182:                                              ; preds = %180
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 223) #11
  unreachable

183:                                              ; preds = %180
  %184 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4034, i32 noundef 32768) #10
  store i32 %184, ptr %6, align 4, !tbaa !9
  %.not179 = icmp eq i32 %184, -1
  br i1 %.not179, label %186, label %185

185:                                              ; preds = %183
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 226) #11
  unreachable

186:                                              ; preds = %183
  %187 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4034, i32 noundef -15) #10
  store i32 %187, ptr %6, align 4, !tbaa !9
  %.not180 = icmp eq i32 %187, 0
  br i1 %.not180, label %189, label %188

188:                                              ; preds = %186
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 229) #11
  unreachable

189:                                              ; preds = %186
  %190 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4045, ptr noundef nonnull %2) #10
  store i32 %190, ptr %6, align 4, !tbaa !9
  %191 = icmp ne i32 %190, 0
  %192 = load i32, ptr %2, align 4
  %193 = icmp ne i32 %192, -15
  %or.cond43 = select i1 %191, i1 true, i1 %193
  br i1 %or.cond43, label %194, label %195

194:                                              ; preds = %189
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 234) #11
  unreachable

195:                                              ; preds = %189
  %196 = load ptr, ptr @stdout, align 8, !tbaa !5
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef nonnull @.str.14) #10
  %198 = load ptr, ptr @stdout, align 8, !tbaa !5
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef nonnull @.str.15) #10
  %200 = call i32 @opus_decoder_get_size(i32 noundef 2) #10
  %201 = sext i32 %200 to i64
  %202 = call noalias ptr @malloc(i64 noundef %201) #12
  %203 = call i32 @opus_decoder_get_size(i32 noundef 2) #10
  %204 = sext i32 %203 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %202, ptr nonnull align 1 %76, i64 %204, i1 false)
  %205 = call i32 (ptr, i32, ...) @opus_decoder_ctl(ptr noundef nonnull %76, i32 noundef 4028) #10
  %.not181 = icmp eq i32 %205, 0
  br i1 %.not181, label %207, label %206

206:                                              ; preds = %195
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 242) #11
  unreachable

207:                                              ; preds = %195
  %208 = call i32 @opus_decoder_get_size(i32 noundef 2) #10
  %209 = sext i32 %208 to i64
  %bcmp = call i32 @bcmp(ptr %202, ptr nonnull %76, i64 %209)
  %210 = icmp eq i32 %bcmp, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %207
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 243) #11
  unreachable

212:                                              ; preds = %207
  call void @free(ptr noundef %202) #10
  %213 = load ptr, ptr @stdout, align 8, !tbaa !5
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef nonnull @.str.16) #10
  store i8 0, ptr %3, align 16, !tbaa !14
  %215 = call i32 @opus_decoder_get_nb_samples(ptr noundef nonnull %76, ptr noundef nonnull %3, i32 noundef 1) #10
  %.not182 = icmp eq i32 %215, 480
  br i1 %.not182, label %217, label %216

216:                                              ; preds = %212
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 250) #11
  unreachable

217:                                              ; preds = %212
  %218 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 48000) #10
  %.not183 = icmp eq i32 %218, 480
  br i1 %.not183, label %220, label %219

219:                                              ; preds = %217
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 251) #11
  unreachable

220:                                              ; preds = %217
  %221 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 96000) #10
  %.not184 = icmp eq i32 %221, 960
  br i1 %.not184, label %223, label %222

222:                                              ; preds = %220
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 252) #11
  unreachable

223:                                              ; preds = %220
  %224 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 32000) #10
  %.not185 = icmp eq i32 %224, 320
  br i1 %.not185, label %226, label %225

225:                                              ; preds = %223
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 253) #11
  unreachable

226:                                              ; preds = %223
  %227 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 8000) #10
  %.not186 = icmp eq i32 %227, 80
  br i1 %.not186, label %229, label %228

228:                                              ; preds = %226
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 254) #11
  unreachable

229:                                              ; preds = %226
  store i8 3, ptr %3, align 16, !tbaa !14
  %230 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 24000) #10
  %.not187 = icmp eq i32 %230, -4
  br i1 %.not187, label %232, label %231

231:                                              ; preds = %229
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 256) #11
  unreachable

232:                                              ; preds = %229
  store i8 -1, ptr %3, align 16, !tbaa !14
  store i8 63, ptr %136, align 1, !tbaa !14
  %233 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 24000) #10
  %.not188 = icmp eq i32 %233, -1
  br i1 %.not188, label %235, label %234

234:                                              ; preds = %232
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 259) #11
  unreachable

235:                                              ; preds = %232
  %236 = call i32 @opus_packet_get_nb_samples(ptr noundef nonnull %3, i32 noundef 2, i32 noundef 48000) #10
  %.not189 = icmp eq i32 %236, -4
  br i1 %.not189, label %238, label %237

237:                                              ; preds = %235
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 260) #11
  unreachable

238:                                              ; preds = %235
  %239 = call i32 @opus_decoder_get_nb_samples(ptr noundef nonnull %76, ptr noundef nonnull %3, i32 noundef 2) #10
  %.not190 = icmp eq i32 %239, -4
  br i1 %.not190, label %241, label %240

240:                                              ; preds = %238
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 261) #11
  unreachable

241:                                              ; preds = %238
  %242 = load ptr, ptr @stdout, align 8, !tbaa !5
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef nonnull @.str.17) #10
  %244 = call i32 @opus_packet_get_nb_frames(ptr noundef nonnull %3, i32 noundef 0) #10
  %.not191 = icmp eq i32 %244, -1
  br i1 %.not191, label %246, label %245

245:                                              ; preds = %241
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 265) #11
  unreachable

246:                                              ; preds = %241
  %247 = add nsw i32 %.us-phi, 28
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %246, %273
  %.4246 = phi i32 [ %247, %246 ], [ %255, %273 ]
  %storemerge245 = phi i32 [ 0, %246 ], [ %275, %273 ]
  %249 = trunc i32 %storemerge245 to i8
  store i8 %249, ptr %3, align 16, !tbaa !14
  %250 = and i32 %storemerge245, 3
  %251 = zext nneg i32 %250 to i64
  %252 = getelementptr inbounds [4 x i32], ptr @__const.test_dec_api.l1res, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = call i32 @opus_packet_get_nb_frames(ptr noundef nonnull %3, i32 noundef 1) #10
  %.not202 = icmp eq i32 %253, %254
  br i1 %.not202, label %.preheader, label %256

.preheader:                                       ; preds = %248
  %255 = add i32 %.4246, 257
  br label %259

256:                                              ; preds = %248
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 269) #11
  unreachable

257:                                              ; preds = %269
  %258 = add nuw nsw i32 %.0161243, 1
  %exitcond265.not = icmp eq i32 %258, 256
  br i1 %exitcond265.not, label %273, label %259, !llvm.loop !15

259:                                              ; preds = %.preheader, %257
  %.0161243 = phi i32 [ 0, %.preheader ], [ %258, %257 ]
  %260 = trunc nuw i32 %.0161243 to i8
  store i8 %260, ptr %136, align 1, !tbaa !14
  %261 = load i8, ptr %3, align 16, !tbaa !14
  %262 = and i8 %261, 3
  %.not203 = icmp eq i8 %262, 3
  br i1 %.not203, label %267, label %263

263:                                              ; preds = %259
  %264 = zext nneg i8 %262 to i64
  %265 = getelementptr inbounds [4 x i32], ptr @__const.test_dec_api.l1res, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !9
  br label %269

267:                                              ; preds = %259
  %268 = and i32 %.0161243, 63
  br label %269

269:                                              ; preds = %267, %263
  %270 = phi i32 [ %266, %263 ], [ %268, %267 ]
  %271 = call i32 @opus_packet_get_nb_frames(ptr noundef nonnull %3, i32 noundef 2) #10
  %.not204 = icmp eq i32 %270, %271
  br i1 %.not204, label %257, label %272

272:                                              ; preds = %269
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 273) #11
  unreachable

273:                                              ; preds = %257
  %274 = load i32, ptr %2, align 4, !tbaa !9
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %2, align 4, !tbaa !9
  %276 = icmp slt i32 %274, 255
  br i1 %276, label %248, label %277, !llvm.loop !16

277:                                              ; preds = %273
  %278 = load ptr, ptr @stdout, align 8, !tbaa !5
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef nonnull @.str.18) #10
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %280

280:                                              ; preds = %277, %295
  %.6248 = phi i32 [ %255, %277 ], [ %296, %295 ]
  %storemerge192247 = phi i32 [ 0, %277 ], [ %298, %295 ]
  %281 = trunc i32 %storemerge192247 to i8
  store i8 %281, ptr %3, align 16, !tbaa !14
  %282 = lshr i32 %storemerge192247, 4
  %283 = and i32 %282, 7
  %284 = mul nuw nsw i32 %283, 9
  %285 = and i32 %282, 8
  %286 = xor i32 %285, 62
  %287 = and i32 %284, %286
  %288 = add nuw nsw i32 %287, 2
  %.lobit = lshr exact i32 %285, 3
  %289 = mul nuw nsw i32 %.lobit, 12
  %290 = add nuw nsw i32 %288, %289
  %291 = lshr i32 %290, 4
  %292 = add nuw nsw i32 %291, 1101
  %293 = call i32 @opus_packet_get_bandwidth(ptr noundef nonnull %3) #10
  %.not201 = icmp eq i32 %292, %293
  br i1 %.not201, label %295, label %294

294:                                              ; preds = %280
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 284) #11
  unreachable

295:                                              ; preds = %280
  %296 = add nsw i32 %.6248, 1
  %297 = load i32, ptr %2, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %2, align 4, !tbaa !9
  %299 = icmp slt i32 %297, 255
  br i1 %299, label %280, label %300, !llvm.loop !17

300:                                              ; preds = %295
  %301 = load ptr, ptr @stdout, align 8, !tbaa !5
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %301, ptr noundef nonnull @.str.19) #10
  store i32 0, ptr %2, align 4, !tbaa !9
  %.pre272 = load i32, ptr @opus_rates, align 16, !tbaa !9
  %303 = mul nsw i32 %.pre272, 3
  %304 = load i32, ptr getelementptr inbounds (i8, ptr @opus_rates, i64 4), align 4
  %305 = mul nsw i32 %304, 3
  %306 = load i32, ptr getelementptr inbounds (i8, ptr @opus_rates, i64 8), align 8
  %307 = mul nsw i32 %306, 3
  %308 = load i32, ptr getelementptr inbounds (i8, ptr @opus_rates, i64 12), align 4
  %309 = mul nsw i32 %308, 3
  %310 = load i32, ptr getelementptr inbounds (i8, ptr @opus_rates, i64 16), align 16
  %311 = mul nsw i32 %310, 3
  br label %312

312:                                              ; preds = %300, %343
  %.7252 = phi i32 [ %296, %300 ], [ %327, %343 ]
  %storemerge193251 = phi i32 [ 0, %300 ], [ %345, %343 ]
  %313 = trunc i32 %storemerge193251 to i8
  store i8 %313, ptr %3, align 16, !tbaa !14
  %314 = lshr i32 %storemerge193251, 3
  %315 = and i32 %314, 3
  %316 = xor i32 %315, 3
  %317 = mul nuw nsw i32 %316, 13
  %318 = and i32 %317, 55
  %319 = add nuw nsw i32 %318, 9
  %320 = lshr i32 %319, 2
  %321 = and i32 %storemerge193251, 240
  %322 = icmp ugt i32 %321, 104
  %323 = icmp eq i32 %315, 3
  %324 = select i1 %323, i32 75, i32 100
  %325 = select i1 %322, i32 %324, i32 25
  %326 = mul nuw nsw i32 %325, %320
  %327 = add i32 %.7252, 5
  %328 = sdiv i32 %303, %326
  %329 = call i32 @opus_packet_get_samples_per_frame(ptr noundef nonnull %3, i32 noundef %.pre272) #10
  %.not200 = icmp eq i32 %328, %329
  br i1 %.not200, label %331, label %330

330:                                              ; preds = %340, %337, %334, %331, %312
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 295) #11
  unreachable

331:                                              ; preds = %312
  %332 = sdiv i32 %305, %326
  %333 = call i32 @opus_packet_get_samples_per_frame(ptr noundef nonnull %3, i32 noundef %304) #10
  %.not200.1 = icmp eq i32 %332, %333
  br i1 %.not200.1, label %334, label %330

334:                                              ; preds = %331
  %335 = sdiv i32 %307, %326
  %336 = call i32 @opus_packet_get_samples_per_frame(ptr noundef nonnull %3, i32 noundef %306) #10
  %.not200.2 = icmp eq i32 %335, %336
  br i1 %.not200.2, label %337, label %330

337:                                              ; preds = %334
  %338 = sdiv i32 %309, %326
  %339 = call i32 @opus_packet_get_samples_per_frame(ptr noundef nonnull %3, i32 noundef %308) #10
  %.not200.3 = icmp eq i32 %338, %339
  br i1 %.not200.3, label %340, label %330

340:                                              ; preds = %337
  %341 = sdiv i32 %311, %326
  %342 = call i32 @opus_packet_get_samples_per_frame(ptr noundef nonnull %3, i32 noundef %310) #10
  %.not200.4 = icmp eq i32 %341, %342
  br i1 %.not200.4, label %343, label %330

343:                                              ; preds = %340
  %344 = load i32, ptr %2, align 4, !tbaa !9
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %2, align 4, !tbaa !9
  %346 = icmp slt i32 %344, 255
  br i1 %346, label %312, label %347, !llvm.loop !18

347:                                              ; preds = %343
  %348 = load ptr, ptr @stdout, align 8, !tbaa !5
  %349 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %348, ptr noundef nonnull @.str.20) #10
  store i8 -1, ptr %3, align 16, !tbaa !14
  store i8 49, ptr %136, align 1, !tbaa !14
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 2 dereferenceable(49) %135, i8 0, i64 49, i1 false), !tbaa !14
  %350 = call i32 @opus_decode(ptr noundef %76, ptr noundef nonnull %3, i32 noundef 51, ptr noundef nonnull %5, i32 noundef 960, i32 noundef 0) #10
  %.not194 = icmp eq i32 %350, -4
  br i1 %.not194, label %352, label %351

351:                                              ; preds = %347
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 305) #11
  unreachable

352:                                              ; preds = %347
  store i8 -4, ptr %3, align 16, !tbaa !14
  store i8 0, ptr %135, align 2, !tbaa !14
  store i8 0, ptr %136, align 1, !tbaa !14
  %353 = call i32 @opus_decode(ptr noundef %76, ptr noundef nonnull %3, i32 noundef -1, ptr noundef nonnull %5, i32 noundef 960, i32 noundef 0) #10
  %.not195 = icmp eq i32 %353, -1
  br i1 %.not195, label %355, label %354

354:                                              ; preds = %352
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 309) #11
  unreachable

355:                                              ; preds = %352
  %356 = call i32 @opus_decode(ptr noundef %76, ptr noundef nonnull %3, i32 noundef 3, ptr noundef nonnull %5, i32 noundef 60, i32 noundef 0) #10
  %.not196 = icmp eq i32 %356, -2
  br i1 %.not196, label %358, label %357

357:                                              ; preds = %355
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 311) #11
  unreachable

358:                                              ; preds = %355
  %359 = call i32 @opus_decode(ptr noundef %76, ptr noundef nonnull %3, i32 noundef 3, ptr noundef nonnull %5, i32 noundef 480, i32 noundef 0) #10
  %.not197 = icmp eq i32 %359, -2
  br i1 %.not197, label %361, label %360

360:                                              ; preds = %358
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 313) #11
  unreachable

361:                                              ; preds = %358
  %362 = call i32 @opus_decode(ptr noundef %76, ptr noundef nonnull %3, i32 noundef 3, ptr noundef nonnull %5, i32 noundef 960, i32 noundef 0) #10
  %.not198 = icmp eq i32 %362, 960
  br i1 %.not198, label %364, label %363

363:                                              ; preds = %361
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 315) #11
  unreachable

364:                                              ; preds = %361
  %365 = load ptr, ptr @stdout, align 8, !tbaa !5
  %366 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef nonnull @.str.21) #10
  %367 = call i32 @opus_decode_float(ptr noundef %76, ptr noundef nonnull %3, i32 noundef 3, ptr noundef nonnull %4, i32 noundef 960, i32 noundef 0) #10
  %.not199 = icmp eq i32 %367, 960
  br i1 %.not199, label %369, label %368

368:                                              ; preds = %364
  call void @_test_failed(ptr noundef nonnull @.str.2, i32 noundef 320) #11
  unreachable

369:                                              ; preds = %364
  %370 = load ptr, ptr @stdout, align 8, !tbaa !5
  %371 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %370, ptr noundef nonnull @.str.22) #10
  call void @opus_decoder_destroy(ptr noundef %76) #10
  %372 = add i32 %.7252, 12
  %373 = load ptr, ptr @stdout, align 8, !tbaa !5
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef nonnull @.str.23) #10
  %375 = load ptr, ptr @stdout, align 8, !tbaa !5
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %375, ptr noundef nonnull @.str.24, i32 noundef %372) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 3840, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 7680, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 1276, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  ret i32 %372
}

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

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

declare i32 @opus_decoder_get_size(i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

declare i32 @opus_decoder_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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

declare i32 @opus_decoder_ctl(ptr noundef, i32 noundef, ...) local_unnamed_addr #3

declare i32 @opus_decode(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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) #7

declare i32 @opus_decoder_get_nb_samples(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @opus_packet_get_nb_samples(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @opus_packet_get_nb_frames(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @opus_packet_get_bandwidth(ptr noundef) local_unnamed_addr #3

declare i32 @opus_packet_get_samples_per_frame(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @opus_decode_float(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @opus_decoder_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #8

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

!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}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


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