; LLVM IR from mtsamis/box2d-optimized :: testbed/settings.ll (ZN8Settings4LoadEv)

; 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.sajson::document" = type { %"class.sajson::mutable_string_view", %"class.sajson::internal::ownership", i8, ptr, i64, i64, i32, i32, [128 x i8] }
%"class.sajson::mutable_string_view" = type { i64, ptr, %"class.sajson::internal::allocated_buffer" }
%"class.sajson::internal::allocated_buffer" = type { ptr }
%"class.sajson::internal::ownership" = type { ptr }
%"class.sajson::dynamic_allocation" = type { i64, i64 }
%"class.sajson::value" = type { i8, ptr, ptr }
%"class.sajson::string" = type { ptr, i64 }
%struct.Settings = type <{ i32, i32, i32, float, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8] }>

@_ZL8fileName = external hidden global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Settings4LoadEv(ptr noundef nonnull align 4 dereferenceable(45) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.sajson::document", align 8
  %9 = alloca %"class.sajson::dynamic_allocation", align 8
  %10 = alloca %"class.sajson::mutable_string_view", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.sajson::value", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.sajson::string", align 8
  %17 = alloca %"class.sajson::value", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  %19 = load ptr, ptr @_ZL8fileName, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZL9sReadFileRPcRiPKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef %19)
  %21 = zext i1 %20 to i8
  store i8 %21, ptr %5, align 1, !tbaa !11
  %22 = load i8, ptr %5, align 1, !tbaa !11, !range !13, !noundef !14
  %23 = trunc i8 %22 to i1
  %24 = zext i1 %23 to i32
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %1
  store i32 1, ptr %6, align 4
  br label %226

27:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZN6sajson18dynamic_allocationC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef 0, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN6sajson19mutable_string_viewC2EmPc(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %29, ptr noundef %30)
  invoke void @_ZN6sajson5parseINS_18dynamic_allocationENS_19mutable_string_viewEEENS_8documentERKT_RKT0_(ptr dead_on_unwind writable sret(%"class.sajson::document") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %31 unwind label %38

31:                                               ; preds = %27
  call void @_ZN6sajson19mutable_string_viewD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  store ptr %8, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = invoke noundef zeroext i1 @_ZNK6sajson8document8is_validEv(ptr noundef nonnull align 8 dereferenceable(200) %32)
          to label %34 unwind label %42

34:                                               ; preds = %31
  %35 = zext i1 %33 to i32
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %46

37:                                               ; preds = %34
  store i32 1, ptr %6, align 4
  br label %225

38:                                               ; preds = %27
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %11, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %12, align 4
  call void @_ZN6sajson19mutable_string_viewD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %232

42:                                               ; preds = %31
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %11, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %12, align 4
  br label %231

46:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK6sajson8document8get_rootEv(ptr dead_on_unwind writable sret(%"class.sajson::value") align 8 %13, ptr noundef nonnull align 8 dereferenceable(200) %47)
          to label %48 unwind label %57

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %49 = invoke noundef i64 @_ZNK6sajson5value10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %50 unwind label %61

50:                                               ; preds = %48
  %51 = trunc i64 %49 to i32
  store i32 %51, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %219, %50
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %14, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %65, label %56

56:                                               ; preds = %52
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %223

57:                                               ; preds = %46
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %11, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %12, align 4
  br label %230

61:                                               ; preds = %48
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  br label %229

65:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = invoke { ptr, i64 } @_ZNK6sajson5value14get_object_keyEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %67)
          to label %69 unwind label %92

69:                                               ; preds = %65
  %70 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %71 = extractvalue { ptr, i64 } %68, 0
  store ptr %71, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %73 = extractvalue { ptr, i64 } %68, 1
  store i64 %73, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  invoke void @_ZNK6sajson5value16get_object_valueEm(ptr dead_on_unwind writable sret(%"class.sajson::value") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %75)
          to label %76 unwind label %96

76:                                               ; preds = %69
  %77 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %78 unwind label %96

78:                                               ; preds = %76
  %79 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %80 unwind label %96

80:                                               ; preds = %78
  %81 = call i32 @strncmp(ptr noundef %77, ptr noundef @.str.25, i64 noundef %79) #7
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %101

83:                                               ; preds = %80
  %84 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %85 unwind label %96

85:                                               ; preds = %83
  %86 = zext i8 %84 to i32
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %100

88:                                               ; preds = %85
  %89 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %90 unwind label %96

90:                                               ; preds = %88
  %91 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 0
  store i32 %89, ptr %91, align 4, !tbaa !15
  br label %100

92:                                               ; preds = %65
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  br label %222

96:                                               ; preds = %206, %199, %194, %192, %187, %182, %177, %175, %170, %165, %160, %158, %152, %147, %142, %137, %135, %130, %125, %120, %118, %113, %108, %103, %101, %88, %83, %78, %76, %69
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %11, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %222

100:                                              ; preds = %90, %85
  store i32 4, ptr %6, align 4
  br label %216

101:                                              ; preds = %80
  %102 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %103 unwind label %96

103:                                              ; preds = %101
  %104 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %105 unwind label %96

105:                                              ; preds = %103
  %106 = call i32 @strncmp(ptr noundef %102, ptr noundef @.str.26, i64 noundef %104) #7
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %118

108:                                              ; preds = %105
  %109 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %110 unwind label %96

110:                                              ; preds = %108
  %111 = zext i8 %109 to i32
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %117

113:                                              ; preds = %110
  %114 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %115 unwind label %96

115:                                              ; preds = %113
  %116 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 1
  store i32 %114, ptr %116, align 4, !tbaa !18
  br label %117

117:                                              ; preds = %115, %110
  store i32 4, ptr %6, align 4
  br label %216

118:                                              ; preds = %105
  %119 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %120 unwind label %96

120:                                              ; preds = %118
  %121 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %122 unwind label %96

122:                                              ; preds = %120
  %123 = call i32 @strncmp(ptr noundef %119, ptr noundef @.str.27, i64 noundef %121) #7
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %135

125:                                              ; preds = %122
  %126 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %127 unwind label %96

127:                                              ; preds = %125
  %128 = zext i8 %126 to i32
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %134

130:                                              ; preds = %127
  %131 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %132 unwind label %96

132:                                              ; preds = %130
  %133 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 2
  store i32 %131, ptr %133, align 4, !tbaa !19
  br label %134

134:                                              ; preds = %132, %127
  store i32 4, ptr %6, align 4
  br label %216

135:                                              ; preds = %122
  %136 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %137 unwind label %96

137:                                              ; preds = %135
  %138 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %139 unwind label %96

139:                                              ; preds = %137
  %140 = call i32 @strncmp(ptr noundef %136, ptr noundef @.str.28, i64 noundef %138) #7
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %158

142:                                              ; preds = %139
  %143 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %144 unwind label %96

144:                                              ; preds = %142
  %145 = zext i8 %143 to i32
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %152, label %147

147:                                              ; preds = %144
  %148 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %149 unwind label %96

149:                                              ; preds = %147
  %150 = zext i8 %148 to i32
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %157

152:                                              ; preds = %149, %144
  %153 = invoke noundef double @_ZNK6sajson5value16get_number_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %154 unwind label %96

154:                                              ; preds = %152
  %155 = fptrunc double %153 to float
  %156 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 3
  store float %155, ptr %156, align 4, !tbaa !20
  br label %157

157:                                              ; preds = %154, %149
  store i32 4, ptr %6, align 4
  br label %216

158:                                              ; preds = %139
  %159 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %160 unwind label %96

160:                                              ; preds = %158
  %161 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %162 unwind label %96

162:                                              ; preds = %160
  %163 = call i32 @strncmp(ptr noundef %159, ptr noundef @.str.29, i64 noundef %161) #7
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %175

165:                                              ; preds = %162
  %166 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %167 unwind label %96

167:                                              ; preds = %165
  %168 = zext i8 %166 to i32
  %169 = icmp eq i32 %168, 0
  br i1 %169, label %170, label %174

170:                                              ; preds = %167
  %171 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %172 unwind label %96

172:                                              ; preds = %170
  %173 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 4
  store i32 %171, ptr %173, align 4, !tbaa !21
  br label %174

174:                                              ; preds = %172, %167
  store i32 4, ptr %6, align 4
  br label %216

175:                                              ; preds = %162
  %176 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %177 unwind label %96

177:                                              ; preds = %175
  %178 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %179 unwind label %96

179:                                              ; preds = %177
  %180 = call i32 @strncmp(ptr noundef %176, ptr noundef @.str.30, i64 noundef %178) #7
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %192

182:                                              ; preds = %179
  %183 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %184 unwind label %96

184:                                              ; preds = %182
  %185 = zext i8 %183 to i32
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %184
  %188 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %189 unwind label %96

189:                                              ; preds = %187
  %190 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 5
  store i32 %188, ptr %190, align 4, !tbaa !22
  br label %191

191:                                              ; preds = %189, %184
  store i32 4, ptr %6, align 4
  br label %216

192:                                              ; preds = %179
  %193 = invoke noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %194 unwind label %96

194:                                              ; preds = %192
  %195 = invoke noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %196 unwind label %96

196:                                              ; preds = %194
  %197 = call i32 @strncmp(ptr noundef %193, ptr noundef @.str.31, i64 noundef %195) #7
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %215

199:                                              ; preds = %196
  %200 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %201 unwind label %96

201:                                              ; preds = %199
  %202 = zext i8 %200 to i32
  %203 = icmp eq i32 %202, 3
  br i1 %203, label %204, label %206

204:                                              ; preds = %201
  %205 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 7
  store i8 0, ptr %205, align 4, !tbaa !23
  br label %214

206:                                              ; preds = %201
  %207 = invoke noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %208 unwind label %96

208:                                              ; preds = %206
  %209 = zext i8 %207 to i32
  %210 = icmp eq i32 %209, 4
  br i1 %210, label %211, label %213

211:                                              ; preds = %208
  %212 = getelementptr inbounds %struct.Settings, ptr %18, i32 0, i32 7
  store i8 1, ptr %212, align 4, !tbaa !23
  br label %213

213:                                              ; preds = %211, %208
  br label %214

214:                                              ; preds = %213, %204
  store i32 4, ptr %6, align 4
  br label %216

215:                                              ; preds = %196
  store i32 0, ptr %6, align 4
  br label %216

216:                                              ; preds = %215, %214, %191, %174, %157, %134, %117, %100
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  %217 = load i32, ptr %6, align 4
  switch i32 %217, label %238 [
    i32 0, label %218
    i32 4, label %219
  ]

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218, %216
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %15, align 4, !tbaa !9
  br label %52, !llvm.loop !24

222:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %229

223:                                              ; preds = %56
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %224) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  store i32 0, ptr %6, align 4
  br label %225

225:                                              ; preds = %223, %37
  call void @_ZN6sajson8documentD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %8) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %226

226:                                              ; preds = %225, %26
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %227 = load i32, ptr %6, align 4
  switch i32 %227, label %238 [
    i32 0, label %228
    i32 1, label %228
  ]

228:                                              ; preds = %226, %226
  ret void

229:                                              ; preds = %222, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %230

230:                                              ; preds = %229, %57
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %231

231:                                              ; preds = %230, %42
  call void @_ZN6sajson8documentD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %8) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr %8) #6
  br label %232

232:                                              ; preds = %231, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %11, align 8
  %235 = load i32, ptr %12, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237

238:                                              ; preds = %226, %216
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL9sReadFileRPcRiPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6sajson5parseINS_18dynamic_allocationENS_19mutable_string_viewEEENS_8documentERKT_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.sajson::document") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6sajson18dynamic_allocationC2Emm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sajson19mutable_string_viewD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6sajson8document8get_rootEv(ptr dead_on_unwind noalias writable sret(%"class.sajson::value") align 8, ptr noundef nonnull align 8 dereferenceable(200)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6sajson5value16get_object_valueEm(ptr dead_on_unwind noalias writable sret(%"class.sajson::value") align 8, ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sajson8documentD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind willreturn memory(read) "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 "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 = { nounwind willreturn memory(read) }

!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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS8Settings", !10, i64 0, !10, i64 4, !10, i64 8, !17, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !12, i64 28, !12, i64 29, !12, i64 30, !12, i64 31, !12, i64 32, !12, i64 33, !12, i64 34, !12, i64 35, !12, i64 36, !12, i64 37, !12, i64 38, !12, i64 39, !12, i64 40, !12, i64 41, !12, i64 42, !12, i64 43, !12, i64 44}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !10, i64 4}
!19 = !{!16, !10, i64 8}
!20 = !{!16, !17, i64 12}
!21 = !{!16, !10, i64 16}
!22 = !{!16, !10, i64 20}
!23 = !{!16, !12, i64 28}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.sajson::document" = type { %"class.sajson::mutable_string_view", %"class.sajson::internal::ownership", i8, ptr, i64, i64, i32, i32, [128 x i8] }
%"class.sajson::mutable_string_view" = type { i64, ptr, %"class.sajson::internal::allocated_buffer" }
%"class.sajson::internal::allocated_buffer" = type { ptr }
%"class.sajson::internal::ownership" = type { ptr }
%"class.sajson::dynamic_allocation" = type { i64, i64 }
%"class.sajson::value" = type { i8, ptr, ptr }
%"class.sajson::string" = type { ptr, i64 }

@_ZL8fileName = external hidden local_unnamed_addr global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Settings4LoadEv(ptr nocapture noundef nonnull writeonly align 4 dereferenceable(45) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.sajson::document", align 8
  %5 = alloca %"class.sajson::dynamic_allocation", align 8
  %6 = alloca %"class.sajson::mutable_string_view", align 8
  %7 = alloca %"class.sajson::value", align 8
  %8 = alloca %"class.sajson::string", align 8
  %9 = alloca %"class.sajson::value", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  %10 = load ptr, ptr @_ZL8fileName, align 8, !tbaa !5
  %11 = call noundef zeroext i1 @_ZL9sReadFileRPcRiPKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef %10)
  br i1 %11, label %12, label %133

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN6sajson18dynamic_allocationC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 0, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN6sajson19mutable_string_viewC2EmPc(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %14, ptr noundef %15)
  invoke void @_ZN6sajson5parseINS_18dynamic_allocationENS_19mutable_string_viewEEENS_8documentERKT_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.sajson::document") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %16 unwind label %18

16:                                               ; preds = %12
  call void @_ZN6sajson19mutable_string_viewD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %17 = call noundef zeroext i1 @_ZNK6sajson8document8is_validEv(ptr noundef nonnull align 8 dereferenceable(200) %4)
  br i1 %17, label %20, label %132

18:                                               ; preds = %12
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sajson19mutable_string_viewD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %135

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  invoke void @_ZNK6sajson8document8get_rootEv(ptr dead_on_unwind nonnull writable sret(%"class.sajson::value") align 8 %7, ptr noundef nonnull align 8 dereferenceable(200) %4)
          to label %21 unwind label %34

21:                                               ; preds = %20
  %22 = invoke noundef i64 @_ZNK6sajson5value10get_lengthEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %23 unwind label %36

23:                                               ; preds = %21
  %24 = trunc i64 %22 to i32
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %23
  %26 = getelementptr inbounds i8, ptr %8, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 28
  %28 = getelementptr inbounds i8, ptr %0, i64 20
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = getelementptr inbounds i8, ptr %0, i64 12
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = getelementptr inbounds i8, ptr %0, i64 4
  %wide.trip.count = and i64 %22, 2147483647
  br label %38

._crit_edge:                                      ; preds = %130, %23
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %132

34:                                               ; preds = %20
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %134

36:                                               ; preds = %21
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %134

38:                                               ; preds = %.lr.ph, %130
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %130 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %39 = invoke { ptr, i64 } @_ZNK6sajson5value14get_object_keyEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv)
          to label %40 unwind label %54

40:                                               ; preds = %38
  %41 = extractvalue { ptr, i64 } %39, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i64 } %39, 1
  store i64 %42, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZNK6sajson5value16get_object_valueEm(ptr dead_on_unwind nonnull writable sret(%"class.sajson::value") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv)
          to label %43 unwind label %56

43:                                               ; preds = %40
  %44 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %45 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %46 = call i32 @strncmp(ptr noundef %44, ptr noundef nonnull @.str.25, i64 noundef %45) #7
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %58

48:                                               ; preds = %43
  %49 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %50 = icmp eq i8 %49, 0
  br i1 %50, label %51, label %130

51:                                               ; preds = %48
  %52 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %53 unwind label %56

53:                                               ; preds = %51
  store i32 %52, ptr %0, align 4, !tbaa !11
  br label %130

54:                                               ; preds = %38
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %131

56:                                               ; preds = %114, %103, %91, %77, %66, %51, %40
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %131

58:                                               ; preds = %43
  %59 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %60 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %61 = call i32 @strncmp(ptr noundef %59, ptr noundef nonnull @.str.26, i64 noundef %60) #7
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %69

63:                                               ; preds = %58
  %64 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %65 = icmp eq i8 %64, 0
  br i1 %65, label %66, label %130

66:                                               ; preds = %63
  %67 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %68 unwind label %56

68:                                               ; preds = %66
  store i32 %67, ptr %32, align 4, !tbaa !15
  br label %130

69:                                               ; preds = %58
  %70 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %71 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %72 = call i32 @strncmp(ptr noundef %70, ptr noundef nonnull @.str.27, i64 noundef %71) #7
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %80

74:                                               ; preds = %69
  %75 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %76 = icmp eq i8 %75, 0
  br i1 %76, label %77, label %130

77:                                               ; preds = %74
  %78 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %79 unwind label %56

79:                                               ; preds = %77
  store i32 %78, ptr %31, align 4, !tbaa !16
  br label %130

80:                                               ; preds = %69
  %81 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %82 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %83 = call i32 @strncmp(ptr noundef %81, ptr noundef nonnull @.str.28, i64 noundef %82) #7
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %95

85:                                               ; preds = %80
  %86 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %87 = icmp eq i8 %86, 1
  br i1 %87, label %91, label %88

88:                                               ; preds = %85
  %89 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %90 = icmp eq i8 %89, 0
  br i1 %90, label %91, label %130

91:                                               ; preds = %88, %85
  %92 = invoke noundef double @_ZNK6sajson5value16get_number_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %93 unwind label %56

93:                                               ; preds = %91
  %94 = fptrunc double %92 to float
  store float %94, ptr %30, align 4, !tbaa !17
  br label %130

95:                                               ; preds = %80
  %96 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %97 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %98 = call i32 @strncmp(ptr noundef %96, ptr noundef nonnull @.str.29, i64 noundef %97) #7
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %106

100:                                              ; preds = %95
  %101 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %102 = icmp eq i8 %101, 0
  br i1 %102, label %103, label %130

103:                                              ; preds = %100
  %104 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %105 unwind label %56

105:                                              ; preds = %103
  store i32 %104, ptr %29, align 4, !tbaa !18
  br label %130

106:                                              ; preds = %95
  %107 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %108 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %109 = call i32 @strncmp(ptr noundef %107, ptr noundef nonnull @.str.30, i64 noundef %108) #7
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %117

111:                                              ; preds = %106
  %112 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %113 = icmp eq i8 %112, 0
  br i1 %113, label %114, label %130

114:                                              ; preds = %111
  %115 = invoke noundef i32 @_ZNK6sajson5value17get_integer_valueEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %116 unwind label %56

116:                                              ; preds = %114
  store i32 %115, ptr %28, align 4, !tbaa !19
  br label %130

117:                                              ; preds = %106
  %118 = call noundef ptr @_ZNK6sajson6string4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %119 = call noundef i64 @_ZNK6sajson6string6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %120 = call i32 @strncmp(ptr noundef %118, ptr noundef nonnull @.str.31, i64 noundef %119) #7
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %130

122:                                              ; preds = %117
  %123 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %124 = icmp eq i8 %123, 3
  br i1 %124, label %125, label %126

125:                                              ; preds = %122
  store i8 0, ptr %27, align 4, !tbaa !20
  br label %130

126:                                              ; preds = %122
  %127 = call noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %128 = icmp eq i8 %127, 4
  br i1 %128, label %129, label %130

129:                                              ; preds = %126
  store i8 1, ptr %27, align 4, !tbaa !20
  br label %130

130:                                              ; preds = %117, %125, %129, %126, %111, %116, %100, %105, %88, %93, %74, %79, %63, %68, %48, %53
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %38, !llvm.loop !21

131:                                              ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %134

132:                                              ; preds = %16, %._crit_edge
  call void @_ZN6sajson8documentD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %4) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %4) #6
  br label %133

133:                                              ; preds = %1, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

134:                                              ; preds = %36, %131, %34
  %.pn.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %.pn, %131 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN6sajson8documentD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %4) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %4) #6
  br label %135

135:                                              ; preds = %134, %18
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %134 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL9sReadFileRPcRiPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6sajson5parseINS_18dynamic_allocationENS_19mutable_string_viewEEENS_8documentERKT_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.sajson::document") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6sajson18dynamic_allocationC2Emm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sajson19mutable_string_viewD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6sajson8document8get_rootEv(ptr dead_on_unwind noalias writable sret(%"class.sajson::value") align 8, ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK6sajson5value14get_object_keyEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6sajson5value16get_object_valueEm(ptr dead_on_unwind noalias writable sret(%"class.sajson::value") align 8, ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK6sajson5value8get_typeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sajson8documentD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3 align 2

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

!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, !10, i64 0}
!12 = !{!"_ZTS8Settings", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !14, i64 28, !14, i64 29, !14, i64 30, !14, i64 31, !14, i64 32, !14, i64 33, !14, i64 34, !14, i64 35, !14, i64 36, !14, i64 37, !14, i64 38, !14, i64 39, !14, i64 40, !14, i64 41, !14, i64 42, !14, i64 43, !14, i64 44}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !10, i64 4}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !13, i64 12}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !10, i64 20}
!20 = !{!12, !14, i64 28}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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