; LLVM IR from jgaeddert/liquid-dsp :: src/fft/tests (spgram_autotest)

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

@liquid_autotest_verbose = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [38 x i8], align 1

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

declare ptr @spgramcf_create(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare i32 @spgramcf_push(ptr noundef, <2 x float> noundef) #1

declare float @randnf(...) #1

declare i64 @spgramcf_get_num_samples(ptr noundef) #1

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #1

declare void @liquid_autotest_passed(...) #1

declare i64 @spgramcf_get_num_samples_total(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

declare i32 @spgramcf_get_psd(ptr noundef, ptr noundef) #1

declare i32 @spgramcf_destroy(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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

declare i32 @spgramcf_get_nfft(ptr noundef) #1

declare i32 @spgramcf_get_window_len(ptr noundef) #1

declare i32 @spgramcf_get_delay(ptr noundef) #1

declare i64 @spgramcf_get_num_transforms(ptr noundef) #1

declare i64 @spgramcf_get_num_transforms_total(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_spgramcf_copy() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca { float, float }, align 4
  %7 = alloca { float, float }, align 4
  %8 = alloca ptr, align 8
  %9 = alloca { float, float }, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 1200, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 9600, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store float 0x3FB99999A0000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = call ptr @spgramcf_create(i32 noundef %15, i32 noundef 5, i32 noundef 960, i32 noundef 373)
  store ptr %16, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %42, %0
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp ult i32 %18, %19
  br i1 %20, label %21, label %45

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %22 = load float, ptr %3, align 4, !tbaa !9
  %23 = call float (...) @randnf()
  %24 = call float (...) @randnf()
  %25 = fmul float 0.000000e+00, %24
  %26 = fmul float 1.000000e+00, %24
  %27 = fadd float %23, %25
  %28 = fmul float %22, %27
  %29 = fmul float %22, %26
  %30 = fadd float 0x3FB99999A0000000, %28
  %31 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %32 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  store float %30, ptr %31, align 4
  store float %29, ptr %32, align 4
  %33 = load ptr, ptr %4, align 8, !tbaa !11
  %34 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %35 = load float, ptr %34, align 4
  %36 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %37 = load float, ptr %36, align 4
  %38 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %39 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  store float %35, ptr %38, align 4
  store float %37, ptr %39, align 4
  %40 = load <2 x float>, ptr %7, align 4
  %41 = call i32 @spgramcf_push(ptr noundef %33, <2 x float> noundef %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %42

42:                                               ; preds = %21
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = add i32 %43, 1
  store i32 %44, ptr %5, align 4, !tbaa !5
  br label %17, !llvm.loop !13

45:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %46 = load ptr, ptr %4, align 8, !tbaa !11
  %47 = call ptr @spgramcf_copy(ptr noundef %46)
  store ptr %47, ptr %8, align 8, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %82, %45
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = icmp ult i32 %49, %50
  br i1 %51, label %52, label %85

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %53 = load float, ptr %3, align 4, !tbaa !9
  %54 = call float (...) @randnf()
  %55 = call float (...) @randnf()
  %56 = fmul float 0.000000e+00, %55
  %57 = fmul float 1.000000e+00, %55
  %58 = fadd float %54, %56
  %59 = fmul float %53, %58
  %60 = fmul float %53, %57
  %61 = fadd float 0x3FB99999A0000000, %59
  %62 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %63 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %61, ptr %62, align 4
  store float %60, ptr %63, align 4
  %64 = load ptr, ptr %4, align 8, !tbaa !11
  %65 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %66 = load float, ptr %65, align 4
  %67 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  %68 = load float, ptr %67, align 4
  %69 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %70 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %66, ptr %69, align 4
  store float %68, ptr %70, align 4
  %71 = load <2 x float>, ptr %10, align 4
  %72 = call i32 @spgramcf_push(ptr noundef %64, <2 x float> noundef %71)
  %73 = load ptr, ptr %8, align 8, !tbaa !11
  %74 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %75 = load float, ptr %74, align 4
  %76 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  %77 = load float, ptr %76, align 4
  %78 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %79 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %75, ptr %78, align 4
  store float %77, ptr %79, align 4
  %80 = load <2 x float>, ptr %11, align 4
  %81 = call i32 @spgramcf_push(ptr noundef %73, <2 x float> noundef %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %82

82:                                               ; preds = %52
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = add i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !5
  br label %48, !llvm.loop !15

85:                                               ; preds = %48
  %86 = load i32, ptr %1, align 4, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = call ptr @llvm.stacksave.p0()
  store ptr %88, ptr %12, align 8
  %89 = alloca float, i64 %87, align 16
  store i64 %87, ptr %13, align 8
  %90 = load i32, ptr %1, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = alloca float, i64 %91, align 16
  store i64 %91, ptr %14, align 8
  %93 = load ptr, ptr %4, align 8, !tbaa !11
  %94 = call i32 @spgramcf_get_psd(ptr noundef %93, ptr noundef %89)
  %95 = load ptr, ptr %8, align 8, !tbaa !11
  %96 = call i32 @spgramcf_get_psd(ptr noundef %95, ptr noundef %92)
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = zext i32 %97 to i64
  %99 = mul i64 %98, 4
  %100 = trunc i64 %99 to i32
  %101 = call i32 @liquid_autotest_same_data(ptr noundef %89, ptr noundef %92, i32 noundef %100)
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %116, label %103

103:                                              ; preds = %85
  call void @liquid_autotest_failed_msg(ptr noundef @.str.1, i32 noundef 345, ptr noundef @.str.55)
  %104 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %115

106:                                              ; preds = %103
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = mul i64 %108, 4
  %110 = trunc i64 %109 to i32
  call void @liquid_autotest_print_array(ptr noundef %89, i32 noundef %110)
  %111 = load i32, ptr %1, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  %113 = mul i64 %112, 4
  %114 = trunc i64 %113 to i32
  call void @liquid_autotest_print_array(ptr noundef %92, i32 noundef %114)
  br label %115

115:                                              ; preds = %106, %103
  br label %117

116:                                              ; preds = %85
  call void (...) @liquid_autotest_passed()
  br label %117

117:                                              ; preds = %116, %115
  %118 = load ptr, ptr %4, align 8, !tbaa !11
  %119 = call i32 @spgramcf_get_nfft(ptr noundef %118)
  %120 = load ptr, ptr %8, align 8, !tbaa !11
  %121 = call i32 @spgramcf_get_nfft(ptr noundef %120)
  %122 = icmp ne i32 %119, %121
  br i1 %122, label %123, label %130

123:                                              ; preds = %117
  %124 = load ptr, ptr %4, align 8, !tbaa !11
  %125 = call i32 @spgramcf_get_nfft(ptr noundef %124)
  %126 = uitofp i32 %125 to double
  %127 = load ptr, ptr %8, align 8, !tbaa !11
  %128 = call i32 @spgramcf_get_nfft(ptr noundef %127)
  %129 = uitofp i32 %128 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 348, ptr noundef @.str.56, double noundef %126, ptr noundef @.str.3, ptr noundef @.str.57, double noundef %129)
  br label %131

130:                                              ; preds = %117
  call void (...) @liquid_autotest_passed()
  br label %131

131:                                              ; preds = %130, %123
  %132 = load ptr, ptr %4, align 8, !tbaa !11
  %133 = call i32 @spgramcf_get_window_len(ptr noundef %132)
  %134 = load ptr, ptr %8, align 8, !tbaa !11
  %135 = call i32 @spgramcf_get_window_len(ptr noundef %134)
  %136 = icmp ne i32 %133, %135
  br i1 %136, label %137, label %144

137:                                              ; preds = %131
  %138 = load ptr, ptr %4, align 8, !tbaa !11
  %139 = call i32 @spgramcf_get_window_len(ptr noundef %138)
  %140 = uitofp i32 %139 to double
  %141 = load ptr, ptr %8, align 8, !tbaa !11
  %142 = call i32 @spgramcf_get_window_len(ptr noundef %141)
  %143 = uitofp i32 %142 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 349, ptr noundef @.str.58, double noundef %140, ptr noundef @.str.3, ptr noundef @.str.59, double noundef %143)
  br label %145

144:                                              ; preds = %131
  call void (...) @liquid_autotest_passed()
  br label %145

145:                                              ; preds = %144, %137
  %146 = load ptr, ptr %4, align 8, !tbaa !11
  %147 = call i32 @spgramcf_get_delay(ptr noundef %146)
  %148 = load ptr, ptr %8, align 8, !tbaa !11
  %149 = call i32 @spgramcf_get_delay(ptr noundef %148)
  %150 = icmp ne i32 %147, %149
  br i1 %150, label %151, label %158

151:                                              ; preds = %145
  %152 = load ptr, ptr %4, align 8, !tbaa !11
  %153 = call i32 @spgramcf_get_delay(ptr noundef %152)
  %154 = uitofp i32 %153 to double
  %155 = load ptr, ptr %8, align 8, !tbaa !11
  %156 = call i32 @spgramcf_get_delay(ptr noundef %155)
  %157 = uitofp i32 %156 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 350, ptr noundef @.str.60, double noundef %154, ptr noundef @.str.3, ptr noundef @.str.61, double noundef %157)
  br label %159

158:                                              ; preds = %145
  call void (...) @liquid_autotest_passed()
  br label %159

159:                                              ; preds = %158, %151
  %160 = load ptr, ptr %4, align 8, !tbaa !11
  %161 = call i32 @spgramcf_get_wtype(ptr noundef %160)
  %162 = load ptr, ptr %8, align 8, !tbaa !11
  %163 = call i32 @spgramcf_get_wtype(ptr noundef %162)
  %164 = icmp ne i32 %161, %163
  br i1 %164, label %165, label %172

165:                                              ; preds = %159
  %166 = load ptr, ptr %4, align 8, !tbaa !11
  %167 = call i32 @spgramcf_get_wtype(ptr noundef %166)
  %168 = sitofp i32 %167 to double
  %169 = load ptr, ptr %8, align 8, !tbaa !11
  %170 = call i32 @spgramcf_get_wtype(ptr noundef %169)
  %171 = sitofp i32 %170 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 351, ptr noundef @.str.62, double noundef %168, ptr noundef @.str.3, ptr noundef @.str.63, double noundef %171)
  br label %173

172:                                              ; preds = %159
  call void (...) @liquid_autotest_passed()
  br label %173

173:                                              ; preds = %172, %165
  %174 = load ptr, ptr %4, align 8, !tbaa !11
  %175 = call i64 @spgramcf_get_num_samples(ptr noundef %174)
  %176 = load ptr, ptr %8, align 8, !tbaa !11
  %177 = call i64 @spgramcf_get_num_samples(ptr noundef %176)
  %178 = icmp ne i64 %175, %177
  br i1 %178, label %179, label %186

179:                                              ; preds = %173
  %180 = load ptr, ptr %4, align 8, !tbaa !11
  %181 = call i64 @spgramcf_get_num_samples(ptr noundef %180)
  %182 = uitofp i64 %181 to double
  %183 = load ptr, ptr %8, align 8, !tbaa !11
  %184 = call i64 @spgramcf_get_num_samples(ptr noundef %183)
  %185 = uitofp i64 %184 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 352, ptr noundef @.str.64, double noundef %182, ptr noundef @.str.3, ptr noundef @.str.65, double noundef %185)
  br label %187

186:                                              ; preds = %173
  call void (...) @liquid_autotest_passed()
  br label %187

187:                                              ; preds = %186, %179
  %188 = load ptr, ptr %4, align 8, !tbaa !11
  %189 = call i64 @spgramcf_get_num_samples_total(ptr noundef %188)
  %190 = load ptr, ptr %8, align 8, !tbaa !11
  %191 = call i64 @spgramcf_get_num_samples_total(ptr noundef %190)
  %192 = icmp ne i64 %189, %191
  br i1 %192, label %193, label %200

193:                                              ; preds = %187
  %194 = load ptr, ptr %4, align 8, !tbaa !11
  %195 = call i64 @spgramcf_get_num_samples_total(ptr noundef %194)
  %196 = uitofp i64 %195 to double
  %197 = load ptr, ptr %8, align 8, !tbaa !11
  %198 = call i64 @spgramcf_get_num_samples_total(ptr noundef %197)
  %199 = uitofp i64 %198 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 353, ptr noundef @.str.66, double noundef %196, ptr noundef @.str.3, ptr noundef @.str.67, double noundef %199)
  br label %201

200:                                              ; preds = %187
  call void (...) @liquid_autotest_passed()
  br label %201

201:                                              ; preds = %200, %193
  %202 = load ptr, ptr %4, align 8, !tbaa !11
  %203 = call i64 @spgramcf_get_num_transforms(ptr noundef %202)
  %204 = load ptr, ptr %8, align 8, !tbaa !11
  %205 = call i64 @spgramcf_get_num_transforms(ptr noundef %204)
  %206 = icmp ne i64 %203, %205
  br i1 %206, label %207, label %214

207:                                              ; preds = %201
  %208 = load ptr, ptr %4, align 8, !tbaa !11
  %209 = call i64 @spgramcf_get_num_transforms(ptr noundef %208)
  %210 = uitofp i64 %209 to double
  %211 = load ptr, ptr %8, align 8, !tbaa !11
  %212 = call i64 @spgramcf_get_num_transforms(ptr noundef %211)
  %213 = uitofp i64 %212 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 354, ptr noundef @.str.68, double noundef %210, ptr noundef @.str.3, ptr noundef @.str.69, double noundef %213)
  br label %215

214:                                              ; preds = %201
  call void (...) @liquid_autotest_passed()
  br label %215

215:                                              ; preds = %214, %207
  %216 = load ptr, ptr %4, align 8, !tbaa !11
  %217 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %216)
  %218 = load ptr, ptr %8, align 8, !tbaa !11
  %219 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %218)
  %220 = icmp ne i64 %217, %219
  br i1 %220, label %221, label %228

221:                                              ; preds = %215
  %222 = load ptr, ptr %4, align 8, !tbaa !11
  %223 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %222)
  %224 = uitofp i64 %223 to double
  %225 = load ptr, ptr %8, align 8, !tbaa !11
  %226 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %225)
  %227 = uitofp i64 %226 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 355, ptr noundef @.str.70, double noundef %224, ptr noundef @.str.3, ptr noundef @.str.71, double noundef %227)
  br label %229

228:                                              ; preds = %215
  call void (...) @liquid_autotest_passed()
  br label %229

229:                                              ; preds = %228, %221
  %230 = load ptr, ptr %4, align 8, !tbaa !11
  %231 = call i32 @spgramcf_destroy(ptr noundef %230)
  %232 = load ptr, ptr %8, align 8, !tbaa !11
  %233 = call i32 @spgramcf_destroy(ptr noundef %232)
  %234 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %234)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

declare ptr @spgramcf_copy(ptr noundef) #1

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) #1

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) #1

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) #1

declare i32 @spgramcf_get_wtype(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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


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

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [38 x i8], align 1

declare ptr @spgramcf_create(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @spgramcf_push(ptr noundef, <2 x float> noundef) local_unnamed_addr #0

declare float @randnf(...) local_unnamed_addr #0

declare i64 @spgramcf_get_num_samples(ptr noundef) local_unnamed_addr #0

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #0

declare void @liquid_autotest_passed(...) local_unnamed_addr #0

declare i64 @spgramcf_get_num_samples_total(ptr noundef) local_unnamed_addr #0

declare i32 @spgramcf_get_psd(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #0

declare i32 @spgramcf_get_nfft(ptr noundef) local_unnamed_addr #0

declare i32 @spgramcf_get_window_len(ptr noundef) local_unnamed_addr #0

declare i32 @spgramcf_get_delay(ptr noundef) local_unnamed_addr #0

declare i64 @spgramcf_get_num_transforms(ptr noundef) local_unnamed_addr #0

declare i64 @spgramcf_get_num_transforms_total(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @autotest_spgramcf_copy() local_unnamed_addr #1 {
  %1 = tail call ptr @spgramcf_create(i32 noundef 1200, i32 noundef 5, i32 noundef 960, i32 noundef 373) #2
  br label %2

2:                                                ; preds = %0, %2
  %.072 = phi i32 [ 0, %0 ], [ %11, %2 ]
  %3 = tail call float (...) @randnf() #2
  %4 = tail call float (...) @randnf() #2
  %5 = fmul float %4, 0.000000e+00
  %6 = fadd float %3, %5
  %7 = fmul float %6, 0x3FB99999A0000000
  %8 = fmul float %4, 0x3FB99999A0000000
  %9 = fadd float %7, 0x3FB99999A0000000
  %.sroa.026.0.vec.insert = insertelement <2 x float> poison, float %9, i64 0
  %.sroa.026.4.vec.insert = insertelement <2 x float> %.sroa.026.0.vec.insert, float %8, i64 1
  %10 = tail call i32 @spgramcf_push(ptr noundef %1, <2 x float> noundef %.sroa.026.4.vec.insert) #2
  %11 = add nuw nsw i32 %.072, 1
  %exitcond.not = icmp eq i32 %11, 9600
  br i1 %exitcond.not, label %12, label %2, !llvm.loop !5

12:                                               ; preds = %2
  %13 = tail call ptr @spgramcf_copy(ptr noundef %1) #2
  br label %14

14:                                               ; preds = %12, %14
  %.173 = phi i32 [ 0, %12 ], [ %24, %14 ]
  %15 = tail call float (...) @randnf() #2
  %16 = tail call float (...) @randnf() #2
  %17 = fmul float %16, 0.000000e+00
  %18 = fadd float %15, %17
  %19 = fmul float %18, 0x3FB99999A0000000
  %20 = fmul float %16, 0x3FB99999A0000000
  %21 = fadd float %19, 0x3FB99999A0000000
  %.sroa.02.0.vec.insert = insertelement <2 x float> poison, float %21, i64 0
  %.sroa.02.4.vec.insert = insertelement <2 x float> %.sroa.02.0.vec.insert, float %20, i64 1
  %22 = tail call i32 @spgramcf_push(ptr noundef %1, <2 x float> noundef %.sroa.02.4.vec.insert) #2
  %23 = tail call i32 @spgramcf_push(ptr noundef %13, <2 x float> noundef %.sroa.02.4.vec.insert) #2
  %24 = add nuw nsw i32 %.173, 1
  %exitcond74.not = icmp eq i32 %24, 9600
  br i1 %exitcond74.not, label %25, label %14, !llvm.loop !7

25:                                               ; preds = %14
  %26 = alloca [1200 x float], align 16
  %27 = alloca [1200 x float], align 16
  %28 = call i32 @spgramcf_get_psd(ptr noundef %1, ptr noundef nonnull %26) #2
  %29 = call i32 @spgramcf_get_psd(ptr noundef %13, ptr noundef nonnull %27) #2
  %30 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %26, ptr noundef nonnull %27, i32 noundef 4800) #2
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %31, label %34

31:                                               ; preds = %25
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.1, i32 noundef 345, ptr noundef nonnull @.str.55) #2
  %32 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !8
  %.not63 = icmp eq i32 %32, 0
  br i1 %.not63, label %35, label %33

33:                                               ; preds = %31
  call void @liquid_autotest_print_array(ptr noundef nonnull %26, i32 noundef 4800) #2
  call void @liquid_autotest_print_array(ptr noundef nonnull %27, i32 noundef 4800) #2
  br label %35

34:                                               ; preds = %25
  call void (...) @liquid_autotest_passed() #2
  br label %35

35:                                               ; preds = %31, %33, %34
  %36 = call i32 @spgramcf_get_nfft(ptr noundef %1) #2
  %37 = call i32 @spgramcf_get_nfft(ptr noundef %13) #2
  %.not64 = icmp eq i32 %36, %37
  br i1 %.not64, label %43, label %38

38:                                               ; preds = %35
  %39 = call i32 @spgramcf_get_nfft(ptr noundef %1) #2
  %40 = uitofp i32 %39 to double
  %41 = call i32 @spgramcf_get_nfft(ptr noundef %13) #2
  %42 = uitofp i32 %41 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 348, ptr noundef nonnull @.str.56, double noundef %40, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.57, double noundef %42) #2
  br label %44

43:                                               ; preds = %35
  call void (...) @liquid_autotest_passed() #2
  br label %44

44:                                               ; preds = %43, %38
  %45 = call i32 @spgramcf_get_window_len(ptr noundef %1) #2
  %46 = call i32 @spgramcf_get_window_len(ptr noundef %13) #2
  %.not65 = icmp eq i32 %45, %46
  br i1 %.not65, label %52, label %47

47:                                               ; preds = %44
  %48 = call i32 @spgramcf_get_window_len(ptr noundef %1) #2
  %49 = uitofp i32 %48 to double
  %50 = call i32 @spgramcf_get_window_len(ptr noundef %13) #2
  %51 = uitofp i32 %50 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 349, ptr noundef nonnull @.str.58, double noundef %49, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.59, double noundef %51) #2
  br label %53

52:                                               ; preds = %44
  call void (...) @liquid_autotest_passed() #2
  br label %53

53:                                               ; preds = %52, %47
  %54 = call i32 @spgramcf_get_delay(ptr noundef %1) #2
  %55 = call i32 @spgramcf_get_delay(ptr noundef %13) #2
  %.not66 = icmp eq i32 %54, %55
  br i1 %.not66, label %61, label %56

56:                                               ; preds = %53
  %57 = call i32 @spgramcf_get_delay(ptr noundef %1) #2
  %58 = uitofp i32 %57 to double
  %59 = call i32 @spgramcf_get_delay(ptr noundef %13) #2
  %60 = uitofp i32 %59 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 350, ptr noundef nonnull @.str.60, double noundef %58, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.61, double noundef %60) #2
  br label %62

61:                                               ; preds = %53
  call void (...) @liquid_autotest_passed() #2
  br label %62

62:                                               ; preds = %61, %56
  %63 = call i32 @spgramcf_get_wtype(ptr noundef %1) #2
  %64 = call i32 @spgramcf_get_wtype(ptr noundef %13) #2
  %.not67 = icmp eq i32 %63, %64
  br i1 %.not67, label %70, label %65

65:                                               ; preds = %62
  %66 = call i32 @spgramcf_get_wtype(ptr noundef %1) #2
  %67 = sitofp i32 %66 to double
  %68 = call i32 @spgramcf_get_wtype(ptr noundef %13) #2
  %69 = sitofp i32 %68 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 351, ptr noundef nonnull @.str.62, double noundef %67, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.63, double noundef %69) #2
  br label %71

70:                                               ; preds = %62
  call void (...) @liquid_autotest_passed() #2
  br label %71

71:                                               ; preds = %70, %65
  %72 = call i64 @spgramcf_get_num_samples(ptr noundef %1) #2
  %73 = call i64 @spgramcf_get_num_samples(ptr noundef %13) #2
  %.not68 = icmp eq i64 %72, %73
  br i1 %.not68, label %79, label %74

74:                                               ; preds = %71
  %75 = call i64 @spgramcf_get_num_samples(ptr noundef %1) #2
  %76 = uitofp i64 %75 to double
  %77 = call i64 @spgramcf_get_num_samples(ptr noundef %13) #2
  %78 = uitofp i64 %77 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 352, ptr noundef nonnull @.str.64, double noundef %76, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.65, double noundef %78) #2
  br label %80

79:                                               ; preds = %71
  call void (...) @liquid_autotest_passed() #2
  br label %80

80:                                               ; preds = %79, %74
  %81 = call i64 @spgramcf_get_num_samples_total(ptr noundef %1) #2
  %82 = call i64 @spgramcf_get_num_samples_total(ptr noundef %13) #2
  %.not69 = icmp eq i64 %81, %82
  br i1 %.not69, label %88, label %83

83:                                               ; preds = %80
  %84 = call i64 @spgramcf_get_num_samples_total(ptr noundef %1) #2
  %85 = uitofp i64 %84 to double
  %86 = call i64 @spgramcf_get_num_samples_total(ptr noundef %13) #2
  %87 = uitofp i64 %86 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 353, ptr noundef nonnull @.str.66, double noundef %85, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.67, double noundef %87) #2
  br label %89

88:                                               ; preds = %80
  call void (...) @liquid_autotest_passed() #2
  br label %89

89:                                               ; preds = %88, %83
  %90 = call i64 @spgramcf_get_num_transforms(ptr noundef %1) #2
  %91 = call i64 @spgramcf_get_num_transforms(ptr noundef %13) #2
  %.not70 = icmp eq i64 %90, %91
  br i1 %.not70, label %97, label %92

92:                                               ; preds = %89
  %93 = call i64 @spgramcf_get_num_transforms(ptr noundef %1) #2
  %94 = uitofp i64 %93 to double
  %95 = call i64 @spgramcf_get_num_transforms(ptr noundef %13) #2
  %96 = uitofp i64 %95 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 354, ptr noundef nonnull @.str.68, double noundef %94, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.69, double noundef %96) #2
  br label %98

97:                                               ; preds = %89
  call void (...) @liquid_autotest_passed() #2
  br label %98

98:                                               ; preds = %97, %92
  %99 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %1) #2
  %100 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %13) #2
  %.not71 = icmp eq i64 %99, %100
  br i1 %.not71, label %106, label %101

101:                                              ; preds = %98
  %102 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %1) #2
  %103 = uitofp i64 %102 to double
  %104 = call i64 @spgramcf_get_num_transforms_total(ptr noundef %13) #2
  %105 = uitofp i64 %104 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 355, ptr noundef nonnull @.str.70, double noundef %103, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.71, double noundef %105) #2
  br label %107

106:                                              ; preds = %98
  call void (...) @liquid_autotest_passed() #2
  br label %107

107:                                              ; preds = %106, %101
  %108 = call i32 @spgramcf_destroy(ptr noundef %1) #2
  %109 = call i32 @spgramcf_destroy(ptr noundef %13) #2
  ret void
}

declare ptr @spgramcf_copy(ptr noundef) local_unnamed_addr #0

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @spgramcf_get_wtype(ptr noundef) local_unnamed_addr #0

attributes #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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass