; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (fskframesync)

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

%struct.fskframesync_s = type { i32, i32, float, i32, ptr, ptr, ptr, ptr, ptr, %struct.framesyncstats_s, ptr, i32, i32, ptr, ptr, ptr, ptr, [3 x float], i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local ptr @fskframesync_create(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %11 = call noalias ptr @malloc(i64 noundef 288) #6
  store ptr %11, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.fskframesync_s, ptr %13, i32 0, i32 7
  store ptr %12, ptr %14, align 8, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.fskframesync_s, ptr %16, i32 0, i32 8
  store ptr %15, ptr %17, align 8, !tbaa !14
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.fskframesync_s, ptr %18, i32 0, i32 0
  store i32 4, ptr %19, align 8, !tbaa !15
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.fskframesync_s, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !15
  %23 = shl i32 1, %22
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.fskframesync_s, ptr %24, i32 0, i32 3
  store i32 %23, ptr %25, align 4, !tbaa !16
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.fskframesync_s, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !15
  %29 = shl i32 2, %28
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.fskframesync_s, ptr %30, i32 0, i32 1
  store i32 %29, ptr %31, align 4, !tbaa !17
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.fskframesync_s, ptr %32, i32 0, i32 2
  store float 2.500000e-01, ptr %33, align 8, !tbaa !18
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.fskframesync_s, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !17
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.fskframesync_s, ptr %37, i32 0, i32 2
  %39 = load float, ptr %38, align 8, !tbaa !18
  %40 = call ptr @fskdem_create(i32 noundef 1, i32 noundef %36, float noundef %39)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.fskframesync_s, ptr %41, i32 0, i32 4
  store ptr %40, ptr %42, align 8, !tbaa !19
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.fskframesync_s, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !15
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.fskframesync_s, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !17
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.fskframesync_s, ptr %49, i32 0, i32 2
  %51 = load float, ptr %50, align 8, !tbaa !18
  %52 = call ptr @fskdem_create(i32 noundef %45, i32 noundef %48, float noundef %51)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.fskframesync_s, ptr %53, i32 0, i32 5
  store ptr %52, ptr %54, align 8, !tbaa !20
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.fskframesync_s, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !17
  %58 = zext i32 %57 to i64
  %59 = mul i64 %58, 8
  %60 = call noalias ptr @malloc(i64 noundef %59) #6
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.fskframesync_s, ptr %61, i32 0, i32 6
  store ptr %60, ptr %62, align 8, !tbaa !21
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.fskframesync_s, ptr %63, i32 0, i32 11
  store i32 64, ptr %64, align 8, !tbaa !22
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.fskframesync_s, ptr %65, i32 0, i32 11
  %67 = load i32, ptr %66, align 8, !tbaa !22
  %68 = call ptr @firpfb_crcf_create_kaiser(i32 noundef %67, i32 noundef 5, float noundef 0x3FDCCCCCC0000000, float noundef 4.000000e+01)
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.fskframesync_s, ptr %69, i32 0, i32 10
  store ptr %68, ptr %70, align 8, !tbaa !23
  %71 = call ptr @nco_crcf_create(i32 noundef 1)
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.fskframesync_s, ptr %72, i32 0, i32 13
  store ptr %71, ptr %73, align 8, !tbaa !24
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.fskframesync_s, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !17
  %77 = call ptr @windowcf_create(i32 noundef %76)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.fskframesync_s, ptr %78, i32 0, i32 15
  store ptr %77, ptr %79, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %80 = call ptr @msequence_create(i32 noundef 6, i32 noundef 109, i32 noundef 1)
  store ptr %80, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 63, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %81 = load i32, ptr %7, align 4, !tbaa !26
  %82 = mul i32 2, %81
  %83 = zext i32 %82 to i64
  %84 = mul i64 %83, 4
  %85 = call noalias ptr @malloc(i64 noundef %84) #6
  store ptr %85, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !26
  br label %86

86:                                               ; preds = %118, %2
  %87 = load i32, ptr %9, align 4, !tbaa !26
  %88 = load i32, ptr %7, align 4, !tbaa !26
  %89 = icmp ult i32 %87, %88
  br i1 %89, label %90, label %121

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call i32 @msequence_advance(ptr noundef %91)
  %93 = icmp ne i32 %92, 0
  %94 = zext i1 %93 to i64
  %95 = select i1 %93, float 1.000000e+00, float -1.000000e+00
  store float %95, ptr %10, align 4, !tbaa !27
  %96 = load float, ptr %10, align 4, !tbaa !27
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i32, ptr %7, align 4, !tbaa !26
  %99 = mul i32 2, %98
  %100 = load i32, ptr %9, align 4, !tbaa !26
  %101 = mul i32 2, %100
  %102 = add i32 %101, 0
  %103 = sub i32 %99, %102
  %104 = sub i32 %103, 1
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds float, ptr %97, i64 %105
  store float %96, ptr %106, align 4, !tbaa !27
  %107 = load float, ptr %10, align 4, !tbaa !27
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !26
  %110 = mul i32 2, %109
  %111 = load i32, ptr %9, align 4, !tbaa !26
  %112 = mul i32 2, %111
  %113 = add i32 %112, 1
  %114 = sub i32 %110, %113
  %115 = sub i32 %114, 1
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds float, ptr %108, i64 %116
  store float %107, ptr %117, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %118

118:                                              ; preds = %90
  %119 = load i32, ptr %9, align 4, !tbaa !26
  %120 = add i32 %119, 1
  store i32 %120, ptr %9, align 4, !tbaa !26
  br label %86, !llvm.loop !28

121:                                              ; preds = %86
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !26
  %124 = mul i32 2, %123
  %125 = call ptr @firfilt_rrrf_create(ptr noundef %122, i32 noundef %124)
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.fskframesync_s, ptr %126, i32 0, i32 14
  store ptr %125, ptr %127, align 8, !tbaa !30
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %128) #5
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = call i32 @msequence_destroy(ptr noundef %129)
  %131 = load i32, ptr %7, align 4, !tbaa !26
  %132 = mul i32 2, %131
  %133 = call ptr @windowf_create(i32 noundef %132)
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.fskframesync_s, ptr %134, i32 0, i32 16
  store ptr %133, ptr %135, align 8, !tbaa !31
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.fskframesync_s, ptr %136, i32 0, i32 18
  store i32 10, ptr %137, align 4, !tbaa !32
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.fskframesync_s, ptr %138, i32 0, i32 18
  %140 = load i32, ptr %139, align 4, !tbaa !32
  %141 = zext i32 %140 to i64
  %142 = mul i64 %141, 1
  %143 = call noalias ptr @malloc(i64 noundef %142) #6
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.fskframesync_s, ptr %144, i32 0, i32 20
  store ptr %143, ptr %145, align 8, !tbaa !33
  %146 = call ptr (...) @qpacketmodem_create()
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.fskframesync_s, ptr %147, i32 0, i32 22
  store ptr %146, ptr %148, align 8, !tbaa !34
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.fskframesync_s, ptr %149, i32 0, i32 22
  %151 = load ptr, ptr %150, align 8, !tbaa !34
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.fskframesync_s, ptr %152, i32 0, i32 18
  %154 = load i32, ptr %153, align 4, !tbaa !32
  %155 = call i32 @qpacketmodem_configure(ptr noundef %151, i32 noundef %154, i32 noundef 6, i32 noundef 1, i32 noundef 7, i32 noundef 39)
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.fskframesync_s, ptr %156, i32 0, i32 22
  %158 = load ptr, ptr %157, align 8, !tbaa !34
  %159 = call i32 @qpacketmodem_get_frame_len(ptr noundef %158)
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.fskframesync_s, ptr %160, i32 0, i32 19
  store i32 %159, ptr %161, align 8, !tbaa !35
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.fskframesync_s, ptr %162, i32 0, i32 19
  %164 = load i32, ptr %163, align 8, !tbaa !35
  %165 = zext i32 %164 to i64
  %166 = mul i64 %165, 1
  %167 = call noalias ptr @malloc(i64 noundef %166) #6
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.fskframesync_s, ptr %168, i32 0, i32 21
  store ptr %167, ptr %169, align 8, !tbaa !36
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.fskframesync_s, ptr %170, i32 0, i32 23
  store i32 200, ptr %171, align 8, !tbaa !37
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.fskframesync_s, ptr %172, i32 0, i32 24
  store i32 6, ptr %173, align 4, !tbaa !38
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.fskframesync_s, ptr %174, i32 0, i32 25
  store i32 1, ptr %175, align 8, !tbaa !39
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.fskframesync_s, ptr %176, i32 0, i32 26
  store i32 6, ptr %177, align 4, !tbaa !40
  %178 = call ptr (...) @qpacketmodem_create()
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.fskframesync_s, ptr %179, i32 0, i32 30
  store ptr %178, ptr %180, align 8, !tbaa !41
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.fskframesync_s, ptr %181, i32 0, i32 30
  %183 = load ptr, ptr %182, align 8, !tbaa !41
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.fskframesync_s, ptr %184, i32 0, i32 23
  %186 = load i32, ptr %185, align 8, !tbaa !37
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.fskframesync_s, ptr %187, i32 0, i32 24
  %189 = load i32, ptr %188, align 4, !tbaa !38
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.fskframesync_s, ptr %190, i32 0, i32 25
  %192 = load i32, ptr %191, align 8, !tbaa !39
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.fskframesync_s, ptr %193, i32 0, i32 26
  %195 = load i32, ptr %194, align 4, !tbaa !40
  %196 = call i32 @qpacketmodem_configure(ptr noundef %183, i32 noundef %186, i32 noundef %189, i32 noundef %192, i32 noundef %195, i32 noundef 27)
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.fskframesync_s, ptr %197, i32 0, i32 30
  %199 = load ptr, ptr %198, align 8, !tbaa !41
  %200 = call i32 @qpacketmodem_get_frame_len(ptr noundef %199)
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.fskframesync_s, ptr %201, i32 0, i32 27
  store i32 %200, ptr %202, align 8, !tbaa !42
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.fskframesync_s, ptr %203, i32 0, i32 27
  %205 = load i32, ptr %204, align 8, !tbaa !42
  %206 = zext i32 %205 to i64
  %207 = mul i64 %206, 1
  %208 = call noalias ptr @malloc(i64 noundef %207) #6
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.fskframesync_s, ptr %209, i32 0, i32 28
  store ptr %208, ptr %210, align 8, !tbaa !43
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.fskframesync_s, ptr %211, i32 0, i32 23
  %213 = load i32, ptr %212, align 8, !tbaa !37
  %214 = zext i32 %213 to i64
  %215 = mul i64 %214, 1
  %216 = call noalias ptr @malloc(i64 noundef %215) #6
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.fskframesync_s, ptr %217, i32 0, i32 29
  store ptr %216, ptr %218, align 8, !tbaa !44
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.fskframesync_s, ptr %219, i32 0, i32 37
  store i32 0, ptr %220, align 8, !tbaa !45
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.fskframesync_s, ptr %221, i32 0, i32 38
  store i32 0, ptr %222, align 4, !tbaa !46
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.fskframesync_s, ptr %223, i32 0, i32 39
  store ptr null, ptr %224, align 8, !tbaa !47
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = call i32 @fskframesync_reset(ptr noundef %225)
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %227
}

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

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

declare ptr @fskdem_create(i32 noundef, i32 noundef, float noundef) #3

declare ptr @firpfb_crcf_create_kaiser(i32 noundef, i32 noundef, float noundef, float noundef) #3

declare ptr @nco_crcf_create(i32 noundef) #3

declare ptr @windowcf_create(i32 noundef) #3

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

declare i32 @msequence_advance(ptr noundef) #3

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

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

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

declare i32 @msequence_destroy(ptr noundef) #3

declare ptr @windowf_create(i32 noundef) #3

declare ptr @qpacketmodem_create(...) #3

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

declare i32 @qpacketmodem_get_frame_len(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @fskframesync_reset(ptr noundef) #0

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 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 #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !6, i64 40}
!10 = !{!"fskframesync_s", !11, i64 0, !11, i64 4, !12, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !7, i64 152, !11, i64 164, !11, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !6, i64 280}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!14 = !{!10, !6, i64 48}
!15 = !{!10, !11, i64 0}
!16 = !{!10, !11, i64 12}
!17 = !{!10, !11, i64 4}
!18 = !{!10, !12, i64 8}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 32}
!22 = !{!10, !11, i64 112}
!23 = !{!10, !6, i64 104}
!24 = !{!10, !6, i64 120}
!25 = !{!10, !6, i64 136}
!26 = !{!11, !11, i64 0}
!27 = !{!12, !12, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !6, i64 128}
!31 = !{!10, !6, i64 144}
!32 = !{!10, !11, i64 164}
!33 = !{!10, !6, i64 176}
!34 = !{!10, !6, i64 192}
!35 = !{!10, !11, i64 168}
!36 = !{!10, !6, i64 184}
!37 = !{!10, !11, i64 200}
!38 = !{!10, !11, i64 204}
!39 = !{!10, !11, i64 208}
!40 = !{!10, !11, i64 212}
!41 = !{!10, !6, i64 240}
!42 = !{!10, !11, i64 216}
!43 = !{!10, !6, i64 224}
!44 = !{!10, !6, i64 232}
!45 = !{!10, !11, i64 272}
!46 = !{!10, !11, i64 276}
!47 = !{!10, !6, i64 280}


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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @fskframesync_create(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call noalias dereferenceable_or_null(288) ptr @malloc(i64 noundef 288) #5
  %4 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %0, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %1, ptr %5, align 8, !tbaa !13
  store i32 4, ptr %3, align 8, !tbaa !14
  %6 = getelementptr inbounds i8, ptr %3, i64 12
  store i32 16, ptr %6, align 4, !tbaa !15
  %7 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 32, ptr %7, align 4, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  store float 2.500000e-01, ptr %8, align 8, !tbaa !17
  %9 = tail call ptr @fskdem_create(i32 noundef 1, i32 noundef 32, float noundef 2.500000e-01) #6
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %9, ptr %10, align 8, !tbaa !18
  %11 = tail call ptr @fskdem_create(i32 noundef 4, i32 noundef 32, float noundef 2.500000e-01) #6
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !19
  %13 = tail call noalias dereferenceable_or_null(256) ptr @malloc(i64 noundef 256) #5
  %14 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %13, ptr %14, align 8, !tbaa !20
  %15 = getelementptr inbounds i8, ptr %3, i64 112
  store i32 64, ptr %15, align 8, !tbaa !21
  %16 = tail call ptr @firpfb_crcf_create_kaiser(i32 noundef 64, i32 noundef 5, float noundef 0x3FDCCCCCC0000000, float noundef 4.000000e+01) #6
  %17 = getelementptr inbounds i8, ptr %3, i64 104
  store ptr %16, ptr %17, align 8, !tbaa !22
  %18 = tail call ptr @nco_crcf_create(i32 noundef 1) #6
  %19 = getelementptr inbounds i8, ptr %3, i64 120
  store ptr %18, ptr %19, align 8, !tbaa !23
  %20 = tail call ptr @windowcf_create(i32 noundef 32) #6
  %21 = getelementptr inbounds i8, ptr %3, i64 136
  store ptr %20, ptr %21, align 8, !tbaa !24
  %22 = tail call ptr @msequence_create(i32 noundef 6, i32 noundef 109, i32 noundef 1) #6
  %23 = tail call noalias dereferenceable_or_null(504) ptr @malloc(i64 noundef 504) #5
  br label %24

24:                                               ; preds = %2, %24
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %24 ]
  %25 = tail call i32 @msequence_advance(ptr noundef %22) #6
  %.not = icmp eq i32 %25, 0
  %26 = select i1 %.not, float -1.000000e+00, float 1.000000e+00
  %27 = shl nuw nsw i64 %indvars.iv, 1
  %28 = sub nuw nsw i64 125, %27
  %29 = getelementptr inbounds float, ptr %23, i64 %28
  store float %26, ptr %29, align 4, !tbaa !25
  %30 = sub nuw nsw i64 124, %27
  %31 = getelementptr inbounds float, ptr %23, i64 %30
  store float %26, ptr %31, align 4, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 63
  br i1 %exitcond.not, label %32, label %24, !llvm.loop !26

32:                                               ; preds = %24
  %33 = tail call ptr @firfilt_rrrf_create(ptr noundef nonnull %23, i32 noundef 126) #6
  %34 = getelementptr inbounds i8, ptr %3, i64 128
  store ptr %33, ptr %34, align 8, !tbaa !28
  tail call void @free(ptr noundef nonnull %23) #6
  %35 = tail call i32 @msequence_destroy(ptr noundef %22) #6
  %36 = tail call ptr @windowf_create(i32 noundef 126) #6
  %37 = getelementptr inbounds i8, ptr %3, i64 144
  store ptr %36, ptr %37, align 8, !tbaa !29
  %38 = getelementptr inbounds i8, ptr %3, i64 164
  store i32 10, ptr %38, align 4, !tbaa !30
  %39 = tail call noalias dereferenceable_or_null(10) ptr @malloc(i64 noundef 10) #5
  %40 = getelementptr inbounds i8, ptr %3, i64 176
  store ptr %39, ptr %40, align 8, !tbaa !31
  %41 = tail call ptr (...) @qpacketmodem_create() #6
  %42 = getelementptr inbounds i8, ptr %3, i64 192
  store ptr %41, ptr %42, align 8, !tbaa !32
  %43 = tail call i32 @qpacketmodem_configure(ptr noundef %41, i32 noundef 10, i32 noundef 6, i32 noundef 1, i32 noundef 7, i32 noundef 39) #6
  %44 = tail call i32 @qpacketmodem_get_frame_len(ptr noundef %41) #6
  %45 = getelementptr inbounds i8, ptr %3, i64 168
  store i32 %44, ptr %45, align 8, !tbaa !33
  %46 = zext i32 %44 to i64
  %47 = tail call noalias ptr @malloc(i64 noundef %46) #5
  %48 = getelementptr inbounds i8, ptr %3, i64 184
  store ptr %47, ptr %48, align 8, !tbaa !34
  %49 = getelementptr inbounds i8, ptr %3, i64 200
  store <4 x i32> <i32 200, i32 6, i32 1, i32 6>, ptr %49, align 8, !tbaa !35
  %50 = tail call ptr (...) @qpacketmodem_create() #6
  %51 = getelementptr inbounds i8, ptr %3, i64 240
  store ptr %50, ptr %51, align 8, !tbaa !36
  %52 = tail call i32 @qpacketmodem_configure(ptr noundef %50, i32 noundef 200, i32 noundef 6, i32 noundef 1, i32 noundef 6, i32 noundef 27) #6
  %53 = tail call i32 @qpacketmodem_get_frame_len(ptr noundef %50) #6
  %54 = getelementptr inbounds i8, ptr %3, i64 216
  store i32 %53, ptr %54, align 8, !tbaa !37
  %55 = zext i32 %53 to i64
  %56 = tail call noalias ptr @malloc(i64 noundef %55) #5
  %57 = getelementptr inbounds i8, ptr %3, i64 224
  store ptr %56, ptr %57, align 8, !tbaa !38
  %58 = tail call noalias dereferenceable_or_null(200) ptr @malloc(i64 noundef 200) #5
  %59 = getelementptr inbounds i8, ptr %3, i64 232
  store ptr %58, ptr %59, align 8, !tbaa !39
  %60 = getelementptr inbounds i8, ptr %3, i64 272
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %60, i8 0, i64 16, i1 false)
  %61 = tail call i32 @fskframesync_reset(ptr noundef %3)
  ret ptr %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 #1

declare ptr @fskdem_create(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #2

declare ptr @firpfb_crcf_create_kaiser(i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #2

declare ptr @nco_crcf_create(i32 noundef) local_unnamed_addr #2

declare ptr @windowcf_create(i32 noundef) local_unnamed_addr #2

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

declare i32 @msequence_advance(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

declare i32 @msequence_destroy(ptr noundef) local_unnamed_addr #2

declare ptr @windowf_create(i32 noundef) local_unnamed_addr #2

declare ptr @qpacketmodem_create(...) local_unnamed_addr #2

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

declare i32 @qpacketmodem_get_frame_len(ptr noundef) local_unnamed_addr #2

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

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

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 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { 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, !11, i64 40}
!6 = !{!"fskframesync_s", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !8, i64 152, !7, i64 164, !7, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !11, i64 280}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44}
!13 = !{!6, !11, i64 48}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !7, i64 12}
!16 = !{!6, !7, i64 4}
!17 = !{!6, !10, i64 8}
!18 = !{!6, !11, i64 16}
!19 = !{!6, !11, i64 24}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !7, i64 112}
!22 = !{!6, !11, i64 104}
!23 = !{!6, !11, i64 120}
!24 = !{!6, !11, i64 136}
!25 = !{!10, !10, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!6, !11, i64 128}
!29 = !{!6, !11, i64 144}
!30 = !{!6, !7, i64 164}
!31 = !{!6, !11, i64 176}
!32 = !{!6, !11, i64 192}
!33 = !{!6, !7, i64 168}
!34 = !{!6, !11, i64 184}
!35 = !{!7, !7, i64 0}
!36 = !{!6, !11, i64 240}
!37 = !{!6, !7, i64 216}
!38 = !{!6, !11, i64 224}
!39 = !{!6, !11, i64 232}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass