; LLVM IR from opensim-org/opensim-core :: Vendors/lepton/src/ExpressionTreeNode.ll (ZNK6Lepton18ExpressionTreeNodeneERKS0_)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %12 = load ptr, ptr %10, align 8, !tbaa !9
  %13 = getelementptr inbounds ptr, ptr %12, i64 10
  %14 = load ptr, ptr %13, align 8
  %15 = call noundef zeroext i1 %14(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  store i1 true, ptr %3, align 1
  br label %85

17:                                               ; preds = %2
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 9
  %21 = load ptr, ptr %20, align 8
  %22 = call noundef zeroext i1 %21(ptr noundef nonnull align 8 dereferenceable(8) %18)
  br i1 %22, label %23, label %58

23:                                               ; preds = %17
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %25 = call noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
  %26 = icmp eq i64 %25, 2
  br i1 %26, label %27, label %58

27:                                               ; preds = %23
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %29 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #3
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #3
  %33 = call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %32)
  br i1 %33, label %34, label %42

34:                                               ; preds = %27
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef 1) #3
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %37)
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 1) #3
  %40 = call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %39)
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  store i1 false, ptr %3, align 1
  br label %85

42:                                               ; preds = %34, %27
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0) #3
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 1) #3
  %48 = call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %47)
  br i1 %48, label %49, label %57

49:                                               ; preds = %42
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 1) #3
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %52)
  %54 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 0) #3
  %55 = call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %54)
  br i1 %55, label %56, label %57

56:                                               ; preds = %49
  store i1 false, ptr %3, align 1
  br label %85

57:                                               ; preds = %49, %42
  store i1 true, ptr %3, align 1
  br label %85

58:                                               ; preds = %23, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %79, %58
  %60 = load i32, ptr %6, align 4, !tbaa !11
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %62 = call noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #3
  %63 = trunc i64 %62 to i32
  %64 = icmp slt i32 %60, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %59
  store i32 2, ptr %7, align 4
  br label %82

66:                                               ; preds = %59
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %68 = load i32, ptr %6, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #3
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %71)
  %73 = load i32, ptr %6, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #3
  %76 = call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %70, ptr noundef nonnull align 8 dereferenceable(32) %75)
  br i1 %76, label %77, label %78

77:                                               ; preds = %66
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %82

78:                                               ; preds = %66
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %6, align 4, !tbaa !11
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %6, align 4, !tbaa !11
  br label %59, !llvm.loop !13

82:                                               ; preds = %77, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %83 = load i32, ptr %7, align 4
  switch i32 %83, label %87 [
    i32 2, label %84
    i32 1, label %85
  ]

84:                                               ; preds = %82
  store i1 false, ptr %3, align 1
  br label %85

85:                                               ; preds = %84, %82, %57, %56, %41, %16
  %86 = load i1, ptr %3, align 1
  ret i1 %86

87:                                               ; preds = %82
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #1 align 2 {
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 80
  %7 = load ptr, ptr %6, align 8
  %8 = tail call noundef zeroext i1 %7(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %2
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6Lepton18ExpressionTreeNode12getOperationEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 72
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef zeroext i1 %13(ptr noundef nonnull align 8 dereferenceable(8) %10)
  br i1 %14, label %15, label %44

15:                                               ; preds = %9
  %16 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %17 = tail call noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #2
  %18 = icmp eq i64 %17, 2
  br i1 %18, label %19, label %44

19:                                               ; preds = %15
  %20 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %21 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #2
  %22 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %23 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #2
  %24 = tail call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %23)
  br i1 %24, label %25, label %31

25:                                               ; preds = %19
  %26 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %27 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 1) #2
  %28 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %29 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 1) #2
  %30 = tail call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %29)
  br i1 %30, label %.loopexit, label %31

31:                                               ; preds = %25, %19
  %32 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %33 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 0) #2
  %34 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %35 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef 1) #2
  %36 = tail call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %35)
  br i1 %36, label %37, label %43

37:                                               ; preds = %31
  %38 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %39 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 1) #2
  %40 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %41 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef 0) #2
  %42 = tail call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %41)
  br i1 %42, label %.loopexit, label %43

43:                                               ; preds = %37, %31
  br label %.loopexit

44:                                               ; preds = %15, %9
  %45 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %46 = tail call noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %47 = trunc i64 %46 to i32
  %.not14 = icmp sgt i32 %47, 0
  br i1 %.not14, label %.lr.ph, label %.loopexit

48:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %50 = tail call noundef i64 @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #2
  %sext = shl i64 %50, 32
  %51 = ashr exact i64 %sext, 32
  %.not = icmp slt i64 %indvars.iv.next, %51
  br i1 %.not, label %.lr.ph, label %.loopexit, !llvm.loop !8

.lr.ph:                                           ; preds = %44, %48
  %indvars.iv = phi i64 [ %indvars.iv.next, %48 ], [ 0, %44 ]
  %52 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %53 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %indvars.iv) #2
  %54 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6Lepton18ExpressionTreeNode11getChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %55 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %indvars.iv) #2
  %56 = tail call noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %55)
  br i1 %56, label %.loopexit, label %48

.loopexit:                                        ; preds = %.lr.ph, %48, %44, %37, %25, %2, %43
  %.1 = phi i1 [ true, %43 ], [ true, %2 ], [ false, %25 ], [ false, %37 ], [ false, %44 ], [ %56, %48 ], [ %56, %.lr.ph ]
  ret i1 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN6Lepton18ExpressionTreeNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6Lepton18ExpressionTreeNodeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 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 = { 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 = { 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass