; LLVM IR from Karansutradhar/Maze-Solver-Robot-Depth-First-Search :: Final_Project/src/Maze/maze.ll (ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc)

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

%"struct.std::array" = type { [2 x i32] }
%"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] }
%"class.std::allocator" = type { i8 }
%"class.fp::Maze" = type { %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.0" }
%"struct.std::array.0" = type { [16 x %"struct.std::array.1"] }
%"struct.std::array.1" = type { [16 x i8] }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc(ptr noundef nonnull align 1 dereferenceable(1024) %0, i64 %1, i8 noundef signext %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::array", align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = getelementptr inbounds %"struct.std::array", ptr %4, i32 0, i32 0
  store i64 %1, ptr %21, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %4, i64 noundef 0) #4
  %24 = load i32, ptr %23, align 4, !tbaa !10
  store i32 %24, ptr %7, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %4, i64 noundef 1) #4
  %26 = load i32, ptr %25, align 4, !tbaa !10
  store i32 %26, ptr %8, align 4, !tbaa !10
  %27 = load i8, ptr %6, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %28, 78
  br i1 %29, label %30, label %70

30:                                               ; preds = %3
  %31 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %31, label %32, label %43

32:                                               ; preds = %30
  %33 = load i32, ptr %8, align 4, !tbaa !10
  %34 = load i32, ptr %7, align 4, !tbaa !10
  %35 = sub nsw i32 15, %34
  call void @_ZN2fp3API7setWallEiic(i32 noundef %33, i32 noundef %35, i8 noundef signext 110)
  %36 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 0
  %37 = load i32, ptr %7, align 4, !tbaa !10
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %36, i64 noundef %38) #4
  %40 = load i32, ptr %8, align 4, !tbaa !10
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %39, i64 noundef %41) #4
  store i8 1, ptr %42, align 1, !tbaa !12
  br label %43

43:                                               ; preds = %32, %30
  %44 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %44, label %45, label %56

45:                                               ; preds = %43
  %46 = load i32, ptr %8, align 4, !tbaa !10
  %47 = load i32, ptr %7, align 4, !tbaa !10
  %48 = sub nsw i32 15, %47
  call void @_ZN2fp3API7setWallEiic(i32 noundef %46, i32 noundef %48, i8 noundef signext 101)
  %49 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 2
  %50 = load i32, ptr %7, align 4, !tbaa !10
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %49, i64 noundef %51) #4
  %53 = load i32, ptr %8, align 4, !tbaa !10
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %52, i64 noundef %54) #4
  store i8 1, ptr %55, align 1, !tbaa !12
  br label %56

56:                                               ; preds = %45, %43
  %57 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %57, label %58, label %69

58:                                               ; preds = %56
  %59 = load i32, ptr %8, align 4, !tbaa !10
  %60 = load i32, ptr %7, align 4, !tbaa !10
  %61 = sub nsw i32 15, %60
  call void @_ZN2fp3API7setWallEiic(i32 noundef %59, i32 noundef %61, i8 noundef signext 119)
  %62 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 3
  %63 = load i32, ptr %7, align 4, !tbaa !10
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %62, i64 noundef %64) #4
  %66 = load i32, ptr %8, align 4, !tbaa !10
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %65, i64 noundef %67) #4
  store i8 1, ptr %68, align 1, !tbaa !12
  br label %69

69:                                               ; preds = %58, %56
  br label %70

70:                                               ; preds = %69, %3
  %71 = load i8, ptr %6, align 1, !tbaa !9
  %72 = sext i8 %71 to i32
  %73 = icmp eq i32 %72, 69
  br i1 %73, label %74, label %114

74:                                               ; preds = %70
  %75 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %75, label %76, label %87

76:                                               ; preds = %74
  %77 = load i32, ptr %8, align 4, !tbaa !10
  %78 = load i32, ptr %7, align 4, !tbaa !10
  %79 = sub nsw i32 15, %78
  call void @_ZN2fp3API7setWallEiic(i32 noundef %77, i32 noundef %79, i8 noundef signext 101)
  %80 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 2
  %81 = load i32, ptr %7, align 4, !tbaa !10
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %80, i64 noundef %82) #4
  %84 = load i32, ptr %8, align 4, !tbaa !10
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %83, i64 noundef %85) #4
  store i8 1, ptr %86, align 1, !tbaa !12
  br label %87

87:                                               ; preds = %76, %74
  %88 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %88, label %89, label %100

89:                                               ; preds = %87
  %90 = load i32, ptr %8, align 4, !tbaa !10
  %91 = load i32, ptr %7, align 4, !tbaa !10
  %92 = sub nsw i32 15, %91
  call void @_ZN2fp3API7setWallEiic(i32 noundef %90, i32 noundef %92, i8 noundef signext 115)
  %93 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 1
  %94 = load i32, ptr %7, align 4, !tbaa !10
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %93, i64 noundef %95) #4
  %97 = load i32, ptr %8, align 4, !tbaa !10
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %96, i64 noundef %98) #4
  store i8 1, ptr %99, align 1, !tbaa !12
  br label %100

100:                                              ; preds = %89, %87
  %101 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %101, label %102, label %113

102:                                              ; preds = %100
  %103 = load i32, ptr %8, align 4, !tbaa !10
  %104 = load i32, ptr %7, align 4, !tbaa !10
  %105 = sub nsw i32 15, %104
  call void @_ZN2fp3API7setWallEiic(i32 noundef %103, i32 noundef %105, i8 noundef signext 110)
  %106 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 0
  %107 = load i32, ptr %7, align 4, !tbaa !10
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %106, i64 noundef %108) #4
  %110 = load i32, ptr %8, align 4, !tbaa !10
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %109, i64 noundef %111) #4
  store i8 1, ptr %112, align 1, !tbaa !12
  br label %113

113:                                              ; preds = %102, %100
  br label %114

114:                                              ; preds = %113, %70
  %115 = load i8, ptr %6, align 1, !tbaa !9
  %116 = sext i8 %115 to i32
  %117 = icmp eq i32 %116, 87
  br i1 %117, label %118, label %158

118:                                              ; preds = %114
  %119 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %119, label %120, label %131

120:                                              ; preds = %118
  %121 = load i32, ptr %8, align 4, !tbaa !10
  %122 = load i32, ptr %7, align 4, !tbaa !10
  %123 = sub nsw i32 15, %122
  call void @_ZN2fp3API7setWallEiic(i32 noundef %121, i32 noundef %123, i8 noundef signext 119)
  %124 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 3
  %125 = load i32, ptr %7, align 4, !tbaa !10
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %124, i64 noundef %126) #4
  %128 = load i32, ptr %8, align 4, !tbaa !10
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %127, i64 noundef %129) #4
  store i8 1, ptr %130, align 1, !tbaa !12
  br label %131

131:                                              ; preds = %120, %118
  %132 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %132, label %133, label %144

133:                                              ; preds = %131
  %134 = load i32, ptr %8, align 4, !tbaa !10
  %135 = load i32, ptr %7, align 4, !tbaa !10
  %136 = sub nsw i32 15, %135
  call void @_ZN2fp3API7setWallEiic(i32 noundef %134, i32 noundef %136, i8 noundef signext 110)
  %137 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 0
  %138 = load i32, ptr %7, align 4, !tbaa !10
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %137, i64 noundef %139) #4
  %141 = load i32, ptr %8, align 4, !tbaa !10
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %140, i64 noundef %142) #4
  store i8 1, ptr %143, align 1, !tbaa !12
  br label %144

144:                                              ; preds = %133, %131
  %145 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %145, label %146, label %157

146:                                              ; preds = %144
  %147 = load i32, ptr %8, align 4, !tbaa !10
  %148 = load i32, ptr %7, align 4, !tbaa !10
  %149 = sub nsw i32 15, %148
  call void @_ZN2fp3API7setWallEiic(i32 noundef %147, i32 noundef %149, i8 noundef signext 115)
  %150 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 1
  %151 = load i32, ptr %7, align 4, !tbaa !10
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %150, i64 noundef %152) #4
  %154 = load i32, ptr %8, align 4, !tbaa !10
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %153, i64 noundef %155) #4
  store i8 1, ptr %156, align 1, !tbaa !12
  br label %157

157:                                              ; preds = %146, %144
  br label %158

158:                                              ; preds = %157, %114
  %159 = load i8, ptr %6, align 1, !tbaa !9
  %160 = sext i8 %159 to i32
  %161 = icmp eq i32 %160, 83
  br i1 %161, label %162, label %202

162:                                              ; preds = %158
  %163 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %163, label %164, label %175

164:                                              ; preds = %162
  %165 = load i32, ptr %8, align 4, !tbaa !10
  %166 = load i32, ptr %7, align 4, !tbaa !10
  %167 = sub nsw i32 15, %166
  call void @_ZN2fp3API7setWallEiic(i32 noundef %165, i32 noundef %167, i8 noundef signext 115)
  %168 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 1
  %169 = load i32, ptr %7, align 4, !tbaa !10
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %168, i64 noundef %170) #4
  %172 = load i32, ptr %8, align 4, !tbaa !10
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %171, i64 noundef %173) #4
  store i8 1, ptr %174, align 1, !tbaa !12
  br label %175

175:                                              ; preds = %164, %162
  %176 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %176, label %177, label %188

177:                                              ; preds = %175
  %178 = load i32, ptr %8, align 4, !tbaa !10
  %179 = load i32, ptr %7, align 4, !tbaa !10
  %180 = sub nsw i32 15, %179
  call void @_ZN2fp3API7setWallEiic(i32 noundef %178, i32 noundef %180, i8 noundef signext 119)
  %181 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 3
  %182 = load i32, ptr %7, align 4, !tbaa !10
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %181, i64 noundef %183) #4
  %185 = load i32, ptr %8, align 4, !tbaa !10
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %184, i64 noundef %186) #4
  store i8 1, ptr %187, align 1, !tbaa !12
  br label %188

188:                                              ; preds = %177, %175
  %189 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %189, label %190, label %201

190:                                              ; preds = %188
  %191 = load i32, ptr %8, align 4, !tbaa !10
  %192 = load i32, ptr %7, align 4, !tbaa !10
  %193 = sub nsw i32 15, %192
  call void @_ZN2fp3API7setWallEiic(i32 noundef %191, i32 noundef %193, i8 noundef signext 101)
  %194 = getelementptr inbounds %"class.fp::Maze", ptr %22, i32 0, i32 2
  %195 = load i32, ptr %7, align 4, !tbaa !10
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %194, i64 noundef %196) #4
  %198 = load i32, ptr %8, align 4, !tbaa !10
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %197, i64 noundef %199) #4
  store i8 1, ptr %200, align 1, !tbaa !12
  br label %201

201:                                              ; preds = %190, %188
  br label %202

202:                                              ; preds = %201, %158
  call void @_ZN2fp3API8setColorEiic(i32 noundef 0, i32 noundef 0, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %203 unwind label %213

203:                                              ; preds = %202
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %204 unwind label %217

204:                                              ; preds = %203
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 7, i32 noundef 7, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %205 unwind label %222

205:                                              ; preds = %204
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 7, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %206 unwind label %226

206:                                              ; preds = %205
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 7, i32 noundef 8, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %207 unwind label %231

207:                                              ; preds = %206
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 7, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %208 unwind label %235

208:                                              ; preds = %207
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 8, i32 noundef 7, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %209 unwind label %240

209:                                              ; preds = %208
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %210 unwind label %244

210:                                              ; preds = %209
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 8, i32 noundef 8, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %211 unwind label %249

211:                                              ; preds = %210
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 8, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %212 unwind label %253

212:                                              ; preds = %211
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void

213:                                              ; preds = %202
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %11, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %12, align 4
  br label %221

217:                                              ; preds = %203
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %11, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  br label %221

221:                                              ; preds = %217, %213
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  br label %258

222:                                              ; preds = %204
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  br label %230

226:                                              ; preds = %205
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %11, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %230

230:                                              ; preds = %226, %222
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %258

231:                                              ; preds = %206
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %11, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %12, align 4
  br label %239

235:                                              ; preds = %207
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %11, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  br label %239

239:                                              ; preds = %235, %231
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  br label %258

240:                                              ; preds = %208
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %11, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %12, align 4
  br label %248

244:                                              ; preds = %209
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %11, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  br label %248

248:                                              ; preds = %244, %240
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  br label %258

249:                                              ; preds = %210
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %11, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %12, align 4
  br label %257

253:                                              ; preds = %211
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %11, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  br label %257

257:                                              ; preds = %253, %249
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  br label %258

258:                                              ; preds = %257, %248, %239, %230, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %259

259:                                              ; preds = %258
  %260 = load ptr, ptr %11, align 8
  %261 = load i32, ptr %12, align 4
  %262 = insertvalue { ptr, i32 } poison, ptr %260, 0
  %263 = insertvalue { ptr, i32 } %262, i32 %261, 1
  resume { ptr, i32 } %263
}

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

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

declare noundef zeroext i1 @_ZN2fp3API9wallFrontEv() #3

declare void @_ZN2fp3API7setWallEiic(i32 noundef, i32 noundef, i8 noundef signext) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16), i64 noundef) #2 align 2

declare noundef zeroext i1 @_ZN2fp3API9wallRightEv() #3

declare noundef zeroext i1 @_ZN2fp3API8wallLeftEv() #3

declare void @_ZN2fp3API8setColorEiic(i32 noundef, i32 noundef, i8 noundef signext) #3

declare void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

attributes #0 = { 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 #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 = { "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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}


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

%"struct.std::array" = type { [2 x i32] }
%"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] }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc(ptr noundef nonnull align 1 dereferenceable(1024) %0, i64 %1, i8 noundef signext %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::array", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  store i64 %1, ptr %4, align 8
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %4, i64 noundef 0) #4
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %4, i64 noundef 1) #4
  %18 = load i32, ptr %17, align 4, !tbaa !5
  switch i8 %2, label %112 [
    i8 78, label %19
    i8 69, label %41
    i8 87, label %63
    i8 83, label %85
  ]

19:                                               ; preds = %3
  %20 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %20, label %21, label %27

21:                                               ; preds = %19
  %22 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %22, i8 noundef signext 110)
  %23 = sext i32 %16 to i64
  %24 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %0, i64 noundef %23) #4
  %25 = sext i32 %18 to i64
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %24, i64 noundef %25) #4
  store i8 1, ptr %26, align 1, !tbaa !9
  br label %27

27:                                               ; preds = %21, %19
  %28 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %28, label %29, label %36

29:                                               ; preds = %27
  %30 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %30, i8 noundef signext 101)
  %31 = getelementptr inbounds i8, ptr %0, i64 512
  %32 = sext i32 %16 to i64
  %33 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %31, i64 noundef %32) #4
  %34 = sext i32 %18 to i64
  %35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %33, i64 noundef %34) #4
  store i8 1, ptr %35, align 1, !tbaa !9
  br label %36

36:                                               ; preds = %29, %27
  %37 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %37, label %38, label %112

38:                                               ; preds = %36
  %39 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %39, i8 noundef signext 119)
  %40 = getelementptr inbounds i8, ptr %0, i64 768
  br label %.sink.split

41:                                               ; preds = %3
  %42 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %42, label %43, label %50

43:                                               ; preds = %41
  %44 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %44, i8 noundef signext 101)
  %45 = getelementptr inbounds i8, ptr %0, i64 512
  %46 = sext i32 %16 to i64
  %47 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %45, i64 noundef %46) #4
  %48 = sext i32 %18 to i64
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %47, i64 noundef %48) #4
  store i8 1, ptr %49, align 1, !tbaa !9
  br label %50

50:                                               ; preds = %43, %41
  %51 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %51, label %52, label %59

52:                                               ; preds = %50
  %53 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %53, i8 noundef signext 115)
  %54 = getelementptr inbounds i8, ptr %0, i64 256
  %55 = sext i32 %16 to i64
  %56 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %54, i64 noundef %55) #4
  %57 = sext i32 %18 to i64
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %56, i64 noundef %57) #4
  store i8 1, ptr %58, align 1, !tbaa !9
  br label %59

59:                                               ; preds = %52, %50
  %60 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %60, label %61, label %112

61:                                               ; preds = %59
  %62 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %62, i8 noundef signext 110)
  br label %.sink.split

63:                                               ; preds = %3
  %64 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %64, label %65, label %72

65:                                               ; preds = %63
  %66 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %66, i8 noundef signext 119)
  %67 = getelementptr inbounds i8, ptr %0, i64 768
  %68 = sext i32 %16 to i64
  %69 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %67, i64 noundef %68) #4
  %70 = sext i32 %18 to i64
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %69, i64 noundef %70) #4
  store i8 1, ptr %71, align 1, !tbaa !9
  br label %72

72:                                               ; preds = %65, %63
  %73 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %73, label %74, label %80

74:                                               ; preds = %72
  %75 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %75, i8 noundef signext 110)
  %76 = sext i32 %16 to i64
  %77 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %0, i64 noundef %76) #4
  %78 = sext i32 %18 to i64
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %77, i64 noundef %78) #4
  store i8 1, ptr %79, align 1, !tbaa !9
  br label %80

80:                                               ; preds = %74, %72
  %81 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %81, label %82, label %112

82:                                               ; preds = %80
  %83 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %83, i8 noundef signext 115)
  %84 = getelementptr inbounds i8, ptr %0, i64 256
  br label %.sink.split

85:                                               ; preds = %3
  %86 = call noundef zeroext i1 @_ZN2fp3API9wallFrontEv()
  br i1 %86, label %87, label %94

87:                                               ; preds = %85
  %88 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %88, i8 noundef signext 115)
  %89 = getelementptr inbounds i8, ptr %0, i64 256
  %90 = sext i32 %16 to i64
  %91 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %89, i64 noundef %90) #4
  %92 = sext i32 %18 to i64
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %91, i64 noundef %92) #4
  store i8 1, ptr %93, align 1, !tbaa !9
  br label %94

94:                                               ; preds = %87, %85
  %95 = call noundef zeroext i1 @_ZN2fp3API9wallRightEv()
  br i1 %95, label %96, label %103

96:                                               ; preds = %94
  %97 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %97, i8 noundef signext 119)
  %98 = getelementptr inbounds i8, ptr %0, i64 768
  %99 = sext i32 %16 to i64
  %100 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %98, i64 noundef %99) #4
  %101 = sext i32 %18 to i64
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %100, i64 noundef %101) #4
  store i8 1, ptr %102, align 1, !tbaa !9
  br label %103

103:                                              ; preds = %96, %94
  %104 = call noundef zeroext i1 @_ZN2fp3API8wallLeftEv()
  br i1 %104, label %105, label %112

105:                                              ; preds = %103
  %106 = sub nsw i32 15, %16
  call void @_ZN2fp3API7setWallEiic(i32 noundef %18, i32 noundef %106, i8 noundef signext 101)
  %107 = getelementptr inbounds i8, ptr %0, i64 512
  br label %.sink.split

.sink.split:                                      ; preds = %105, %38, %61, %82
  %.sink = phi ptr [ %84, %82 ], [ %0, %61 ], [ %40, %38 ], [ %107, %105 ]
  %108 = sext i32 %16 to i64
  %109 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %.sink, i64 noundef %108) #4
  %110 = sext i32 %18 to i64
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %109, i64 noundef %110) #4
  store i8 1, ptr %111, align 1, !tbaa !9
  br label %112

112:                                              ; preds = %.sink.split, %80, %59, %36, %3, %103
  call void @_ZN2fp3API8setColorEiic(i32 noundef 0, i32 noundef 0, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %113 unwind label %123

113:                                              ; preds = %112
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %114 unwind label %125

114:                                              ; preds = %113
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 7, i32 noundef 7, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %115 unwind label %128

115:                                              ; preds = %114
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 7, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %116 unwind label %130

116:                                              ; preds = %115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 7, i32 noundef 8, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %117 unwind label %133

117:                                              ; preds = %116
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 7, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %118 unwind label %135

118:                                              ; preds = %117
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 8, i32 noundef 7, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %119 unwind label %138

119:                                              ; preds = %118
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %120 unwind label %140

120:                                              ; preds = %119
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  call void @_ZN2fp3API8setColorEiic(i32 noundef 8, i32 noundef 8, i8 noundef signext 71)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %121 unwind label %143

121:                                              ; preds = %120
  invoke void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 8, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %122 unwind label %145

122:                                              ; preds = %121
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  ret void

123:                                              ; preds = %112
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %113
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %127

127:                                              ; preds = %125, %123
  %.pn = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %148

128:                                              ; preds = %114
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %115
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %132

132:                                              ; preds = %130, %128
  %.pn61 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  br label %148

133:                                              ; preds = %116
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %137

135:                                              ; preds = %117
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  br label %137

137:                                              ; preds = %135, %133
  %.pn63 = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %148

138:                                              ; preds = %118
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %142

140:                                              ; preds = %119
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  br label %142

142:                                              ; preds = %140, %138
  %.pn65 = phi { ptr, i32 } [ %141, %140 ], [ %139, %138 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  br label %148

143:                                              ; preds = %120
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %121
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %147

147:                                              ; preds = %145, %143
  %.pn67 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  br label %148

148:                                              ; preds = %147, %142, %137, %132, %127
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %147 ], [ %.pn65, %142 ], [ %.pn63, %137 ], [ %.pn61, %132 ], [ %.pn, %127 ]
  resume { ptr, i32 } %.pn67.pn
}

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZN2fp3API9wallFrontEv() local_unnamed_addr #3

declare void @_ZN2fp3API7setWallEiic(i32 noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZN2fp3API9wallRightEv() local_unnamed_addr #3

declare noundef zeroext i1 @_ZN2fp3API8wallLeftEv() local_unnamed_addr #3

declare void @_ZN2fp3API8setColorEiic(i32 noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #3

declare void @_ZN2fp3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

attributes #0 = { 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 #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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass