; LLVM IR from tyalie/Sudoku-Generator-CPP :: src/Generator/GenSudoku.ll (ZN9GenSudoku6expandB5cxx11Ev)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<GenSudoku, std::allocator<GenSudoku>>::_List_impl" }
%"struct.std::__cxx11::_List_base<GenSudoku, std::allocator<GenSudoku>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%class.GenSudoku = type { %class.Sudoku, i64 }
%class.Sudoku = type { [81 x i8], i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9GenSudoku10rule1_colsEPb(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9GenSudoku10rule2_rowsEPb(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9GenSudoku11rule3_blockEPb(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9GenSudoku6expandB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::list") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [9 x i8], align 1
  %6 = alloca i1, align 1
  %7 = alloca i64, align 8
  %8 = alloca %class.GenSudoku, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 9, ptr %5) #5
  %12 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %12, i8 1, i64 9, i1 false)
  %13 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
  %14 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
  %15 = call noundef ptr @_ZNK9GenSudoku11rule3_blockEPb(ptr noundef nonnull align 8 dereferenceable(96) %11, ptr noundef %14)
  %16 = call noundef ptr @_ZNK9GenSudoku10rule2_rowsEPb(ptr noundef nonnull align 8 dereferenceable(96) %11, ptr noundef %15)
  %17 = call noundef ptr @_ZNK9GenSudoku10rule1_colsEPb(ptr noundef nonnull align 8 dereferenceable(96) %11, ptr noundef %16)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 %17, i64 9, i1 false)
  store i1 false, ptr %6, align 1
  call void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 1, ptr %7, align 8, !tbaa !9
  br label %18

18:                                               ; preds = %45, %2
  %19 = load i64, ptr %7, align 8, !tbaa !9
  %20 = icmp ule i64 %19, 9
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %48

22:                                               ; preds = %18
  %23 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
  %24 = load i64, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %23, i64 %24
  %26 = getelementptr inbounds i8, ptr %25, i64 -1
  %27 = load i8, ptr %26, align 1, !tbaa !11, !range !13, !noundef !14
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %44

29:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef nonnull align 8 dereferenceable(96) %11)
          to label %30 unwind label %35

30:                                               ; preds = %29
  %31 = load i64, ptr %7, align 8, !tbaa !9
  %32 = trunc i64 %31 to i8
  invoke void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %8, i8 noundef signext %32)
          to label %33 unwind label %39

33:                                               ; preds = %30
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %34 unwind label %39

34:                                               ; preds = %33
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %8) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #5
  br label %44

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %9, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %10, align 4
  br label %43

39:                                               ; preds = %33, %30
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %9, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %10, align 4
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %8) #5
  br label %43

43:                                               ; preds = %39, %35
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @_ZNSt7__cxx1110_List_baseI9GenSudokuSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 9, ptr %5) #5
  br label %52

44:                                               ; preds = %34, %22
  br label %45

45:                                               ; preds = %44
  %46 = load i64, ptr %7, align 8, !tbaa !9
  %47 = add i64 %46, 1
  store i64 %47, ptr %7, align 8, !tbaa !9
  br label %18, !llvm.loop !15

48:                                               ; preds = %21
  store i1 true, ptr %6, align 1
  %49 = load i1, ptr %6, align 1
  br i1 %49, label %51, label %50

50:                                               ; preds = %48
  call void @_ZNSt7__cxx1110_List_baseI9GenSudokuSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %51

51:                                               ; preds = %50, %48
  call void @llvm.lifetime.end.p0(i64 9, ptr %5) #5
  ret void

52:                                               ; preds = %43
  %53 = load ptr, ptr %9, align 8
  %54 = load i32, ptr %10, align 4
  %55 = insertvalue { ptr, i32 } poison, ptr %53, 0
  %56 = insertvalue { ptr, i32 } %55, i32 %54, 1
  resume { ptr, i32 } %56
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseI9GenSudokuSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare void @_ZN9GenSudokuD1Ev(ptr)

declare void @_ZN9GenSudokuC1ERKS_(ptr, ptr)

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


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

%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<GenSudoku, std::allocator<GenSudoku>>::_List_impl" }
%"struct.std::__cxx11::_List_base<GenSudoku, std::allocator<GenSudoku>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%class.GenSudoku = type { %class.Sudoku, i64 }
%class.Sudoku = type { [81 x i8], i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9GenSudoku10rule1_colsEPb(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9GenSudoku10rule2_rowsEPb(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9GenSudoku11rule3_blockEPb(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9GenSudoku6expandB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::list") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [9 x i8], align 1
  %4 = alloca %class.GenSudoku, align 8
  call void @llvm.lifetime.start.p0(i64 9, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %3, i8 1, i64 9, i1 false)
  %5 = call noundef ptr @_ZNK9GenSudoku11rule3_blockEPb(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull %3)
  %6 = call noundef ptr @_ZNK9GenSudoku10rule2_rowsEPb(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef %5)
  %7 = call noundef ptr @_ZNK9GenSudoku10rule1_colsEPb(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %3, ptr noundef nonnull align 1 dereferenceable(9) %7, i64 9, i1 false)
  call void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %8 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %18

10:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %11 unwind label %13

11:                                               ; preds = %10
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 1)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %12 unwind label %15

12:                                               ; preds = %11
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %18

13:                                               ; preds = %63, %57, %51, %45, %39, %33, %27, %21, %10
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %17

15:                                               ; preds = %64, %58, %52, %46, %40, %34, %28, %22, %11
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  br label %17

17:                                               ; preds = %15, %13
  %.pn = phi { ptr, i32 } [ %16, %15 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1110_List_baseI9GenSudokuSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn

18:                                               ; preds = %2, %12
  %gep.1 = getelementptr inbounds i8, ptr %3, i64 1
  %19 = load i8, ptr %gep.1, align 1, !tbaa !5, !range !9, !noundef !10
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %22 unwind label %13

22:                                               ; preds = %21
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 2)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %23 unwind label %15

23:                                               ; preds = %22
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %24

24:                                               ; preds = %23, %18
  %gep.2 = getelementptr inbounds i8, ptr %3, i64 2
  %25 = load i8, ptr %gep.2, align 1, !tbaa !5, !range !9, !noundef !10
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %27, label %30

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %28 unwind label %13

28:                                               ; preds = %27
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 3)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %29 unwind label %15

29:                                               ; preds = %28
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %30

30:                                               ; preds = %29, %24
  %gep.3 = getelementptr inbounds i8, ptr %3, i64 3
  %31 = load i8, ptr %gep.3, align 1, !tbaa !5, !range !9, !noundef !10
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %36

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %34 unwind label %13

34:                                               ; preds = %33
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 4)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %35 unwind label %15

35:                                               ; preds = %34
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %36

36:                                               ; preds = %35, %30
  %gep.4 = getelementptr inbounds i8, ptr %3, i64 4
  %37 = load i8, ptr %gep.4, align 1, !tbaa !5, !range !9, !noundef !10
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %40 unwind label %13

40:                                               ; preds = %39
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 5)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %41 unwind label %15

41:                                               ; preds = %40
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %42

42:                                               ; preds = %41, %36
  %gep.5 = getelementptr inbounds i8, ptr %3, i64 5
  %43 = load i8, ptr %gep.5, align 1, !tbaa !5, !range !9, !noundef !10
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %46 unwind label %13

46:                                               ; preds = %45
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 6)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %47 unwind label %15

47:                                               ; preds = %46
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %48

48:                                               ; preds = %47, %42
  %gep.6 = getelementptr inbounds i8, ptr %3, i64 6
  %49 = load i8, ptr %gep.6, align 1, !tbaa !5, !range !9, !noundef !10
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %51, label %54

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %52 unwind label %13

52:                                               ; preds = %51
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 7)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %53 unwind label %15

53:                                               ; preds = %52
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %54

54:                                               ; preds = %53, %48
  %gep.7 = getelementptr inbounds i8, ptr %3, i64 7
  %55 = load i8, ptr %gep.7, align 1, !tbaa !5, !range !9, !noundef !10
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %58 unwind label %13

58:                                               ; preds = %57
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 8)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %59 unwind label %15

59:                                               ; preds = %58
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %60

60:                                               ; preds = %59, %54
  %gep.8 = getelementptr inbounds i8, ptr %3, i64 8
  %61 = load i8, ptr %gep.8, align 1, !tbaa !5, !range !9, !noundef !10
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %66

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  invoke void @_ZN9GenSudokuC1ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %64 unwind label %13

64:                                               ; preds = %63
  call void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96) %4, i8 noundef signext 9)
  invoke void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %65 unwind label %15

65:                                               ; preds = %64
  call void @_ZN9GenSudokuD1Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  br label %66

66:                                               ; preds = %65, %60
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %3) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GenSudoku10setAtIndexEc(ptr noundef nonnull align 8 dereferenceable(96), i8 noundef signext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listI9GenSudokuSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseI9GenSudokuSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare void @_ZN9GenSudokuD1Ev(ptr) local_unnamed_addr

declare void @_ZN9GenSudokuC1ERKS_(ptr, ptr) local_unnamed_addr

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass