; LLVM IR from ahr9n/psolving-paradigms :: 4.dynamic-programming/21.non-classical/CodeForces 698A - Vacations.ll (Z3soliii)

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

%"class.std::initializer_list" = type { ptr, i64 }

@n = external dso_local global i32, align 4
@arr = external dso_local global [101 x i32], align 16
@dp = external dso_local global [101 x [2 x [2 x i32]]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3soliii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::initializer_list", align 8
  %19 = alloca [3 x i32], align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = icmp eq i32 %20, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  store i32 0, ptr %4, align 4
  br label %188

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [101 x [2 x [2 x i32]]], ptr @dp, i64 0, i64 %26
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [2 x [2 x i32]], ptr %27, i64 0, i64 %29
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 %32
  store ptr %33, ptr %8, align 8, !tbaa !9
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = xor i32 %35, -1
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %41

38:                                               ; preds = %24
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  %40 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %40, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %187

41:                                               ; preds = %24
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [101 x i32], ptr @arr, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %53, label %47

47:                                               ; preds = %41
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  %50 = call noundef i32 @_Z3soliii(i32 noundef %49, i32 noundef 0, i32 noundef 0)
  %51 = add nsw i32 1, %50
  %52 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %51, ptr %52, align 4, !tbaa !5
  br label %184

53:                                               ; preds = %41
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [101 x i32], ptr @arr, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %81

59:                                               ; preds = %53
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %74, label %62

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  %65 = call noundef i32 @_Z3soliii(i32 noundef %64, i32 noundef 0, i32 noundef 1)
  store i32 %65, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = call noundef i32 @_Z3soliii(i32 noundef %67, i32 noundef 0, i32 noundef %68)
  %70 = add nsw i32 1, %69
  store i32 %70, ptr %11, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %72, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %80

74:                                               ; preds = %59
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  %77 = call noundef i32 @_Z3soliii(i32 noundef %76, i32 noundef 0, i32 noundef 0)
  %78 = add nsw i32 1, %77
  %79 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %78, ptr %79, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %74, %62
  br label %183

81:                                               ; preds = %53
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [101 x i32], ptr @arr, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = icmp eq i32 %85, 2
  br i1 %86, label %87, label %109

87:                                               ; preds = %81
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %102, label %90

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  %93 = call noundef i32 @_Z3soliii(i32 noundef %92, i32 noundef 1, i32 noundef 0)
  store i32 %93, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = call noundef i32 @_Z3soliii(i32 noundef %95, i32 noundef %96, i32 noundef 0)
  %98 = add nsw i32 1, %97
  store i32 %98, ptr %13, align 4, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %100, ptr %101, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %108

102:                                              ; preds = %87
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  %105 = call noundef i32 @_Z3soliii(i32 noundef %104, i32 noundef 0, i32 noundef 0)
  %106 = add nsw i32 1, %105
  %107 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %106, ptr %107, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %102, %90
  br label %182

109:                                              ; preds = %81
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [101 x i32], ptr @arr, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = icmp eq i32 %113, 3
  br i1 %114, label %115, label %181

115:                                              ; preds = %109
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %127

118:                                              ; preds = %115
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %127

121:                                              ; preds = %118
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  %124 = call noundef i32 @_Z3soliii(i32 noundef %123, i32 noundef 0, i32 noundef 0)
  %125 = add nsw i32 1, %124
  %126 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %125, ptr %126, align 4, !tbaa !5
  br label %180

127:                                              ; preds = %118, %115
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %141

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  %133 = call noundef i32 @_Z3soliii(i32 noundef %132, i32 noundef 0, i32 noundef 1)
  store i32 %133, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %134 = load i32, ptr %5, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  %136 = call noundef i32 @_Z3soliii(i32 noundef %135, i32 noundef 0, i32 noundef 0)
  %137 = add nsw i32 1, %136
  store i32 %137, ptr %15, align 4, !tbaa !5
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %139, ptr %140, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %179

141:                                              ; preds = %127
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %155

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = call noundef i32 @_Z3soliii(i32 noundef %146, i32 noundef 1, i32 noundef 0)
  store i32 %147, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  %150 = call noundef i32 @_Z3soliii(i32 noundef %149, i32 noundef 0, i32 noundef 0)
  %151 = add nsw i32 1, %150
  store i32 %151, ptr %17, align 4, !tbaa !5
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %153, ptr %154, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %178

155:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #4
  %156 = load i32, ptr %5, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  %158 = call noundef i32 @_Z3soliii(i32 noundef %157, i32 noundef 0, i32 noundef 1)
  store i32 %158, ptr %19, align 4, !tbaa !5
  %159 = getelementptr inbounds i32, ptr %19, i64 1
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  %162 = call noundef i32 @_Z3soliii(i32 noundef %161, i32 noundef 1, i32 noundef 0)
  store i32 %162, ptr %159, align 4, !tbaa !5
  %163 = getelementptr inbounds i32, ptr %19, i64 2
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  %166 = load i32, ptr %6, align 4, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = call noundef i32 @_Z3soliii(i32 noundef %165, i32 noundef %166, i32 noundef %167)
  %169 = add nsw i32 1, %168
  store i32 %169, ptr %163, align 4, !tbaa !5
  %170 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 0
  store ptr %19, ptr %170, align 8, !tbaa !11
  %171 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 1
  store i64 3, ptr %171, align 8, !tbaa !14
  %172 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  %174 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %175 = load i64, ptr %174, align 8
  %176 = call noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr %173, i64 %175)
  %177 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %176, ptr %177, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #4
  br label %178

178:                                              ; preds = %155, %144
  br label %179

179:                                              ; preds = %178, %130
  br label %180

180:                                              ; preds = %179, %121
  br label %181

181:                                              ; preds = %180, %109
  br label %182

182:                                              ; preds = %181, %108
  br label %183

183:                                              ; preds = %182, %80
  br label %184

184:                                              ; preds = %183, %47
  %185 = load ptr, ptr %8, align 8, !tbaa !9
  %186 = load i32, ptr %185, align 4, !tbaa !5
  store i32 %186, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %187

187:                                              ; preds = %184, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %188

188:                                              ; preds = %187, %23
  %189 = load i32, ptr %4, align 4
  ret i32 %189
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr, i64) #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt16initializer_listIiE", !10, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}


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

@n = external dso_local local_unnamed_addr global i32, align 4
@arr = external dso_local local_unnamed_addr global [101 x i32], align 16
@dp = external dso_local local_unnamed_addr global [101 x [2 x [2 x i32]]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3soliii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %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 i32, align 4
  %12 = alloca [3 x i32], align 4
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = icmp eq i32 %13, %0
  br i1 %14, label %common.ret, label %15

15:                                               ; preds = %3
  %16 = sext i32 %0 to i64
  %17 = sext i32 %1 to i64
  %18 = sext i32 %2 to i64
  %19 = getelementptr inbounds [101 x [2 x [2 x i32]]], ptr @dp, i64 0, i64 %16, i64 %17, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %.not = icmp eq i32 %20, -1
  br i1 %.not, label %21, label %common.ret

21:                                               ; preds = %15
  %22 = getelementptr inbounds [101 x i32], ptr @arr, i64 0, i64 %16
  %23 = load i32, ptr %22, align 4, !tbaa !5
  switch i32 %23, label %common.ret [
    i32 0, label %24
    i32 1, label %28
    i32 2, label %40
    i32 3, label %52
  ]

common.ret:                                       ; preds = %3, %15, %21, %75, %69, %60, %55, %48, %41, %36, %29, %24
  %common.ret.op = phi i32 [ %27, %24 ], [ %35, %29 ], [ %39, %36 ], [ %47, %41 ], [ %51, %48 ], [ %58, %55 ], [ %66, %60 ], [ %74, %69 ], [ %82, %75 ], [ 0, %3 ], [ %20, %15 ], [ -1, %21 ]
  ret i32 %common.ret.op

24:                                               ; preds = %21
  %25 = add nsw i32 %0, 1
  %26 = tail call noundef i32 @_Z3soliii(i32 noundef %25, i32 noundef 0, i32 noundef 0)
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %19, align 4, !tbaa !5
  br label %common.ret

28:                                               ; preds = %21
  %.not54 = icmp eq i32 %2, 0
  br i1 %.not54, label %29, label %36

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %30 = add nsw i32 %0, 1
  %31 = tail call noundef i32 @_Z3soliii(i32 noundef %30, i32 noundef 0, i32 noundef 1)
  store i32 %31, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %32 = tail call noundef i32 @_Z3soliii(i32 noundef %30, i32 noundef 0, i32 noundef 0)
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %5, align 4, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %35 = load i32, ptr %34, align 4, !tbaa !5
  store i32 %35, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %common.ret

36:                                               ; preds = %28
  %37 = add nsw i32 %0, 1
  %38 = tail call noundef i32 @_Z3soliii(i32 noundef %37, i32 noundef 0, i32 noundef 0)
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %19, align 4, !tbaa !5
  br label %common.ret

40:                                               ; preds = %21
  %.not53 = icmp eq i32 %1, 0
  br i1 %.not53, label %41, label %48

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %42 = add nsw i32 %0, 1
  %43 = tail call noundef i32 @_Z3soliii(i32 noundef %42, i32 noundef 1, i32 noundef 0)
  store i32 %43, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %44 = tail call noundef i32 @_Z3soliii(i32 noundef %42, i32 noundef 0, i32 noundef 0)
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %47 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %47, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %common.ret

48:                                               ; preds = %40
  %49 = add nsw i32 %0, 1
  %50 = tail call noundef i32 @_Z3soliii(i32 noundef %49, i32 noundef 0, i32 noundef 0)
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %19, align 4, !tbaa !5
  br label %common.ret

52:                                               ; preds = %21
  %53 = icmp ne i32 %1, 0
  %54 = icmp ne i32 %2, 0
  %or.cond = and i1 %53, %54
  br i1 %or.cond, label %55, label %59

55:                                               ; preds = %52
  %56 = add nsw i32 %0, 1
  %57 = tail call noundef i32 @_Z3soliii(i32 noundef %56, i32 noundef 0, i32 noundef 0)
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %19, align 4, !tbaa !5
  br label %common.ret

59:                                               ; preds = %52
  br i1 %53, label %60, label %67

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %61 = add nsw i32 %0, 1
  %62 = tail call noundef i32 @_Z3soliii(i32 noundef %61, i32 noundef 0, i32 noundef 1)
  store i32 %62, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %63 = tail call noundef i32 @_Z3soliii(i32 noundef %61, i32 noundef 0, i32 noundef 0)
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %9, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %common.ret

67:                                               ; preds = %59
  %68 = add nsw i32 %0, 1
  br i1 %54, label %69, label %75

69:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  %70 = tail call noundef i32 @_Z3soliii(i32 noundef %68, i32 noundef 1, i32 noundef 0)
  store i32 %70, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %71 = tail call noundef i32 @_Z3soliii(i32 noundef %68, i32 noundef 0, i32 noundef 0)
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %11, align 4, !tbaa !5
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %74 = load i32, ptr %73, align 4, !tbaa !5
  store i32 %74, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %common.ret

75:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #4
  %76 = tail call noundef i32 @_Z3soliii(i32 noundef %68, i32 noundef 0, i32 noundef 1)
  store i32 %76, ptr %12, align 4, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %12, i64 4
  %78 = tail call noundef i32 @_Z3soliii(i32 noundef %68, i32 noundef 1, i32 noundef 0)
  store i32 %78, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %12, i64 8
  %80 = tail call noundef i32 @_Z3soliii(i32 noundef %68, i32 noundef 0, i32 noundef 0)
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %79, align 4, !tbaa !5
  %82 = call noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr nonnull %12, i64 3)
  store i32 %82, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #4
  br label %common.ret
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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