; LLVM IR from lolosssss/leetcode :: c (40_combination_sum_ii)

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

@__const.main.c1 = external hidden unnamed_addr constant [4 x i32], align 16
@__const.main.c2 = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.c3 = external hidden unnamed_addr constant [7 x i32], align 16
@__const.main.c4 = external hidden unnamed_addr constant [8 x i32], align 16
@__const.main.c5 = external hidden unnamed_addr constant [50 x i32], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 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 ptr @combinationSum2(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca [4 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca [2 x i32], align 4
  %5 = alloca i32, align 4
  %6 = alloca [7 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca [8 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca [50 x i32], align 16
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.c1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 7, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.main.c2, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.c3, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 27, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.c4, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 32, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 200, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.c5, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 28, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  %31 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = call ptr @combinationSum2(ptr noundef %31, i32 noundef 4, i32 noundef %32, ptr noundef %13, ptr noundef %14)
  store ptr %33, ptr %12, align 8, !tbaa !9
  %34 = load i32, ptr %14, align 4, !tbaa !5
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %34)
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %68, %0
  %38 = load i32, ptr %15, align 4, !tbaa !5
  %39 = load i32, ptr %14, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %71

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %63, %42
  %44 = load i32, ptr %17, align 4, !tbaa !5
  %45 = load ptr, ptr %13, align 8, !tbaa !9
  %46 = load i32, ptr %15, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %45, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = icmp slt i32 %44, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %43
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %66

52:                                               ; preds = %43
  %53 = load ptr, ptr %12, align 8, !tbaa !9
  %54 = load i32, ptr %15, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = load i32, ptr %17, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %61)
  br label %63

63:                                               ; preds = %52
  %64 = load i32, ptr %17, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %17, align 4, !tbaa !5
  br label %43, !llvm.loop !11

66:                                               ; preds = %51
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %68

68:                                               ; preds = %66
  %69 = load i32, ptr %15, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %15, align 4, !tbaa !5
  br label %37, !llvm.loop !13

71:                                               ; preds = %41
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %83, %71
  %74 = load i32, ptr %18, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 128
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %86

77:                                               ; preds = %73
  %78 = load ptr, ptr %12, align 8, !tbaa !9
  %79 = load i32, ptr %18, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  call void @free(ptr noundef %82) #5
  br label %83

83:                                               ; preds = %77
  %84 = load i32, ptr %18, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %18, align 4, !tbaa !5
  br label %73, !llvm.loop !14

86:                                               ; preds = %76
  %87 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %87) #5
  %88 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %88) #5
  %89 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = call ptr @combinationSum2(ptr noundef %89, i32 noundef 2, i32 noundef %90, ptr noundef %13, ptr noundef %14)
  store ptr %91, ptr %12, align 8, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %92)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %126, %86
  %96 = load i32, ptr %19, align 4, !tbaa !5
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %129

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %121, %100
  %102 = load i32, ptr %20, align 4, !tbaa !5
  %103 = load ptr, ptr %13, align 8, !tbaa !9
  %104 = load i32, ptr %19, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %103, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = icmp slt i32 %102, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %101
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %124

110:                                              ; preds = %101
  %111 = load ptr, ptr %12, align 8, !tbaa !9
  %112 = load i32, ptr %19, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %111, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = load i32, ptr %20, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %115, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %119)
  br label %121

121:                                              ; preds = %110
  %122 = load i32, ptr %20, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %20, align 4, !tbaa !5
  br label %101, !llvm.loop !15

124:                                              ; preds = %109
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %126

126:                                              ; preds = %124
  %127 = load i32, ptr %19, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %19, align 4, !tbaa !5
  br label %95, !llvm.loop !16

129:                                              ; preds = %99
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %141, %129
  %132 = load i32, ptr %21, align 4, !tbaa !5
  %133 = icmp slt i32 %132, 128
  br i1 %133, label %135, label %134

134:                                              ; preds = %131
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %144

135:                                              ; preds = %131
  %136 = load ptr, ptr %12, align 8, !tbaa !9
  %137 = load i32, ptr %21, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  call void @free(ptr noundef %140) #5
  br label %141

141:                                              ; preds = %135
  %142 = load i32, ptr %21, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %21, align 4, !tbaa !5
  br label %131, !llvm.loop !17

144:                                              ; preds = %134
  %145 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %145) #5
  %146 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %146) #5
  %147 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 0
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = call ptr @combinationSum2(ptr noundef %147, i32 noundef 7, i32 noundef %148, ptr noundef %13, ptr noundef %14)
  store ptr %149, ptr %12, align 8, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %150)
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %153

153:                                              ; preds = %184, %144
  %154 = load i32, ptr %22, align 4, !tbaa !5
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %187

158:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %179, %158
  %160 = load i32, ptr %23, align 4, !tbaa !5
  %161 = load ptr, ptr %13, align 8, !tbaa !9
  %162 = load i32, ptr %22, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %161, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = icmp slt i32 %160, %165
  br i1 %166, label %168, label %167

167:                                              ; preds = %159
  store i32 23, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %182

168:                                              ; preds = %159
  %169 = load ptr, ptr %12, align 8, !tbaa !9
  %170 = load i32, ptr %22, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds ptr, ptr %169, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %173, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %177)
  br label %179

179:                                              ; preds = %168
  %180 = load i32, ptr %23, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %23, align 4, !tbaa !5
  br label %159, !llvm.loop !18

182:                                              ; preds = %167
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %184

184:                                              ; preds = %182
  %185 = load i32, ptr %22, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %22, align 4, !tbaa !5
  br label %153, !llvm.loop !19

187:                                              ; preds = %157
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %199, %187
  %190 = load i32, ptr %24, align 4, !tbaa !5
  %191 = icmp slt i32 %190, 128
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %202

193:                                              ; preds = %189
  %194 = load ptr, ptr %12, align 8, !tbaa !9
  %195 = load i32, ptr %24, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %194, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  call void @free(ptr noundef %198) #5
  br label %199

199:                                              ; preds = %193
  %200 = load i32, ptr %24, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %24, align 4, !tbaa !5
  br label %189, !llvm.loop !20

202:                                              ; preds = %192
  %203 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %203) #5
  %204 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %204) #5
  %205 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 0
  %206 = load i32, ptr %9, align 4, !tbaa !5
  %207 = call ptr @combinationSum2(ptr noundef %205, i32 noundef 8, i32 noundef %206, ptr noundef %13, ptr noundef %14)
  store ptr %207, ptr %12, align 8, !tbaa !9
  %208 = load i32, ptr %14, align 4, !tbaa !5
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %208)
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %242, %202
  %212 = load i32, ptr %25, align 4, !tbaa !5
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = icmp slt i32 %212, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %211
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %245

216:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %237, %216
  %218 = load i32, ptr %26, align 4, !tbaa !5
  %219 = load ptr, ptr %13, align 8, !tbaa !9
  %220 = load i32, ptr %25, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %219, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = icmp slt i32 %218, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %217
  store i32 32, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %240

226:                                              ; preds = %217
  %227 = load ptr, ptr %12, align 8, !tbaa !9
  %228 = load i32, ptr %25, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds ptr, ptr %227, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !9
  %232 = load i32, ptr %26, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i32, ptr %231, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %235)
  br label %237

237:                                              ; preds = %226
  %238 = load i32, ptr %26, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %26, align 4, !tbaa !5
  br label %217, !llvm.loop !21

240:                                              ; preds = %225
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %242

242:                                              ; preds = %240
  %243 = load i32, ptr %25, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %25, align 4, !tbaa !5
  br label %211, !llvm.loop !22

245:                                              ; preds = %215
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %247

247:                                              ; preds = %257, %245
  %248 = load i32, ptr %27, align 4, !tbaa !5
  %249 = icmp slt i32 %248, 128
  br i1 %249, label %251, label %250

250:                                              ; preds = %247
  store i32 35, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %260

251:                                              ; preds = %247
  %252 = load ptr, ptr %12, align 8, !tbaa !9
  %253 = load i32, ptr %27, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds ptr, ptr %252, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !9
  call void @free(ptr noundef %256) #5
  br label %257

257:                                              ; preds = %251
  %258 = load i32, ptr %27, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %27, align 4, !tbaa !5
  br label %247, !llvm.loop !23

260:                                              ; preds = %250
  %261 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %261) #5
  %262 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %262) #5
  %263 = getelementptr inbounds [50 x i32], ptr %10, i64 0, i64 0
  %264 = load i32, ptr %11, align 4, !tbaa !5
  %265 = call ptr @combinationSum2(ptr noundef %263, i32 noundef 50, i32 noundef %264, ptr noundef %13, ptr noundef %14)
  store ptr %265, ptr %12, align 8, !tbaa !9
  %266 = load i32, ptr %14, align 4, !tbaa !5
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %266)
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %300, %260
  %270 = load i32, ptr %28, align 4, !tbaa !5
  %271 = load i32, ptr %14, align 4, !tbaa !5
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %274, label %273

273:                                              ; preds = %269
  store i32 38, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %303

274:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %295, %274
  %276 = load i32, ptr %29, align 4, !tbaa !5
  %277 = load ptr, ptr %13, align 8, !tbaa !9
  %278 = load i32, ptr %28, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds i32, ptr %277, i64 %279
  %281 = load i32, ptr %280, align 4, !tbaa !5
  %282 = icmp slt i32 %276, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %275
  store i32 41, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %298

284:                                              ; preds = %275
  %285 = load ptr, ptr %12, align 8, !tbaa !9
  %286 = load i32, ptr %28, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds ptr, ptr %285, i64 %287
  %289 = load ptr, ptr %288, align 8, !tbaa !9
  %290 = load i32, ptr %29, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds i32, ptr %289, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %293)
  br label %295

295:                                              ; preds = %284
  %296 = load i32, ptr %29, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %29, align 4, !tbaa !5
  br label %275, !llvm.loop !24

298:                                              ; preds = %283
  %299 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %300

300:                                              ; preds = %298
  %301 = load i32, ptr %28, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %28, align 4, !tbaa !5
  br label %269, !llvm.loop !25

303:                                              ; preds = %273
  %304 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %305

305:                                              ; preds = %315, %303
  %306 = load i32, ptr %30, align 4, !tbaa !5
  %307 = icmp slt i32 %306, 128
  br i1 %307, label %309, label %308

308:                                              ; preds = %305
  store i32 44, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %318

309:                                              ; preds = %305
  %310 = load ptr, ptr %12, align 8, !tbaa !9
  %311 = load i32, ptr %30, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds ptr, ptr %310, i64 %312
  %314 = load ptr, ptr %313, align 8, !tbaa !9
  call void @free(ptr noundef %314) #5
  br label %315

315:                                              ; preds = %309
  %316 = load i32, ptr %30, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %30, align 4, !tbaa !5
  br label %305, !llvm.loop !26

318:                                              ; preds = %308
  %319 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %319) #5
  %320 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %320) #5
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #5
  %321 = load i32, ptr %1, align 4
  ret i32 %321
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @free(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 "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 }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


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

@__const.main.c1 = external hidden unnamed_addr constant [4 x i32], align 16
@__const.main.c2 = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.c3 = external hidden unnamed_addr constant [7 x i32], align 16
@__const.main.c4 = external hidden unnamed_addr constant [8 x i32], align 16
@__const.main.c5 = external hidden unnamed_addr constant [50 x i32], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 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 ptr @combinationSum2(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca [4 x i32], align 16
  %2 = alloca [2 x i32], align 8
  %3 = alloca [7 x i32], align 16
  %4 = alloca [8 x i32], align 16
  %5 = alloca [50 x i32], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.c1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %8 = load i64, ptr @__const.main.c2, align 4
  store i64 %8, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(28) %3, ptr noundef nonnull align 16 dereferenceable(28) @__const.main.c3, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.c4, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) %5, ptr noundef nonnull align 16 dereferenceable(200) @__const.main.c5, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  %9 = call ptr @combinationSum2(ptr noundef nonnull %1, i32 noundef 4, i32 noundef 7, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %10 = load i32, ptr %7, align 4, !tbaa !9
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %10)
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %13 = load i32, ptr %7, align 4, !tbaa !9
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.preheader87, label %._crit_edge90

.preheader87:                                     ; preds = %0, %._crit_edge
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %._crit_edge ], [ 0, %0 ]
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv117
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader87
  %19 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv117
  br label %25

._crit_edge90:                                    ; preds = %._crit_edge, %0
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %43

._crit_edge:                                      ; preds = %25, %.preheader87
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = icmp slt i64 %indvars.iv.next118, %23
  br i1 %24, label %.preheader87, label %._crit_edge90, !llvm.loop !11

25:                                               ; preds = %.lr.ph, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %25 ]
  %26 = load ptr, ptr %19, align 8, !tbaa !5
  %27 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %28)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds i32, ptr %30, i64 %indvars.iv117
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next, %33
  br i1 %34, label %25, label %._crit_edge, !llvm.loop !13

35:                                               ; preds = %43
  call void @free(ptr noundef nonnull %9) #5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %36) #5
  %37 = call ptr @combinationSum2(ptr noundef nonnull %2, i32 noundef 2, i32 noundef 1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %38)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.preheader86, label %._crit_edge96

43:                                               ; preds = %._crit_edge90, %43
  %indvars.iv120 = phi i64 [ 0, %._crit_edge90 ], [ %indvars.iv.next121, %43 ]
  %44 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv120
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  call void @free(ptr noundef %45) #5
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next121, 128
  br i1 %exitcond.not, label %35, label %43, !llvm.loop !14

.preheader86:                                     ; preds = %35, %._crit_edge94
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %._crit_edge94 ], [ 0, %35 ]
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv126
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph93, label %._crit_edge94

.lr.ph93:                                         ; preds = %.preheader86
  %50 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv126
  br label %56

._crit_edge96:                                    ; preds = %._crit_edge94, %35
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %74

._crit_edge94:                                    ; preds = %56, %.preheader86
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = icmp slt i64 %indvars.iv.next127, %54
  br i1 %55, label %.preheader86, label %._crit_edge96, !llvm.loop !15

56:                                               ; preds = %.lr.ph93, %56
  %indvars.iv123 = phi i64 [ 0, %.lr.ph93 ], [ %indvars.iv.next124, %56 ]
  %57 = load ptr, ptr %50, align 8, !tbaa !5
  %58 = getelementptr inbounds i32, ptr %57, i64 %indvars.iv123
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %59)
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds i32, ptr %61, i64 %indvars.iv126
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next124, %64
  br i1 %65, label %56, label %._crit_edge94, !llvm.loop !16

66:                                               ; preds = %74
  call void @free(ptr noundef nonnull %37) #5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %67) #5
  %68 = call ptr @combinationSum2(ptr noundef nonnull %3, i32 noundef 7, i32 noundef 27, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %69)
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %.preheader85, label %._crit_edge102

74:                                               ; preds = %._crit_edge96, %74
  %indvars.iv129 = phi i64 [ 0, %._crit_edge96 ], [ %indvars.iv.next130, %74 ]
  %75 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv129
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  call void @free(ptr noundef %76) #5
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next130, 128
  br i1 %exitcond132.not, label %66, label %74, !llvm.loop !17

.preheader85:                                     ; preds = %66, %._crit_edge100
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %._crit_edge100 ], [ 0, %66 ]
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds i32, ptr %77, i64 %indvars.iv136
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph99, label %._crit_edge100

.lr.ph99:                                         ; preds = %.preheader85
  %81 = getelementptr inbounds ptr, ptr %68, i64 %indvars.iv136
  br label %87

._crit_edge102:                                   ; preds = %._crit_edge100, %66
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %105

._crit_edge100:                                   ; preds = %87, %.preheader85
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next137, %85
  br i1 %86, label %.preheader85, label %._crit_edge102, !llvm.loop !18

87:                                               ; preds = %.lr.ph99, %87
  %indvars.iv133 = phi i64 [ 0, %.lr.ph99 ], [ %indvars.iv.next134, %87 ]
  %88 = load ptr, ptr %81, align 8, !tbaa !5
  %89 = getelementptr inbounds i32, ptr %88, i64 %indvars.iv133
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %90)
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds i32, ptr %92, i64 %indvars.iv136
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next134, %95
  br i1 %96, label %87, label %._crit_edge100, !llvm.loop !19

97:                                               ; preds = %105
  call void @free(ptr noundef nonnull %68) #5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %98) #5
  %99 = call ptr @combinationSum2(ptr noundef nonnull %4, i32 noundef 8, i32 noundef 32, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %100)
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.preheader84, label %._crit_edge108

105:                                              ; preds = %._crit_edge102, %105
  %indvars.iv139 = phi i64 [ 0, %._crit_edge102 ], [ %indvars.iv.next140, %105 ]
  %106 = getelementptr inbounds ptr, ptr %68, i64 %indvars.iv139
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  call void @free(ptr noundef %107) #5
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next140, 128
  br i1 %exitcond142.not, label %97, label %105, !llvm.loop !20

.preheader84:                                     ; preds = %97, %._crit_edge106
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %._crit_edge106 ], [ 0, %97 ]
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds i32, ptr %108, i64 %indvars.iv146
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %.lr.ph105, label %._crit_edge106

.lr.ph105:                                        ; preds = %.preheader84
  %112 = getelementptr inbounds ptr, ptr %99, i64 %indvars.iv146
  br label %118

._crit_edge108:                                   ; preds = %._crit_edge106, %97
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %136

._crit_edge106:                                   ; preds = %118, %.preheader84
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %115 = load i32, ptr %7, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next147, %116
  br i1 %117, label %.preheader84, label %._crit_edge108, !llvm.loop !21

118:                                              ; preds = %.lr.ph105, %118
  %indvars.iv143 = phi i64 [ 0, %.lr.ph105 ], [ %indvars.iv.next144, %118 ]
  %119 = load ptr, ptr %112, align 8, !tbaa !5
  %120 = getelementptr inbounds i32, ptr %119, i64 %indvars.iv143
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %121)
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds i32, ptr %123, i64 %indvars.iv146
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next144, %126
  br i1 %127, label %118, label %._crit_edge106, !llvm.loop !22

128:                                              ; preds = %136
  call void @free(ptr noundef nonnull %99) #5
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %129) #5
  %130 = call ptr @combinationSum2(ptr noundef nonnull %5, i32 noundef 50, i32 noundef 28, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %131 = load i32, ptr %7, align 4, !tbaa !9
  %132 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %131)
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %.preheader, label %._crit_edge114

136:                                              ; preds = %._crit_edge108, %136
  %indvars.iv149 = phi i64 [ 0, %._crit_edge108 ], [ %indvars.iv.next150, %136 ]
  %137 = getelementptr inbounds ptr, ptr %99, i64 %indvars.iv149
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  call void @free(ptr noundef %138) #5
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %exitcond152.not = icmp eq i64 %indvars.iv.next150, 128
  br i1 %exitcond152.not, label %128, label %136, !llvm.loop !23

.preheader:                                       ; preds = %128, %._crit_edge112
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %._crit_edge112 ], [ 0, %128 ]
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds i32, ptr %139, i64 %indvars.iv156
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph111, label %._crit_edge112

.lr.ph111:                                        ; preds = %.preheader
  %143 = getelementptr inbounds ptr, ptr %130, i64 %indvars.iv156
  br label %149

._crit_edge114:                                   ; preds = %._crit_edge112, %128
  %144 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %161

._crit_edge112:                                   ; preds = %149, %.preheader
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv.next157, %147
  br i1 %148, label %.preheader, label %._crit_edge114, !llvm.loop !24

149:                                              ; preds = %.lr.ph111, %149
  %indvars.iv153 = phi i64 [ 0, %.lr.ph111 ], [ %indvars.iv.next154, %149 ]
  %150 = load ptr, ptr %143, align 8, !tbaa !5
  %151 = getelementptr inbounds i32, ptr %150, i64 %indvars.iv153
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %152)
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds i32, ptr %154, i64 %indvars.iv156
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next154, %157
  br i1 %158, label %149, label %._crit_edge112, !llvm.loop !25

159:                                              ; preds = %161
  call void @free(ptr noundef nonnull %130) #5
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %160) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret i32 0

161:                                              ; preds = %._crit_edge114, %161
  %indvars.iv159 = phi i64 [ 0, %._crit_edge114 ], [ %indvars.iv.next160, %161 ]
  %162 = getelementptr inbounds ptr, ptr %130, i64 %indvars.iv159
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  call void @free(ptr noundef %163) #5
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond162.not = icmp eq i64 %indvars.iv.next160, 128
  br i1 %exitcond162.not, label %159, label %161, !llvm.loop !26
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass