; LLVM IR from lolosssss/leetcode :: c (37_sudoku_solver)

; 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.tmp = external hidden unnamed_addr constant [9 x ptr], align 16
@__const.main.hard = external hidden unnamed_addr constant [9 x ptr], align 16
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 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 void @solveSudoku(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @printSudoku(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca [9 x ptr], align 16
  %3 = alloca [9 x ptr], align 16
  %4 = alloca [9 x ptr], align 16
  %5 = alloca [9 x ptr], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 72, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.tmp, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.hard, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %37, %0
  %9 = load i32, ptr %6, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 9
  br i1 %10, label %12, label %11

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

12:                                               ; preds = %8
  %13 = call noalias ptr @malloc(i64 noundef 9) #7
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [9 x ptr], ptr %2, i64 0, i64 %15
  store ptr %13, ptr %16, align 8, !tbaa !9
  %17 = call noalias ptr @malloc(i64 noundef 9) #7
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [9 x ptr], ptr %3, i64 0, i64 %19
  store ptr %17, ptr %20, align 8, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [9 x ptr], ptr %2, i64 0, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [9 x ptr], ptr %4, i64 0, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %24, ptr align 1 %28, i64 9, i1 false)
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [9 x ptr], ptr %3, i64 0, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [9 x ptr], ptr %5, i64 0, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %32, ptr align 1 %36, i64 9, i1 false)
  br label %37

37:                                               ; preds = %12
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %6, align 4, !tbaa !5
  br label %8, !llvm.loop !11

40:                                               ; preds = %11
  %41 = getelementptr inbounds [9 x ptr], ptr %2, i64 0, i64 0
  call void @printSudoku(ptr noundef %41)
  %42 = getelementptr inbounds [9 x ptr], ptr %2, i64 0, i64 0
  call void @solveSudoku(ptr noundef %42, i32 noundef 9, i32 noundef 9)
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  %44 = getelementptr inbounds [9 x ptr], ptr %2, i64 0, i64 0
  call void @printSudoku(ptr noundef %44)
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  %46 = getelementptr inbounds [9 x ptr], ptr %3, i64 0, i64 0
  call void @printSudoku(ptr noundef %46)
  %47 = getelementptr inbounds [9 x ptr], ptr %3, i64 0, i64 0
  call void @solveSudoku(ptr noundef %47, i32 noundef 9, i32 noundef 9)
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  %49 = getelementptr inbounds [9 x ptr], ptr %3, i64 0, i64 0
  call void @printSudoku(ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %63, %40
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 9
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %66

54:                                               ; preds = %50
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [9 x ptr], ptr %2, i64 0, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  call void @free(ptr noundef %58) #6
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [9 x ptr], ptr %3, i64 0, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  call void @free(ptr noundef %62) #6
  br label %63

63:                                               ; preds = %54
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %7, align 4, !tbaa !5
  br label %50, !llvm.loop !13

66:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %2) #6
  ret i32 0
}

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

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

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

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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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}


; 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.tmp = external hidden unnamed_addr constant [9 x ptr], align 16
@__const.main.hard = external hidden unnamed_addr constant [9 x ptr], align 16
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 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 void @solveSudoku(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @printSudoku(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca [9 x ptr], align 16
  %2 = alloca [9 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %2) #6
  %3 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  store ptr %3, ptr %1, align 16, !tbaa !5
  %4 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  store ptr %4, ptr %2, align 16, !tbaa !5
  %5 = load ptr, ptr @__const.main.tmp, align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %3, ptr noundef nonnull align 1 dereferenceable(9) %5, i64 9, i1 false)
  %6 = load ptr, ptr @__const.main.hard, align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %4, ptr noundef nonnull align 1 dereferenceable(9) %6, i64 9, i1 false)
  %7 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %7, ptr %8, align 8, !tbaa !5
  %9 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %9, ptr %10, align 8, !tbaa !5
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 8), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %7, ptr noundef nonnull align 1 dereferenceable(9) %11, i64 9, i1 false)
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 8), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %9, ptr noundef nonnull align 1 dereferenceable(9) %12, i64 9, i1 false)
  %13 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr %13, ptr %14, align 16, !tbaa !5
  %15 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %16 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %15, ptr %16, align 16, !tbaa !5
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 16), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %13, ptr noundef nonnull align 1 dereferenceable(9) %17, i64 9, i1 false)
  %18 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 16), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %15, ptr noundef nonnull align 1 dereferenceable(9) %18, i64 9, i1 false)
  %19 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  store ptr %19, ptr %20, align 8, !tbaa !5
  %21 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %22 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %21, ptr %22, align 8, !tbaa !5
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 24), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %19, ptr noundef nonnull align 1 dereferenceable(9) %23, i64 9, i1 false)
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 24), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %21, ptr noundef nonnull align 1 dereferenceable(9) %24, i64 9, i1 false)
  %25 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %26 = getelementptr inbounds i8, ptr %1, i64 32
  store ptr %25, ptr %26, align 16, !tbaa !5
  %27 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %28 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr %27, ptr %28, align 16, !tbaa !5
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 32), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %25, ptr noundef nonnull align 1 dereferenceable(9) %29, i64 9, i1 false)
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 32), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %27, ptr noundef nonnull align 1 dereferenceable(9) %30, i64 9, i1 false)
  %31 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %32 = getelementptr inbounds i8, ptr %1, i64 40
  store ptr %31, ptr %32, align 8, !tbaa !5
  %33 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %34 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %33, ptr %34, align 8, !tbaa !5
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 40), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %31, ptr noundef nonnull align 1 dereferenceable(9) %35, i64 9, i1 false)
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 40), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %33, ptr noundef nonnull align 1 dereferenceable(9) %36, i64 9, i1 false)
  %37 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %38 = getelementptr inbounds i8, ptr %1, i64 48
  store ptr %37, ptr %38, align 16, !tbaa !5
  %39 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %40 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr %39, ptr %40, align 16, !tbaa !5
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 48), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %37, ptr noundef nonnull align 1 dereferenceable(9) %41, i64 9, i1 false)
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 48), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %39, ptr noundef nonnull align 1 dereferenceable(9) %42, i64 9, i1 false)
  %43 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %44 = getelementptr inbounds i8, ptr %1, i64 56
  store ptr %43, ptr %44, align 8, !tbaa !5
  %45 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %46 = getelementptr inbounds i8, ptr %2, i64 56
  store ptr %45, ptr %46, align 8, !tbaa !5
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 56), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %43, ptr noundef nonnull align 1 dereferenceable(9) %47, i64 9, i1 false)
  %48 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 56), align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %45, ptr noundef nonnull align 1 dereferenceable(9) %48, i64 9, i1 false)
  %49 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %50 = getelementptr inbounds i8, ptr %1, i64 64
  store ptr %49, ptr %50, align 16, !tbaa !5
  %51 = tail call noalias dereferenceable_or_null(9) ptr @malloc(i64 noundef 9) #7
  %52 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr %51, ptr %52, align 16, !tbaa !5
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tmp, i64 64), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %49, ptr noundef nonnull align 1 dereferenceable(9) %53, i64 9, i1 false)
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.hard, i64 64), align 16, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %51, ptr noundef nonnull align 1 dereferenceable(9) %54, i64 9, i1 false)
  call void @printSudoku(ptr noundef nonnull %1)
  call void @solveSudoku(ptr noundef nonnull %1, i32 noundef 9, i32 noundef 9)
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  call void @printSudoku(ptr noundef nonnull %1)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  call void @printSudoku(ptr noundef nonnull %2)
  call void @solveSudoku(ptr noundef nonnull %2, i32 noundef 9, i32 noundef 9)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  call void @printSudoku(ptr noundef nonnull %2)
  %58 = load ptr, ptr %1, align 16, !tbaa !5
  call void @free(ptr noundef %58) #6
  %59 = load ptr, ptr %2, align 16, !tbaa !5
  call void @free(ptr noundef %59) #6
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %60) #6
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %61) #6
  %62 = load ptr, ptr %14, align 16, !tbaa !5
  call void @free(ptr noundef %62) #6
  %63 = load ptr, ptr %16, align 16, !tbaa !5
  call void @free(ptr noundef %63) #6
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %64) #6
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %65) #6
  %66 = load ptr, ptr %26, align 16, !tbaa !5
  call void @free(ptr noundef %66) #6
  %67 = load ptr, ptr %28, align 16, !tbaa !5
  call void @free(ptr noundef %67) #6
  %68 = load ptr, ptr %32, align 8, !tbaa !5
  call void @free(ptr noundef %68) #6
  %69 = load ptr, ptr %34, align 8, !tbaa !5
  call void @free(ptr noundef %69) #6
  %70 = load ptr, ptr %38, align 16, !tbaa !5
  call void @free(ptr noundef %70) #6
  %71 = load ptr, ptr %40, align 16, !tbaa !5
  call void @free(ptr noundef %71) #6
  %72 = load ptr, ptr %44, align 8, !tbaa !5
  call void @free(ptr noundef %72) #6
  %73 = load ptr, ptr %46, align 8, !tbaa !5
  call void @free(ptr noundef %73) #6
  %74 = load ptr, ptr %50, align 16, !tbaa !5
  call void @free(ptr noundef %74) #6
  %75 = load ptr, ptr %52, align 16, !tbaa !5
  call void @free(ptr noundef %75) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #6
  ret i32 0
}

; 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) #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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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"}


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