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

; 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.Sudoku = type { [81 x i8], i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SudokuProp20prop2_2ColumnInBlockER6Sudokuccc(ptr noundef nonnull align 1 dereferenceable(82), i8 noundef signext, i8 noundef signext, i8 noundef signext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SudokuProp20prop3_2ColumnOfBlockER6Sudokucc(ptr noundef nonnull align 1 dereferenceable(82), i8 noundef signext, i8 noundef signext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SudokuProp14prop4_GridRollER6Sudokuj(ptr noundef nonnull align 1 dereferenceable(82), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SudokuC2ERKS_(ptr noundef nonnull align 1 dereferenceable(82), ptr noundef nonnull align 1 dereferenceable(82)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SudokuD2Ev(ptr noundef nonnull align 1 dereferenceable(82)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SudokuProp9propagateE6Sudokui(ptr dead_on_unwind noalias writable sret(%class.Sudoku) align 1 %0, ptr noundef %1, i32 noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca i8, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %14 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, i32 noundef %14) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %15 unwind label %26

15:                                               ; preds = %3
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.1)
          to label %16 unwind label %30

16:                                               ; preds = %15
  invoke void @_Z11showMessageNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %7)
          to label %17 unwind label %34

17:                                               ; preds = %16
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  store i1 false, ptr %12, align 1
  call void @_ZN6SudokuC2ERKS_(ptr noundef nonnull align 1 dereferenceable(82) %0, ptr noundef nonnull align 1 dereferenceable(82) %1)
  %18 = call i64 @time(ptr noundef null) #6
  %19 = trunc i64 %18 to i32
  call void @srand(i32 noundef %19) #6
  br label %20

20:                                               ; preds = %80, %17
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %81

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 0, ptr %13, align 1, !tbaa !11
  %24 = call i32 @rand() #6
  %25 = srem i32 %24, 3
  switch i32 %25, label %74 [
    i32 0, label %40
    i32 1, label %57
    i32 2, label %67
  ]

26:                                               ; preds = %3
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %10, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %11, align 4
  br label %39

30:                                               ; preds = %15
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %10, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %11, align 4
  br label %38

34:                                               ; preds = %16
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %10, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %38

38:                                               ; preds = %34, %30
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %39

39:                                               ; preds = %38, %26
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %85

40:                                               ; preds = %23
  %41 = call i32 @rand() #6
  %42 = srem i32 %41, 3
  %43 = trunc i32 %42 to i8
  %44 = call i32 @rand() #6
  %45 = srem i32 %44, 3
  %46 = trunc i32 %45 to i8
  %47 = call i32 @rand() #6
  %48 = srem i32 %47, 3
  %49 = trunc i32 %48 to i8
  %50 = invoke noundef zeroext i1 @_ZN10SudokuProp20prop2_2ColumnInBlockER6Sudokuccc(ptr noundef nonnull align 1 dereferenceable(82) %0, i8 noundef signext %43, i8 noundef signext %46, i8 noundef signext %49)
          to label %51 unwind label %53

51:                                               ; preds = %40
  %52 = zext i1 %50 to i8
  store i8 %52, ptr %13, align 1, !tbaa !11
  br label %74

53:                                               ; preds = %67, %57, %40
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @_ZN6SudokuD2Ev(ptr noundef nonnull align 1 dereferenceable(82) %0) #6
  br label %85

57:                                               ; preds = %23
  %58 = call i32 @rand() #6
  %59 = srem i32 %58, 3
  %60 = trunc i32 %59 to i8
  %61 = call i32 @rand() #6
  %62 = srem i32 %61, 3
  %63 = trunc i32 %62 to i8
  %64 = invoke noundef zeroext i1 @_ZN10SudokuProp20prop3_2ColumnOfBlockER6Sudokucc(ptr noundef nonnull align 1 dereferenceable(82) %0, i8 noundef signext %60, i8 noundef signext %63)
          to label %65 unwind label %53

65:                                               ; preds = %57
  %66 = zext i1 %64 to i8
  store i8 %66, ptr %13, align 1, !tbaa !11
  br label %74

67:                                               ; preds = %23
  %68 = call i32 @rand() #6
  %69 = srem i32 %68, 3
  %70 = add nsw i32 %69, 1
  %71 = invoke noundef zeroext i1 @_ZN10SudokuProp14prop4_GridRollER6Sudokuj(ptr noundef nonnull align 1 dereferenceable(82) %0, i32 noundef %70)
          to label %72 unwind label %53

72:                                               ; preds = %67
  %73 = zext i1 %71 to i8
  store i8 %73, ptr %13, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %72, %65, %51, %23
  %75 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %6, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %77, %74
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %20, !llvm.loop !15

81:                                               ; preds = %20
  store i1 true, ptr %12, align 1
  %82 = load i1, ptr %12, align 1
  br i1 %82, label %84, label %83

83:                                               ; preds = %81
  call void @_ZN6SudokuD2Ev(ptr noundef nonnull align 1 dereferenceable(82) %0) #6
  br label %84

84:                                               ; preds = %83, %81
  ret void

85:                                               ; preds = %53, %39
  %86 = load ptr, ptr %10, align 8
  %87 = load i32, ptr %11, align 4
  %88 = insertvalue { ptr, i32 } poison, ptr %86, 0
  %89 = insertvalue { ptr, i32 } %88, i32 %87, 1
  resume { ptr, i32 } %89
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11showMessageNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #4

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #5

; Function Attrs: nounwind
declare i32 @rand() #5

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

!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 = !{!"int", !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.Sudoku = type { [81 x i8], i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SudokuProp20prop2_2ColumnInBlockER6Sudokuccc(ptr noundef nonnull align 1 dereferenceable(82), i8 noundef signext, i8 noundef signext, i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SudokuProp20prop3_2ColumnOfBlockER6Sudokucc(ptr noundef nonnull align 1 dereferenceable(82), i8 noundef signext, i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SudokuProp14prop4_GridRollER6Sudokuj(ptr noundef nonnull align 1 dereferenceable(82), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SudokuC2ERKS_(ptr noundef nonnull align 1 dereferenceable(82), ptr noundef nonnull align 1 dereferenceable(82)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SudokuD2Ev(ptr noundef nonnull align 1 dereferenceable(82)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SudokuProp9propagateE6Sudokui(ptr dead_on_unwind noalias writable sret(%class.Sudoku) align 1 %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, i32 noundef %2) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %7 unwind label %15

7:                                                ; preds = %3
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1)
          to label %8 unwind label %17

8:                                                ; preds = %7
  invoke void @_Z11showMessageNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %4)
          to label %9 unwind label %19

9:                                                ; preds = %8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZN6SudokuC2ERKS_(ptr noundef nonnull align 1 dereferenceable(82) %0, ptr noundef nonnull align 1 dereferenceable(82) %1)
  %10 = call i64 @time(ptr noundef null) #6
  %11 = trunc i64 %10 to i32
  call void @srand(i32 noundef %11) #6
  %12 = icmp sgt i32 %2, 0
  br i1 %12, label %.lr.ph, label %select.unfold._crit_edge

.lr.ph:                                           ; preds = %9, %select.unfold
  %.01016 = phi i32 [ %spec.select, %select.unfold ], [ %2, %9 ]
  %13 = call i32 @rand() #6
  %14 = srem i32 %13, 3
  switch i32 %14, label %select.unfold [
    i32 0, label %23
    i32 1, label %36
    i32 2, label %44
  ]

15:                                               ; preds = %3
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %22

17:                                               ; preds = %7
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %21

19:                                               ; preds = %8
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %21

21:                                               ; preds = %19, %17
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %22

22:                                               ; preds = %21, %15
  %.pn.pn = phi { ptr, i32 } [ %.pn, %21 ], [ %16, %15 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %50

23:                                               ; preds = %.lr.ph
  %24 = call i32 @rand() #6
  %25 = srem i32 %24, 3
  %26 = trunc nsw i32 %25 to i8
  %27 = call i32 @rand() #6
  %28 = srem i32 %27, 3
  %29 = trunc nsw i32 %28 to i8
  %30 = call i32 @rand() #6
  %31 = srem i32 %30, 3
  %32 = trunc nsw i32 %31 to i8
  %33 = invoke noundef zeroext i1 @_ZN10SudokuProp20prop2_2ColumnInBlockER6Sudokuccc(ptr noundef nonnull align 1 dereferenceable(82) %0, i8 noundef signext %26, i8 noundef signext %29, i8 noundef signext %32)
          to label %select.unfold unwind label %34

34:                                               ; preds = %44, %36, %23
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6SudokuD2Ev(ptr noundef nonnull align 1 dereferenceable(82) %0) #6
  br label %50

36:                                               ; preds = %.lr.ph
  %37 = call i32 @rand() #6
  %38 = srem i32 %37, 3
  %39 = trunc nsw i32 %38 to i8
  %40 = call i32 @rand() #6
  %41 = srem i32 %40, 3
  %42 = trunc nsw i32 %41 to i8
  %43 = invoke noundef zeroext i1 @_ZN10SudokuProp20prop3_2ColumnOfBlockER6Sudokucc(ptr noundef nonnull align 1 dereferenceable(82) %0, i8 noundef signext %39, i8 noundef signext %42)
          to label %select.unfold unwind label %34

44:                                               ; preds = %.lr.ph
  %45 = call i32 @rand() #6
  %46 = srem i32 %45, 3
  %47 = add nsw i32 %46, 1
  %48 = invoke noundef zeroext i1 @_ZN10SudokuProp14prop4_GridRollER6Sudokuj(ptr noundef nonnull align 1 dereferenceable(82) %0, i32 noundef %47)
          to label %select.unfold unwind label %34

select.unfold:                                    ; preds = %44, %36, %23, %.lr.ph
  %.0.shrunk = phi i1 [ false, %.lr.ph ], [ %33, %23 ], [ %43, %36 ], [ %48, %44 ]
  %49 = sext i1 %.0.shrunk to i32
  %spec.select = add nsw i32 %.01016, %49
  %.not = icmp eq i32 %spec.select, 0
  br i1 %.not, label %select.unfold._crit_edge, label %.lr.ph

select.unfold._crit_edge:                         ; preds = %select.unfold, %9
  ret void

50:                                               ; preds = %34, %22
  %.pn14 = phi { ptr, i32 } [ %35, %34 ], [ %.pn.pn, %22 ]
  resume { ptr, i32 } %.pn14
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11showMessageNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass