; LLVM IR from mentebinaria/maProc :: src/include/map (proclib)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13RemoteProcess13analyseMemoryEPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEElhmRSt6vectorIlSaIlEE(ptr noundef nonnull align 8 dereferenceable(61) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i8 noundef zeroext %4, i64 noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i16, align 2
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i8 %4, ptr %12, align 1, !tbaa !11
  store i64 %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  %28 = load ptr, ptr %8, align 8
  %29 = load i8, ptr %12, align 1, !tbaa !11
  %30 = zext i8 %29 to i32
  switch i32 %30, label %217 [
    i32 1, label %31
    i32 4, label %57
    i32 2, label %89
    i32 8, label %126
    i32 32, label %159
  ]

31:                                               ; preds = %7
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %53, %31
  %34 = load i64, ptr %15, align 8, !tbaa !9
  %35 = load i64, ptr %13, align 8, !tbaa !9
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %56

38:                                               ; preds = %33
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load i64, ptr %15, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = sext i8 %42 to i32
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %43, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %38
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %50

50:                                               ; preds = %48, %38
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %11, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %50
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = add i64 %54, 1
  store i64 %55, ptr %15, align 8, !tbaa !9
  br label %33, !llvm.loop !12

56:                                               ; preds = %37
  br label %218

57:                                               ; preds = %7
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %59 = call noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
  store i32 %59, ptr %16, align 4, !tbaa !14
  %60 = load i32, ptr %16, align 4, !tbaa !14
  %61 = icmp slt i32 %60, 2147483647
  br i1 %61, label %62, label %88

62:                                               ; preds = %57
  %63 = load i32, ptr %16, align 4, !tbaa !14
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %65, label %88

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %84, %65
  %67 = load i64, ptr %17, align 8, !tbaa !9
  %68 = load i64, ptr %13, align 8, !tbaa !9
  %69 = icmp ult i64 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %87

71:                                               ; preds = %66
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load i64, ptr %17, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %72, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = sext i8 %75 to i32
  %77 = load i32, ptr %16, align 4, !tbaa !14
  %78 = icmp eq i32 %76, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %71
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %81

81:                                               ; preds = %79, %71
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %11, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %81
  %85 = load i64, ptr %17, align 8, !tbaa !9
  %86 = add i64 %85, 1
  store i64 %86, ptr %17, align 8, !tbaa !9
  br label %66, !llvm.loop !16

87:                                               ; preds = %70
  br label %88

88:                                               ; preds = %87, %62, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %218

89:                                               ; preds = %7
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #5
  %91 = call noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
  %92 = trunc i32 %91 to i16
  store i16 %92, ptr %18, align 2, !tbaa !17
  %93 = load i16, ptr %18, align 2, !tbaa !17
  %94 = sext i16 %93 to i32
  %95 = icmp sle i32 %94, 65535
  br i1 %95, label %96, label %125

96:                                               ; preds = %89
  %97 = load i16, ptr %18, align 2, !tbaa !17
  %98 = sext i16 %97 to i32
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %100, label %125

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %121, %100
  %102 = load i64, ptr %19, align 8, !tbaa !9
  %103 = load i64, ptr %13, align 8, !tbaa !9
  %104 = icmp ult i64 %102, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %124

106:                                              ; preds = %101
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load i64, ptr %19, align 8, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %107, i64 %108
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = sext i8 %110 to i16
  %112 = zext i16 %111 to i32
  %113 = load i16, ptr %18, align 2, !tbaa !17
  %114 = sext i16 %113 to i32
  %115 = icmp eq i32 %112, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %106
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %118

118:                                              ; preds = %116, %106
  %119 = load i64, ptr %11, align 8, !tbaa !9
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %11, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %118
  %122 = load i64, ptr %19, align 8, !tbaa !9
  %123 = add i64 %122, 1
  store i64 %123, ptr %19, align 8, !tbaa !9
  br label %101, !llvm.loop !19

124:                                              ; preds = %105
  br label %125

125:                                              ; preds = %124, %96, %89
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #5
  br label %218

126:                                              ; preds = %7
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %128 = call noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
  %129 = sext i32 %128 to i64
  store i64 %129, ptr %20, align 8, !tbaa !9
  %130 = load i64, ptr %20, align 8, !tbaa !9
  %131 = icmp ult i64 %130, -1
  br i1 %131, label %132, label %158

132:                                              ; preds = %126
  %133 = load i64, ptr %20, align 8, !tbaa !9
  %134 = icmp sgt i64 %133, 0
  br i1 %134, label %135, label %158

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %154, %135
  %137 = load i64, ptr %21, align 8, !tbaa !9
  %138 = load i64, ptr %13, align 8, !tbaa !9
  %139 = icmp ult i64 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %157

141:                                              ; preds = %136
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load i64, ptr %21, align 8, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %142, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !11
  %146 = sext i8 %145 to i64
  %147 = load i64, ptr %20, align 8, !tbaa !9
  %148 = icmp eq i64 %146, %147
  br i1 %148, label %149, label %151

149:                                              ; preds = %141
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %150, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %151

151:                                              ; preds = %149, %141
  %152 = load i64, ptr %11, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %11, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %151
  %155 = load i64, ptr %21, align 8, !tbaa !9
  %156 = add i64 %155, 1
  store i64 %156, ptr %21, align 8, !tbaa !9
  br label %136, !llvm.loop !20

157:                                              ; preds = %140
  br label %158

158:                                              ; preds = %157, %132, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %218

159:                                              ; preds = %7
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %212, %159
  %162 = load i64, ptr %23, align 8, !tbaa !9
  %163 = load i64, ptr %13, align 8, !tbaa !9
  %164 = icmp ult i64 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  store i32 15, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %216

166:                                              ; preds = %161
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load i64, ptr %23, align 8, !tbaa !9
  %169 = getelementptr inbounds i8, ptr %167, i64 %168
  %170 = load i8, ptr %169, align 1, !tbaa !11
  %171 = sext i8 %170 to i32
  %172 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
          to label %173 unwind label %183

173:                                              ; preds = %166
  %174 = load i8, ptr %172, align 1, !tbaa !11
  %175 = sext i8 %174 to i32
  %176 = icmp eq i32 %171, %175
  br i1 %176, label %177, label %209

177:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %196, %177
  %179 = load i64, ptr %27, align 8, !tbaa !9
  %180 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %181 = icmp ult i64 %179, %180
  br i1 %181, label %187, label %182

182:                                              ; preds = %178
  store i32 18, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %203

183:                                              ; preds = %205, %166
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %25, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %26, align 4
  br label %215

187:                                              ; preds = %178
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = load i64, ptr %23, align 8, !tbaa !9
  %190 = load i64, ptr %27, align 8, !tbaa !9
  %191 = add i64 %189, %190
  %192 = getelementptr inbounds i8, ptr %188, i64 %191
  %193 = load i8, ptr %192, align 1, !tbaa !11
  %194 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %22, i8 noundef signext %193)
          to label %195 unwind label %199

195:                                              ; preds = %187
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %27, align 8, !tbaa !9
  %198 = add i64 %197, 1
  store i64 %198, ptr %27, align 8, !tbaa !9
  br label %178, !llvm.loop !21

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %25, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %215

203:                                              ; preds = %182
  %204 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  br i1 %204, label %205, label %208

205:                                              ; preds = %203
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %206, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %207 unwind label %183

207:                                              ; preds = %205
  br label %208

208:                                              ; preds = %207, %203
  br label %209

209:                                              ; preds = %208, %173
  %210 = load i64, ptr %11, align 8, !tbaa !9
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %11, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %209
  %213 = load i64, ptr %23, align 8, !tbaa !9
  %214 = add i64 %213, 1
  store i64 %214, ptr %23, align 8, !tbaa !9
  br label %161, !llvm.loop !22

215:                                              ; preds = %199, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %219

216:                                              ; preds = %165
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %218

217:                                              ; preds = %7
  br label %218

218:                                              ; preds = %217, %216, %158, %125, %88, %56
  ret void

219:                                              ; preds = %215
  %220 = load ptr, ptr %25, align 8
  %221 = load i32, ptr %26, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #3

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !13}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13RemoteProcess13analyseMemoryEPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEElhmRSt6vectorIlSaIlEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(61) %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, i8 noundef zeroext %4, i64 noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  store i64 %3, ptr %8, align 8, !tbaa !5
  switch i8 %4, label %.loopexit [
    i8 1, label %10
    i8 4, label %21
    i8 2, label %35
    i8 8, label %51
    i8 32, label %65
  ]

10:                                               ; preds = %7
  tail call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %.not93 = icmp eq i64 %5, 0
  br i1 %.not93, label %.loopexit, label %.lr.ph88

.lr.ph88:                                         ; preds = %10, %17
  %.06286 = phi i64 [ %20, %17 ], [ 0, %10 ]
  %11 = getelementptr inbounds i8, ptr %1, i64 %.06286
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %14 = load i8, ptr %13, align 1, !tbaa !9
  %15 = icmp eq i8 %12, %14
  br i1 %15, label %16, label %17

16:                                               ; preds = %.lr.ph88
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  br label %17

17:                                               ; preds = %16, %.lr.ph88
  %18 = load i64, ptr %8, align 8, !tbaa !5
  %19 = add nsw i64 %18, 1
  store i64 %19, ptr %8, align 8, !tbaa !5
  %20 = add nuw i64 %.06286, 1
  %exitcond100.not = icmp eq i64 %20, %5
  br i1 %exitcond100.not, label %.loopexit, label %.lr.ph88, !llvm.loop !10

21:                                               ; preds = %7
  tail call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %22 = tail call noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
  %23 = add i32 %22, -1
  %or.cond = icmp ult i32 %23, 2147483646
  %24 = icmp ne i64 %5, 0
  %or.cond89 = and i1 %or.cond, %24
  br i1 %or.cond89, label %.lr.ph85, label %.loopexit

.lr.ph85:                                         ; preds = %21, %31
  %25 = phi i64 [ %33, %31 ], [ %3, %21 ]
  %.06484 = phi i64 [ %34, %31 ], [ 0, %21 ]
  %26 = getelementptr inbounds i8, ptr %1, i64 %.06484
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %22, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %.lr.ph85
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %.pre102 = load i64, ptr %8, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %30, %.lr.ph85
  %32 = phi i64 [ %.pre102, %30 ], [ %25, %.lr.ph85 ]
  %33 = add nsw i64 %32, 1
  store i64 %33, ptr %8, align 8, !tbaa !5
  %34 = add nuw i64 %.06484, 1
  %exitcond99.not = icmp eq i64 %34, %5
  br i1 %exitcond99.not, label %.loopexit, label %.lr.ph85, !llvm.loop !12

35:                                               ; preds = %7
  tail call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %36 = tail call noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
  %sext = shl i32 %36, 16
  %37 = ashr exact i32 %sext, 16
  %38 = icmp sgt i32 %37, 0
  %39 = icmp ne i64 %5, 0
  %or.cond90 = and i1 %38, %39
  br i1 %or.cond90, label %.lr.ph83, label %.loopexit

.lr.ph83:                                         ; preds = %35, %47
  %40 = phi i64 [ %49, %47 ], [ %3, %35 ]
  %.06382 = phi i64 [ %50, %47 ], [ 0, %35 ]
  %41 = getelementptr inbounds i8, ptr %1, i64 %.06382
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = sext i8 %42 to i32
  %44 = and i32 %43, 65535
  %45 = icmp eq i32 %44, %37
  br i1 %45, label %46, label %47

46:                                               ; preds = %.lr.ph83
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %.pre101 = load i64, ptr %8, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %46, %.lr.ph83
  %48 = phi i64 [ %.pre101, %46 ], [ %40, %.lr.ph83 ]
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %8, align 8, !tbaa !5
  %50 = add nuw i64 %.06382, 1
  %exitcond98.not = icmp eq i64 %50, %5
  br i1 %exitcond98.not, label %.loopexit, label %.lr.ph83, !llvm.loop !13

51:                                               ; preds = %7
  tail call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %52 = tail call noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
  %53 = icmp sgt i32 %52, 0
  %54 = icmp ne i64 %5, 0
  %or.cond91 = and i1 %53, %54
  br i1 %or.cond91, label %.lr.ph81, label %.loopexit

.lr.ph81:                                         ; preds = %51, %61
  %55 = phi i64 [ %63, %61 ], [ %3, %51 ]
  %.06180 = phi i64 [ %64, %61 ], [ 0, %51 ]
  %56 = getelementptr inbounds i8, ptr %1, i64 %.06180
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %58 = sext i8 %57 to i32
  %59 = icmp eq i32 %52, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %.lr.ph81
  call void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %.pre = load i64, ptr %8, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %60, %.lr.ph81
  %62 = phi i64 [ %.pre, %60 ], [ %55, %.lr.ph81 ]
  %63 = add nsw i64 %62, 1
  store i64 %63, ptr %8, align 8, !tbaa !5
  %64 = add nuw i64 %.06180, 1
  %exitcond97.not = icmp eq i64 %64, %5
  br i1 %exitcond97.not, label %.loopexit, label %.lr.ph81, !llvm.loop !14

65:                                               ; preds = %7
  tail call void @_ZNSt6vectorIlSaIlEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge79, label %.lr.ph78

._crit_edge79:                                    ; preds = %85, %65
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %.loopexit

.lr.ph78:                                         ; preds = %65, %85
  %.06076 = phi i64 [ %88, %85 ], [ 0, %65 ]
  %66 = getelementptr inbounds i8, ptr %1, i64 %.06076
  %67 = load i8, ptr %66, align 1, !tbaa !9
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %69 = load i8, ptr %68, align 1, !tbaa !9
  %70 = icmp eq i8 %67, %69
  br i1 %70, label %.preheader74, label %85

.preheader74:                                     ; preds = %.lr.ph78
  %71 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %.not92 = icmp eq i64 %71, 0
  br i1 %.not92, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %78, %.preheader74
  %72 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  br i1 %72, label %84, label %85

73:                                               ; preds = %84
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %89

.lr.ph:                                           ; preds = %.preheader74, %78
  %.075 = phi i64 [ %79, %78 ], [ 0, %.preheader74 ]
  %75 = getelementptr i8, ptr %66, i64 %.075
  %76 = load i8, ptr %75, align 1, !tbaa !9
  %77 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 noundef signext %76)
          to label %78 unwind label %82

78:                                               ; preds = %.lr.ph
  %79 = add nuw i64 %.075, 1
  %80 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %81 = icmp ult i64 %79, %80
  br i1 %81, label %.lr.ph, label %._crit_edge, !llvm.loop !15

82:                                               ; preds = %.lr.ph
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %89

84:                                               ; preds = %._crit_edge
  invoke void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %85 unwind label %73

85:                                               ; preds = %._crit_edge, %84, %.lr.ph78
  %86 = load i64, ptr %8, align 8, !tbaa !5
  %87 = add nsw i64 %86, 1
  store i64 %87, ptr %8, align 8, !tbaa !5
  %88 = add nuw i64 %.06076, 1
  %exitcond.not = icmp eq i64 %88, %5
  br i1 %exitcond.not, label %._crit_edge79, label %.lr.ph78, !llvm.loop !16

89:                                               ; preds = %82, %73
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %74, %73 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  resume { ptr, i32 } %.pn

.loopexit:                                        ; preds = %61, %47, %31, %17, %10, %51, %35, %21, %7, %._crit_edge79
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass