; LLVM IR from aap/pdp6 :: tools (ld6)

; 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.Add = type { i64, i32, i32, ptr }

@symp = external dso_local global i64, align 8
@symtab = external dso_local global [2000 x i64], align 16
@addlist = external dso_local global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [54 x i8], align 1
@__PRETTY_FUNCTION__.loadsym = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local void @err(i32 noundef, ptr noundef, ...) #1

declare i32 @left(i64 noundef) #2

declare i32 @right(i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @findsym(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @extendreq(i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @resolvereq(i32 noundef, i32 noundef) #1

declare i32 @unrad50(i64 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @loadsym(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [8 x i8], align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds i64, ptr %9, i64 0
  %11 = load i64, ptr %10, align 8, !tbaa !9
  %12 = lshr i64 %11, 30
  %13 = and i64 %12, 60
  %14 = trunc i64 %13 to i32
  store i32 %14, ptr %5, align 4, !tbaa !11
  %15 = load i32, ptr %5, align 4, !tbaa !11
  %16 = icmp eq i32 %15, 48
  br i1 %16, label %17, label %52

17:                                               ; preds = %1
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds i64, ptr %18, i64 1
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = call i32 @left(i64 noundef %20)
  %22 = and i32 %21, 131072
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %52

24:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %25 = call noalias ptr @malloc(i64 noundef 24) #6
  store ptr %25, ptr %7, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds i64, ptr %26, i64 0
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Add, ptr %29, i32 0, i32 0
  store i64 %28, ptr %30, align 8, !tbaa !13
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds i64, ptr %31, i64 1
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = call i32 @left(i64 noundef %33)
  %35 = and i32 %34, 65536
  %36 = icmp ne i32 %35, 0
  %37 = xor i1 %36, true
  %38 = xor i1 %37, true
  %39 = zext i1 %38 to i32
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Add, ptr %40, i32 0, i32 1
  store i32 %39, ptr %41, align 8, !tbaa !15
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds i64, ptr %42, i64 1
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = call i32 @right(i64 noundef %44)
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Add, ptr %46, i32 0, i32 2
  store i32 %45, ptr %47, align 4, !tbaa !16
  %48 = load ptr, ptr @addlist, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Add, ptr %49, i32 0, i32 3
  store ptr %48, ptr %50, align 8, !tbaa !17
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %51, ptr @addlist, align 8, !tbaa !5
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %167

52:                                               ; preds = %17, %1
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds i64, ptr %53, i64 0
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = call ptr @findsym(i64 noundef %55)
  store ptr %56, ptr %3, align 8, !tbaa !5
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %77

59:                                               ; preds = %52
  %60 = load i64, ptr @symp, align 8, !tbaa !9
  %61 = icmp ult i64 %60, 1000
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  br label %64

63:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 220, ptr noundef @__PRETTY_FUNCTION__.loadsym) #7
  unreachable

64:                                               ; preds = %62
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds i64, ptr %65, i64 0
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = load i64, ptr @symp, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr @symp, align 8, !tbaa !9
  %70 = getelementptr inbounds [2000 x i64], ptr @symtab, i64 0, i64 %68
  store i64 %67, ptr %70, align 8, !tbaa !9
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds i64, ptr %71, i64 1
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = load i64, ptr @symp, align 8, !tbaa !9
  %75 = add i64 %74, 1
  store i64 %75, ptr @symp, align 8, !tbaa !9
  %76 = getelementptr inbounds [2000 x i64], ptr @symtab, i64 0, i64 %74
  store i64 %73, ptr %76, align 8, !tbaa !9
  store i32 1, ptr %8, align 4
  br label %167

77:                                               ; preds = %52
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds i64, ptr %78, i64 0
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  %82 = call i32 @unrad50(i64 noundef %80, ptr noundef %81)
  store i32 %82, ptr %4, align 4, !tbaa !11
  %83 = load i32, ptr %4, align 4, !tbaa !11
  %84 = icmp eq i32 %83, 48
  br i1 %84, label %85, label %124

85:                                               ; preds = %77
  %86 = load i32, ptr %5, align 4, !tbaa !11
  %87 = icmp eq i32 %86, 4
  br i1 %87, label %91, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %5, align 4, !tbaa !11
  %90 = icmp eq i32 %89, 36
  br i1 %90, label %91, label %110

91:                                               ; preds = %88, %85
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds i64, ptr %92, i64 1
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = call i32 @right(i64 noundef %94)
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds i64, ptr %96, i64 1
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = call i32 @right(i64 noundef %98)
  call void @resolvereq(i32 noundef %95, i32 noundef %99)
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds i64, ptr %100, i64 0
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds i64, ptr %103, i64 0
  store i64 %102, ptr %104, align 8, !tbaa !9
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds i64, ptr %105, i64 1
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds i64, ptr %108, i64 1
  store i64 %107, ptr %109, align 8, !tbaa !9
  br label %123

110:                                              ; preds = %88
  %111 = load i32, ptr %5, align 4, !tbaa !11
  %112 = icmp eq i32 %111, 48
  br i1 %112, label %113, label %122

113:                                              ; preds = %110
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds i64, ptr %114, i64 1
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = call i32 @right(i64 noundef %116)
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds i64, ptr %118, i64 1
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = call i32 @right(i64 noundef %120)
  call void @extendreq(i32 noundef %117, i32 noundef %121)
  br label %122

122:                                              ; preds = %113, %110
  br label %123

123:                                              ; preds = %122, %91
  br label %166

124:                                              ; preds = %77
  %125 = load i32, ptr %4, align 4, !tbaa !11
  %126 = icmp eq i32 %125, 4
  br i1 %126, label %130, label %127

127:                                              ; preds = %124
  %128 = load i32, ptr %4, align 4, !tbaa !11
  %129 = icmp eq i32 %128, 36
  br i1 %129, label %130, label %165

130:                                              ; preds = %127, %124
  %131 = load i32, ptr %5, align 4, !tbaa !11
  %132 = icmp eq i32 %131, 4
  br i1 %132, label %136, label %133

133:                                              ; preds = %130
  %134 = load i32, ptr %5, align 4, !tbaa !11
  %135 = icmp eq i32 %134, 36
  br i1 %135, label %136, label %151

136:                                              ; preds = %133, %130
  %137 = load i32, ptr %5, align 4, !tbaa !11
  %138 = load i32, ptr %4, align 4, !tbaa !11
  %139 = icmp eq i32 %137, %138
  br i1 %139, label %140, label %149

140:                                              ; preds = %136
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds i64, ptr %141, i64 1
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds i64, ptr %144, i64 1
  %146 = load i64, ptr %145, align 8, !tbaa !9
  %147 = icmp eq i64 %143, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %140
  store i32 1, ptr %8, align 4
  br label %167

149:                                              ; preds = %140, %136
  %150 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.7, ptr noundef %150)
  br label %164

151:                                              ; preds = %133
  %152 = load i32, ptr %5, align 4, !tbaa !11
  %153 = icmp eq i32 %152, 48
  br i1 %153, label %154, label %163

154:                                              ; preds = %151
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds i64, ptr %155, i64 1
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = call i32 @right(i64 noundef %157)
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds i64, ptr %159, i64 1
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = call i32 @right(i64 noundef %161)
  call void @resolvereq(i32 noundef %158, i32 noundef %162)
  br label %163

163:                                              ; preds = %154, %151
  br label %164

164:                                              ; preds = %163, %149
  br label %165

165:                                              ; preds = %164, %127
  br label %166

166:                                              ; preds = %165, %123
  store i32 0, ptr %8, align 4
  br label %167

167:                                              ; preds = %166, %148, %64, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %168 = load i32, ptr %8, align 4
  switch i32 %168, label %170 [
    i32 0, label %169
    i32 1, label %169
  ]

169:                                              ; preds = %167, %167
  ret void

170:                                              ; preds = %167
  unreachable
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind allocsize(0) "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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"Add", !10, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 12}
!17 = !{!14, !6, i64 16}


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

@symp = external dso_local local_unnamed_addr global i64, align 8
@symtab = external dso_local local_unnamed_addr global [2000 x i64], align 16
@addlist = external dso_local local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [54 x i8], align 1
@__PRETTY_FUNCTION__.loadsym = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare i32 @left(i64 noundef) local_unnamed_addr #2

declare i32 @right(i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @findsym(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @extendreq(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @resolvereq(i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @unrad50(i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @loadsym(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = alloca [8 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %3 = load i64, ptr %0, align 8, !tbaa !5
  %4 = lshr i64 %3, 30
  %5 = trunc i64 %4 to i32
  %6 = and i32 %5, 60
  %7 = icmp eq i32 %6, 48
  br i1 %7, label %8, label %24

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = tail call i32 @left(i64 noundef %10) #5
  %12 = and i32 %11, 131072
  %.not = icmp eq i32 %12, 0
  %.pre = load i64, ptr %0, align 8, !tbaa !5
  br i1 %.not, label %24, label %13

13:                                               ; preds = %8
  %14 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #6
  store i64 %.pre, ptr %14, align 8, !tbaa !9
  %15 = load i64, ptr %9, align 8, !tbaa !5
  %16 = tail call i32 @left(i64 noundef %15) #5
  %17 = lshr i32 %16, 16
  %.lobit = and i32 %17, 1
  %18 = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %.lobit, ptr %18, align 8, !tbaa !13
  %19 = load i64, ptr %9, align 8, !tbaa !5
  %20 = tail call i32 @right(i64 noundef %19) #5
  %21 = getelementptr inbounds i8, ptr %14, i64 12
  store i32 %20, ptr %21, align 4, !tbaa !14
  %22 = load ptr, ptr @addlist, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %22, ptr %23, align 8, !tbaa !16
  store ptr %14, ptr @addlist, align 8, !tbaa !15
  br label %84

24:                                               ; preds = %8, %1
  %25 = phi i64 [ %.pre, %8 ], [ %3, %1 ]
  %26 = tail call ptr @findsym(i64 noundef %25)
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %40

28:                                               ; preds = %24
  %29 = load i64, ptr @symp, align 8, !tbaa !5
  %30 = icmp ult i64 %29, 1000
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 220, ptr noundef nonnull @__PRETTY_FUNCTION__.loadsym) #7
  unreachable

32:                                               ; preds = %28
  %33 = load i64, ptr %0, align 8, !tbaa !5
  %34 = add nuw nsw i64 %29, 1
  %35 = getelementptr inbounds [2000 x i64], ptr @symtab, i64 0, i64 %29
  store i64 %33, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = add nuw nsw i64 %29, 2
  store i64 %38, ptr @symp, align 8, !tbaa !5
  %39 = getelementptr inbounds [2000 x i64], ptr @symtab, i64 0, i64 %34
  store i64 %37, ptr %39, align 8, !tbaa !5
  br label %84

40:                                               ; preds = %24
  %41 = load i64, ptr %26, align 8, !tbaa !5
  %42 = call i32 @unrad50(i64 noundef %41, ptr noundef nonnull %2) #5
  %43 = icmp eq i32 %42, 48
  br i1 %43, label %44, label %63

44:                                               ; preds = %40
  %45 = and i32 %5, 28
  %or.cond = icmp eq i32 %45, 4
  br i1 %or.cond, label %46, label %55

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %26, i64 8
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %49 = call i32 @right(i64 noundef %48) #5
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = call i32 @right(i64 noundef %51) #5
  call void @resolvereq(i32 noundef %49, i32 noundef %52)
  %53 = load i64, ptr %0, align 8, !tbaa !5
  store i64 %53, ptr %26, align 8, !tbaa !5
  %54 = load i64, ptr %50, align 8, !tbaa !5
  store i64 %54, ptr %47, align 8, !tbaa !5
  br label %84

55:                                               ; preds = %44
  br i1 %7, label %56, label %84

56:                                               ; preds = %55
  %57 = getelementptr inbounds i8, ptr %26, i64 8
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = call i32 @right(i64 noundef %58) #5
  %60 = getelementptr inbounds i8, ptr %0, i64 8
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = call i32 @right(i64 noundef %61) #5
  call void @extendreq(i32 noundef %59, i32 noundef %62)
  br label %84

63:                                               ; preds = %40
  %64 = and i32 %42, -33
  %or.cond3 = icmp eq i32 %64, 4
  br i1 %or.cond3, label %65, label %84

65:                                               ; preds = %63
  %66 = and i32 %5, 28
  %or.cond5 = icmp eq i32 %66, 4
  br i1 %or.cond5, label %67, label %76

67:                                               ; preds = %65
  %68 = icmp eq i32 %6, %42
  br i1 %68, label %69, label %75

69:                                               ; preds = %67
  %70 = getelementptr inbounds i8, ptr %0, i64 8
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %26, i64 8
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = icmp eq i64 %71, %73
  br i1 %74, label %84, label %75

75:                                               ; preds = %69, %67
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.7, ptr noundef nonnull %2)
  br label %84

76:                                               ; preds = %65
  br i1 %7, label %77, label %84

77:                                               ; preds = %76
  %78 = getelementptr inbounds i8, ptr %0, i64 8
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = call i32 @right(i64 noundef %79) #5
  %81 = getelementptr inbounds i8, ptr %26, i64 8
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = call i32 @right(i64 noundef %82) #5
  call void @resolvereq(i32 noundef %80, i32 noundef %83)
  br label %84

84:                                               ; preds = %55, %56, %46, %75, %77, %76, %63, %69, %32, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { noreturn 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"Add", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 12}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !12, i64 16}


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