; LLVM IR from vss2sn/cvrp :: src/genetic_algorithm.ll (ZN10GASolution14MutateIterLeftEii)

; 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.GASolution = type <{ %class.Solution, i32, i32, i64, %"class.std::vector.10", i64, %"class.std::vector.15", %"class.std::vector.15", i32, [4 x i8] }>
%class.Solution = type { ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %struct.Node, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl" }
%"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Node = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN10GASolution14MutateIterLeftEii(ptr noundef nonnull align 8 dereferenceable(204) %0, i32 noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %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
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %15 = load ptr, ptr %5, align 8
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 5
  %19 = load i64, ptr %18, align 8, !tbaa !11
  %20 = icmp eq i64 %17, %19
  br i1 %20, label %24, label %21

21:                                               ; preds = %3
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %21, %3
  store i1 false, ptr %4, align 1
  br label %197

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  %26 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %26, ptr %8, align 4, !tbaa !9
  %27 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #2
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %32) #2
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37) #2
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = sub nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %41) #2
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = icmp sgt i32 %34, %43
  br i1 %44, label %45, label %55

45:                                               ; preds = %25
  %46 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #2
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #2
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = add nsw i32 %53, -1
  store i32 %54, ptr %52, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %45, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  %56 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %56, ptr %9, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %123, %55
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 5
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = sub i64 %61, 1
  %63 = icmp ult i64 %59, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  br label %126

65:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  %66 = getelementptr inbounds %class.Solution, ptr %15, i32 0, i32 5
  %67 = load i32, ptr %66, align 4, !tbaa !37
  store i32 %67, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  %68 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #2
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73) #2
  %75 = load i32, ptr %74, align 4, !tbaa !9
  store i32 %75, ptr %11, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %88, %65
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #2
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %84) #2
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = icmp slt i32 %77, %86
  br i1 %87, label %88, label %106

88:                                               ; preds = %76
  %89 = getelementptr inbounds %class.Solution, ptr %15, i32 0, i32 1
  %90 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 6
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %92) #2
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #2
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %98) #2
  %100 = getelementptr inbounds %struct.Node, ptr %99, i32 0, i32 3
  %101 = load i32, ptr %100, align 4, !tbaa !38
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = sub nsw i32 %102, %101
  store i32 %103, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %11, align 4, !tbaa !9
  br label %76, !llvm.loop !39

106:                                              ; preds = %76
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = icmp slt i32 %107, 0
  br i1 %108, label %109, label %122

109:                                              ; preds = %106
  %110 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #2
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %116) #2
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr %117, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr %9, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %109, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %9, align 4, !tbaa !9
  br label %57, !llvm.loop !41

126:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  %127 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 5
  %128 = load i64, ptr %127, align 8, !tbaa !11
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr %12, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %193, %126
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = icmp sgt i32 %131, 1
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  br label %196

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #2
  %135 = getelementptr inbounds %class.Solution, ptr %15, i32 0, i32 5
  %136 = load i32, ptr %135, align 4, !tbaa !37
  store i32 %136, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %137 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %138 = load i32, ptr %8, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #2
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #2
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = sub nsw i32 %144, 1
  store i32 %145, ptr %14, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %158, %134
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %149 = load i32, ptr %8, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %150) #2
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = sub nsw i32 %152, 1
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %154) #2
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = icmp sge i32 %147, %156
  br i1 %157, label %158, label %176

158:                                              ; preds = %146
  %159 = getelementptr inbounds %class.Solution, ptr %15, i32 0, i32 1
  %160 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 6
  %161 = load i32, ptr %8, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #2
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %165) #2
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %168) #2
  %170 = getelementptr inbounds %struct.Node, ptr %169, i32 0, i32 3
  %171 = load i32, ptr %170, align 4, !tbaa !38
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = sub nsw i32 %172, %171
  store i32 %173, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = add nsw i32 %174, -1
  store i32 %175, ptr %14, align 4, !tbaa !9
  br label %146, !llvm.loop !42

176:                                              ; preds = %146
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = icmp slt i32 %177, 0
  br i1 %178, label %179, label %192

179:                                              ; preds = %176
  %180 = getelementptr inbounds %class.GASolution, ptr %15, i32 0, i32 7
  %181 = load i32, ptr %8, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #2
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = sub nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %186) #2
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %187, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %12, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %179, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %12, align 4, !tbaa !9
  %195 = add nsw i32 %194, -1
  store i32 %195, ptr %12, align 4, !tbaa !9
  br label %130, !llvm.loop !43

196:                                              ; preds = %133
  store i1 true, ptr %4, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  br label %197

197:                                              ; preds = %196, %24
  %198 = load i1, ptr %4, align 1
  ret i1 %198
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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, !28, i64 144}
!12 = !{!"_ZTS10GASolution", !13, i64 0, !10, i64 104, !10, i64 108, !28, i64 112, !29, i64 120, !28, i64 144, !33, i64 152, !33, i64 176, !10, i64 200}
!13 = !{!"_ZTS8Solution", !14, i64 8, !18, i64 32, !22, i64 56, !26, i64 80, !10, i64 100}
!14 = !{!"_ZTSSt6vectorI4NodeSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI4NodeSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorI7VehicleSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI7VehicleSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTS4Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !27, i64 16}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSSt6vectorIdSaIdEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!13, !10, i64 100}
!38 = !{!26, !10, i64 12}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = distinct !{!42, !40}
!43 = distinct !{!43, !40}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN10GASolution14MutateIterLeftEii(ptr noundef nonnull align 8 dereferenceable(204) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = sext i32 %2 to i64
  %5 = getelementptr inbounds i8, ptr %0, i64 144
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = icmp ne i64 %6, %4
  %8 = icmp ne i32 %2, 0
  %or.cond.not = and i1 %8, %7
  br i1 %or.cond.not, label %9, label %.loopexit

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 176
  %11 = sext i32 %1 to i64
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %4) #1
  %14 = load i32, ptr %13, align 4, !tbaa !35
  %15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %16 = add nsw i32 %2, -1
  %17 = sext i32 %16 to i64
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %17) #1
  %19 = load i32, ptr %18, align 4, !tbaa !35
  %20 = icmp sgt i32 %14, %19
  br i1 %20, label %21, label %26

21:                                               ; preds = %9
  %22 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %4) #1
  %24 = load i32, ptr %23, align 4, !tbaa !35
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %23, align 4, !tbaa !35
  br label %26

26:                                               ; preds = %21, %9
  %27 = load i64, ptr %5, align 8, !tbaa !5
  %28 = add i64 %27, -1
  %29 = icmp ugt i64 %28, %4
  br i1 %29, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 100
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = getelementptr inbounds i8, ptr %0, i64 152
  br label %38

._crit_edge61:                                    ; preds = %70, %26
  %.lcssa54 = phi i64 [ %27, %26 ], [ %71, %70 ]
  %33 = trunc i64 %.lcssa54 to i32
  %34 = icmp sgt i32 %33, 1
  br i1 %34, label %.lr.ph73, label %.loopexit

.lr.ph73:                                         ; preds = %._crit_edge61
  %35 = getelementptr inbounds i8, ptr %0, i64 100
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = getelementptr inbounds i8, ptr %0, i64 152
  br label %74

38:                                               ; preds = %.lr.ph60, %70
  %39 = phi i64 [ %4, %.lr.ph60 ], [ %.pre-phi81, %70 ]
  %.04658 = phi i32 [ %2, %.lr.ph60 ], [ %.pre-phi, %70 ]
  %40 = load i32, ptr %30, align 4, !tbaa !36
  %41 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %39) #1
  %43 = load i32, ptr %42, align 4, !tbaa !35
  %44 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %45 = add nsw i32 %.04658, 1
  %46 = sext i32 %45 to i64
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #1
  %48 = load i32, ptr %47, align 4, !tbaa !35
  %49 = icmp slt i32 %43, %48
  br i1 %49, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %38
  %50 = sext i32 %43 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %50, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.04555 = phi i32 [ %40, %.lr.ph.preheader ], [ %58, %.lr.ph ]
  %51 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %11) #1
  %52 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv) #1
  %53 = load i32, ptr %52, align 4, !tbaa !35
  %54 = sext i32 %53 to i64
  %55 = tail call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %54) #1
  %56 = getelementptr inbounds i8, ptr %55, i64 12
  %57 = load i32, ptr %56, align 4, !tbaa !37
  %58 = sub nsw i32 %.04555, %57
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %59 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %46) #1
  %61 = load i32, ptr %60, align 4, !tbaa !35
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !38

._crit_edge:                                      ; preds = %.lr.ph, %38
  %.045.lcssa = phi i32 [ %40, %38 ], [ %58, %.lr.ph ]
  %64 = icmp slt i32 %.045.lcssa, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %._crit_edge
  %66 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %46) #1
  %68 = load i32, ptr %67, align 4, !tbaa !35
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr %67, align 4, !tbaa !35
  %.pre80 = sext i32 %.04658 to i64
  br label %70

70:                                               ; preds = %65, %._crit_edge
  %.pre-phi81 = phi i64 [ %.pre80, %65 ], [ %46, %._crit_edge ]
  %.pre-phi = phi i32 [ %.04658, %65 ], [ %45, %._crit_edge ]
  %71 = load i64, ptr %5, align 8, !tbaa !5
  %72 = add i64 %71, -1
  %73 = icmp ugt i64 %72, %.pre-phi81
  br i1 %73, label %38, label %._crit_edge61, !llvm.loop !40

74:                                               ; preds = %.lr.ph73, %105
  %.04371 = phi i32 [ %33, %.lr.ph73 ], [ %.pre-phi83, %105 ]
  %75 = load i32, ptr %35, align 4, !tbaa !36
  %76 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %77 = zext nneg i32 %.04371 to i64
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77) #1
  %79 = load i32, ptr %78, align 4, !tbaa !35
  %80 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %81 = add nsw i32 %.04371, -1
  %82 = zext nneg i32 %81 to i64
  %83 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #1
  %84 = load i32, ptr %83, align 4, !tbaa !35
  %.not.not63 = icmp sgt i32 %79, %84
  br i1 %.not.not63, label %.lr.ph67.preheader, label %._crit_edge68

.lr.ph67.preheader:                               ; preds = %74
  %85 = sext i32 %79 to i64
  br label %.lr.ph67

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %indvars.iv77 = phi i64 [ %85, %.lr.ph67.preheader ], [ %indvars.iv.next78, %.lr.ph67 ]
  %.04264 = phi i32 [ %75, %.lr.ph67.preheader ], [ %93, %.lr.ph67 ]
  %indvars.iv.next78 = add nsw i64 %indvars.iv77, -1
  %86 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %11) #1
  %87 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %indvars.iv.next78) #1
  %88 = load i32, ptr %87, align 4, !tbaa !35
  %89 = sext i32 %88 to i64
  %90 = tail call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %89) #1
  %91 = getelementptr inbounds i8, ptr %90, i64 12
  %92 = load i32, ptr %91, align 4, !tbaa !37
  %93 = sub nsw i32 %.04264, %92
  %94 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %95 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %82) #1
  %96 = load i32, ptr %95, align 4, !tbaa !35
  %97 = sext i32 %96 to i64
  %.not.not = icmp sgt i64 %indvars.iv.next78, %97
  br i1 %.not.not, label %.lr.ph67, label %._crit_edge68, !llvm.loop !41

._crit_edge68:                                    ; preds = %.lr.ph67, %74
  %.042.lcssa = phi i32 [ %75, %74 ], [ %93, %.lr.ph67 ]
  %98 = icmp slt i32 %.042.lcssa, 0
  br i1 %98, label %99, label %105

99:                                               ; preds = %._crit_edge68
  %100 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11) #1
  %101 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %82) #1
  %102 = load i32, ptr %101, align 4, !tbaa !35
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %101, align 4, !tbaa !35
  %104 = add nuw nsw i32 %.04371, 1
  br label %105

105:                                              ; preds = %99, %._crit_edge68
  %.pre-phi83 = phi i32 [ %.04371, %99 ], [ %81, %._crit_edge68 ]
  %.1 = phi i32 [ %104, %99 ], [ %.04371, %._crit_edge68 ]
  %106 = icmp sgt i32 %.1, 2
  br i1 %106, label %74, label %.loopexit, !llvm.loop !42

.loopexit:                                        ; preds = %105, %._crit_edge61, %3
  ret i1 %or.cond.not
}

attributes #0 = { 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 #1 = { 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, !26, i64 144}
!6 = !{!"_ZTS10GASolution", !7, i64 0, !24, i64 104, !24, i64 108, !26, i64 112, !27, i64 120, !26, i64 144, !31, i64 152, !31, i64 176, !24, i64 200}
!7 = !{!"_ZTS8Solution", !8, i64 8, !15, i64 32, !19, i64 56, !23, i64 80, !24, i64 100}
!8 = !{!"_ZTSSt6vectorI4NodeSaIS0_EE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseI4NodeSaIS0_EE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSSt6vectorI7VehicleSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI7VehicleSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTS4Node", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12, !25, i64 16}
!24 = !{!"int", !13, i64 0}
!25 = !{!"bool", !13, i64 0}
!26 = !{!"long", !13, i64 0}
!27 = !{!"_ZTSSt6vectorIdSaIdEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!31 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!35 = !{!24, !24, i64 0}
!36 = !{!7, !24, i64 100}
!37 = !{!23, !24, i64 12}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}
!42 = distinct !{!42, !39}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass