; LLVM IR from caryll/otfcc :: lib/table/otl (dump)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.table_OTL = type { %struct.otl_LookupList, %struct.otl_FeatureList, %struct.otl_LangSystemList }
%struct.otl_LookupList = type { i64, i64, ptr }
%struct.otl_FeatureList = type { i64, i64, ptr }
%struct.otl_LangSystemList = type { i64, i64, ptr }
%struct.otfcc_Options = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr }
%struct.otfcc_ILogger = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otl_LanguageSystem = type { ptr, ptr, %struct.otl_FeatureRefList }
%struct.otl_FeatureRefList = type { i64, i64, ptr }
%struct.otl_Feature = type { ptr, %struct.otl_LookupRefList }
%struct.otl_LookupRefList = type { i64, i64, ptr }
%struct._otl_lookup = type { ptr, i32, i32, i16, %struct.otl_SubtableList }
%struct.otl_SubtableList = type { i64, i64, ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @otfcc_dumpOtl(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i16, align 2
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i16, align 2
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i16, align 2
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i16, align 2
  %25 = alloca i8, align 1
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i16, align 2
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %51

33:                                               ; preds = %4
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.table_OTL, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %struct.otl_LangSystemList, ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp ne i64 %37, 0
  br i1 %38, label %39, label %51

39:                                               ; preds = %33
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.table_OTL, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.otl_LookupList, ptr %41, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !13
  %44 = icmp ne i64 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %39
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.table_OTL, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds %struct.otl_FeatureList, ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !14
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %52, label %51

51:                                               ; preds = %45, %39, %33, %4
  br label %389

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.otfcc_Options, ptr %53, i32 0, i32 24
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = getelementptr inbounds %struct.otfcc_ILogger, ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.otfcc_Options, ptr %58, i32 0, i32 24
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = call ptr @sdsempty()
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %61, ptr noundef @.str, ptr noundef %62)
  call void %57(ptr noundef %60, ptr noundef %63)
  store i8 1, ptr %9, align 1, !tbaa !20
  br label %64

64:                                               ; preds = %380, %52
  %65 = load i8, ptr %9, align 1, !tbaa !20, !range !21, !noundef !22
  %66 = trunc i8 %65 to i1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %389

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %69 = call ptr @json_object_new(i64 noundef 3)
  store ptr %69, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.otfcc_Options, ptr %70, i32 0, i32 24
  %72 = load ptr, ptr %71, align 8, !tbaa !15
  %73 = getelementptr inbounds %struct.otfcc_ILogger, ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.otfcc_Options, ptr %75, i32 0, i32 24
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = call ptr @sdsempty()
  %79 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %78, ptr noundef @.str.1)
  call void %74(ptr noundef %77, ptr noundef %79)
  store i8 1, ptr %12, align 1, !tbaa !20
  br label %80

80:                                               ; preds = %183, %68
  %81 = load i8, ptr %12, align 1, !tbaa !20, !range !21, !noundef !22
  %82 = trunc i8 %81 to i1
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %192

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.table_OTL, ptr %85, i32 0, i32 2
  %87 = getelementptr inbounds %struct.otl_LangSystemList, ptr %86, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = call ptr @json_object_new(i64 noundef %88)
  store ptr %89, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #4
  store i16 0, ptr %14, align 2, !tbaa !23
  br label %90

90:                                               ; preds = %176, %84
  %91 = load i16, ptr %14, align 2, !tbaa !23
  %92 = zext i16 %91 to i64
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.table_OTL, ptr %93, i32 0, i32 2
  %95 = getelementptr inbounds %struct.otl_LangSystemList, ptr %94, i32 0, i32 0
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp ult i64 %92, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %90
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #4
  br label %179

99:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %100 = call ptr @json_object_new(i64 noundef 5)
  store ptr %100, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.table_OTL, ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds %struct.otl_LangSystemList, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = load i16, ptr %14, align 2, !tbaa !23
  %106 = zext i16 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  store ptr %108, ptr %16, align 8, !tbaa !5
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !26
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %122

113:                                              ; preds = %99
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !26
  %118 = getelementptr inbounds %struct.otl_Feature, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !28
  %120 = call ptr @json_string_new(ptr noundef %119)
  %121 = call ptr @json_object_push(ptr noundef %114, ptr noundef @.str.2, ptr noundef %120)
  br label %122

122:                                              ; preds = %113, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %123, i32 0, i32 2
  %125 = getelementptr inbounds %struct.otl_FeatureRefList, ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !30
  %127 = call ptr @json_array_new(i64 noundef %126)
  store ptr %127, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #4
  store i16 0, ptr %18, align 2, !tbaa !23
  br label %128

128:                                              ; preds = %162, %122
  %129 = load i16, ptr %18, align 2, !tbaa !23
  %130 = zext i16 %129 to i64
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds %struct.otl_FeatureRefList, ptr %132, i32 0, i32 0
  %134 = load i64, ptr %133, align 8, !tbaa !30
  %135 = icmp ult i64 %130, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %128
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #4
  br label %165

137:                                              ; preds = %128
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %138, i32 0, i32 2
  %140 = getelementptr inbounds %struct.otl_FeatureRefList, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !31
  %142 = load i16, ptr %18, align 2, !tbaa !23
  %143 = zext i16 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %161

147:                                              ; preds = %137
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %149, i32 0, i32 2
  %151 = getelementptr inbounds %struct.otl_FeatureRefList, ptr %150, i32 0, i32 2
  %152 = load ptr, ptr %151, align 8, !tbaa !31
  %153 = load i16, ptr %18, align 2, !tbaa !23
  %154 = zext i16 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.otl_Feature, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !28
  %159 = call ptr @json_string_new(ptr noundef %158)
  %160 = call ptr @json_array_push(ptr noundef %148, ptr noundef %159)
  br label %161

161:                                              ; preds = %147, %137
  br label %162

162:                                              ; preds = %161
  %163 = load i16, ptr %18, align 2, !tbaa !23
  %164 = add i16 %163, 1
  store i16 %164, ptr %18, align 2, !tbaa !23
  br label %128, !llvm.loop !32

165:                                              ; preds = %136
  %166 = load ptr, ptr %15, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = call ptr @preserialize(ptr noundef %167)
  %169 = call ptr @json_object_push(ptr noundef %166, ptr noundef @.str.3, ptr noundef %168)
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = load ptr, ptr %16, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.otl_LanguageSystem, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !34
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = call ptr @json_object_push(ptr noundef %170, ptr noundef %173, ptr noundef %174)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %176

176:                                              ; preds = %165
  %177 = load i16, ptr %14, align 2, !tbaa !23
  %178 = add i16 %177, 1
  store i16 %178, ptr %14, align 2, !tbaa !23
  br label %90, !llvm.loop !35

179:                                              ; preds = %98
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = call ptr @json_object_push(ptr noundef %180, ptr noundef @.str.4, ptr noundef %181)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %183

183:                                              ; preds = %179
  store i8 0, ptr %12, align 1, !tbaa !20
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.otfcc_Options, ptr %184, i32 0, i32 24
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = getelementptr inbounds %struct.otfcc_ILogger, ptr %186, i32 0, i32 8
  %188 = load ptr, ptr %187, align 8, !tbaa !36
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.otfcc_Options, ptr %189, i32 0, i32 24
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  call void %188(ptr noundef %191)
  br label %80, !llvm.loop !37

192:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.otfcc_Options, ptr %193, i32 0, i32 24
  %195 = load ptr, ptr %194, align 8, !tbaa !15
  %196 = getelementptr inbounds %struct.otfcc_ILogger, ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !18
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.otfcc_Options, ptr %198, i32 0, i32 24
  %200 = load ptr, ptr %199, align 8, !tbaa !15
  %201 = call ptr @sdsempty()
  %202 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %201, ptr noundef @.str.5)
  call void %197(ptr noundef %200, ptr noundef %202)
  store i8 1, ptr %19, align 1, !tbaa !20
  br label %203

203:                                              ; preds = %288, %192
  %204 = load i8, ptr %19, align 1, !tbaa !20, !range !21, !noundef !22
  %205 = trunc i8 %204 to i1
  br i1 %205, label %207, label %206

206:                                              ; preds = %203
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  br label %297

207:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.table_OTL, ptr %208, i32 0, i32 1
  %210 = getelementptr inbounds %struct.otl_FeatureList, ptr %209, i32 0, i32 0
  %211 = load i64, ptr %210, align 8, !tbaa !14
  %212 = call ptr @json_object_new(i64 noundef %211)
  store ptr %212, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #4
  store i16 0, ptr %21, align 2, !tbaa !23
  br label %213

213:                                              ; preds = %281, %207
  %214 = load i16, ptr %21, align 2, !tbaa !23
  %215 = zext i16 %214 to i64
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.table_OTL, ptr %216, i32 0, i32 1
  %218 = getelementptr inbounds %struct.otl_FeatureList, ptr %217, i32 0, i32 0
  %219 = load i64, ptr %218, align 8, !tbaa !14
  %220 = icmp ult i64 %215, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %213
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #4
  br label %284

222:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.table_OTL, ptr %223, i32 0, i32 1
  %225 = getelementptr inbounds %struct.otl_FeatureList, ptr %224, i32 0, i32 2
  %226 = load ptr, ptr %225, align 8, !tbaa !38
  %227 = load i16, ptr %21, align 2, !tbaa !23
  %228 = zext i16 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  store ptr %230, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %231 = load ptr, ptr %22, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.otl_Feature, ptr %231, i32 0, i32 1
  %233 = getelementptr inbounds %struct.otl_LookupRefList, ptr %232, i32 0, i32 0
  %234 = load i64, ptr %233, align 8, !tbaa !39
  %235 = call ptr @json_array_new(i64 noundef %234)
  store ptr %235, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #4
  store i16 0, ptr %24, align 2, !tbaa !23
  br label %236

236:                                              ; preds = %270, %222
  %237 = load i16, ptr %24, align 2, !tbaa !23
  %238 = zext i16 %237 to i64
  %239 = load ptr, ptr %22, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.otl_Feature, ptr %239, i32 0, i32 1
  %241 = getelementptr inbounds %struct.otl_LookupRefList, ptr %240, i32 0, i32 0
  %242 = load i64, ptr %241, align 8, !tbaa !39
  %243 = icmp ult i64 %238, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %236
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #4
  br label %273

245:                                              ; preds = %236
  %246 = load ptr, ptr %22, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.otl_Feature, ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds %struct.otl_LookupRefList, ptr %247, i32 0, i32 2
  %249 = load ptr, ptr %248, align 8, !tbaa !40
  %250 = load i16, ptr %24, align 2, !tbaa !23
  %251 = zext i16 %250 to i64
  %252 = getelementptr inbounds ptr, ptr %249, i64 %251
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  %254 = icmp ne ptr %253, null
  br i1 %254, label %255, label %269

255:                                              ; preds = %245
  %256 = load ptr, ptr %23, align 8, !tbaa !5
  %257 = load ptr, ptr %22, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.otl_Feature, ptr %257, i32 0, i32 1
  %259 = getelementptr inbounds %struct.otl_LookupRefList, ptr %258, i32 0, i32 2
  %260 = load ptr, ptr %259, align 8, !tbaa !40
  %261 = load i16, ptr %24, align 2, !tbaa !23
  %262 = zext i16 %261 to i64
  %263 = getelementptr inbounds ptr, ptr %260, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct._otl_lookup, ptr %264, i32 0, i32 0
  %266 = load ptr, ptr %265, align 8, !tbaa !41
  %267 = call ptr @json_string_new(ptr noundef %266)
  %268 = call ptr @json_array_push(ptr noundef %256, ptr noundef %267)
  br label %269

269:                                              ; preds = %255, %245
  br label %270

270:                                              ; preds = %269
  %271 = load i16, ptr %24, align 2, !tbaa !23
  %272 = add i16 %271, 1
  store i16 %272, ptr %24, align 2, !tbaa !23
  br label %236, !llvm.loop !44

273:                                              ; preds = %244
  %274 = load ptr, ptr %20, align 8, !tbaa !5
  %275 = load ptr, ptr %22, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.otl_Feature, ptr %275, i32 0, i32 0
  %277 = load ptr, ptr %276, align 8, !tbaa !28
  %278 = load ptr, ptr %23, align 8, !tbaa !5
  %279 = call ptr @preserialize(ptr noundef %278)
  %280 = call ptr @json_object_push(ptr noundef %274, ptr noundef %277, ptr noundef %279)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %281

281:                                              ; preds = %273
  %282 = load i16, ptr %21, align 2, !tbaa !23
  %283 = add i16 %282, 1
  store i16 %283, ptr %21, align 2, !tbaa !23
  br label %213, !llvm.loop !45

284:                                              ; preds = %221
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  %286 = load ptr, ptr %20, align 8, !tbaa !5
  %287 = call ptr @json_object_push(ptr noundef %285, ptr noundef @.str.3, ptr noundef %286)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %288

288:                                              ; preds = %284
  store i8 0, ptr %19, align 1, !tbaa !20
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.otfcc_Options, ptr %289, i32 0, i32 24
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = getelementptr inbounds %struct.otfcc_ILogger, ptr %291, i32 0, i32 8
  %293 = load ptr, ptr %292, align 8, !tbaa !36
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.otfcc_Options, ptr %294, i32 0, i32 24
  %296 = load ptr, ptr %295, align 8, !tbaa !15
  call void %293(ptr noundef %296)
  br label %203, !llvm.loop !46

297:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #4
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.otfcc_Options, ptr %298, i32 0, i32 24
  %300 = load ptr, ptr %299, align 8, !tbaa !15
  %301 = getelementptr inbounds %struct.otfcc_ILogger, ptr %300, i32 0, i32 4
  %302 = load ptr, ptr %301, align 8, !tbaa !18
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.otfcc_Options, ptr %303, i32 0, i32 24
  %305 = load ptr, ptr %304, align 8, !tbaa !15
  %306 = call ptr @sdsempty()
  %307 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %306, ptr noundef @.str.6)
  call void %302(ptr noundef %305, ptr noundef %307)
  store i8 1, ptr %25, align 1, !tbaa !20
  br label %308

308:                                              ; preds = %366, %297
  %309 = load i8, ptr %25, align 1, !tbaa !20, !range !21, !noundef !22
  %310 = trunc i8 %309 to i1
  br i1 %310, label %312, label %311

311:                                              ; preds = %308
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #4
  br label %375

312:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.table_OTL, ptr %313, i32 0, i32 0
  %315 = getelementptr inbounds %struct.otl_LookupList, ptr %314, i32 0, i32 0
  %316 = load i64, ptr %315, align 8, !tbaa !13
  %317 = call ptr @json_object_new(i64 noundef %316)
  store ptr %317, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.table_OTL, ptr %318, i32 0, i32 0
  %320 = getelementptr inbounds %struct.otl_LookupList, ptr %319, i32 0, i32 0
  %321 = load i64, ptr %320, align 8, !tbaa !13
  %322 = call ptr @json_array_new(i64 noundef %321)
  store ptr %322, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #4
  store i16 0, ptr %28, align 2, !tbaa !23
  br label %323

323:                                              ; preds = %356, %312
  %324 = load i16, ptr %28, align 2, !tbaa !23
  %325 = zext i16 %324 to i64
  %326 = load ptr, ptr %5, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.table_OTL, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds %struct.otl_LookupList, ptr %327, i32 0, i32 0
  %329 = load i64, ptr %328, align 8, !tbaa !13
  %330 = icmp ult i64 %325, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %323
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #4
  br label %359

332:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %333 = call ptr @json_object_new(i64 noundef 5)
  store ptr %333, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.table_OTL, ptr %334, i32 0, i32 0
  %336 = getelementptr inbounds %struct.otl_LookupList, ptr %335, i32 0, i32 2
  %337 = load ptr, ptr %336, align 8, !tbaa !47
  %338 = load i16, ptr %28, align 2, !tbaa !23
  %339 = zext i16 %338 to i64
  %340 = getelementptr inbounds ptr, ptr %337, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  store ptr %341, ptr %30, align 8, !tbaa !5
  %342 = load ptr, ptr %30, align 8, !tbaa !5
  %343 = load ptr, ptr %29, align 8, !tbaa !5
  call void @_dump_lookup(ptr noundef %342, ptr noundef %343)
  %344 = load ptr, ptr %26, align 8, !tbaa !5
  %345 = load ptr, ptr %30, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct._otl_lookup, ptr %345, i32 0, i32 0
  %347 = load ptr, ptr %346, align 8, !tbaa !41
  %348 = load ptr, ptr %29, align 8, !tbaa !5
  %349 = call ptr @json_object_push(ptr noundef %344, ptr noundef %347, ptr noundef %348)
  %350 = load ptr, ptr %27, align 8, !tbaa !5
  %351 = load ptr, ptr %30, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct._otl_lookup, ptr %351, i32 0, i32 0
  %353 = load ptr, ptr %352, align 8, !tbaa !41
  %354 = call ptr @json_string_new(ptr noundef %353)
  %355 = call ptr @json_array_push(ptr noundef %350, ptr noundef %354)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %356

356:                                              ; preds = %332
  %357 = load i16, ptr %28, align 2, !tbaa !23
  %358 = add i16 %357, 1
  store i16 %358, ptr %28, align 2, !tbaa !23
  br label %323, !llvm.loop !48

359:                                              ; preds = %331
  %360 = load ptr, ptr %11, align 8, !tbaa !5
  %361 = load ptr, ptr %26, align 8, !tbaa !5
  %362 = call ptr @json_object_push(ptr noundef %360, ptr noundef @.str.7, ptr noundef %361)
  %363 = load ptr, ptr %11, align 8, !tbaa !5
  %364 = load ptr, ptr %27, align 8, !tbaa !5
  %365 = call ptr @json_object_push(ptr noundef %363, ptr noundef @.str.8, ptr noundef %364)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %366

366:                                              ; preds = %359
  store i8 0, ptr %25, align 1, !tbaa !20
  %367 = load ptr, ptr %7, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.otfcc_Options, ptr %367, i32 0, i32 24
  %369 = load ptr, ptr %368, align 8, !tbaa !15
  %370 = getelementptr inbounds %struct.otfcc_ILogger, ptr %369, i32 0, i32 8
  %371 = load ptr, ptr %370, align 8, !tbaa !36
  %372 = load ptr, ptr %7, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.otfcc_Options, ptr %372, i32 0, i32 24
  %374 = load ptr, ptr %373, align 8, !tbaa !15
  call void %371(ptr noundef %374)
  br label %308, !llvm.loop !49

375:                                              ; preds = %311
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = load ptr, ptr %8, align 8, !tbaa !5
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = call ptr @json_object_push(ptr noundef %376, ptr noundef %377, ptr noundef %378)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %380

380:                                              ; preds = %375
  store i8 0, ptr %9, align 1, !tbaa !20
  %381 = load ptr, ptr %7, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.otfcc_Options, ptr %381, i32 0, i32 24
  %383 = load ptr, ptr %382, align 8, !tbaa !15
  %384 = getelementptr inbounds %struct.otfcc_ILogger, ptr %383, i32 0, i32 8
  %385 = load ptr, ptr %384, align 8, !tbaa !36
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.otfcc_Options, ptr %386, i32 0, i32 24
  %388 = load ptr, ptr %387, align 8, !tbaa !15
  call void %385(ptr noundef %388)
  br label %64, !llvm.loop !50

389:                                              ; preds = %67, %51
  ret void
}

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

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) #2

declare ptr @sdsempty() #2

declare ptr @json_object_new(i64 noundef) #2

declare ptr @json_object_push(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @json_string_new(ptr noundef) #2

declare ptr @json_array_new(i64 noundef) #2

declare ptr @json_array_push(ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @preserialize(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @_dump_lookup(ptr noundef, ptr noundef) #0

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

!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/C++ TBAA"}
!9 = !{!10, !12, i64 48}
!10 = !{!"", !11, i64 0, !11, i64 24, !11, i64 48}
!11 = !{!"", !12, i64 0, !12, i64 8, !6, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 0}
!14 = !{!10, !12, i64 24}
!15 = !{!16, !6, i64 32}
!16 = !{!"", !17, i64 0, !17, i64 1, !17, i64 2, !17, i64 3, !17, i64 4, !17, i64 5, !17, i64 6, !17, i64 7, !17, i64 8, !17, i64 9, !17, i64 10, !17, i64 11, !17, i64 12, !17, i64 13, !17, i64 14, !17, i64 15, !17, i64 16, !17, i64 17, !17, i64 18, !17, i64 19, !17, i64 20, !17, i64 21, !17, i64 22, !6, i64 24, !6, i64 32}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!19, !6, i64 32}
!19 = !{!"otfcc_ILogger", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!20 = !{!17, !17, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !24, i64 0}
!24 = !{!"short", !7, i64 0}
!25 = !{!10, !6, i64 64}
!26 = !{!27, !6, i64 8}
!27 = !{!"", !6, i64 0, !6, i64 8, !11, i64 16}
!28 = !{!29, !6, i64 0}
!29 = !{!"", !6, i64 0, !11, i64 8}
!30 = !{!27, !12, i64 16}
!31 = !{!27, !6, i64 32}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!27, !6, i64 0}
!35 = distinct !{!35, !33}
!36 = !{!19, !6, i64 64}
!37 = distinct !{!37, !33}
!38 = !{!10, !6, i64 40}
!39 = !{!29, !12, i64 8}
!40 = !{!29, !6, i64 24}
!41 = !{!42, !6, i64 0}
!42 = !{!"_otl_lookup", !6, i64 0, !43, i64 8, !43, i64 12, !24, i64 16, !11, i64 24}
!43 = !{!"int", !7, i64 0}
!44 = distinct !{!44, !33}
!45 = distinct !{!45, !33}
!46 = distinct !{!46, !33}
!47 = !{!10, !6, i64 16}
!48 = distinct !{!48, !33}
!49 = distinct !{!49, !33}
!50 = distinct !{!50, !33}


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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @otfcc_dumpOtl(ptr noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %154, label %5

5:                                                ; preds = %4
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %.not107 = icmp eq i64 %7, 0
  br i1 %.not107, label %154, label %8

8:                                                ; preds = %5
  %9 = load i64, ptr %0, align 8, !tbaa !12
  %.not108 = icmp eq i64 %9, 0
  br i1 %.not108, label %154, label %10

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i64, ptr %11, align 8, !tbaa !13
  %.not109 = icmp eq i64 %12, 0
  br i1 %.not109, label %154, label %.critedge

.critedge:                                        ; preds = %10
  %13 = getelementptr inbounds i8, ptr %2, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %14, i64 32
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %17 = tail call ptr @sdsempty() #3
  %18 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef %3) #3
  tail call void %16(ptr noundef %14, ptr noundef %18) #3
  %19 = tail call ptr @json_object_new(i64 noundef 3) #3
  %20 = load ptr, ptr %13, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %20, i64 32
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = tail call ptr @sdsempty() #3
  %24 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %23, ptr noundef nonnull @.str.1) #3
  tail call void %22(ptr noundef %20, ptr noundef %24) #3
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = tail call ptr @json_object_new(i64 noundef %25) #3
  %27 = load i64, ptr %6, align 8, !tbaa !5
  %.not131 = icmp eq i64 %27, 0
  br i1 %.not131, label %.critedge116, label %.lr.ph121

.lr.ph121:                                        ; preds = %.critedge
  %28 = getelementptr inbounds i8, ptr %0, i64 64
  br label %42

.critedge116:                                     ; preds = %._crit_edge, %.critedge
  %29 = tail call ptr @json_object_push(ptr noundef %19, ptr noundef nonnull @.str.4, ptr noundef %26) #3
  %30 = load ptr, ptr %13, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %30, i64 64
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  tail call void %32(ptr noundef %30) #3
  %33 = load ptr, ptr %13, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %33, i64 32
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = tail call ptr @sdsempty() #3
  %37 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %36, ptr noundef nonnull @.str.5) #3
  tail call void %35(ptr noundef %33, ptr noundef %37) #3
  %38 = load i64, ptr %11, align 8, !tbaa !13
  %39 = tail call ptr @json_object_new(i64 noundef %38) #3
  %40 = load i64, ptr %11, align 8, !tbaa !13
  %.not133 = icmp eq i64 %40, 0
  br i1 %.not133, label %.critedge118, label %.lr.ph127

.lr.ph127:                                        ; preds = %.critedge116
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  br label %98

42:                                               ; preds = %.lr.ph121, %._crit_edge
  %43 = phi i64 [ 0, %.lr.ph121 ], [ %65, %._crit_edge ]
  %.092120 = phi i16 [ 0, %.lr.ph121 ], [ %64, %._crit_edge ]
  %44 = tail call ptr @json_object_new(i64 noundef 5) #3
  %45 = load ptr, ptr %28, align 8, !tbaa !20
  %46 = getelementptr inbounds ptr, ptr %45, i64 %43
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !22
  %.not111 = icmp eq ptr %49, null
  br i1 %.not111, label %54, label %50

50:                                               ; preds = %42
  %51 = load ptr, ptr %49, align 8, !tbaa !24
  %52 = tail call ptr @json_string_new(ptr noundef %51) #3
  %53 = tail call ptr @json_object_push(ptr noundef %44, ptr noundef nonnull @.str.2, ptr noundef %52) #3
  br label %54

54:                                               ; preds = %50, %42
  %55 = getelementptr inbounds i8, ptr %47, i64 16
  %56 = load i64, ptr %55, align 8, !tbaa !26
  %57 = tail call ptr @json_array_new(i64 noundef %56) #3
  %58 = load i64, ptr %55, align 8, !tbaa !26
  %.not132 = icmp eq i64 %58, 0
  br i1 %.not132, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %54
  %59 = getelementptr inbounds i8, ptr %47, i64 32
  br label %68

._crit_edge:                                      ; preds = %78, %54
  %60 = tail call ptr @preserialize(ptr noundef %57)
  %61 = tail call ptr @json_object_push(ptr noundef %44, ptr noundef nonnull @.str.3, ptr noundef %60) #3
  %62 = load ptr, ptr %47, align 8, !tbaa !27
  %63 = tail call ptr @json_object_push(ptr noundef %26, ptr noundef %62, ptr noundef %44) #3
  %64 = add i16 %.092120, 1
  %65 = zext i16 %64 to i64
  %66 = load i64, ptr %6, align 8, !tbaa !5
  %67 = icmp ugt i64 %66, %65
  br i1 %67, label %42, label %.critedge116, !llvm.loop !28

68:                                               ; preds = %.lr.ph, %78
  %69 = phi i64 [ %58, %.lr.ph ], [ %79, %78 ]
  %70 = phi i64 [ 0, %.lr.ph ], [ %81, %78 ]
  %.095119 = phi i16 [ 0, %.lr.ph ], [ %80, %78 ]
  %71 = load ptr, ptr %59, align 8, !tbaa !30
  %72 = getelementptr inbounds ptr, ptr %71, i64 %70
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %.not112 = icmp eq ptr %73, null
  br i1 %.not112, label %78, label %74

74:                                               ; preds = %68
  %75 = load ptr, ptr %73, align 8, !tbaa !24
  %76 = tail call ptr @json_string_new(ptr noundef %75) #3
  %77 = tail call ptr @json_array_push(ptr noundef %57, ptr noundef %76) #3
  %.pre = load i64, ptr %55, align 8, !tbaa !26
  br label %78

78:                                               ; preds = %68, %74
  %79 = phi i64 [ %69, %68 ], [ %.pre, %74 ]
  %80 = add i16 %.095119, 1
  %81 = zext i16 %80 to i64
  %82 = icmp ugt i64 %79, %81
  br i1 %82, label %68, label %._crit_edge, !llvm.loop !31

.critedge118:                                     ; preds = %._crit_edge125, %.critedge116
  %83 = tail call ptr @json_object_push(ptr noundef %19, ptr noundef nonnull @.str.3, ptr noundef %39) #3
  %84 = load ptr, ptr %13, align 8, !tbaa !14
  %85 = getelementptr inbounds i8, ptr %84, i64 64
  %86 = load ptr, ptr %85, align 8, !tbaa !19
  tail call void %86(ptr noundef %84) #3
  %87 = load ptr, ptr %13, align 8, !tbaa !14
  %88 = getelementptr inbounds i8, ptr %87, i64 32
  %89 = load ptr, ptr %88, align 8, !tbaa !17
  %90 = tail call ptr @sdsempty() #3
  %91 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %90, ptr noundef nonnull @.str.6) #3
  tail call void %89(ptr noundef %87, ptr noundef %91) #3
  %92 = load i64, ptr %0, align 8, !tbaa !12
  %93 = tail call ptr @json_object_new(i64 noundef %92) #3
  %94 = load i64, ptr %0, align 8, !tbaa !12
  %95 = tail call ptr @json_array_new(i64 noundef %94) #3
  %96 = load i64, ptr %0, align 8, !tbaa !12
  %.not135 = icmp eq i64 %96, 0
  br i1 %.not135, label %._crit_edge130, label %.lr.ph129

.lr.ph129:                                        ; preds = %.critedge118
  %97 = getelementptr inbounds i8, ptr %0, i64 16
  br label %139

98:                                               ; preds = %.lr.ph127, %._crit_edge125
  %99 = phi i64 [ 0, %.lr.ph127 ], [ %112, %._crit_edge125 ]
  %.097126 = phi i16 [ 0, %.lr.ph127 ], [ %111, %._crit_edge125 ]
  %100 = load ptr, ptr %41, align 8, !tbaa !32
  %101 = getelementptr inbounds ptr, ptr %100, i64 %99
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = load i64, ptr %103, align 8, !tbaa !33
  %105 = tail call ptr @json_array_new(i64 noundef %104) #3
  %106 = load i64, ptr %103, align 8, !tbaa !33
  %.not134 = icmp eq i64 %106, 0
  br i1 %.not134, label %._crit_edge125, label %.lr.ph124

.lr.ph124:                                        ; preds = %98
  %107 = getelementptr inbounds i8, ptr %102, i64 24
  br label %115

._crit_edge125:                                   ; preds = %125, %98
  %108 = load ptr, ptr %102, align 8, !tbaa !24
  %109 = tail call ptr @preserialize(ptr noundef %105)
  %110 = tail call ptr @json_object_push(ptr noundef %39, ptr noundef %108, ptr noundef %109) #3
  %111 = add i16 %.097126, 1
  %112 = zext i16 %111 to i64
  %113 = load i64, ptr %11, align 8, !tbaa !13
  %114 = icmp ugt i64 %113, %112
  br i1 %114, label %98, label %.critedge118, !llvm.loop !34

115:                                              ; preds = %.lr.ph124, %125
  %116 = phi i64 [ %106, %.lr.ph124 ], [ %126, %125 ]
  %117 = phi i64 [ 0, %.lr.ph124 ], [ %128, %125 ]
  %.094122 = phi i16 [ 0, %.lr.ph124 ], [ %127, %125 ]
  %118 = load ptr, ptr %107, align 8, !tbaa !35
  %119 = getelementptr inbounds ptr, ptr %118, i64 %117
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %.not110 = icmp eq ptr %120, null
  br i1 %.not110, label %125, label %121

121:                                              ; preds = %115
  %122 = load ptr, ptr %120, align 8, !tbaa !36
  %123 = tail call ptr @json_string_new(ptr noundef %122) #3
  %124 = tail call ptr @json_array_push(ptr noundef %105, ptr noundef %123) #3
  %.pre136 = load i64, ptr %103, align 8, !tbaa !33
  br label %125

125:                                              ; preds = %115, %121
  %126 = phi i64 [ %116, %115 ], [ %.pre136, %121 ]
  %127 = add i16 %.094122, 1
  %128 = zext i16 %127 to i64
  %129 = icmp ugt i64 %126, %128
  br i1 %129, label %115, label %._crit_edge125, !llvm.loop !40

._crit_edge130:                                   ; preds = %139, %.critedge118
  %130 = tail call ptr @json_object_push(ptr noundef %19, ptr noundef nonnull @.str.7, ptr noundef %93) #3
  %131 = tail call ptr @json_object_push(ptr noundef %19, ptr noundef nonnull @.str.8, ptr noundef %95) #3
  %132 = load ptr, ptr %13, align 8, !tbaa !14
  %133 = getelementptr inbounds i8, ptr %132, i64 64
  %134 = load ptr, ptr %133, align 8, !tbaa !19
  tail call void %134(ptr noundef %132) #3
  %135 = tail call ptr @json_object_push(ptr noundef %1, ptr noundef %3, ptr noundef %19) #3
  %136 = load ptr, ptr %13, align 8, !tbaa !14
  %137 = getelementptr inbounds i8, ptr %136, i64 64
  %138 = load ptr, ptr %137, align 8, !tbaa !19
  tail call void %138(ptr noundef %136) #3
  br label %154

139:                                              ; preds = %.lr.ph129, %139
  %140 = phi i64 [ 0, %.lr.ph129 ], [ %151, %139 ]
  %.090128 = phi i16 [ 0, %.lr.ph129 ], [ %150, %139 ]
  %141 = tail call ptr @json_object_new(i64 noundef 5) #3
  %142 = load ptr, ptr %97, align 8, !tbaa !41
  %143 = getelementptr inbounds ptr, ptr %142, i64 %140
  %144 = load ptr, ptr %143, align 8, !tbaa !21
  tail call void @_dump_lookup(ptr noundef %144, ptr noundef %141)
  %145 = load ptr, ptr %144, align 8, !tbaa !36
  %146 = tail call ptr @json_object_push(ptr noundef %93, ptr noundef %145, ptr noundef %141) #3
  %147 = load ptr, ptr %144, align 8, !tbaa !36
  %148 = tail call ptr @json_string_new(ptr noundef %147) #3
  %149 = tail call ptr @json_array_push(ptr noundef %95, ptr noundef %148) #3
  %150 = add i16 %.090128, 1
  %151 = zext i16 %150 to i64
  %152 = load i64, ptr %0, align 8, !tbaa !12
  %153 = icmp ugt i64 %152, %151
  br i1 %153, label %139, label %._crit_edge130, !llvm.loop !42

154:                                              ; preds = %4, %5, %8, %10, %._crit_edge130
  ret void
}

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

declare ptr @sdsempty() local_unnamed_addr #1

declare ptr @json_object_new(i64 noundef) local_unnamed_addr #1

declare ptr @json_object_push(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @json_string_new(ptr noundef) local_unnamed_addr #1

declare ptr @json_array_new(i64 noundef) local_unnamed_addr #1

declare ptr @json_array_push(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @preserialize(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @_dump_lookup(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { inlinehint 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 = { 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, !8, i64 48}
!6 = !{!"", !7, i64 0, !7, i64 24, !7, i64 48}
!7 = !{!"", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!6, !8, i64 0}
!13 = !{!6, !8, i64 24}
!14 = !{!15, !11, i64 32}
!15 = !{!"", !16, i64 0, !16, i64 1, !16, i64 2, !16, i64 3, !16, i64 4, !16, i64 5, !16, i64 6, !16, i64 7, !16, i64 8, !16, i64 9, !16, i64 10, !16, i64 11, !16, i64 12, !16, i64 13, !16, i64 14, !16, i64 15, !16, i64 16, !16, i64 17, !16, i64 18, !16, i64 19, !16, i64 20, !16, i64 21, !16, i64 22, !11, i64 24, !11, i64 32}
!16 = !{!"_Bool", !9, i64 0}
!17 = !{!18, !11, i64 32}
!18 = !{!"otfcc_ILogger", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!19 = !{!18, !11, i64 64}
!20 = !{!6, !11, i64 64}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !11, i64 8}
!23 = !{!"", !11, i64 0, !11, i64 8, !7, i64 16}
!24 = !{!25, !11, i64 0}
!25 = !{!"", !11, i64 0, !7, i64 8}
!26 = !{!23, !8, i64 16}
!27 = !{!23, !11, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!23, !11, i64 32}
!31 = distinct !{!31, !29}
!32 = !{!6, !11, i64 40}
!33 = !{!25, !8, i64 8}
!34 = distinct !{!34, !29}
!35 = !{!25, !11, i64 24}
!36 = !{!37, !11, i64 0}
!37 = !{!"_otl_lookup", !11, i64 0, !38, i64 8, !38, i64 12, !39, i64 16, !7, i64 24}
!38 = !{!"int", !9, i64 0}
!39 = !{!"short", !9, i64 0}
!40 = distinct !{!40, !29}
!41 = !{!6, !11, i64 16}
!42 = distinct !{!42, !29}


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