; LLVM IR from robotics-upo/Heuristic_path_planners :: include/voro++-0.4.6/src (unitcell)

; 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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN4voro8unitcell16intersects_imageEdddRd(ptr noundef nonnull align 8 dereferenceable(224), double noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro8unitcell6imagesERSt6vectorIiSaIiEERS1_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca %"class.std::queue", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 21, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 9261, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %29 = call noalias noundef nonnull ptr @_Znam(i64 noundef 9261) #7
  store ptr %29, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 4630
  store ptr %31, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  br label %33

33:                                               ; preds = %37, %3
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = icmp ult ptr %34, %35
  br i1 %36, label %37, label %40

37:                                               ; preds = %33
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i32 1
  store ptr %39, ptr %11, align 8, !tbaa !5
  store i8 1, ptr %38, align 1, !tbaa !11
  br label %33, !llvm.loop !13

40:                                               ; preds = %33
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i32 1
  store ptr %42, ptr %11, align 8, !tbaa !5
  store i8 0, ptr %41, align 1, !tbaa !11
  br label %43

43:                                               ; preds = %48, %40
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 9261
  %47 = icmp ult ptr %44, %46
  br i1 %47, label %48, label %51

48:                                               ; preds = %43
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i32 1
  store ptr %50, ptr %11, align 8, !tbaa !5
  store i8 1, ptr %49, align 1, !tbaa !11
  br label %43, !llvm.loop !15

51:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #6
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %52 unwind label %115

52:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %53 unwind label %119

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %54 unwind label %123

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

55:                                               ; preds = %236, %54
  %56 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %57 unwind label %127

57:                                               ; preds = %55
  %58 = xor i1 %56, true
  br i1 %58, label %59, label %237

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %61 unwind label %127

61:                                               ; preds = %59
  %62 = load i32, ptr %60, align 4, !tbaa !9
  store i32 %62, ptr %12, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %63 unwind label %127

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %65 unwind label %127

65:                                               ; preds = %63
  %66 = load i32, ptr %64, align 4, !tbaa !9
  store i32 %66, ptr %13, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %67 unwind label %127

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %69 unwind label %127

69:                                               ; preds = %67
  %70 = load i32, ptr %68, align 4, !tbaa !9
  store i32 %70, ptr %14, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %71 unwind label %127

71:                                               ; preds = %69
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = sitofp i32 %72 to double
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = sitofp i32 %74 to double
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = sitofp i32 %76 to double
  %78 = invoke noundef zeroext i1 @_ZN4voro8unitcell16intersects_imageEdddRd(ptr noundef nonnull align 8 dereferenceable(224) %28, double noundef %73, double noundef %75, double noundef %77, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %79 unwind label %127

79:                                               ; preds = %71
  br i1 %78, label %80, label %236

80:                                               ; preds = %79
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %82 unwind label %127

82:                                               ; preds = %80
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %84 unwind label %127

84:                                               ; preds = %82
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %86 unwind label %127

86:                                               ; preds = %84
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %88 unwind label %127

88:                                               ; preds = %86
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = mul nsw i32 21, %94
  %96 = add nsw i32 %93, %95
  %97 = mul nsw i32 21, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %92, i64 %98
  store ptr %99, ptr %11, align 8, !tbaa !5
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = icmp sgt i32 %100, -10
  br i1 %101, label %102, label %135

102:                                              ; preds = %88
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 -441
  %105 = load i8, ptr %104, align 1, !tbaa !11, !range !16, !noundef !17
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %135

107:                                              ; preds = %102
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %108 unwind label %127

108:                                              ; preds = %107
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %109 unwind label %127

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = sub nsw i32 %110, 1
  store i32 %111, ptr %22, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %112 unwind label %131

112:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 -441
  store i8 0, ptr %114, align 1, !tbaa !11
  br label %135

115:                                              ; preds = %51
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %18, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %242

119:                                              ; preds = %52
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %18, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %242

123:                                              ; preds = %53
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %18, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %242

127:                                              ; preds = %224, %223, %207, %203, %187, %186, %167, %166, %147, %143, %108, %107, %86, %84, %82, %80, %71, %69, %67, %65, %63, %61, %59, %55
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %18, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %19, align 4
  br label %242

131:                                              ; preds = %109
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %18, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %242

135:                                              ; preds = %112, %102, %88
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = icmp sgt i32 %136, -10
  br i1 %137, label %138, label %155

138:                                              ; preds = %135
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 -21
  %141 = load i8, ptr %140, align 1, !tbaa !11, !range !16, !noundef !17
  %142 = trunc i8 %141 to i1
  br i1 %142, label %143, label %155

143:                                              ; preds = %138
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %144 unwind label %127

144:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = sub nsw i32 %145, 1
  store i32 %146, ptr %23, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %147 unwind label %151

147:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %148 unwind label %127

148:                                              ; preds = %147
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 -21
  store i8 0, ptr %150, align 1, !tbaa !11
  br label %155

151:                                              ; preds = %144
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %18, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %242

155:                                              ; preds = %148, %138, %135
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = icmp sgt i32 %156, -10
  br i1 %157, label %158, label %175

158:                                              ; preds = %155
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = getelementptr inbounds i8, ptr %159, i64 -1
  %161 = load i8, ptr %160, align 1, !tbaa !11, !range !16, !noundef !17
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %175

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = sub nsw i32 %164, 1
  store i32 %165, ptr %24, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %166 unwind label %171

166:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %167 unwind label %127

167:                                              ; preds = %166
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %168 unwind label %127

168:                                              ; preds = %167
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 -1
  store i8 0, ptr %170, align 1, !tbaa !11
  br label %175

171:                                              ; preds = %163
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %18, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %242

175:                                              ; preds = %168, %158, %155
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = icmp slt i32 %176, 10
  br i1 %177, label %178, label %195

178:                                              ; preds = %175
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i64 1
  %181 = load i8, ptr %180, align 1, !tbaa !11, !range !16, !noundef !17
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %195

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %25, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %186 unwind label %191

186:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %187 unwind label %127

187:                                              ; preds = %186
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %188 unwind label %127

188:                                              ; preds = %187
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %189, i64 1
  store i8 0, ptr %190, align 1, !tbaa !11
  br label %195

191:                                              ; preds = %183
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %18, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %242

195:                                              ; preds = %188, %178, %175
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = icmp slt i32 %196, 10
  br i1 %197, label %198, label %215

198:                                              ; preds = %195
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %199, i64 21
  %201 = load i8, ptr %200, align 1, !tbaa !11, !range !16, !noundef !17
  %202 = trunc i8 %201 to i1
  br i1 %202, label %203, label %215

203:                                              ; preds = %198
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %204 unwind label %127

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %26, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %207 unwind label %211

207:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %208 unwind label %127

208:                                              ; preds = %207
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %209, i64 21
  store i8 0, ptr %210, align 1, !tbaa !11
  br label %215

211:                                              ; preds = %204
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %18, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %242

215:                                              ; preds = %208, %198, %195
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = icmp slt i32 %216, 10
  br i1 %217, label %218, label %235

218:                                              ; preds = %215
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = getelementptr inbounds i8, ptr %219, i64 441
  %221 = load i8, ptr %220, align 1, !tbaa !11, !range !16, !noundef !17
  %222 = trunc i8 %221 to i1
  br i1 %222, label %223, label %235

223:                                              ; preds = %218
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %224 unwind label %127

224:                                              ; preds = %223
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %225 unwind label %127

225:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %27, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %228 unwind label %231

228:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %229, i64 441
  store i8 0, ptr %230, align 1, !tbaa !11
  br label %235

231:                                              ; preds = %225
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %18, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %242

235:                                              ; preds = %228, %218, %215
  br label %236

236:                                              ; preds = %235, %79
  br label %55, !llvm.loop !18

237:                                              ; preds = %57
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = icmp eq ptr %238, null
  br i1 %239, label %241, label %240

240:                                              ; preds = %237
  call void @_ZdaPv(ptr noundef %238) #8
  br label %241

241:                                              ; preds = %240, %237
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void

242:                                              ; preds = %231, %211, %191, %171, %151, %131, %127, %123, %119, %115
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %243

243:                                              ; preds = %242
  %244 = load ptr, ptr %18, align 8
  %245 = load i32, ptr %19, align 4
  %246 = insertvalue { ptr, i32 } poison, ptr %244, 0
  %247 = insertvalue { ptr, i32 } %246, i32 %245, 1
  resume { ptr, i32 } %247
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nobuiltin 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !14}


; 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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN4voro8unitcell16intersects_imageEdddRd(ptr noundef nonnull align 8 dereferenceable(224), double noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro8unitcell6imagesERSt6vectorIiSaIiEERS1_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
._crit_edge:
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca %"class.std::queue", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = tail call noalias noundef nonnull dereferenceable(9261) ptr @_Znam(i64 noundef 9261) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(4630) %17, i8 1, i64 4630, i1 false), !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 4630
  store i8 0, ptr %18, align 1, !tbaa !5
  %scevgep = getelementptr inbounds i8, ptr %17, i64 4631
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(4630) %scevgep, i8 1, i64 4630, i1 false), !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %19 unwind label %63

19:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 0, ptr %9, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %20 unwind label %65

20:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %21 unwind label %67

21:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  %22 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  br i1 %22, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %21, %145
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %24 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %24, ptr %3, align 4, !tbaa !9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %26 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %26, ptr %4, align 4, !tbaa !9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %28 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %28, ptr %5, align 4, !tbaa !9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = sitofp i32 %29 to double
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = sitofp i32 %31 to double
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = sitofp i32 %33 to double
  %35 = invoke noundef zeroext i1 @_ZN4voro8unitcell16intersects_imageEdddRd(ptr noundef nonnull align 8 dereferenceable(224) %0, double noundef %30, double noundef %32, double noundef %34, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %36 unwind label %69

36:                                               ; preds = %.lr.ph38
  br i1 %35, label %37, label %145

37:                                               ; preds = %36
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %38 unwind label %69

38:                                               ; preds = %37
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %39 unwind label %69

39:                                               ; preds = %38
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %40 unwind label %69

40:                                               ; preds = %39
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %41 unwind label %69

41:                                               ; preds = %40
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %18, i64 %43
  %45 = load i32, ptr %4, align 4, !tbaa !9
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = mul nsw i32 %46, 21
  %48 = add nsw i32 %47, %45
  %49 = mul nsw i32 %48, 21
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i8, ptr %44, i64 %50
  %52 = icmp sgt i32 %46, -10
  br i1 %52, label %53, label %73

53:                                               ; preds = %41
  %54 = getelementptr inbounds i8, ptr %51, i64 -441
  %55 = load i8, ptr %54, align 1, !tbaa !5, !range !11, !noundef !12
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %73

57:                                               ; preds = %53
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %58 unwind label %69

58:                                               ; preds = %57
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %59 unwind label %69

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = add nsw i32 %60, -1
  store i32 %61, ptr %11, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %62 unwind label %71

62:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  store i8 0, ptr %54, align 1, !tbaa !5
  %.pre = load i32, ptr %4, align 4, !tbaa !9
  br label %73

63:                                               ; preds = %._crit_edge
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %147

65:                                               ; preds = %19
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %147

67:                                               ; preds = %20
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %147

69:                                               ; preds = %138, %137, %126, %122, %111, %110, %98, %97, %84, %80, %58, %57, %40, %39, %38, %37, %.lr.ph38
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %147

71:                                               ; preds = %59
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %147

73:                                               ; preds = %62, %53, %41
  %74 = phi i32 [ %.pre, %62 ], [ %45, %53 ], [ %45, %41 ]
  %75 = icmp sgt i32 %74, -10
  br i1 %75, label %76, label %88

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %51, i64 -21
  %78 = load i8, ptr %77, align 1, !tbaa !5, !range !11, !noundef !12
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %80, label %88

80:                                               ; preds = %76
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %81 unwind label %69

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %82 = load i32, ptr %4, align 4, !tbaa !9
  %83 = add nsw i32 %82, -1
  store i32 %83, ptr %12, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %84 unwind label %86

84:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %85 unwind label %69

85:                                               ; preds = %84
  store i8 0, ptr %77, align 1, !tbaa !5
  br label %88

86:                                               ; preds = %81
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %147

88:                                               ; preds = %85, %76, %73
  %89 = load i32, ptr %3, align 4, !tbaa !9
  %90 = icmp sgt i32 %89, -10
  br i1 %90, label %91, label %.thread

91:                                               ; preds = %88
  %92 = getelementptr inbounds i8, ptr %51, i64 -1
  %93 = load i8, ptr %92, align 1, !tbaa !5, !range !11, !noundef !12
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %95, label %102

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %96 = add nsw i32 %89, -1
  store i32 %96, ptr %13, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %97 unwind label %100

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %98 unwind label %69

98:                                               ; preds = %97
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %99 unwind label %69

99:                                               ; preds = %98
  store i8 0, ptr %92, align 1, !tbaa !5
  %.pr.pre = load i32, ptr %3, align 4, !tbaa !9
  br label %102

100:                                              ; preds = %95
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %147

102:                                              ; preds = %99, %91
  %.pr = phi i32 [ %.pr.pre, %99 ], [ %89, %91 ]
  %103 = icmp slt i32 %.pr, 10
  br i1 %103, label %.thread, label %115

.thread:                                          ; preds = %88, %102
  %104 = phi i32 [ %.pr, %102 ], [ %89, %88 ]
  %105 = getelementptr inbounds i8, ptr %51, i64 1
  %106 = load i8, ptr %105, align 1, !tbaa !5, !range !11, !noundef !12
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %108, label %115

108:                                              ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %109 = add nsw i32 %104, 1
  store i32 %109, ptr %14, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %110 unwind label %113

110:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %111 unwind label %69

111:                                              ; preds = %110
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %112 unwind label %69

112:                                              ; preds = %111
  store i8 0, ptr %105, align 1, !tbaa !5
  br label %115

113:                                              ; preds = %108
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %147

115:                                              ; preds = %112, %.thread, %102
  %116 = load i32, ptr %4, align 4, !tbaa !9
  %117 = icmp slt i32 %116, 10
  br i1 %117, label %118, label %130

118:                                              ; preds = %115
  %119 = getelementptr inbounds i8, ptr %51, i64 21
  %120 = load i8, ptr %119, align 1, !tbaa !5, !range !11, !noundef !12
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %122, label %130

122:                                              ; preds = %118
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %123 unwind label %69

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %124 = load i32, ptr %4, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %15, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %126 unwind label %128

126:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %127 unwind label %69

127:                                              ; preds = %126
  store i8 0, ptr %119, align 1, !tbaa !5
  br label %130

128:                                              ; preds = %123
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %147

130:                                              ; preds = %127, %118, %115
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = icmp slt i32 %131, 10
  br i1 %132, label %133, label %145

133:                                              ; preds = %130
  %134 = getelementptr inbounds i8, ptr %51, i64 441
  %135 = load i8, ptr %134, align 1, !tbaa !5, !range !11, !noundef !12
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %137, label %145

137:                                              ; preds = %133
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %138 unwind label %69

138:                                              ; preds = %137
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %139 unwind label %69

139:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  %140 = load i32, ptr %5, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %16, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %142 unwind label %143

142:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  store i8 0, ptr %134, align 1, !tbaa !5
  br label %145

143:                                              ; preds = %139
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %147

145:                                              ; preds = %130, %133, %142, %36
  %146 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  br i1 %146, label %._crit_edge39, label %.lr.ph38, !llvm.loop !13

._crit_edge39:                                    ; preds = %145, %21
  call void @_ZdaPv(ptr noundef nonnull %17) #9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  ret void

147:                                              ; preds = %143, %128, %113, %100, %86, %71, %69, %67, %65, %63
  %.pn = phi { ptr, i32 } [ %144, %143 ], [ %70, %69 ], [ %129, %128 ], [ %114, %113 ], [ %101, %100 ], [ %87, %86 ], [ %72, %71 ], [ %68, %67 ], [ %66, %65 ], [ %64, %63 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass