; LLVM IR from theck01/offbrand_lib :: apps/minlog/src/classes (RTable)

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

@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.findEssentialPIs = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @createRTable(ptr noundef, ptr 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

declare ptr @obvector_copy(ptr noundef) #3

declare i32 @obvector_length(ptr noundef) #3

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local ptr @findEssentialPIs(ptr noundef %0, i8 noundef zeroext %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i8 %1, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  br label %20

19:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 62, ptr noundef @__PRETTY_FUNCTION__.findEssentialPIs) #5
  unreachable

20:                                               ; preds = %18
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.RTable_struct, ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !10
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %30

25:                                               ; preds = %20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.RTable_struct, ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !10
  %29 = call ptr @obvector_copy(ptr noundef %28)
  store ptr %29, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %209

30:                                               ; preds = %20
  %31 = call ptr @obvector_new(i32 noundef 1)
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.RTable_struct, ptr %32, i32 0, i32 3
  store ptr %31, ptr %33, align 8, !tbaa !10
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.RTable_struct, ptr %34, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !10
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %30
  br label %40

39:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 71, ptr noundef @__PRETTY_FUNCTION__.findEssentialPIs) #5
  unreachable

40:                                               ; preds = %38
  %41 = call ptr @obvector_new(i32 noundef 1)
  store ptr %41, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  br label %46

45:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__.findEssentialPIs) #5
  unreachable

46:                                               ; preds = %44
  %47 = call ptr @obvector_new(i32 noundef 1)
  store ptr %47, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  br label %52

51:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 75, ptr noundef @__PRETTY_FUNCTION__.findEssentialPIs) #5
  unreachable

52:                                               ; preds = %50
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.RTable_struct, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !12
  %56 = call i32 @obvector_length(ptr noundef %55)
  store i32 %56, ptr %9, align 4, !tbaa !13
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.RTable_struct, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = call i32 @obvector_length(ptr noundef %59)
  store i32 %60, ptr %8, align 4, !tbaa !13
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %61

61:                                               ; preds = %114, %52
  %62 = load i32, ptr %6, align 4, !tbaa !13
  %63 = load i32, ptr %8, align 4, !tbaa !13
  %64 = icmp ult i32 %62, %63
  br i1 %64, label %65, label %117

65:                                               ; preds = %61
  store i32 0, ptr %10, align 4, !tbaa !13
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %66

66:                                               ; preds = %96, %65
  %67 = load i32, ptr %7, align 4, !tbaa !13
  %68 = load i32, ptr %9, align 4, !tbaa !13
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %70, label %99

70:                                               ; preds = %66
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.RTable_struct, ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = load i32, ptr %6, align 4, !tbaa !13
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i32, ptr %7, align 4, !tbaa !13
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %77, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !9
  %82 = zext i8 %81 to i32
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %84, label %95

84:                                               ; preds = %70
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.RTable_struct, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !12
  %88 = load i32, ptr %7, align 4, !tbaa !13
  %89 = zext i32 %88 to i64
  %90 = call ptr @obvector_obj_at_index(ptr noundef %87, i64 noundef %89)
  %91 = call zeroext i8 @isNCubeEssential(ptr noundef %90)
  %92 = zext i8 %91 to i32
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %84
  store i32 1, ptr %10, align 4, !tbaa !13
  br label %99

95:                                               ; preds = %84, %70
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %7, align 4, !tbaa !13
  %98 = add i32 %97, 1
  store i32 %98, ptr %7, align 4, !tbaa !13
  br label %66, !llvm.loop !17

99:                                               ; preds = %94, %66
  %100 = load i32, ptr %10, align 4, !tbaa !13
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %113, label %102

102:                                              ; preds = %99
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.RTable_struct, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !15
  %107 = load i32, ptr %6, align 4, !tbaa !13
  %108 = zext i32 %107 to i64
  %109 = call ptr @obvector_obj_at_index(ptr noundef %106, i64 noundef %108)
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = call i32 @obvector_length(ptr noundef %110)
  %112 = zext i32 %111 to i64
  call void @obvector_store_at_index(ptr noundef %103, ptr noundef %109, i64 noundef %112)
  br label %113

113:                                              ; preds = %102, %99
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %6, align 4, !tbaa !13
  %116 = add i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !13
  br label %61, !llvm.loop !19

117:                                              ; preds = %61
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %118

118:                                              ; preds = %158, %117
  %119 = load i32, ptr %6, align 4, !tbaa !13
  %120 = load i32, ptr %9, align 4, !tbaa !13
  %121 = icmp ult i32 %119, %120
  br i1 %121, label %122, label %161

122:                                              ; preds = %118
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.RTable_struct, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !12
  %126 = load i32, ptr %6, align 4, !tbaa !13
  %127 = zext i32 %126 to i64
  %128 = call ptr @obvector_obj_at_index(ptr noundef %125, i64 noundef %127)
  %129 = call zeroext i8 @isNCubeEssential(ptr noundef %128)
  %130 = icmp ne i8 %129, 0
  br i1 %130, label %131, label %146

131:                                              ; preds = %122
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.RTable_struct, ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %133, align 8, !tbaa !10
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.RTable_struct, ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !12
  %138 = load i32, ptr %6, align 4, !tbaa !13
  %139 = zext i32 %138 to i64
  %140 = call ptr @obvector_obj_at_index(ptr noundef %137, i64 noundef %139)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.RTable_struct, ptr %141, i32 0, i32 3
  %143 = load ptr, ptr %142, align 8, !tbaa !10
  %144 = call i32 @obvector_length(ptr noundef %143)
  %145 = zext i32 %144 to i64
  call void @obvector_store_at_index(ptr noundef %134, ptr noundef %140, i64 noundef %145)
  br label %157

146:                                              ; preds = %122
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.RTable_struct, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !12
  %151 = load i32, ptr %6, align 4, !tbaa !13
  %152 = zext i32 %151 to i64
  %153 = call ptr @obvector_obj_at_index(ptr noundef %150, i64 noundef %152)
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = call i32 @obvector_length(ptr noundef %154)
  %156 = zext i32 %155 to i64
  call void @obvector_store_at_index(ptr noundef %147, ptr noundef %153, i64 noundef %156)
  br label %157

157:                                              ; preds = %146, %131
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %6, align 4, !tbaa !13
  %160 = add i32 %159, 1
  store i32 %160, ptr %6, align 4, !tbaa !13
  br label %118, !llvm.loop !20

161:                                              ; preds = %118
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = call i32 @obvector_length(ptr noundef %162)
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.RTable_struct, ptr %164, i32 0, i32 2
  %166 = load ptr, ptr %165, align 8, !tbaa !15
  %167 = call i32 @obvector_length(ptr noundef %166)
  %168 = icmp eq i32 %163, %167
  br i1 %168, label %169, label %180

169:                                              ; preds = %161
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = load i8, ptr %5, align 1, !tbaa !9
  %173 = call ptr @petricksReduce(ptr noundef %170, ptr noundef %171, i8 noundef zeroext %172)
  store ptr %173, ptr %13, align 8, !tbaa !5
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.RTable_struct, ptr %174, i32 0, i32 3
  %176 = load ptr, ptr %175, align 8, !tbaa !10
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  call void @obvector_concat(ptr noundef %176, ptr noundef %177)
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = call ptr @ob_release(ptr noundef %178)
  store ptr %179, ptr %13, align 8, !tbaa !5
  br label %200

180:                                              ; preds = %161
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = call i32 @obvector_length(ptr noundef %181)
  %183 = icmp ugt i32 %182, 0
  br i1 %183, label %184, label %199

184:                                              ; preds = %180
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = call ptr @createRTable(ptr noundef %185, ptr noundef %186)
  store ptr %187, ptr %14, align 8, !tbaa !5
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  %189 = load i8, ptr %5, align 1, !tbaa !9
  %190 = call ptr @findEssentialPIs(ptr noundef %188, i8 noundef zeroext %189)
  store ptr %190, ptr %13, align 8, !tbaa !5
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = call ptr @ob_release(ptr noundef %191)
  store ptr %192, ptr %14, align 8, !tbaa !5
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.RTable_struct, ptr %193, i32 0, i32 3
  %195 = load ptr, ptr %194, align 8, !tbaa !10
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  call void @obvector_concat(ptr noundef %195, ptr noundef %196)
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = call ptr @ob_release(ptr noundef %197)
  store ptr %198, ptr %13, align 8, !tbaa !5
  br label %199

199:                                              ; preds = %184, %180
  br label %200

200:                                              ; preds = %199, %169
  %201 = load ptr, ptr %12, align 8, !tbaa !5
  %202 = call ptr @ob_release(ptr noundef %201)
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = call ptr @ob_release(ptr noundef %203)
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.RTable_struct, ptr %205, i32 0, i32 3
  %207 = load ptr, ptr %206, align 8, !tbaa !10
  %208 = call ptr @obvector_copy(ptr noundef %207)
  store ptr %208, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %209

209:                                              ; preds = %200, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %210 = load ptr, ptr %3, align 8
  ret ptr %210
}

declare ptr @obvector_new(i32 noundef) #3

declare zeroext i8 @isNCubeEssential(ptr noundef) #3

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @petricksReduce(ptr noundef, ptr noundef, i8 noundef zeroext) #0

declare void @obvector_concat(ptr noundef, ptr noundef) #3

declare ptr @ob_release(ptr noundef) #3

attributes #0 = { 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 = { 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 #3 = { "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 = { nounwind }
attributes #5 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 24}
!11 = !{!"RTable_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!11, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!11, !6, i64 16}
!16 = !{!11, !6, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !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"

@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.findEssentialPIs = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @createRTable(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare ptr @obvector_copy(ptr noundef) local_unnamed_addr #2

declare i32 @obvector_length(ptr noundef) local_unnamed_addr #2

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @findEssentialPIs(ptr noundef %0, i8 noundef zeroext %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 62, ptr noundef nonnull @__PRETTY_FUNCTION__.findEssentialPIs) #3
  unreachable

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not65 = icmp eq ptr %6, null
  br i1 %.not65, label %9, label %7

7:                                                ; preds = %4
  %8 = tail call ptr @obvector_copy(ptr noundef nonnull %6) #4
  br label %81

9:                                                ; preds = %4
  %10 = tail call ptr @obvector_new(i32 noundef 1) #4
  store ptr %10, ptr %5, align 8, !tbaa !5
  %.not66 = icmp eq ptr %10, null
  br i1 %.not66, label %11, label %12

11:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 71, ptr noundef nonnull @__PRETTY_FUNCTION__.findEssentialPIs) #3
  unreachable

12:                                               ; preds = %9
  %13 = tail call ptr @obvector_new(i32 noundef 1) #4
  %.not67 = icmp eq ptr %13, null
  br i1 %.not67, label %14, label %15

14:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__.findEssentialPIs) #3
  unreachable

15:                                               ; preds = %12
  %16 = tail call ptr @obvector_new(i32 noundef 1) #4
  %.not68 = icmp eq ptr %16, null
  br i1 %.not68, label %17, label %18

17:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 75, ptr noundef nonnull @__PRETTY_FUNCTION__.findEssentialPIs) #3
  unreachable

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !10
  %21 = tail call i32 @obvector_length(ptr noundef %20) #4
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = tail call i32 @obvector_length(ptr noundef %23) #4
  %.not80 = icmp eq i32 %24, 0
  br i1 %.not80, label %.preheader, label %.preheader74.lr.ph

.preheader74.lr.ph:                               ; preds = %18
  %.not7375.not = icmp eq i32 %21, 0
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %wide.trip.count92 = zext i32 %24 to i64
  br i1 %.not7375.not, label %.preheader74, label %.preheader74.us.preheader

.preheader74.us.preheader:                        ; preds = %.preheader74.lr.ph
  %wide.trip.count = zext i32 %21 to i64
  br label %.preheader74.us

.preheader74.us:                                  ; preds = %.preheader74.us.preheader, %.loopexit.us
  %indvars.iv84 = phi i64 [ 0, %.preheader74.us.preheader ], [ %indvars.iv.next85, %.loopexit.us ]
  br label %26

26:                                               ; preds = %.preheader74.us, %37
  %indvars.iv = phi i64 [ 0, %.preheader74.us ], [ %indvars.iv.next, %37 ]
  %27 = load ptr, ptr %25, align 8, !tbaa !12
  %28 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv84
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv
  %31 = load i8, ptr %30, align 1, !tbaa !14
  %32 = icmp eq i8 %31, 1
  br i1 %32, label %33, label %37

33:                                               ; preds = %26
  %34 = load ptr, ptr %19, align 8, !tbaa !10
  %35 = tail call ptr @obvector_obj_at_index(ptr noundef %34, i64 noundef %indvars.iv) #4
  %36 = tail call zeroext i8 @isNCubeEssential(ptr noundef %35) #4
  %.not71.us = icmp eq i8 %36, 0
  br i1 %.not71.us, label %37, label %.loopexit.us

.loopexit.us:                                     ; preds = %33, %..critedge_crit_edge.us
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count92
  br i1 %exitcond88.not, label %.preheader, label %.preheader74.us, !llvm.loop !15

37:                                               ; preds = %33, %26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %..critedge_crit_edge.us, label %26, !llvm.loop !17

..critedge_crit_edge.us:                          ; preds = %37
  %38 = load ptr, ptr %22, align 8, !tbaa !11
  %39 = tail call ptr @obvector_obj_at_index(ptr noundef %38, i64 noundef %indvars.iv84) #4
  %40 = tail call i32 @obvector_length(ptr noundef nonnull %13) #4
  %41 = zext i32 %40 to i64
  tail call void @obvector_store_at_index(ptr noundef nonnull %13, ptr noundef %39, i64 noundef %41) #4
  br label %.loopexit.us

.preheader74:                                     ; preds = %.preheader74.lr.ph, %.preheader74
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.preheader74 ], [ 0, %.preheader74.lr.ph ]
  %42 = load ptr, ptr %22, align 8, !tbaa !11
  %43 = tail call ptr @obvector_obj_at_index(ptr noundef %42, i64 noundef %indvars.iv89) #4
  %44 = tail call i32 @obvector_length(ptr noundef nonnull %13) #4
  %45 = zext i32 %44 to i64
  tail call void @obvector_store_at_index(ptr noundef nonnull %13, ptr noundef %43, i64 noundef %45) #4
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %.preheader, label %.preheader74, !llvm.loop !15

.preheader:                                       ; preds = %.loopexit.us, %.preheader74, %18
  %.not81 = icmp eq i32 %21, 0
  br i1 %.not81, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count97 = zext i32 %21 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %61
  %indvars.iv94 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next95, %61 ]
  %46 = load ptr, ptr %19, align 8, !tbaa !10
  %47 = tail call ptr @obvector_obj_at_index(ptr noundef %46, i64 noundef %indvars.iv94) #4
  %48 = tail call zeroext i8 @isNCubeEssential(ptr noundef %47) #4
  %.not70 = icmp eq i8 %48, 0
  br i1 %.not70, label %56, label %49

49:                                               ; preds = %.lr.ph
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %19, align 8, !tbaa !10
  %52 = tail call ptr @obvector_obj_at_index(ptr noundef %51, i64 noundef %indvars.iv94) #4
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = tail call i32 @obvector_length(ptr noundef %53) #4
  %55 = zext i32 %54 to i64
  tail call void @obvector_store_at_index(ptr noundef %50, ptr noundef %52, i64 noundef %55) #4
  br label %61

56:                                               ; preds = %.lr.ph
  %57 = load ptr, ptr %19, align 8, !tbaa !10
  %58 = tail call ptr @obvector_obj_at_index(ptr noundef %57, i64 noundef %indvars.iv94) #4
  %59 = tail call i32 @obvector_length(ptr noundef nonnull %16) #4
  %60 = zext i32 %59 to i64
  tail call void @obvector_store_at_index(ptr noundef nonnull %16, ptr noundef %58, i64 noundef %60) #4
  br label %61

61:                                               ; preds = %49, %56
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count97
  br i1 %exitcond98.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %61, %.preheader
  %62 = tail call i32 @obvector_length(ptr noundef nonnull %13) #4
  %63 = load ptr, ptr %22, align 8, !tbaa !11
  %64 = tail call i32 @obvector_length(ptr noundef %63) #4
  %65 = icmp eq i32 %62, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %._crit_edge
  %67 = tail call ptr @petricksReduce(ptr noundef nonnull %16, ptr noundef nonnull %13, i8 noundef zeroext %1)
  br label %.sink.split

68:                                               ; preds = %._crit_edge
  %69 = tail call i32 @obvector_length(ptr noundef nonnull %13) #4
  %.not69 = icmp eq i32 %69, 0
  br i1 %.not69, label %76, label %70

70:                                               ; preds = %68
  %71 = tail call ptr @createRTable(ptr noundef nonnull %16, ptr noundef nonnull %13)
  %72 = tail call ptr @findEssentialPIs(ptr noundef %71, i8 noundef zeroext %1)
  %73 = tail call ptr @ob_release(ptr noundef %71) #4
  br label %.sink.split

.sink.split:                                      ; preds = %66, %70
  %.sink101 = phi ptr [ %72, %70 ], [ %67, %66 ]
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @obvector_concat(ptr noundef %74, ptr noundef %.sink101) #4
  %75 = tail call ptr @ob_release(ptr noundef %.sink101) #4
  br label %76

76:                                               ; preds = %.sink.split, %68
  %77 = tail call ptr @ob_release(ptr noundef nonnull %13) #4
  %78 = tail call ptr @ob_release(ptr noundef nonnull %16) #4
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = tail call ptr @obvector_copy(ptr noundef %79) #4
  br label %81

81:                                               ; preds = %76, %7
  %.0 = phi ptr [ %8, %7 ], [ %80, %76 ]
  ret ptr %.0
}

declare ptr @obvector_new(i32 noundef) local_unnamed_addr #2

declare zeroext i8 @isNCubeEssential(ptr noundef) local_unnamed_addr #2

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @petricksReduce(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

declare void @obvector_concat(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ob_release(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 = { "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 = { noreturn nounwind }
attributes #4 = { 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, !7, i64 24}
!6 = !{!"RTable_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 32}
!13 = !{!7, !7, i64 0}
!14 = !{!8, !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass