; LLVM IR from beagleboard/librobotcontrol :: examples/src (rc_test_polynomial)

; 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.rc_vector_t = type { i32, ptr, i32 }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.rc_vector_t, align 8
  %4 = alloca %struct.rc_vector_t, align 8
  %5 = alloca %struct.rc_vector_t, align 8
  %6 = alloca %struct.rc_vector_t, align 8
  %7 = alloca %struct.rc_vector_t, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #4
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  %8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %16, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = icmp sle i32 %10, 10
  br i1 %11, label %12, label %19

12:                                               ; preds = %9
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = call i32 @rc_vector_random(ptr noundef %3, i32 noundef %13)
  %15 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %3)
  br label %16

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !9

19:                                               ; preds = %9
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %21 = call i32 @rc_vector_ones(ptr noundef %3, i32 noundef 2)
  %22 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %3)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %24 = call i32 @rc_vector_ones(ptr noundef %4, i32 noundef 3)
  %25 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %4)
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %27 = call i32 @rc_poly_conv(ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef %5)
  %28 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %37, %19
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = icmp sle i32 %31, 5
  br i1 %32, label %33, label %40

33:                                               ; preds = %30
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = call i32 @rc_poly_power(ptr noundef byval(%struct.rc_vector_t) align 8 %3, i32 noundef %34, ptr noundef %5)
  %36 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  br label %37

37:                                               ; preds = %33
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %2, align 4, !tbaa !5
  br label %30, !llvm.loop !11

40:                                               ; preds = %30
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %42 = call i32 @rc_poly_subtract(ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef %5)
  %43 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %45 = call i32 @rc_poly_subtract_inplace(ptr noundef %5, ptr noundef byval(%struct.rc_vector_t) align 8 %3)
  %46 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %48 = call i32 @rc_poly_add(ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef %5)
  %49 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %51 = call i32 @rc_poly_add_inplace(ptr noundef %5, ptr noundef byval(%struct.rc_vector_t) align 8 %3)
  %52 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %61, %40
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = icmp sle i32 %55, 3
  br i1 %56, label %57, label %64

57:                                               ; preds = %54
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = call i32 @rc_poly_differentiate(ptr noundef byval(%struct.rc_vector_t) align 8 %4, i32 noundef %58, ptr noundef %5)
  %60 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  br label %61

61:                                               ; preds = %57
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %2, align 4, !tbaa !5
  br label %54, !llvm.loop !12

64:                                               ; preds = %54
  %65 = call i32 @rc_vector_fibonnaci(ptr noundef %3, i32 noundef 2)
  %66 = call i32 @rc_vector_fibonnaci(ptr noundef %4, i32 noundef 5)
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %68 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %3)
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %70 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %4)
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %72 = call i32 @rc_poly_divide(ptr noundef byval(%struct.rc_vector_t) align 8 %4, ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef %5, ptr noundef %6)
  %73 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %5)
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %75 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %6)
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %77 = call i32 @rc_poly_conv(ptr noundef byval(%struct.rc_vector_t) align 8 %5, ptr noundef byval(%struct.rc_vector_t) align 8 %3, ptr noundef %7)
  %78 = call i32 @rc_poly_add_inplace(ptr noundef %7, ptr noundef byval(%struct.rc_vector_t) align 8 %6)
  %79 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %7)
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %88, %64
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = icmp sle i32 %82, 4
  br i1 %83, label %84, label %91

84:                                               ; preds = %81
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = call i32 @rc_poly_butter(i32 noundef %85, double noundef 1.000000e+00, ptr noundef %3)
  %87 = call i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8 %3)
  br label %88

88:                                               ; preds = %84
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %2, align 4, !tbaa !5
  br label %81, !llvm.loop !13

91:                                               ; preds = %81
  %92 = call i32 @rc_vector_free(ptr noundef %3)
  %93 = call i32 @rc_vector_free(ptr noundef %4)
  %94 = call i32 @rc_vector_free(ptr noundef %5)
  %95 = call i32 @rc_vector_free(ptr noundef %6)
  %96 = call i32 @rc_vector_free(ptr noundef %7)
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

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

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

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

declare i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8) #3

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

declare i32 @rc_poly_conv(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_poly_power(ptr noundef byval(%struct.rc_vector_t) align 8, i32 noundef, ptr noundef) #3

declare i32 @rc_poly_subtract(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_poly_subtract_inplace(ptr noundef, ptr noundef byval(%struct.rc_vector_t) align 8) #3

declare i32 @rc_poly_add(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) #3

declare i32 @rc_poly_add_inplace(ptr noundef, ptr noundef byval(%struct.rc_vector_t) align 8) #3

declare i32 @rc_poly_differentiate(ptr noundef byval(%struct.rc_vector_t) align 8, i32 noundef, ptr noundef) #3

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

declare i32 @rc_poly_divide(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef, ptr noundef) #3

declare i32 @rc_poly_butter(i32 noundef, double noundef, ptr noundef) #3

declare i32 @rc_vector_free(ptr noundef) #3

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 }

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

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


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

%struct.rc_vector_t = type { i32, ptr, i32 }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.rc_vector_t, align 8
  %2 = alloca %struct.rc_vector_t, align 8
  %3 = alloca %struct.rc_vector_t, align 8
  %4 = alloca %struct.rc_vector_t, align 8
  %5 = alloca %struct.rc_vector_t, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %7 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 1) #5
  %8 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %9 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 2) #5
  %10 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %11 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 3) #5
  %12 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %13 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 4) #5
  %14 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %15 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 5) #5
  %16 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %17 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 6) #5
  %18 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %19 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 7) #5
  %20 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %21 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 8) #5
  %22 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %23 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 9) #5
  %24 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %25 = call i32 @rc_vector_random(ptr noundef nonnull %1, i32 noundef 10) #5
  %26 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %28 = call i32 @rc_vector_ones(ptr noundef nonnull %1, i32 noundef 2) #5
  %29 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %31 = call i32 @rc_vector_ones(ptr noundef nonnull %2, i32 noundef 3) #5
  %32 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2) #5
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %34 = call i32 @rc_poly_conv(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, ptr noundef nonnull %3) #5
  %35 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %37 = call i32 @rc_poly_power(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, i32 noundef 0, ptr noundef nonnull %3) #5
  %38 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %39 = call i32 @rc_poly_power(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, i32 noundef 1, ptr noundef nonnull %3) #5
  %40 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %41 = call i32 @rc_poly_power(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, i32 noundef 2, ptr noundef nonnull %3) #5
  %42 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %43 = call i32 @rc_poly_power(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, i32 noundef 3, ptr noundef nonnull %3) #5
  %44 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %45 = call i32 @rc_poly_power(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, i32 noundef 4, ptr noundef nonnull %3) #5
  %46 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %47 = call i32 @rc_poly_power(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, i32 noundef 5, ptr noundef nonnull %3) #5
  %48 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %50 = call i32 @rc_poly_subtract(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, ptr noundef nonnull %3) #5
  %51 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %53 = call i32 @rc_poly_subtract_inplace(ptr noundef nonnull %3, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %54 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %56 = call i32 @rc_poly_add(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, ptr noundef nonnull %3) #5
  %57 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %59 = call i32 @rc_poly_add_inplace(ptr noundef nonnull %3, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %60 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %62 = call i32 @rc_poly_differentiate(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, i32 noundef 0, ptr noundef nonnull %3) #5
  %63 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %64 = call i32 @rc_poly_differentiate(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, i32 noundef 1, ptr noundef nonnull %3) #5
  %65 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %66 = call i32 @rc_poly_differentiate(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, i32 noundef 2, ptr noundef nonnull %3) #5
  %67 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %68 = call i32 @rc_poly_differentiate(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, i32 noundef 3, ptr noundef nonnull %3) #5
  %69 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %70 = call i32 @rc_vector_fibonnaci(ptr noundef nonnull %1, i32 noundef 2) #5
  %71 = call i32 @rc_vector_fibonnaci(ptr noundef nonnull %2, i32 noundef 5) #5
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %73 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %75 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2) #5
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %77 = call i32 @rc_poly_divide(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %2, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, ptr noundef nonnull %3, ptr noundef nonnull %4) #5
  %78 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3) #5
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %80 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %4) #5
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %82 = call i32 @rc_poly_conv(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %3, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1, ptr noundef nonnull %5) #5
  %83 = call i32 @rc_poly_add_inplace(ptr noundef nonnull %5, ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %4) #5
  %84 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %5) #5
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %86 = call i32 @rc_poly_butter(i32 noundef 1, double noundef 1.000000e+00, ptr noundef nonnull %1) #5
  %87 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %88 = call i32 @rc_poly_butter(i32 noundef 2, double noundef 1.000000e+00, ptr noundef nonnull %1) #5
  %89 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %90 = call i32 @rc_poly_butter(i32 noundef 3, double noundef 1.000000e+00, ptr noundef nonnull %1) #5
  %91 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %92 = call i32 @rc_poly_butter(i32 noundef 4, double noundef 1.000000e+00, ptr noundef nonnull %1) #5
  %93 = call i32 @rc_poly_print(ptr noundef nonnull byval(%struct.rc_vector_t) align 8 %1) #5
  %94 = call i32 @rc_vector_free(ptr noundef nonnull %1) #5
  %95 = call i32 @rc_vector_free(ptr noundef nonnull %2) #5
  %96 = call i32 @rc_vector_free(ptr noundef nonnull %3) #5
  %97 = call i32 @rc_vector_free(ptr noundef nonnull %4) #5
  %98 = call i32 @rc_vector_free(ptr noundef nonnull %5) #5
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

declare i32 @rc_vector_random(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @rc_poly_print(ptr noundef byval(%struct.rc_vector_t) align 8) local_unnamed_addr #4

declare i32 @rc_vector_ones(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @rc_poly_conv(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #4

declare i32 @rc_poly_power(ptr noundef byval(%struct.rc_vector_t) align 8, i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @rc_poly_subtract(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #4

declare i32 @rc_poly_subtract_inplace(ptr noundef, ptr noundef byval(%struct.rc_vector_t) align 8) local_unnamed_addr #4

declare i32 @rc_poly_add(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef) local_unnamed_addr #4

declare i32 @rc_poly_add_inplace(ptr noundef, ptr noundef byval(%struct.rc_vector_t) align 8) local_unnamed_addr #4

declare i32 @rc_poly_differentiate(ptr noundef byval(%struct.rc_vector_t) align 8, i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @rc_vector_fibonnaci(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @rc_poly_divide(ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef byval(%struct.rc_vector_t) align 8, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @rc_poly_butter(i32 noundef, double noundef, ptr noundef) local_unnamed_addr #4

declare i32 @rc_vector_free(ptr noundef) local_unnamed_addr #4

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

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

!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)"}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass