; LLVM IR from mackorone/mms :: old/v2/src/maze/randomize (Randomize)

; 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::initializer_list.55" = type { ptr, i64 }

; 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
define dso_local void @_ZN9randomize9Randomize8generateEiiPN3sim13MazeInterfaceE(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::initializer_list.55", align 8
  %15 = alloca [4 x i8], align 1
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store double 4.000000e-01, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %150, %4
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %153

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %146, %26
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %149

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i8 110, ptr %15, align 1, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %15, i64 1
  store i8 101, ptr %33, align 1, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %15, i64 2
  store i8 115, ptr %34, align 1, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %15, i64 3
  store i8 119, ptr %35, align 1, !tbaa !13
  %36 = getelementptr inbounds %"class.std::initializer_list.55", ptr %14, i32 0, i32 0
  store ptr %15, ptr %36, align 8, !tbaa !14
  %37 = getelementptr inbounds %"class.std::initializer_list.55", ptr %14, i32 0, i32 1
  store i64 4, ptr %37, align 8, !tbaa !17
  store ptr %14, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = call noundef ptr @_ZNKSt16initializer_listIcE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %38) #4
  store ptr %39, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = call noundef ptr @_ZNKSt16initializer_listIcE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %40) #4
  store ptr %41, ptr %17, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %142, %32
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = load ptr, ptr %17, align 8, !tbaa !5
  %45 = icmp ne ptr %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %145

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = load i8, ptr %48, align 1, !tbaa !13
  store i8 %49, ptr %18, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = call noundef double @_ZN3sim13MazeInterface9getRandomEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %52 = load double, ptr %9, align 8, !tbaa !11
  %53 = fcmp ole double %51, %52
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %19, align 1, !tbaa !18
  %55 = load i8, ptr %18, align 1, !tbaa !13
  %56 = sext i8 %55 to i32
  switch i32 %56, label %141 [
    i32 110, label %57
    i32 101, label %79
    i32 115, label %101
    i32 119, label %121
  ]

57:                                               ; preds = %47
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %74

62:                                               ; preds = %57
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %67 = trunc i8 %66 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %63, i32 noundef %64, i32 noundef %65, i8 noundef signext 110, i1 noundef zeroext %67)
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  %72 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %73 = trunc i8 %72 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef %69, i32 noundef %71, i8 noundef signext 115, i1 noundef zeroext %73)
  br label %78

74:                                               ; preds = %57
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %75, i32 noundef %76, i32 noundef %77, i8 noundef signext 110, i1 noundef zeroext true)
  br label %78

78:                                               ; preds = %74, %62
  br label %141

79:                                               ; preds = %47
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %79
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %89 = trunc i8 %88 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %85, i32 noundef %86, i32 noundef %87, i8 noundef signext 101, i1 noundef zeroext %89)
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %95 = trunc i8 %94 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %90, i32 noundef %92, i32 noundef %93, i8 noundef signext 119, i1 noundef zeroext %95)
  br label %100

96:                                               ; preds = %79
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %97, i32 noundef %98, i32 noundef %99, i8 noundef signext 101, i1 noundef zeroext true)
  br label %100

100:                                              ; preds = %96, %84
  br label %141

101:                                              ; preds = %47
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %104, label %116

104:                                              ; preds = %101
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %109 = trunc i8 %108 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef %106, i32 noundef %107, i8 noundef signext 115, i1 noundef zeroext %109)
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = sub nsw i32 %112, 1
  %114 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %115 = trunc i8 %114 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %110, i32 noundef %111, i32 noundef %113, i8 noundef signext 110, i1 noundef zeroext %115)
  br label %120

116:                                              ; preds = %101
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 noundef %118, i32 noundef %119, i8 noundef signext 115, i1 noundef zeroext true)
  br label %120

120:                                              ; preds = %116, %104
  br label %141

121:                                              ; preds = %47
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %124, label %136

124:                                              ; preds = %121
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %129 = trunc i8 %128 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %125, i32 noundef %126, i32 noundef %127, i8 noundef signext 119, i1 noundef zeroext %129)
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = sub nsw i32 %131, 1
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %135 = trunc i8 %134 to i1
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %130, i32 noundef %132, i32 noundef %133, i8 noundef signext 101, i1 noundef zeroext %135)
  br label %140

136:                                              ; preds = %121
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %137, i32 noundef %138, i32 noundef %139, i8 noundef signext 119, i1 noundef zeroext true)
  br label %140

140:                                              ; preds = %136, %124
  br label %141

141:                                              ; preds = %140, %120, %100, %78, %47
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  br label %142

142:                                              ; preds = %141
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %143, i32 1
  store ptr %144, ptr %16, align 8, !tbaa !5
  br label %42

145:                                              ; preds = %46
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %12, align 4, !tbaa !9
  br label %27, !llvm.loop !22

149:                                              ; preds = %31
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %10, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %10, align 4, !tbaa !9
  br label %21, !llvm.loop !24

153:                                              ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

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

declare noundef double @_ZN3sim13MazeInterface9getRandomEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i8 noundef signext, i1 noundef zeroext) #3

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt16initializer_listIcE", !6, i64 0, !16, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !16, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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::initializer_list.55" = type { ptr, i64 }

; 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
define dso_local void @_ZN9randomize9Randomize8generateEiiPN3sim13MazeInterfaceE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca %"class.std::initializer_list.55", align 8
  %6 = alloca [4 x i8], align 4
  %7 = icmp sgt i32 %1, 0
  br i1 %7, label %.preheader.lr.ph, label %._crit_edge79

.preheader.lr.ph:                                 ; preds = %4
  %8 = icmp sgt i32 %2, 0
  %9 = getelementptr inbounds i8, ptr %5, i64 8
  br i1 %8, label %.preheader.us, label %._crit_edge79

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge77.us
  %.078.us = phi i32 [ %11, %._crit_edge77.us ], [ 0, %.preheader.lr.ph ]
  %.not71.us = icmp eq i32 %.078.us, 0
  %10 = add nsw i32 %.078.us, -1
  %11 = add nuw nsw i32 %.078.us, 1
  %12 = icmp slt i32 %11, %1
  br label %13

13:                                               ; preds = %.preheader.us, %._crit_edge.us
  %.06575.us = phi i32 [ 0, %.preheader.us ], [ %.pre-phi, %._crit_edge.us ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store <4 x i8> <i8 110, i8 101, i8 115, i8 119>, ptr %6, align 4, !tbaa !5
  store ptr %6, ptr %5, align 8, !tbaa !8
  store i64 4, ptr %9, align 8, !tbaa !12
  %14 = call noundef ptr @_ZNKSt16initializer_listIcE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  %15 = call noundef ptr @_ZNKSt16initializer_listIcE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  %.not73.us = icmp eq ptr %14, %15
  br i1 %.not73.us, label %.._crit_edge.us_crit_edge, label %.lr.ph.us

.._crit_edge.us_crit_edge:                        ; preds = %13
  %.pre = add nuw nsw i32 %.06575.us, 1
  br label %._crit_edge.us

16:                                               ; preds = %.lr.ph.us, %32
  %.06674.us = phi ptr [ %14, %.lr.ph.us ], [ %33, %32 ]
  %17 = load i8, ptr %.06674.us, align 1, !tbaa !5
  %18 = call noundef double @_ZN3sim13MazeInterface9getRandomEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %19 = fcmp ole double %18, 4.000000e-01
  switch i8 %17, label %32 [
    i8 110, label %29
    i8 101, label %26
    i8 115, label %23
    i8 119, label %20
  ]

20:                                               ; preds = %16
  br i1 %.not71.us, label %22, label %21

21:                                               ; preds = %20
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %.06575.us, i8 noundef signext 119, i1 noundef zeroext %19)
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %10, i32 noundef %.06575.us, i8 noundef signext 101, i1 noundef zeroext %19)
  br label %32

22:                                               ; preds = %20
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0, i32 noundef %.06575.us, i8 noundef signext 119, i1 noundef zeroext true)
  br label %32

23:                                               ; preds = %16
  br i1 %.not72.us, label %25, label %24

24:                                               ; preds = %23
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %.06575.us, i8 noundef signext 115, i1 noundef zeroext %19)
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %34, i8 noundef signext 110, i1 noundef zeroext %19)
  br label %32

25:                                               ; preds = %23
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef 0, i8 noundef signext 115, i1 noundef zeroext true)
  br label %32

26:                                               ; preds = %16
  br i1 %12, label %28, label %27

27:                                               ; preds = %26
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %.06575.us, i8 noundef signext 101, i1 noundef zeroext true)
  br label %32

28:                                               ; preds = %26
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %.06575.us, i8 noundef signext 101, i1 noundef zeroext %19)
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %11, i32 noundef %.06575.us, i8 noundef signext 119, i1 noundef zeroext %19)
  br label %32

29:                                               ; preds = %16
  br i1 %36, label %31, label %30

30:                                               ; preds = %29
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %.06575.us, i8 noundef signext 110, i1 noundef zeroext true)
  br label %32

31:                                               ; preds = %29
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %.06575.us, i8 noundef signext 110, i1 noundef zeroext %19)
  call void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.078.us, i32 noundef %35, i8 noundef signext 115, i1 noundef zeroext %19)
  br label %32

32:                                               ; preds = %31, %30, %28, %27, %25, %24, %22, %21, %16
  %33 = getelementptr inbounds i8, ptr %.06674.us, i64 1
  %.not.us = icmp eq ptr %33, %15
  br i1 %.not.us, label %._crit_edge.us, label %16

._crit_edge.us:                                   ; preds = %32, %.._crit_edge.us_crit_edge
  %.pre-phi = phi i32 [ %.pre, %.._crit_edge.us_crit_edge ], [ %35, %32 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %exitcond.not = icmp eq i32 %.pre-phi, %2
  br i1 %exitcond.not, label %._crit_edge77.us, label %13, !llvm.loop !13

.lr.ph.us:                                        ; preds = %13
  %.not72.us = icmp eq i32 %.06575.us, 0
  %34 = add nsw i32 %.06575.us, -1
  %35 = add nuw nsw i32 %.06575.us, 1
  %36 = icmp slt i32 %35, %2
  br label %16

._crit_edge77.us:                                 ; preds = %._crit_edge.us
  %exitcond81.not = icmp eq i32 %11, %1
  br i1 %exitcond81.not, label %._crit_edge79, label %.preheader.us, !llvm.loop !15

._crit_edge79:                                    ; preds = %._crit_edge77.us, %.preheader.lr.ph, %4
  ret void
}

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

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

declare noundef double @_ZN3sim13MazeInterface9getRandomEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare void @_ZN3sim13MazeInterface7setWallEiicb(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i8 noundef signext, i1 noundef zeroext) local_unnamed_addr #3

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSSt16initializer_listIcE", !10, i64 0, !11, i64 8}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = !{!9, !11, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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