; LLVM IR from chrr/libECP :: src (type2)

; 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._Type2 = type { i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, i32, ptr, double, double, double, i32 }
%struct.GCIntegrationTable = type { i32, i32, ptr, ptr, double, double, i32, i32 }

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

declare ptr @initGridGC_PS93(i32 noundef, double noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @Type2_initDefault(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct._Type2, ptr %4, i32 0, i32 34
  store i32 1, ptr %5, align 8, !tbaa !9
  %6 = load ptr, ptr %3, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct._Type2, ptr %6, i32 0, i32 11
  %8 = load i32, ptr %7, align 4, !tbaa !13
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct._Type2, ptr %9, i32 0, i32 14
  %11 = load i32, ptr %10, align 8, !tbaa !14
  %12 = add nsw i32 %8, %11
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct._Type2, ptr %13, i32 0, i32 13
  store i32 %12, ptr %14, align 4, !tbaa !15
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._Type2, ptr %15, i32 0, i32 10
  %17 = load i32, ptr %16, align 8, !tbaa !16
  %18 = sub nsw i32 %17, 1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._Type2, ptr %19, i32 0, i32 13
  %21 = load i32, ptr %20, align 4, !tbaa !15
  %22 = add nsw i32 %18, %21
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._Type2, ptr %23, i32 0, i32 12
  store i32 %22, ptr %24, align 8, !tbaa !17
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._Type2, ptr %25, i32 0, i32 10
  %27 = load i32, ptr %26, align 8, !tbaa !16
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._Type2, ptr %28, i32 0, i32 13
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = add nsw i32 %27, %30
  %32 = add nsw i32 %31, 6
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._Type2, ptr %33, i32 0, i32 25
  store i32 %32, ptr %34, align 4, !tbaa !18
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._Type2, ptr %35, i32 0, i32 12
  %37 = load i32, ptr %36, align 8, !tbaa !17
  %38 = mul nsw i32 2, %37
  %39 = add nsw i32 %38, 3
  %40 = call ptr @factorials(i32 noundef %39)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._Type2, ptr %41, i32 0, i32 21
  store ptr %40, ptr %42, align 8, !tbaa !19
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._Type2, ptr %43, i32 0, i32 12
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = mul nsw i32 2, %45
  %47 = add nsw i32 %46, 1
  %48 = call ptr @double_factorials(i32 noundef %47)
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._Type2, ptr %49, i32 0, i32 22
  store ptr %48, ptr %50, align 8, !tbaa !20
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._Type2, ptr %51, i32 0, i32 12
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = call ptr @cartesianShellOrder(i32 noundef %53)
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._Type2, ptr %55, i32 0, i32 15
  store ptr %54, ptr %56, align 8, !tbaa !21
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._Type2, ptr %57, i32 0, i32 12
  %59 = load i32, ptr %58, align 8, !tbaa !17
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._Type2, ptr %60, i32 0, i32 15
  %62 = load ptr, ptr %61, align 8, !tbaa !21
  %63 = call ptr @cartesianShellOrderIndex(i32 noundef %59, ptr noundef %62)
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._Type2, ptr %64, i32 0, i32 16
  store ptr %63, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._Type2, ptr %66, i32 0, i32 12
  %68 = load i32, ptr %67, align 8, !tbaa !17
  %69 = add nsw i32 %68, 1
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._Type2, ptr %70, i32 0, i32 17
  store i32 %69, ptr %71, align 8, !tbaa !23
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._Type2, ptr %72, i32 0, i32 12
  %74 = load i32, ptr %73, align 8, !tbaa !17
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._Type2, ptr %75, i32 0, i32 20
  store i32 %74, ptr %76, align 8, !tbaa !24
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._Type2, ptr %77, i32 0, i32 20
  %79 = load i32, ptr %78, align 8, !tbaa !24
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct._Type2, ptr %80, i32 0, i32 15
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._Type2, ptr %83, i32 0, i32 21
  %85 = load ptr, ptr %84, align 8, !tbaa !19
  %86 = call ptr @TM_cart2sph(i32 noundef %79, ptr noundef %82, ptr noundef %85)
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._Type2, ptr %87, i32 0, i32 18
  store ptr %86, ptr %88, align 8, !tbaa !25
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._Type2, ptr %89, i32 0, i32 18
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._Type2, ptr %92, i32 0, i32 20
  %94 = load i32, ptr %93, align 8, !tbaa !24
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._Type2, ptr %95, i32 0, i32 15
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._Type2, ptr %98, i32 0, i32 22
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  %101 = call ptr @TM_poly2sph(ptr noundef %91, i32 noundef %94, ptr noundef %97, ptr noundef %100)
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._Type2, ptr %102, i32 0, i32 19
  store ptr %101, ptr %103, align 8, !tbaa !26
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._Type2, ptr %104, i32 0, i32 27
  %106 = load i32, ptr %105, align 4, !tbaa !27
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._Type2, ptr %107, i32 0, i32 31
  %109 = load double, ptr %108, align 8, !tbaa !28
  %110 = call ptr @initGridGC_PS93(i32 noundef %106, double noundef %109)
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._Type2, ptr %111, i32 0, i32 28
  store ptr %110, ptr %112, align 8, !tbaa !29
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._Type2, ptr %113, i32 0, i32 29
  %115 = load i32, ptr %114, align 8, !tbaa !30
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._Type2, ptr %116, i32 0, i32 31
  %118 = load double, ptr %117, align 8, !tbaa !28
  %119 = call ptr @initGridGC_PSM92(i32 noundef %115, double noundef %118)
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._Type2, ptr %120, i32 0, i32 30
  store ptr %119, ptr %121, align 8, !tbaa !31
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._Type2, ptr %122, i32 0, i32 28
  %124 = load ptr, ptr %123, align 8, !tbaa !29
  %125 = getelementptr inbounds %struct.GCIntegrationTable, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !32
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._Type2, ptr %127, i32 0, i32 28
  %129 = load ptr, ptr %128, align 8, !tbaa !29
  %130 = getelementptr inbounds %struct.GCIntegrationTable, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !34
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._Type2, ptr %132, i32 0, i32 28
  %134 = load ptr, ptr %133, align 8, !tbaa !29
  %135 = getelementptr inbounds %struct.GCIntegrationTable, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !35
  call void @transformGrid_KK(i32 noundef %126, ptr noundef %131, ptr noundef %136)
  %137 = call noalias ptr @malloc(i64 noundef 40) #3
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._Type2, ptr %138, i32 0, i32 23
  store ptr %137, ptr %139, align 8, !tbaa !36
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._Type2, ptr %140, i32 0, i32 23
  %142 = load ptr, ptr %141, align 8, !tbaa !36
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._Type2, ptr %143, i32 0, i32 25
  %145 = load i32, ptr %144, align 4, !tbaa !18
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._Type2, ptr %146, i32 0, i32 24
  %148 = load i32, ptr %147, align 8, !tbaa !37
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._Type2, ptr %149, i32 0, i32 26
  %151 = load i32, ptr %150, align 8, !tbaa !38
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct._Type2, ptr %152, i32 0, i32 32
  %154 = load double, ptr %153, align 8, !tbaa !39
  %155 = call i32 @tabBesselFunction(ptr noundef %142, i32 noundef %145, i32 noundef %148, i32 noundef %151, double noundef %154)
  %156 = icmp ne i32 0, %155
  br i1 %156, label %157, label %158

157:                                              ; preds = %1
  store i32 1, ptr %2, align 4
  br label %159

158:                                              ; preds = %1
  store i32 0, ptr %2, align 4
  br label %159

159:                                              ; preds = %158, %157
  %160 = load i32, ptr %2, align 4
  ret i32 %160
}

declare ptr @factorials(i32 noundef) #1

declare ptr @double_factorials(i32 noundef) #1

declare ptr @cartesianShellOrder(i32 noundef) #1

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

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

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

declare ptr @initGridGC_PSM92(i32 noundef, double noundef) #1

declare i32 @tabBesselFunction(ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #1

attributes #0 = { 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 #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !11, i64 232}
!10 = !{!"_Type2", !11, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !6, i64 128, !11, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !6, i64 184, !11, i64 192, !6, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !11, i64 232}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !11, i64 76}
!14 = !{!10, !11, i64 88}
!15 = !{!10, !11, i64 84}
!16 = !{!10, !11, i64 72}
!17 = !{!10, !11, i64 80}
!18 = !{!10, !11, i64 172}
!19 = !{!10, !6, i64 144}
!20 = !{!10, !6, i64 152}
!21 = !{!10, !6, i64 96}
!22 = !{!10, !6, i64 104}
!23 = !{!10, !11, i64 112}
!24 = !{!10, !11, i64 136}
!25 = !{!10, !6, i64 120}
!26 = !{!10, !6, i64 128}
!27 = !{!10, !11, i64 180}
!28 = !{!10, !12, i64 208}
!29 = !{!10, !6, i64 184}
!30 = !{!10, !11, i64 192}
!31 = !{!10, !6, i64 200}
!32 = !{!33, !11, i64 4}
!33 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44}
!34 = !{!33, !6, i64 8}
!35 = !{!33, !6, i64 16}
!36 = !{!10, !6, i64 160}
!37 = !{!10, !11, i64 168}
!38 = !{!10, !11, i64 176}
!39 = !{!10, !12, i64 216}


; 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

declare ptr @initGridGC_PS93(i32 noundef, double noundef) local_unnamed_addr #1

declare void @transformGrid_KK(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @Type2_initDefault(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 232
  store i32 1, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 76
  %4 = load i32, ptr %3, align 4, !tbaa !12
  %5 = getelementptr inbounds i8, ptr %0, i64 88
  %6 = load i32, ptr %5, align 8, !tbaa !13
  %7 = add nsw i32 %6, %4
  %8 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %7, ptr %8, align 4, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = load i32, ptr %9, align 8, !tbaa !15
  %11 = add i32 %10, %7
  %12 = add i32 %11, -1
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %12, ptr %13, align 8, !tbaa !16
  %14 = add nsw i32 %11, 6
  %15 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 %14, ptr %15, align 4, !tbaa !17
  %16 = shl nsw i32 %12, 1
  %17 = add nsw i32 %16, 3
  %18 = tail call ptr @factorials(i32 noundef %17) #3
  %19 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr %18, ptr %19, align 8, !tbaa !18
  %20 = load i32, ptr %13, align 8, !tbaa !16
  %21 = shl nsw i32 %20, 1
  %22 = or disjoint i32 %21, 1
  %23 = tail call ptr @double_factorials(i32 noundef %22) #3
  %24 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %23, ptr %24, align 8, !tbaa !19
  %25 = load i32, ptr %13, align 8, !tbaa !16
  %26 = tail call ptr @cartesianShellOrder(i32 noundef %25) #3
  %27 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %26, ptr %27, align 8, !tbaa !20
  %28 = load i32, ptr %13, align 8, !tbaa !16
  %29 = tail call ptr @cartesianShellOrderIndex(i32 noundef %28, ptr noundef %26) #3
  %30 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %29, ptr %30, align 8, !tbaa !21
  %31 = load i32, ptr %13, align 8, !tbaa !16
  %32 = add nsw i32 %31, 1
  %33 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %32, ptr %33, align 8, !tbaa !22
  %34 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %31, ptr %34, align 8, !tbaa !23
  %35 = load ptr, ptr %27, align 8, !tbaa !20
  %36 = load ptr, ptr %19, align 8, !tbaa !18
  %37 = tail call ptr @TM_cart2sph(i32 noundef %31, ptr noundef %35, ptr noundef %36) #3
  %38 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %37, ptr %38, align 8, !tbaa !24
  %39 = load i32, ptr %34, align 8, !tbaa !23
  %40 = load ptr, ptr %27, align 8, !tbaa !20
  %41 = load ptr, ptr %24, align 8, !tbaa !19
  %42 = tail call ptr @TM_poly2sph(ptr noundef %37, i32 noundef %39, ptr noundef %40, ptr noundef %41) #3
  %43 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %42, ptr %43, align 8, !tbaa !25
  %44 = getelementptr inbounds i8, ptr %0, i64 180
  %45 = load i32, ptr %44, align 4, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %0, i64 208
  %47 = load double, ptr %46, align 8, !tbaa !27
  %48 = tail call ptr @initGridGC_PS93(i32 noundef %45, double noundef %47) #3
  %49 = getelementptr inbounds i8, ptr %0, i64 184
  store ptr %48, ptr %49, align 8, !tbaa !28
  %50 = getelementptr inbounds i8, ptr %0, i64 192
  %51 = load i32, ptr %50, align 8, !tbaa !29
  %52 = load double, ptr %46, align 8, !tbaa !27
  %53 = tail call ptr @initGridGC_PSM92(i32 noundef %51, double noundef %52) #3
  %54 = getelementptr inbounds i8, ptr %0, i64 200
  store ptr %53, ptr %54, align 8, !tbaa !30
  %55 = load ptr, ptr %49, align 8, !tbaa !28
  %56 = getelementptr inbounds i8, ptr %55, i64 4
  %57 = load i32, ptr %56, align 4, !tbaa !31
  %58 = getelementptr inbounds i8, ptr %55, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !33
  %60 = getelementptr inbounds i8, ptr %55, i64 16
  %61 = load ptr, ptr %60, align 8, !tbaa !34
  tail call void @transformGrid_KK(i32 noundef %57, ptr noundef %59, ptr noundef %61) #3
  %62 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #4
  %63 = getelementptr inbounds i8, ptr %0, i64 160
  store ptr %62, ptr %63, align 8, !tbaa !35
  %64 = load i32, ptr %15, align 4, !tbaa !17
  %65 = getelementptr inbounds i8, ptr %0, i64 168
  %66 = load i32, ptr %65, align 8, !tbaa !36
  %67 = getelementptr inbounds i8, ptr %0, i64 176
  %68 = load i32, ptr %67, align 8, !tbaa !37
  %69 = getelementptr inbounds i8, ptr %0, i64 216
  %70 = load double, ptr %69, align 8, !tbaa !38
  %71 = tail call i32 @tabBesselFunction(ptr noundef %62, i32 noundef %64, i32 noundef %66, i32 noundef %68, double noundef %70) #3
  %.not = icmp ne i32 %71, 0
  %. = zext i1 %.not to i32
  ret i32 %.
}

declare ptr @factorials(i32 noundef) local_unnamed_addr #1

declare ptr @double_factorials(i32 noundef) local_unnamed_addr #1

declare ptr @cartesianShellOrder(i32 noundef) local_unnamed_addr #1

declare ptr @cartesianShellOrderIndex(i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @TM_cart2sph(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @TM_poly2sph(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @initGridGC_PSM92(i32 noundef, double noundef) local_unnamed_addr #1

declare i32 @tabBesselFunction(ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { 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, !7, i64 232}
!6 = !{!"_Type2", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !10, i64 184, !7, i64 192, !10, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !7, i64 232}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 76}
!13 = !{!6, !7, i64 88}
!14 = !{!6, !7, i64 84}
!15 = !{!6, !7, i64 72}
!16 = !{!6, !7, i64 80}
!17 = !{!6, !7, i64 172}
!18 = !{!6, !10, i64 144}
!19 = !{!6, !10, i64 152}
!20 = !{!6, !10, i64 96}
!21 = !{!6, !10, i64 104}
!22 = !{!6, !7, i64 112}
!23 = !{!6, !7, i64 136}
!24 = !{!6, !10, i64 120}
!25 = !{!6, !10, i64 128}
!26 = !{!6, !7, i64 180}
!27 = !{!6, !11, i64 208}
!28 = !{!6, !10, i64 184}
!29 = !{!6, !7, i64 192}
!30 = !{!6, !10, i64 200}
!31 = !{!32, !7, i64 4}
!32 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 44}
!33 = !{!32, !10, i64 8}
!34 = !{!32, !10, i64 16}
!35 = !{!6, !10, i64 160}
!36 = !{!6, !7, i64 168}
!37 = !{!6, !7, i64 176}
!38 = !{!6, !11, i64 216}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass