; LLVM IR from shellphish/how2heap :: glibc_2.27 (house_of_lore)

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

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [167 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [225 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @jackpot() #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [4 x ptr], align 16
  %7 = alloca [4 x ptr], align 16
  %8 = alloca [7 x [4 x ptr]], align 16
  %9 = alloca ptr, align 8
  %10 = alloca [7 x ptr], align 16
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 224, ptr %8) #8
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.1) #8
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.2) #8
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.3) #8
  %28 = load ptr, ptr @stderr, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %30 = call noalias ptr @malloc(i64 noundef 256) #9
  store ptr %30, ptr %9, align 8, !tbaa !9
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = load ptr, ptr %9, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.5, ptr noundef %32) #8
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.6) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %45, %2
  %37 = load i32, ptr %11, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 7
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %48

40:                                               ; preds = %36
  %41 = call noalias ptr @malloc(i64 noundef 256) #9
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [7 x ptr], ptr %10, i64 0, i64 %43
  store ptr %41, ptr %44, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %40
  %46 = load i32, ptr %11, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %11, align 4, !tbaa !5
  br label %36, !llvm.loop !11

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %49 = load ptr, ptr %9, align 8, !tbaa !9
  %50 = getelementptr inbounds i64, ptr %49, i64 -2
  store ptr %50, ptr %12, align 8, !tbaa !9
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 0
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.7, ptr noundef %52) #8
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = getelementptr inbounds [4 x ptr], ptr %7, i64 0, i64 0
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.8, ptr noundef %55) #8
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %73, %48
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = icmp slt i32 %60, 6
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %76

63:                                               ; preds = %59
  %64 = load i32, ptr %13, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [7 x [4 x ptr]], ptr %8, i64 0, i64 %66
  %68 = getelementptr inbounds [4 x ptr], ptr %67, i64 0, i64 0
  %69 = load i32, ptr %13, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [7 x [4 x ptr]], ptr %8, i64 0, i64 %70
  %72 = getelementptr inbounds [4 x ptr], ptr %71, i64 0, i64 3
  store ptr %68, ptr %72, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %63
  %74 = load i32, ptr %13, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %13, align 4, !tbaa !5
  br label %59, !llvm.loop !13

76:                                               ; preds = %62
  %77 = getelementptr inbounds [7 x [4 x ptr]], ptr %8, i64 0, i64 6
  %78 = getelementptr inbounds [4 x ptr], ptr %77, i64 0, i64 3
  store ptr null, ptr %78, align 8, !tbaa !9
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = getelementptr inbounds [7 x [4 x ptr]], ptr %8, i64 0, i64 0
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.10, ptr noundef %80) #8
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.11) #8
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.12) #8
  %86 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 0
  store ptr null, ptr %86, align 16, !tbaa !9
  %87 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 1
  store ptr null, ptr %87, align 8, !tbaa !9
  %88 = load ptr, ptr %12, align 8, !tbaa !9
  %89 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 2
  store ptr %88, ptr %89, align 16, !tbaa !9
  %90 = load ptr, ptr @stderr, align 8, !tbaa !9
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.13) #8
  %92 = getelementptr inbounds [4 x ptr], ptr %7, i64 0, i64 0
  %93 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 3
  store ptr %92, ptr %93, align 8, !tbaa !9
  %94 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 0
  %95 = getelementptr inbounds [4 x ptr], ptr %7, i64 0, i64 2
  store ptr %94, ptr %95, align 16, !tbaa !9
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.14) #8
  %98 = getelementptr inbounds [7 x [4 x ptr]], ptr %8, i64 0, i64 0
  %99 = getelementptr inbounds [4 x ptr], ptr %98, i64 0, i64 0
  %100 = getelementptr inbounds [4 x ptr], ptr %7, i64 0, i64 3
  store ptr %99, ptr %100, align 8, !tbaa !9
  %101 = load ptr, ptr @stderr, align 8, !tbaa !9
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %103 = call noalias ptr @malloc(i64 noundef 1000) #9
  store ptr %103, ptr %14, align 8, !tbaa !9
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = load ptr, ptr %14, align 8, !tbaa !9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.16, ptr noundef %105) #8
  %107 = load ptr, ptr @stderr, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %118, %76
  %110 = load i32, ptr %15, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 7
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %121

113:                                              ; preds = %109
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [7 x ptr], ptr %10, i64 0, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  call void @free(ptr noundef %117) #8
  br label %118

118:                                              ; preds = %113
  %119 = load i32, ptr %15, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %15, align 4, !tbaa !5
  br label %109, !llvm.loop !14

121:                                              ; preds = %112
  %122 = load ptr, ptr @stderr, align 8, !tbaa !9
  %123 = load ptr, ptr %9, align 8, !tbaa !9
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.18, ptr noundef %123) #8
  %125 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %125) #8
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.19) #8
  %128 = load ptr, ptr @stderr, align 8, !tbaa !9
  %129 = load ptr, ptr %9, align 8, !tbaa !9
  %130 = getelementptr inbounds i64, ptr %129, i64 0
  %131 = load i64, ptr %130, align 8, !tbaa !15
  %132 = inttoptr i64 %131 to ptr
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.20, ptr noundef %132) #8
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = load ptr, ptr %9, align 8, !tbaa !9
  %136 = getelementptr inbounds i64, ptr %135, i64 1
  %137 = load i64, ptr %136, align 8, !tbaa !15
  %138 = inttoptr i64 %137 to ptr
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.21, ptr noundef %138) #8
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.22) #8
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = load ptr, ptr %9, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.23, ptr noundef %143) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %145 = call noalias ptr @malloc(i64 noundef 1200) #9
  store ptr %145, ptr %16, align 8, !tbaa !9
  %146 = load ptr, ptr @stderr, align 8, !tbaa !9
  %147 = load ptr, ptr %16, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.24, ptr noundef %147) #8
  %149 = load ptr, ptr @stderr, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.25) #8
  %151 = load ptr, ptr @stderr, align 8, !tbaa !9
  %152 = load ptr, ptr %9, align 8, !tbaa !9
  %153 = getelementptr inbounds i64, ptr %152, i64 0
  %154 = load i64, ptr %153, align 8, !tbaa !15
  %155 = inttoptr i64 %154 to ptr
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.20, ptr noundef %155) #8
  %157 = load ptr, ptr @stderr, align 8, !tbaa !9
  %158 = load ptr, ptr %9, align 8, !tbaa !9
  %159 = getelementptr inbounds i64, ptr %158, i64 1
  %160 = load i64, ptr %159, align 8, !tbaa !15
  %161 = inttoptr i64 %160 to ptr
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.21, ptr noundef %161) #8
  %163 = load ptr, ptr @stderr, align 8, !tbaa !9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.26) #8
  %165 = getelementptr inbounds [4 x ptr], ptr %6, i64 0, i64 0
  %166 = ptrtoint ptr %165 to i64
  %167 = load ptr, ptr %9, align 8, !tbaa !9
  %168 = getelementptr inbounds i64, ptr %167, i64 1
  store i64 %166, ptr %168, align 8, !tbaa !15
  %169 = load ptr, ptr @stderr, align 8, !tbaa !9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %177, %121
  %172 = load i32, ptr %17, align 4, !tbaa !5
  %173 = icmp slt i32 %172, 7
  br i1 %173, label %175, label %174

174:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %180

175:                                              ; preds = %171
  %176 = call noalias ptr @malloc(i64 noundef 256) #9
  br label %177

177:                                              ; preds = %175
  %178 = load i32, ptr %17, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %17, align 4, !tbaa !5
  br label %171, !llvm.loop !17

180:                                              ; preds = %174
  %181 = load ptr, ptr @stderr, align 8, !tbaa !9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.28) #8
  %183 = load ptr, ptr @stderr, align 8, !tbaa !9
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %185 = call noalias ptr @malloc(i64 noundef 256) #9
  store ptr %185, ptr %18, align 8, !tbaa !9
  %186 = load ptr, ptr @stderr, align 8, !tbaa !9
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %188 = call noalias ptr @malloc(i64 noundef 256) #9
  store ptr %188, ptr %19, align 8, !tbaa !9
  %189 = load ptr, ptr @stderr, align 8, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.31) #8
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = getelementptr inbounds [4 x ptr], ptr %7, i64 0, i64 2
  %193 = load ptr, ptr %192, align 16, !tbaa !9
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.32, ptr noundef %193) #8
  %195 = load ptr, ptr @stderr, align 8, !tbaa !9
  %196 = load ptr, ptr %19, align 8, !tbaa !9
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef @.str.33, ptr noundef %196) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store i64 ptrtoint (ptr @jackpot to i64), ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %198 = call ptr @llvm.frameaddress.p0(i32 0)
  %199 = ptrtoint ptr %198 to i64
  %200 = load ptr, ptr %19, align 8, !tbaa !9
  %201 = ptrtoint ptr %200 to i64
  %202 = sub nsw i64 %199, %201
  store i64 %202, ptr %21, align 8, !tbaa !15
  %203 = load ptr, ptr %19, align 8, !tbaa !9
  %204 = load i64, ptr %21, align 8, !tbaa !15
  %205 = getelementptr inbounds i8, ptr %203, i64 %204
  %206 = getelementptr inbounds i8, ptr %205, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %206, ptr align 8 %20, i64 8, i1 false)
  %207 = call ptr @llvm.returnaddress(i32 0)
  %208 = ptrtoint ptr %207 to i64
  %209 = icmp eq i64 %208, ptrtoint (ptr @jackpot to i64)
  br i1 %209, label %210, label %211

210:                                              ; preds = %180
  br label %212

211:                                              ; preds = %180
  call void @__assert_fail(ptr noundef @.str.34, ptr noundef @.str.35, i32 noundef 136, ptr noundef @__PRETTY_FUNCTION__.main) #10
  unreachable

212:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  %213 = load i32, ptr %3, align 4
  ret i32 %213
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare ptr @llvm.frameaddress.p0(i32 immarg) #5

; 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) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare ptr @llvm.returnaddress(i32 immarg) #5

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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 = !{!"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 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [167 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [225 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @jackpot() #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [4 x ptr], align 16
  %4 = alloca [4 x ptr], align 16
  %5 = alloca [7 x [4 x ptr]], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %3, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %4, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %5) #8
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.1) #9
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.2) #9
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.3) #9
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.4) #9
  %14 = tail call noalias dereferenceable_or_null(256) ptr @malloc(i64 noundef 256) #10
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.5, ptr noundef %14) #9
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.6) #9
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.7, ptr noundef nonnull %3) #9
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.8, ptr noundef nonnull %4) #9
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.9) #9
  %25 = getelementptr inbounds i8, ptr %5, i64 32
  %26 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %25, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %5, i64 64
  %28 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr %27, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %5, i64 96
  %30 = getelementptr inbounds i8, ptr %5, i64 88
  store ptr %29, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %5, i64 128
  %32 = getelementptr inbounds i8, ptr %5, i64 120
  store ptr %31, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %5, i64 160
  %34 = getelementptr inbounds i8, ptr %5, i64 152
  store ptr %33, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %5, i64 192
  %36 = getelementptr inbounds i8, ptr %5, i64 184
  store ptr %35, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %14, i64 -16
  %38 = getelementptr inbounds i8, ptr %5, i64 216
  store ptr null, ptr %38, align 8, !tbaa !5
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.10, ptr noundef nonnull %5) #9
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.11) #9
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.12) #9
  %45 = getelementptr inbounds i8, ptr %3, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store ptr %37, ptr %45, align 16, !tbaa !5
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.13) #9
  %48 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %4, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %3, ptr %49, align 16, !tbaa !5
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.14) #9
  %52 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %5, ptr %52, align 8, !tbaa !5
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.15) #9
  %55 = call noalias dereferenceable_or_null(1000) ptr @malloc(i64 noundef 1000) #10
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.16, ptr noundef %55) #9
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.17) #9
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.18, ptr noundef %14) #9
  call void @free(ptr noundef %14) #8
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.19) #9
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = load i64, ptr %14, align 8, !tbaa !9
  %66 = inttoptr i64 %65 to ptr
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.20, ptr noundef %66) #9
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %14, i64 8
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = inttoptr i64 %70 to ptr
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.21, ptr noundef %71) #9
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.22) #9
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.23, ptr noundef nonnull %14) #9
  %77 = call noalias dereferenceable_or_null(1200) ptr @malloc(i64 noundef 1200) #10
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.24, ptr noundef %77) #9
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.25) #9
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = load i64, ptr %14, align 8, !tbaa !9
  %84 = inttoptr i64 %83 to ptr
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.20, ptr noundef %84) #9
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = load i64, ptr %69, align 8, !tbaa !9
  %88 = inttoptr i64 %87 to ptr
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.21, ptr noundef %88) #9
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.26) #9
  %92 = ptrtoint ptr %3 to i64
  store i64 %92, ptr %69, align 8, !tbaa !9
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.27) #9
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.28) #9
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.29) #9
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.30) #9
  %101 = call noalias dereferenceable_or_null(256) ptr @malloc(i64 noundef 256) #10
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.31) #9
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = load ptr, ptr %49, align 16, !tbaa !5
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.32, ptr noundef %105) #9
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.33, ptr noundef %101) #9
  %109 = call ptr @llvm.frameaddress.p0(i32 0)
  %110 = ptrtoint ptr %109 to i64
  %111 = ptrtoint ptr %101 to i64
  %112 = sub nsw i64 %110, %111
  %113 = getelementptr inbounds i8, ptr %101, i64 %112
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  store i64 ptrtoint (ptr @jackpot to i64), ptr %114, align 1
  %115 = call ptr @llvm.returnaddress(i32 0)
  %116 = icmp eq ptr %115, @jackpot
  br i1 %116, label %118, label %117

117:                                              ; preds = %2
  call void @__assert_fail(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.35, i32 noundef 136, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

118:                                              ; preds = %2
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  ret i32 0
}

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none)
declare ptr @llvm.frameaddress.p0(i32 immarg) #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none)
declare ptr @llvm.returnaddress(i32 immarg) #6

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass