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

@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__.petricksReduce = external hidden unnamed_addr constant [70 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@stderr = external global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [133 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

declare i32 @obvector_length(ptr noundef) #3

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

declare ptr @obvector_new(i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local ptr @petricksReduce(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr null, ptr %15, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call i32 @obvector_length(ptr noundef %18)
  store i32 %19, ptr %10, align 4, !tbaa !10
  %20 = load i32, ptr %10, align 4, !tbaa !10
  %21 = zext i32 %20 to i64
  %22 = mul i64 4, %21
  %23 = call noalias ptr @malloc(i64 noundef %22) #7
  store ptr %23, ptr %11, align 8, !tbaa !5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %3
  br label %28

27:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 204, ptr noundef @__PRETTY_FUNCTION__.petricksReduce) #8
  unreachable

28:                                               ; preds = %26
  %29 = load i32, ptr %10, align 4, !tbaa !10
  %30 = zext i32 %29 to i64
  %31 = mul i64 4, %30
  %32 = call noalias ptr @malloc(i64 noundef %31) #7
  store ptr %32, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %28
  br label %37

36:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 206, ptr noundef @__PRETTY_FUNCTION__.petricksReduce) #8
  unreachable

37:                                               ; preds = %35
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %38

38:                                               ; preds = %47, %37
  %39 = load i32, ptr %9, align 4, !tbaa !10
  %40 = load i32, ptr %10, align 4, !tbaa !10
  %41 = icmp ult i32 %39, %40
  br i1 %41, label %42, label %50

42:                                               ; preds = %38
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !10
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  store i32 0, ptr %46, align 4, !tbaa !10
  br label %47

47:                                               ; preds = %42
  %48 = load i32, ptr %9, align 4, !tbaa !10
  %49 = add i32 %48, 1
  store i32 %49, ptr %9, align 4, !tbaa !10
  br label %38, !llvm.loop !12

50:                                               ; preds = %38
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call ptr @initPetricksData(ptr noundef %51, ptr noundef %52, ptr noundef %53)
  store ptr %54, ptr %7, align 8, !tbaa !5
  store i64 1, ptr %13, align 8, !tbaa !14
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %55

55:                                               ; preds = %68, %50
  %56 = load i32, ptr %9, align 4, !tbaa !10
  %57 = load i32, ptr %10, align 4, !tbaa !10
  %58 = icmp ult i32 %56, %57
  br i1 %58, label %59, label %71

59:                                               ; preds = %55
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !10
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !10
  %65 = zext i32 %64 to i64
  %66 = load i64, ptr %13, align 8, !tbaa !14
  %67 = mul i64 %66, %65
  store i64 %67, ptr %13, align 8, !tbaa !14
  br label %68

68:                                               ; preds = %59
  %69 = load i32, ptr %9, align 4, !tbaa !10
  %70 = add i32 %69, 1
  store i32 %70, ptr %9, align 4, !tbaa !10
  br label %55, !llvm.loop !16

71:                                               ; preds = %55
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = load i64, ptr %13, align 8, !tbaa !14
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.16, i64 noundef %73) #6
  store i64 -1, ptr %17, align 8, !tbaa !14
  br label %75

75:                                               ; preds = %143, %71
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %10, align 4, !tbaa !10
  %78 = call ptr @obvector_new(i32 noundef %77)
  store ptr %78, ptr %14, align 8, !tbaa !5
  store i64 0, ptr %16, align 8, !tbaa !14
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %79

79:                                               ; preds = %117, %76
  %80 = load i32, ptr %9, align 4, !tbaa !10
  %81 = load i32, ptr %10, align 4, !tbaa !10
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %120

83:                                               ; preds = %79
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !10
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !10
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !10
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %88, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %96, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = call zeroext i8 @obvector_find_obj(ptr noundef %97, ptr noundef %98)
  %100 = icmp ne i8 %99, 0
  br i1 %100, label %116, label %101

101:                                              ; preds = %83
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = call i32 @obvector_length(ptr noundef %104)
  %106 = zext i32 %105 to i64
  call void @obvector_store_at_index(ptr noundef %102, ptr noundef %103, i64 noundef %106)
  %107 = load i8, ptr %6, align 1, !tbaa !9
  %108 = zext i8 %107 to i32
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = call zeroext i8 @orderOfNCube(ptr noundef %109)
  %111 = zext i8 %110 to i32
  %112 = sub nsw i32 %108, %111
  %113 = sext i32 %112 to i64
  %114 = load i64, ptr %16, align 8, !tbaa !14
  %115 = add i64 %114, %113
  store i64 %115, ptr %16, align 8, !tbaa !14
  br label %116

116:                                              ; preds = %101, %83
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %9, align 4, !tbaa !10
  %119 = add i32 %118, 1
  store i32 %119, ptr %9, align 4, !tbaa !10
  br label %79, !llvm.loop !17

120:                                              ; preds = %79
  %121 = load i64, ptr %16, align 8, !tbaa !14
  %122 = load i64, ptr %17, align 8, !tbaa !14
  %123 = icmp ult i64 %121, %122
  br i1 %123, label %124, label %133

124:                                              ; preds = %120
  %125 = load i64, ptr %16, align 8, !tbaa !14
  store i64 %125, ptr %17, align 8, !tbaa !14
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %131

128:                                              ; preds = %124
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = call ptr @ob_release(ptr noundef %129)
  br label %131

131:                                              ; preds = %128, %124
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %132, ptr %15, align 8, !tbaa !5
  br label %136

133:                                              ; preds = %120
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = call ptr @ob_release(ptr noundef %134)
  br label %136

136:                                              ; preds = %133, %131
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = load i32, ptr %10, align 4, !tbaa !10
  %140 = call zeroext i8 @nextCoverCombo(ptr noundef %137, ptr noundef %138, i32 noundef %139)
  %141 = icmp ne i8 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %136
  br label %144

143:                                              ; preds = %136
  br label %75

144:                                              ; preds = %142
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %145

145:                                              ; preds = %155, %144
  %146 = load i32, ptr %9, align 4, !tbaa !10
  %147 = load i32, ptr %10, align 4, !tbaa !10
  %148 = icmp ult i32 %146, %147
  br i1 %148, label %149, label %158

149:                                              ; preds = %145
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load i32, ptr %9, align 4, !tbaa !10
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  call void @free(ptr noundef %154) #6
  br label %155

155:                                              ; preds = %149
  %156 = load i32, ptr %9, align 4, !tbaa !10
  %157 = add i32 %156, 1
  store i32 %157, ptr %9, align 4, !tbaa !10
  br label %145, !llvm.loop !18

158:                                              ; preds = %145
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %159) #6
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %160) #6
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %161) #6
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret ptr %162
}

declare ptr @ob_release(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local ptr @initPetricksData(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare zeroext i8 @obvector_find_obj(ptr noundef, ptr noundef) #3

declare zeroext i8 @orderOfNCube(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @nextCoverCombo(ptr noundef, ptr noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


; 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.14 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__.petricksReduce = external hidden unnamed_addr constant [70 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [133 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 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 i32 @obvector_length(ptr noundef) local_unnamed_addr #2

declare ptr @obvector_new(i32 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
define dso_local ptr @petricksReduce(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2) local_unnamed_addr #3 {
  %4 = tail call i32 @obvector_length(ptr noundef %1) #7
  %.fr86 = freeze i32 %4
  %5 = zext i32 %.fr86 to i64
  %6 = shl nuw nsw i64 %5, 2
  %7 = tail call noalias ptr @malloc(i64 noundef %6) #8
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %9

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

9:                                                ; preds = %3
  %10 = tail call noalias ptr @malloc(i64 noundef %6) #8
  %.not64 = icmp eq ptr %10, null
  br i1 %.not64, label %14, label %.preheader68

.preheader68:                                     ; preds = %9
  %.not84 = icmp eq i32 %.fr86, 0
  br i1 %.not84, label %._crit_edge74.thread, label %.lr.ph73.preheader

._crit_edge74.thread:                             ; preds = %.preheader68
  %11 = tail call ptr @initPetricksData(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %7)
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.16, i64 noundef 1) #10
  br label %.split.peel

14:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 206, ptr noundef nonnull @__PRETTY_FUNCTION__.petricksReduce) #9
  unreachable

.lr.ph73.preheader:                               ; preds = %.preheader68
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %10, i8 0, i64 %6, i1 false), !tbaa !9
  %15 = tail call ptr @initPetricksData(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %7)
  %xtraiter = and i64 %5, 7
  %16 = icmp ult i32 %.fr86, 8
  br i1 %16, label %._crit_edge74.unr-lcssa, label %.lr.ph73.preheader.new

.lr.ph73.preheader.new:                           ; preds = %.lr.ph73.preheader
  %unroll_iter = and i64 %5, 4294967288
  br label %.lr.ph73

.lr.ph73:                                         ; preds = %.lr.ph73, %.lr.ph73.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph73.preheader.new ], [ %indvars.iv.next.7, %.lr.ph73 ]
  %.06070 = phi i64 [ 1, %.lr.ph73.preheader.new ], [ %48, %.lr.ph73 ]
  %niter = phi i64 [ 0, %.lr.ph73.preheader.new ], [ %niter.next.7, %.lr.ph73 ]
  %17 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = mul i64 %.06070, %19
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %21 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = mul i64 %20, %23
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %25 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next.1
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = mul i64 %24, %27
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %29 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next.2
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = mul i64 %28, %31
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv, 4
  %33 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next.3
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = mul i64 %32, %35
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv, 5
  %37 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next.4
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = mul i64 %36, %39
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv, 6
  %41 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next.5
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = mul i64 %40, %43
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv, 7
  %45 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next.6
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = mul i64 %44, %47
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge74.unr-lcssa, label %.lr.ph73, !llvm.loop !11

._crit_edge74.unr-lcssa:                          ; preds = %.lr.ph73, %.lr.ph73.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph73.preheader ], [ %48, %.lr.ph73 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph73.preheader ], [ %indvars.iv.next.7, %.lr.ph73 ]
  %.06070.unr = phi i64 [ 1, %.lr.ph73.preheader ], [ %48, %.lr.ph73 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge74, label %.lr.ph73.epil

.lr.ph73.epil:                                    ; preds = %._crit_edge74.unr-lcssa, %.lr.ph73.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph73.epil ], [ %indvars.iv.unr, %._crit_edge74.unr-lcssa ]
  %.06070.epil = phi i64 [ %52, %.lr.ph73.epil ], [ %.06070.unr, %._crit_edge74.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph73.epil ], [ 0, %._crit_edge74.unr-lcssa ]
  %49 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.epil
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = mul i64 %.06070.epil, %51
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge74, label %.lr.ph73.epil, !llvm.loop !13

._crit_edge74:                                    ; preds = %.lr.ph73.epil, %._crit_edge74.unr-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge74.unr-lcssa ], [ %52, %.lr.ph73.epil ]
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.16, i64 noundef %.lcssa) #10
  %55 = zext i8 %2 to i64
  br i1 %.not84, label %.split.peel, label %.lr.ph78.us

.split.peel:                                      ; preds = %._crit_edge74.thread, %._crit_edge74
  %56 = phi ptr [ %11, %._crit_edge74.thread ], [ %15, %._crit_edge74 ]
  %57 = tail call ptr @obvector_new(i32 noundef 0) #7
  %58 = tail call zeroext i8 @nextCoverCombo(ptr noundef nonnull %7, ptr noundef nonnull %10, i32 noundef 0)
  %.not66.peel = icmp eq i8 %58, 0
  br i1 %.not66.peel, label %.split, label %.preheader

.lr.ph78.us:                                      ; preds = %._crit_edge74, %65
  %.056.us = phi ptr [ %.157.us, %65 ], [ null, %._crit_edge74 ]
  %.0.us = phi i64 [ %.1.us, %65 ], [ -1, %._crit_edge74 ]
  %59 = tail call ptr @obvector_new(i32 noundef %.fr86) #7
  br label %67

60:                                               ; preds = %._crit_edge79.us
  %61 = tail call ptr @ob_release(ptr noundef %59) #7
  br label %65

62:                                               ; preds = %._crit_edge79.us
  %.not65.us = icmp eq ptr %.056.us, null
  br i1 %.not65.us, label %65, label %63

63:                                               ; preds = %62
  %64 = tail call ptr @ob_release(ptr noundef nonnull %.056.us) #7
  br label %65

65:                                               ; preds = %63, %62, %60
  %.157.us = phi ptr [ %.056.us, %60 ], [ %59, %63 ], [ %59, %62 ]
  %.1.us = phi i64 [ %.0.us, %60 ], [ %.155.us, %63 ], [ %.155.us, %62 ]
  %66 = tail call zeroext i8 @nextCoverCombo(ptr noundef nonnull %7, ptr noundef nonnull %10, i32 noundef %.fr86)
  %.not66.us = icmp eq i8 %66, 0
  br i1 %.not66.us, label %.lr.ph78.us, label %.preheader

67:                                               ; preds = %.lr.ph78.us, %83
  %indvars.iv93 = phi i64 [ 0, %.lr.ph78.us ], [ %indvars.iv.next94, %83 ]
  %.05476.us = phi i64 [ 0, %.lr.ph78.us ], [ %.155.us, %83 ]
  %68 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv93
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv93
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %69, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = tail call zeroext i8 @obvector_find_obj(ptr noundef %59, ptr noundef %74) #7
  %.not67.us = icmp eq i8 %75, 0
  br i1 %.not67.us, label %76, label %83

76:                                               ; preds = %67
  %77 = tail call i32 @obvector_length(ptr noundef %59) #7
  %78 = zext i32 %77 to i64
  tail call void @obvector_store_at_index(ptr noundef %59, ptr noundef %74, i64 noundef %78) #7
  %79 = tail call zeroext i8 @orderOfNCube(ptr noundef %74) #7
  %80 = zext i8 %79 to i64
  %81 = add i64 %.05476.us, %55
  %82 = sub i64 %81, %80
  br label %83

83:                                               ; preds = %76, %67
  %.155.us = phi i64 [ %.05476.us, %67 ], [ %82, %76 ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next94, %5
  br i1 %exitcond97.not, label %._crit_edge79.us, label %67, !llvm.loop !15

._crit_edge79.us:                                 ; preds = %83
  %84 = icmp ult i64 %.155.us, %.0.us
  br i1 %84, label %62, label %60

.split:                                           ; preds = %.split.peel, %.split
  %85 = tail call ptr @obvector_new(i32 noundef 0) #7
  %86 = tail call ptr @ob_release(ptr noundef %85) #7
  %87 = tail call zeroext i8 @nextCoverCombo(ptr noundef nonnull %7, ptr noundef nonnull %10, i32 noundef 0)
  %.not66 = icmp eq i8 %87, 0
  br i1 %.not66, label %.split, label %.preheader, !llvm.loop !16

.preheader:                                       ; preds = %65, %.split.peel, %.split
  %88 = phi ptr [ %56, %.split ], [ %56, %.split.peel ], [ %15, %65 ]
  %.us-phi = phi ptr [ %57, %.split ], [ %57, %.split.peel ], [ %.157.us, %65 ]
  br i1 %.not84, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %.preheader, %.lr.ph82
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %.lr.ph82 ], [ 0, %.preheader ]
  %89 = getelementptr inbounds ptr, ptr %88, i64 %indvars.iv98
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  tail call void @free(ptr noundef %90) #7
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next99, %5
  br i1 %exitcond102.not, label %._crit_edge83, label %.lr.ph82, !llvm.loop !18

._crit_edge83:                                    ; preds = %.lr.ph82, %.preheader
  tail call void @free(ptr noundef %88) #7
  tail call void @free(ptr noundef %7) #7
  tail call void @free(ptr noundef %10) #7
  ret ptr %.us-phi
}

declare ptr @ob_release(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

declare zeroext i8 @obvector_find_obj(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @nextCoverCombo(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { 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 #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 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nofree 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { cold 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.peeled.count", i32 1}
!18 = distinct !{!18, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass