; LLVM IR from INMOST-DEV/INMOST-FEM :: anifem++/fem/tetdofmap.ll (ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE)

; 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.Ani::DofT::LocalOrder" = type { i32, i32, i8, i8, i8, i8 }
%"struct.Ani::DofT::TetOrder" = type { i32 }
%"struct.Ani::DofT::LocSymOrder" = type { i8, i8 }
%"struct.Ani::DofT::UniteDofMap" = type { %"struct.Ani::DofT::BaseDofMap", %"struct.std::array.7", %"struct.std::array.7", %"struct.Ani::DofT::DofSymmetries" }
%"struct.Ani::DofT::BaseDofMap" = type { ptr }
%"struct.std::array.7" = type { [7 x i32] }
%"struct.Ani::DofT::DofSymmetries" = type { %"struct.std::array.6" }
%"struct.std::array.6" = type { [16 x i32] }

@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE = external hidden unnamed_addr constant [81 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #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) #2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN3Ani4DofT13NumToGeomTypeEi(i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 %1) unnamed_addr #5 align 2 {
  %3 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %4 = alloca %"struct.Ani::DofT::TetOrder", align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.Ani::DofT::TetOrder", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.Ani::DofT::LocSymOrder", align 1
  %10 = alloca { i64, i32 }, align 8
  %11 = getelementptr inbounds %"struct.Ani::DofT::TetOrder", ptr %4, i32 0, i32 0
  store i32 %1, ptr %11, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !9
  %13 = getelementptr inbounds %"struct.Ani::DofT::TetOrder", ptr %6, i32 0, i32 0
  %14 = load i32, ptr %13, align 4
  %15 = call noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 %14)
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  br label %17

17:                                               ; preds = %16, %2
  %18 = phi i1 [ false, %2 ], [ true, %16 ]
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  br label %22

20:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 328, ptr noundef @__PRETTY_FUNCTION__._ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE) #8
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  call void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %23 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 2
  %24 = call noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28) %23) #9
  %25 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 2
  %26 = call noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28) %25) #9
  %27 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 2
  %28 = call noundef i64 @_ZNKSt5arrayIjLm7EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(28) %27) #10
  %29 = getelementptr inbounds i32, ptr %26, i64 %28
  %30 = getelementptr inbounds %"struct.Ani::DofT::TetOrder", ptr %4, i32 0, i32 0
  %31 = call noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef %24, ptr noundef %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 2
  %33 = call noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28) %32) #9
  %34 = ptrtoint ptr %31 to i64
  %35 = ptrtoint ptr %33 to i64
  %36 = sub i64 %34, %35
  %37 = sdiv exact i64 %36, 4
  %38 = sub nsw i64 %37, 1
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %7, align 4, !tbaa !10
  %40 = load i32, ptr %7, align 4, !tbaa !10
  %41 = call noundef zeroext i8 @_ZN3Ani4DofT13NumToGeomTypeEi(i32 noundef %40)
  %42 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 2
  store i8 %41, ptr %42, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %43 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 1
  %44 = load i32, ptr %7, align 4, !tbaa !10
  %45 = add i32 %44, 1
  %46 = zext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %43, i64 noundef %46) #9
  %48 = load i32, ptr %47, align 4, !tbaa !10
  %49 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 1
  %50 = load i32, ptr %7, align 4, !tbaa !10
  %51 = zext i32 %50 to i64
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %49, i64 noundef %51) #9
  %53 = load i32, ptr %52, align 4, !tbaa !10
  %54 = sub i32 %48, %53
  store i32 %54, ptr %8, align 4, !tbaa !10
  %55 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %56 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 2
  %57 = load i32, ptr %7, align 4, !tbaa !10
  %58 = zext i32 %57 to i64
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %56, i64 noundef %58) #9
  %60 = load i32, ptr %59, align 4, !tbaa !10
  %61 = sub i32 %55, %60
  %62 = load i32, ptr %8, align 4, !tbaa !10
  %63 = udiv i32 %61, %62
  %64 = trunc i32 %63 to i8
  %65 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 3
  store i8 %64, ptr %65, align 1, !tbaa !14
  %66 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %67 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 2
  %68 = load i32, ptr %7, align 4, !tbaa !10
  %69 = zext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %67, i64 noundef %69) #9
  %71 = load i32, ptr %70, align 4, !tbaa !10
  %72 = sub i32 %66, %71
  %73 = load i32, ptr %8, align 4, !tbaa !10
  %74 = urem i32 %72, %73
  %75 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 1
  store i32 %74, ptr %75, align 4, !tbaa !15
  %76 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %77 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 0
  store i32 %76, ptr %77, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #9
  %78 = getelementptr inbounds %"struct.Ani::DofT::UniteDofMap", ptr %12, i32 0, i32 3
  %79 = load i32, ptr %7, align 4, !tbaa !10
  %80 = trunc i32 %79 to i8
  %81 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !15
  %83 = call i16 @_ZNK3Ani4DofT13DofSymmetries26GetLocSymOrder_by_geom_numEhj(ptr noundef nonnull align 4 dereferenceable(64) %78, i8 noundef zeroext %80, i32 noundef %82)
  store i16 %83, ptr %9, align 1
  %84 = getelementptr inbounds %"struct.Ani::DofT::LocSymOrder", ptr %9, i32 0, i32 0
  %85 = load i8, ptr %84, align 1, !tbaa !17
  %86 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 4
  store i8 %85, ptr %86, align 2, !tbaa !19
  %87 = getelementptr inbounds %"struct.Ani::DofT::LocSymOrder", ptr %9, i32 0, i32 1
  %88 = load i8, ptr %87, align 1, !tbaa !20
  %89 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %3, i32 0, i32 5
  store i8 %88, ptr %89, align 1, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 4 %3, i64 12, i1 false)
  %90 = load { i64, i32 }, ptr %10, align 8
  ret { i64, i32 } %90
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(8), i32) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28)) #1 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayIjLm7EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(28)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i16 @_ZNK3Ani4DofT13DofSymmetries26GetLocSymOrder_by_geom_numEhj(ptr noundef nonnull align 4 dereferenceable(64), i8 noundef zeroext, i32 noundef) #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn 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 = { 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 #5 = { 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 = { 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 #7 = { mustprogress nounwind willreturn memory(none) 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 #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }

!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 = !{i64 0, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"_ZTSN3Ani4DofT10LocalOrderE", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11}
!14 = !{!13, !7, i64 9}
!15 = !{!13, !11, i64 4}
!16 = !{!13, !11, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"_ZTSN3Ani4DofT11LocSymOrderE", !7, i64 0, !7, i64 1}
!19 = !{!13, !7, i64 10}
!20 = !{!18, !7, i64 1}
!21 = !{!13, !7, i64 11}


; 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.Ani::DofT::LocalOrder" = type { i32, i32, i8, i8, i8, i8 }
%"struct.Ani::DofT::TetOrder" = type { i32 }

@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN3Ani4DofT13NumToGeomTypeEi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 %1) unnamed_addr #3 align 2 {
  %3 = alloca %"struct.Ani::DofT::LocalOrder", align 8
  %4 = alloca %"struct.Ani::DofT::TetOrder", align 4
  store i32 %1, ptr %4, align 4
  %5 = tail call noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 %1)
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 328, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3Ani4DofT11UniteDofMap15LocalOrderOnTetENS0_8TetOrderE) #6
  unreachable

7:                                                ; preds = %2
  call void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3)
  %8 = getelementptr inbounds i8, ptr %0, i64 36
  %9 = call noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28) %8) #7
  %10 = call noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28) %8) #7
  %11 = call noundef i64 @_ZNKSt5arrayIjLm7EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(28) %8) #8
  %12 = getelementptr inbounds i32, ptr %10, i64 %11
  %13 = call noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef %9, ptr noundef %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %14 = call noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28) %8) #7
  %15 = ptrtoint ptr %13 to i64
  %16 = ptrtoint ptr %14 to i64
  %17 = sub i64 %15, %16
  %18 = lshr exact i64 %17, 2
  %19 = trunc i64 %18 to i32
  %20 = add i32 %19, -1
  %21 = call noundef zeroext i8 @_ZN3Ani4DofT13NumToGeomTypeEi(i32 noundef %20)
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  store i8 %21, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = and i64 %18, 4294967295
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %23, i64 noundef %24) #7
  %26 = load i32, ptr %25, align 4, !tbaa !10
  %27 = zext i32 %20 to i64
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %23, i64 noundef %27) #7
  %29 = load i32, ptr %28, align 4, !tbaa !10
  %30 = sub i32 %26, %29
  %31 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %8, i64 noundef %27) #7
  %33 = load i32, ptr %32, align 4, !tbaa !10
  %34 = sub i32 %31, %33
  %35 = udiv i32 %34, %30
  %36 = trunc i32 %35 to i8
  %37 = getelementptr inbounds i8, ptr %3, i64 9
  store i8 %36, ptr %37, align 1, !tbaa !11
  %38 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm7EEixEm(ptr noundef nonnull align 4 dereferenceable(28) %8, i64 noundef %27) #7
  %40 = load i32, ptr %39, align 4, !tbaa !10
  %41 = sub i32 %38, %40
  %42 = urem i32 %41, %30
  %43 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 %42, ptr %43, align 4, !tbaa !12
  %44 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i32 %44, ptr %3, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %0, i64 64
  %46 = trunc i32 %20 to i8
  %47 = load i32, ptr %43, align 4, !tbaa !12
  %48 = call i16 @_ZNK3Ani4DofT13DofSymmetries26GetLocSymOrder_by_geom_numEhj(ptr noundef nonnull align 4 dereferenceable(64) %45, i8 noundef zeroext %46, i32 noundef %47)
  %.sroa.01.0.extract.trunc = trunc i16 %48 to i8
  %.sroa.4.0.extract.shift = lshr i16 %48, 8
  %.sroa.4.0.extract.trunc = trunc nuw i16 %.sroa.4.0.extract.shift to i8
  %49 = getelementptr inbounds i8, ptr %3, i64 10
  store i8 %.sroa.01.0.extract.trunc, ptr %49, align 2, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %3, i64 11
  store i8 %.sroa.4.0.extract.trunc, ptr %50, align 1, !tbaa !15
  %.sroa.0.0.copyload = load i64, ptr %3, align 8
  %.sroa.2.0.copyload = load i32, ptr %22, align 8
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %.sroa.2.0.copyload, 1
  ret { i64, i32 } %.fca.1.insert
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIjLm7EE4dataEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayIjLm7EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i16 @_ZNK3Ani4DofT13DofSymmetries26GetLocSymOrder_by_geom_numEhj(ptr noundef nonnull align 4 dereferenceable(64), i8 noundef zeroext, i32 noundef) local_unnamed_addr #4 align 2

attributes #0 = { 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 #1 = { noreturn 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 #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 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 = { 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 #5 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }

!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, !8, i64 8}
!6 = !{!"_ZTSN3Ani4DofT10LocalOrderE", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !8, i64 9}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !8, i64 10}
!15 = !{!6, !8, i64 11}


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