; LLVM IR from tangjz/acm-icpc :: 51nod/1382.ll (ZN7Segment5mergeES_S_)

; 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.Segment = type { i32, i32, i32, [4 x i64], [2 x ptr] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7Segment5mergeES_S_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef byval(%struct.Segment) align 8 %1, ptr noundef byval(%struct.Segment) align 8 %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %115, %3
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 4
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  br label %118

15:                                               ; preds = %11
  %16 = getelementptr inbounds %struct.Segment, ptr %10, i32 0, i32 3
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [4 x i64], ptr %16, i64 0, i64 %18
  store i64 -1061109567, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %111, %15
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 3
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %114

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #2
  %25 = getelementptr inbounds %struct.Segment, ptr %1, i32 0, i32 3
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = and i32 %26, 1
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = and i32 %28, 2
  %30 = or i32 %27, %29
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = icmp ne i64 %33, -1061109567
  %35 = zext i1 %34 to i8
  store i8 %35, ptr %8, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #2
  %36 = getelementptr inbounds %struct.Segment, ptr %2, i32 0, i32 3
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = and i32 %37, 2
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = and i32 %39, 1
  %41 = or i32 %38, %40
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [4 x i64], ptr %36, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = icmp ne i64 %44, -1061109567
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %9, align 1, !tbaa !13
  %47 = load i8, ptr %8, align 1, !tbaa !13, !range !15, !noundef !16
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %63

49:                                               ; preds = %24
  %50 = getelementptr inbounds %struct.Segment, ptr %10, i32 0, i32 3
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [4 x i64], ptr %50, i64 0, i64 %52
  %54 = getelementptr inbounds %struct.Segment, ptr %1, i32 0, i32 3
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = and i32 %55, 1
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = and i32 %57, 2
  %59 = or i32 %56, %58
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [4 x i64], ptr %54, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !11
  call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %62)
  br label %63

63:                                               ; preds = %49, %24
  %64 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %80

66:                                               ; preds = %63
  %67 = getelementptr inbounds %struct.Segment, ptr %10, i32 0, i32 3
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [4 x i64], ptr %67, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.Segment, ptr %2, i32 0, i32 3
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = and i32 %72, 2
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = and i32 %74, 1
  %76 = or i32 %73, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [4 x i64], ptr %71, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !11
  call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %70, i64 noundef %79)
  br label %80

80:                                               ; preds = %66, %63
  %81 = load i8, ptr %8, align 1, !tbaa !13, !range !15, !noundef !16
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %110

83:                                               ; preds = %80
  %84 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %110

86:                                               ; preds = %83
  %87 = getelementptr inbounds %struct.Segment, ptr %10, i32 0, i32 3
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [4 x i64], ptr %87, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.Segment, ptr %1, i32 0, i32 3
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = and i32 %92, 1
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = and i32 %94, 2
  %96 = or i32 %93, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [4 x i64], ptr %91, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.Segment, ptr %2, i32 0, i32 3
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = and i32 %101, 2
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = and i32 %103, 1
  %105 = or i32 %102, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x i64], ptr %100, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !11
  %109 = add nsw i64 %99, %108
  call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %90, i64 noundef %109)
  br label %110

110:                                              ; preds = %86, %83, %80
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #2
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !17

114:                                              ; preds = %23
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %5, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %5, align 4, !tbaa !9
  br label %11, !llvm.loop !19

118:                                              ; preds = %14
  ret void
}

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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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.Segment = type { i32, i32, i32, [4 x i64], [2 x ptr] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7Segment5mergeES_S_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nocapture noundef readonly byval(%struct.Segment) align 8 %1, ptr nocapture noundef readonly byval(%struct.Segment) align 8 %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 -1061109567, ptr %4, align 8, !tbaa !5
  %7 = load i64, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i64 %7, -1061109567
  %8 = load i64, ptr %6, align 8, !tbaa !5
  %.not26 = icmp eq i64 %8, -1061109567
  br i1 %.not, label %9, label %.thread39

9:                                                ; preds = %3
  br i1 %.not26, label %.thread, label %10

.thread39:                                        ; preds = %3
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %7)
  br i1 %.not26, label %.thread.thread, label %11

10:                                               ; preds = %9
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %8)
  br label %.thread

11:                                               ; preds = %.thread39
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %8)
  %12 = add nsw i64 %8, %7
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %12)
  br label %.thread.thread

.thread.thread:                                   ; preds = %.thread39, %11
  %13 = getelementptr inbounds i8, ptr %2, i64 24
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %.not26.141 = icmp eq i64 %14, -1061109567
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %7)
  br i1 %.not26.141, label %.thread.1, label %19

.thread:                                          ; preds = %10, %9
  %15 = getelementptr inbounds i8, ptr %2, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %.not26.1 = icmp eq i64 %16, -1061109567
  br i1 %.not, label %18, label %17

17:                                               ; preds = %.thread
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %7)
  br i1 %.not26.1, label %.thread.1, label %19

18:                                               ; preds = %.thread
  br i1 %.not26.1, label %.thread.1, label %.thread.1.sink.split

19:                                               ; preds = %.thread.thread, %17
  %20 = phi i64 [ %16, %17 ], [ %14, %.thread.thread ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %20)
  %21 = add nsw i64 %20, %7
  br label %.thread.1.sink.split

.thread.1.sink.split:                             ; preds = %18, %19
  %.sink = phi i64 [ %21, %19 ], [ %16, %18 ]
  %.ph = phi i64 [ %20, %19 ], [ %16, %18 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %.sink)
  br label %.thread.1

.thread.1:                                        ; preds = %.thread.1.sink.split, %.thread.thread, %17, %18
  %22 = phi i64 [ %16, %17 ], [ -1061109567, %18 ], [ -1061109567, %.thread.thread ], [ %.ph, %.thread.1.sink.split ]
  %.not26.14345 = phi i1 [ true, %17 ], [ true, %18 ], [ true, %.thread.thread ], [ false, %.thread.1.sink.split ]
  %23 = getelementptr inbounds i8, ptr %1, i64 32
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %.not.2 = icmp eq i64 %24, -1061109567
  br i1 %.not.2, label %25, label %.thread48

25:                                               ; preds = %.thread.1
  br i1 %.not26, label %.thread.2, label %.thread.2.sink.split

.thread48:                                        ; preds = %.thread.1
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %24)
  br i1 %.not26, label %.thread.2, label %26

26:                                               ; preds = %.thread48
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %8)
  %27 = add nsw i64 %8, %24
  br label %.thread.2.sink.split

.thread.2.sink.split:                             ; preds = %25, %26
  %.sink73 = phi i64 [ %27, %26 ], [ %8, %25 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %.sink73)
  br label %.thread.2

.thread.2:                                        ; preds = %.thread.2.sink.split, %.thread48, %25
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 -1061109567, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %.not.131 = icmp eq i64 %30, -1061109567
  br i1 %.not.131, label %31, label %.thread50

31:                                               ; preds = %.thread.2
  br i1 %.not26, label %.thread.134, label %32

.thread50:                                        ; preds = %.thread.2
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %30)
  br i1 %.not26, label %.thread52, label %33

32:                                               ; preds = %31
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %8)
  br label %.thread.134

33:                                               ; preds = %.thread50
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %8)
  %34 = add nsw i64 %8, %30
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %34)
  br label %.thread52

.thread.134:                                      ; preds = %32, %31
  br i1 %.not.131, label %35, label %.thread52

35:                                               ; preds = %.thread.134
  br i1 %.not26.14345, label %.thread.1.1, label %.thread.1.1.sink.split

.thread52:                                        ; preds = %.thread.134, %.thread50, %33
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %30)
  br i1 %.not26.14345, label %.thread.1.1, label %36

36:                                               ; preds = %.thread52
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %22)
  %37 = add nsw i64 %22, %30
  br label %.thread.1.1.sink.split

.thread.1.1.sink.split:                           ; preds = %35, %36
  %.sink74 = phi i64 [ %37, %36 ], [ %22, %35 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %.sink74)
  br label %.thread.1.1

.thread.1.1:                                      ; preds = %.thread.1.1.sink.split, %.thread52, %35
  %38 = getelementptr inbounds i8, ptr %1, i64 40
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %.not.2.1 = icmp eq i64 %39, -1061109567
  br i1 %.not.2.1, label %40, label %.thread54

40:                                               ; preds = %.thread.1.1
  br i1 %.not26, label %.thread.2.1, label %.thread.2.1.sink.split

.thread54:                                        ; preds = %.thread.1.1
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %39)
  br i1 %.not26, label %.thread.2.1, label %41

41:                                               ; preds = %.thread54
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %8)
  %42 = add nsw i64 %8, %39
  br label %.thread.2.1.sink.split

.thread.2.1.sink.split:                           ; preds = %40, %41
  %.sink75 = phi i64 [ %42, %41 ], [ %8, %40 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %.sink75)
  br label %.thread.2.1

.thread.2.1:                                      ; preds = %.thread.2.1.sink.split, %.thread54, %40
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 -1061109567, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %2, i64 32
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %.not26.236 = icmp eq i64 %45, -1061109567
  br i1 %.not, label %46, label %.thread56

46:                                               ; preds = %.thread.2.1
  br i1 %.not26.236, label %.thread.238, label %47

.thread56:                                        ; preds = %.thread.2.1
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %7)
  br i1 %.not26.236, label %.thread.238.thread, label %48

47:                                               ; preds = %46
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %45)
  br label %.thread.238

48:                                               ; preds = %.thread56
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %45)
  %49 = add nsw i64 %45, %7
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %49)
  br label %.thread.238.thread

.thread.238.thread:                               ; preds = %.thread56, %48
  %50 = getelementptr inbounds i8, ptr %2, i64 40
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %.not26.1.258 = icmp eq i64 %51, -1061109567
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %7)
  br i1 %.not26.1.258, label %.thread.1.2, label %56

.thread.238:                                      ; preds = %47, %46
  %52 = getelementptr inbounds i8, ptr %2, i64 40
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %.not26.1.2 = icmp eq i64 %53, -1061109567
  br i1 %.not, label %55, label %54

54:                                               ; preds = %.thread.238
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %7)
  br i1 %.not26.1.2, label %.thread.1.2, label %56

55:                                               ; preds = %.thread.238
  br i1 %.not26.1.2, label %.thread.1.2, label %.thread.1.2.sink.split

56:                                               ; preds = %.thread.238.thread, %54
  %57 = phi i64 [ %53, %54 ], [ %51, %.thread.238.thread ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %57)
  %58 = add nsw i64 %57, %7
  br label %.thread.1.2.sink.split

.thread.1.2.sink.split:                           ; preds = %55, %56
  %.sink77 = phi i64 [ %58, %56 ], [ %53, %55 ]
  %.ph76 = phi i64 [ %57, %56 ], [ %53, %55 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %.sink77)
  br label %.thread.1.2

.thread.1.2:                                      ; preds = %.thread.1.2.sink.split, %.thread.238.thread, %54, %55
  %59 = phi i64 [ %53, %54 ], [ -1061109567, %55 ], [ -1061109567, %.thread.238.thread ], [ %.ph76, %.thread.1.2.sink.split ]
  %.not26.1.26062 = phi i1 [ true, %54 ], [ true, %55 ], [ true, %.thread.238.thread ], [ false, %.thread.1.2.sink.split ]
  br i1 %.not.2, label %60, label %.thread65

60:                                               ; preds = %.thread.1.2
  br i1 %.not26.236, label %.thread.2.2, label %.thread.2.2.sink.split

.thread65:                                        ; preds = %.thread.1.2
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %24)
  br i1 %.not26.236, label %.thread.2.2, label %61

61:                                               ; preds = %.thread65
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %45)
  %62 = add nsw i64 %45, %24
  br label %.thread.2.2.sink.split

.thread.2.2.sink.split:                           ; preds = %60, %61
  %.sink78 = phi i64 [ %62, %61 ], [ %45, %60 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %.sink78)
  br label %.thread.2.2

.thread.2.2:                                      ; preds = %.thread.2.2.sink.split, %.thread65, %60
  %63 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 -1061109567, ptr %63, align 8, !tbaa !5
  br i1 %.not.131, label %64, label %.thread67

64:                                               ; preds = %.thread.2.2
  br i1 %.not26.236, label %.thread.3, label %65

.thread67:                                        ; preds = %.thread.2.2
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %30)
  br i1 %.not26.236, label %.thread69, label %66

65:                                               ; preds = %64
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %45)
  br label %.thread.3

66:                                               ; preds = %.thread67
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %45)
  %67 = add nsw i64 %45, %30
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %67)
  br label %.thread69

.thread.3:                                        ; preds = %65, %64
  br i1 %.not.131, label %68, label %.thread69

68:                                               ; preds = %.thread.3
  br i1 %.not26.1.26062, label %.thread.1.3, label %.thread.1.3.sink.split

.thread69:                                        ; preds = %.thread.3, %.thread67, %66
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %30)
  br i1 %.not26.1.26062, label %.thread.1.3, label %69

69:                                               ; preds = %.thread69
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %59)
  %70 = add nsw i64 %59, %30
  br label %.thread.1.3.sink.split

.thread.1.3.sink.split:                           ; preds = %68, %69
  %.sink79 = phi i64 [ %70, %69 ], [ %59, %68 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %.sink79)
  br label %.thread.1.3

.thread.1.3:                                      ; preds = %.thread.1.3.sink.split, %.thread69, %68
  br i1 %.not.2.1, label %71, label %.thread71

71:                                               ; preds = %.thread.1.3
  br i1 %.not26.236, label %.thread.2.3, label %.thread.2.3.sink.split

.thread71:                                        ; preds = %.thread.1.3
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %39)
  br i1 %.not26.236, label %.thread.2.3, label %72

72:                                               ; preds = %.thread71
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %45)
  %73 = add nsw i64 %45, %39
  br label %.thread.2.3.sink.split

.thread.2.3.sink.split:                           ; preds = %71, %72
  %.sink80 = phi i64 [ %73, %72 ], [ %45, %71 ]
  tail call void @_Z3updRxx(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %.sink80)
  br label %.thread.2.3

.thread.2.3:                                      ; preds = %.thread.2.3.sink.split, %.thread71, %71
  ret void
}

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

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass