; LLVM IR from marcinlos/iga-ads :: src/ads/simulation (simulation_3d)

; 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.std::array" = type { [3 x i32] }
%"class.ads::simulation_3d" = type { %"class.ads::basic_simulation_3d", %"class.ads::simulation_base", %"class.ads::dimension", %"class.ads::dimension", %"class.ads::dimension", %"struct.ads::lin::tensor" }
%"class.ads::basic_simulation_3d" = type { ptr }
%"class.ads::simulation_base" = type { ptr, %"struct.ads::timesteps_config" }
%"struct.ads::timesteps_config" = type { i32, double }
%"class.ads::dimension" = type { i32, i32, double, double, %"struct.ads::bspline::basis", %"class.ads::lin::band_matrix", %"struct.ads::basis_data", %"struct.ads::lin::solver_ctx" }
%"struct.ads::bspline::basis" = type { %"class.std::vector", i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.ads::lin::band_matrix" = type <{ %"class.std::vector", i32, i32, i32, i32, i32, [4 x i8] }>
%"struct.ads::basis_data" = type { %"class.std::vector.0", %"class.std::vector.5", i32, i32, i32, i32, i32, i32, %"class.std::vector", %"struct.ads::bspline::basis", ptr, ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ads::lin::solver_ctx" = type { %"class.std::vector.0", i32, i32 }
%"struct.ads::lin::tensor" = type { %"struct.ads::lin::tensor_base", %"class.std::vector" }
%"struct.ads::lin::tensor_base" = type { %"struct.ads::multi_array_base" }
%"struct.ads::multi_array_base" = type { %"struct.ads::reverse_ordering" }
%"struct.ads::reverse_ordering" = type { %"struct.ads::impl::reverse_ordering_indexer_" }
%"struct.ads::impl::reverse_ordering_indexer_" = type { %"struct.ads::impl::reverse_ordering_indexer_.10" }
%"struct.ads::impl::reverse_ordering_indexer_.10" = type { %"struct.ads::impl::reverse_ordering_indexer_.11" }
%"struct.ads::impl::reverse_ordering_indexer_.11" = type { %"struct.ads::impl::reverse_ordering_indexer_.12" }
%"struct.ads::impl::reverse_ordering_indexer_.12" = type { %"struct.std::array" }

@_ZTVN3ads13simulation_3dE = external dso_local unnamed_addr constant { [4 x ptr], [9 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ads13simulation_3dC2ERKNS_9dimensionES3_S3_RKNS_16timesteps_configE(ptr noundef nonnull align 8 dereferenceable(1104) %0, ptr noundef nonnull align 8 dereferenceable(344) %1, ptr noundef nonnull align 8 dereferenceable(344) %2, ptr noundef nonnull align 8 dereferenceable(344) %3, ptr noundef nonnull align 8 dereferenceable(16) %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::array", align 4
  %14 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8
  call void @_ZN3ads19basic_simulation_3dC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN3ads15simulation_baseC2ERKNS_16timesteps_configE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %18 unwind label %34

18:                                               ; preds = %5
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr], [9 x ptr] }, ptr @_ZTVN3ads13simulation_3dE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr getelementptr inbounds inrange(-16, 56) ({ [4 x ptr], [9 x ptr] }, ptr @_ZTVN3ads13simulation_3dE, i32 0, i32 1, i32 2), ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.ads::simulation_3d", ptr %15, i32 0, i32 2
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344) %20, ptr noundef nonnull align 8 dereferenceable(344) %21)
          to label %22 unwind label %38

22:                                               ; preds = %18
  %23 = getelementptr inbounds %"class.ads::simulation_3d", ptr %15, i32 0, i32 3
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344) %23, ptr noundef nonnull align 8 dereferenceable(344) %24)
          to label %25 unwind label %42

25:                                               ; preds = %22
  %26 = getelementptr inbounds %"class.ads::simulation_3d", ptr %15, i32 0, i32 4
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344) %26, ptr noundef nonnull align 8 dereferenceable(344) %27)
          to label %28 unwind label %46

28:                                               ; preds = %25
  %29 = getelementptr inbounds %"class.ads::simulation_3d", ptr %15, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  %30 = invoke { i64, i32 } @_ZNK3ads13simulation_3d5shapeEv(ptr noundef nonnull align 8 dereferenceable(1104) %15)
          to label %31 unwind label %50

31:                                               ; preds = %28
  %32 = getelementptr inbounds %"struct.std::array", ptr %13, i32 0, i32 0
  store { i64, i32 } %30, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %14, i64 12, i1 false)
  invoke void @_ZN3ads3lin6tensorIdLm3EEC2ERKSt5arrayIiLm3EE(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %33 unwind label %50

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  ret void

34:                                               ; preds = %5
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %11, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %12, align 4
  br label %58

38:                                               ; preds = %18
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %11, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %12, align 4
  br label %56

42:                                               ; preds = %22
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %11, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %12, align 4
  br label %55

46:                                               ; preds = %25
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %11, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %12, align 4
  br label %54

50:                                               ; preds = %31, %28
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  call void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344) %26) #7
  br label %54

54:                                               ; preds = %50, %46
  call void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344) %23) #7
  br label %55

55:                                               ; preds = %54, %42
  call void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344) %20) #7
  br label %56

56:                                               ; preds = %55, %38
  %57 = getelementptr inbounds i8, ptr %15, i64 8
  call void @_ZN3ads15simulation_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #7
  br label %58

58:                                               ; preds = %56, %34
  call void @_ZN3ads19basic_simulation_3dD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %11, align 8
  %61 = load i32, ptr %12, align 4
  %62 = insertvalue { ptr, i32 } poison, ptr %60, 0
  %63 = insertvalue { ptr, i32 } %62, i32 %61, 1
  resume { ptr, i32 } %63
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ads19basic_simulation_3dC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

declare void @_ZN3ads15simulation_baseC2ERKNS_16timesteps_configE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(344)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3ads13simulation_3d5shapeEv(ptr noundef nonnull align 8 dereferenceable(1104)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ads3lin6tensorIdLm3EEC2ERKSt5arrayIiLm3EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ads15simulation_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ads19basic_simulation_3dD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 = { mustprogress 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 #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 = { inlinehint mustprogress 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


; 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.std::array" = type { [3 x i32] }

@_ZTVN3ads13simulation_3dE = external dso_local unnamed_addr constant { [4 x ptr], [9 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ads13simulation_3dC2ERKNS_9dimensionES3_S3_RKNS_16timesteps_configE(ptr noundef nonnull align 8 dereferenceable(1104) %0, ptr noundef nonnull align 8 dereferenceable(344) %1, ptr noundef nonnull align 8 dereferenceable(344) %2, ptr noundef nonnull align 8 dereferenceable(344) %3, ptr noundef nonnull align 8 dereferenceable(16) %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.std::array", align 8
  tail call void @_ZN3ads19basic_simulation_3dC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN3ads15simulation_baseC2ERKNS_16timesteps_configE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %8 unwind label %19

8:                                                ; preds = %5
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN3ads13simulation_3dE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN3ads13simulation_3dE, i64 48), ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344) %9, ptr noundef nonnull align 8 dereferenceable(344) %1)
          to label %10 unwind label %21

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 376
  invoke void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344) %11, ptr noundef nonnull align 8 dereferenceable(344) %2)
          to label %12 unwind label %23

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 720
  invoke void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344) %13, ptr noundef nonnull align 8 dereferenceable(344) %3)
          to label %14 unwind label %25

14:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  %15 = invoke { i64, i32 } @_ZNK3ads13simulation_3d5shapeEv(ptr noundef nonnull align 8 dereferenceable(1104) %0)
          to label %16 unwind label %27

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 1064
  %.fca.0.extract = extractvalue { i64, i32 } %15, 0
  %.fca.1.extract = extractvalue { i64, i32 } %15, 1
  store i64 %.fca.0.extract, ptr %6, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZN3ads3lin6tensorIdLm3EEC2ERKSt5arrayIiLm3EE(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %18 unwind label %27

18:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  ret void

19:                                               ; preds = %5
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %32

21:                                               ; preds = %8
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %31

23:                                               ; preds = %10
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %30

25:                                               ; preds = %12
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %29

27:                                               ; preds = %16, %14
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344) %13) #6
  br label %29

29:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344) %11) #6
  br label %30

30:                                               ; preds = %29, %23
  %.pn.pn = phi { ptr, i32 } [ %.pn, %29 ], [ %24, %23 ]
  call void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344) %9) #6
  br label %31

31:                                               ; preds = %30, %21
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %30 ], [ %22, %21 ]
  call void @_ZN3ads15simulation_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %32

32:                                               ; preds = %31, %19
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %31 ], [ %20, %19 ]
  call void @_ZN3ads19basic_simulation_3dD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ads9dimensionD2Ev(ptr noundef nonnull align 8 dereferenceable(344)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ads19basic_simulation_3dC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

declare void @_ZN3ads15simulation_baseC2ERKNS_16timesteps_configE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ads9dimensionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(344)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3ads13simulation_3d5shapeEv(ptr noundef nonnull align 8 dereferenceable(1104)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ads3lin6tensorIdLm3EEC2ERKSt5arrayIiLm3EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ads15simulation_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ads19basic_simulation_3dD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 = { mustprogress 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 #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 = { inlinehint mustprogress 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 #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, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass