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

; 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.__caryll_vectorinterface_table_name = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_NameRecord = type { i16, i16, i16, i16, 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._json_value = type { ptr, i32, %union.anon, %union.anon.2 }
%union.anon = type { %struct.anon }
%struct.anon = type { i32, ptr }
%union.anon.2 = type { ptr }
%struct.anon.1 = type { i32, ptr }

@table_iName = external dso_local constant %struct.__caryll_vectorinterface_table_name, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [50 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

declare ptr @sdsnewlen(ptr noundef, i64 noundef) #1

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

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

declare ptr @sdsempty() #1

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_parseName(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.otfcc_NameRecord, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %13 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_name, ptr @table_iName, i32 0, i32 6), align 8, !tbaa !9
  %14 = call ptr (...) %13()
  store ptr %14, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = call ptr @json_obj_get_type(ptr noundef %15, ptr noundef @.str.1, i32 noundef 2)
  store ptr %16, ptr %6, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %208

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.otfcc_Options, ptr %19, i32 0, i32 24
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %struct.otfcc_ILogger, ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.otfcc_Options, ptr %24, i32 0, i32 24
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = call ptr @sdsempty()
  %28 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %27, ptr noundef @.str.1)
  call void %23(ptr noundef %26, ptr noundef %28)
  store i8 1, ptr %7, align 1, !tbaa !16
  br label %29

29:                                               ; preds = %198, %18
  %30 = load i8, ptr %7, align 1, !tbaa !16, !range !17, !noundef !18
  %31 = trunc i8 %30 to i1
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  br label %207

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !19
  br label %34

34:                                               ; preds = %192, %33
  %35 = load i32, ptr %9, align 4, !tbaa !19
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._json_value, ptr %36, i32 0, i32 2
  %38 = getelementptr inbounds %struct.anon.1, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !21
  %40 = icmp ult i32 %35, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %34
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %195

42:                                               ; preds = %34
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._json_value, ptr %43, i32 0, i32 2
  %45 = getelementptr inbounds %struct.anon.1, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  %47 = load i32, ptr %9, align 4, !tbaa !19
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds ptr, ptr %46, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %64

52:                                               ; preds = %42
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._json_value, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %struct.anon.1, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = load i32, ptr %9, align 4, !tbaa !19
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._json_value, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !22
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %65, label %64

64:                                               ; preds = %52, %42
  br label %192

65:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._json_value, ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %struct.anon.1, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = load i32, ptr %9, align 4, !tbaa !19
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %69, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %73, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call ptr @json_obj_get_type(ptr noundef %74, ptr noundef @.str.2, i32 noundef 3)
  %76 = icmp ne ptr %75, null
  br i1 %76, label %89, label %77

77:                                               ; preds = %65
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.otfcc_Options, ptr %78, i32 0, i32 24
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.otfcc_ILogger, ptr %80, i32 0, i32 6
  %82 = load ptr, ptr %81, align 8, !tbaa !24
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.otfcc_Options, ptr %83, i32 0, i32 24
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = call ptr @sdsempty()
  %87 = load i32, ptr %9, align 4, !tbaa !19
  %88 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %86, ptr noundef @.str.7, i32 noundef %87)
  call void %82(ptr noundef %85, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %88)
  store i32 7, ptr %8, align 4
  br label %189

89:                                               ; preds = %65
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = call ptr @json_obj_get_type(ptr noundef %90, ptr noundef @.str.3, i32 noundef 3)
  %92 = icmp ne ptr %91, null
  br i1 %92, label %105, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.otfcc_Options, ptr %94, i32 0, i32 24
  %96 = load ptr, ptr %95, align 8, !tbaa !11
  %97 = getelementptr inbounds %struct.otfcc_ILogger, ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.otfcc_Options, ptr %99, i32 0, i32 24
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = call ptr @sdsempty()
  %103 = load i32, ptr %9, align 4, !tbaa !19
  %104 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %102, ptr noundef @.str.8, i32 noundef %103)
  call void %98(ptr noundef %101, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %104)
  store i32 7, ptr %8, align 4
  br label %189

105:                                              ; preds = %89
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = call ptr @json_obj_get_type(ptr noundef %106, ptr noundef @.str.4, i32 noundef 3)
  %108 = icmp ne ptr %107, null
  br i1 %108, label %121, label %109

109:                                              ; preds = %105
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.otfcc_Options, ptr %110, i32 0, i32 24
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct.otfcc_ILogger, ptr %112, i32 0, i32 6
  %114 = load ptr, ptr %113, align 8, !tbaa !24
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.otfcc_Options, ptr %115, i32 0, i32 24
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = call ptr @sdsempty()
  %119 = load i32, ptr %9, align 4, !tbaa !19
  %120 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %118, ptr noundef @.str.9, i32 noundef %119)
  call void %114(ptr noundef %117, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %120)
  store i32 7, ptr %8, align 4
  br label %189

121:                                              ; preds = %105
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = call ptr @json_obj_get_type(ptr noundef %122, ptr noundef @.str.5, i32 noundef 3)
  %124 = icmp ne ptr %123, null
  br i1 %124, label %137, label %125

125:                                              ; preds = %121
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.otfcc_Options, ptr %126, i32 0, i32 24
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.otfcc_ILogger, ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !24
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.otfcc_Options, ptr %131, i32 0, i32 24
  %133 = load ptr, ptr %132, align 8, !tbaa !11
  %134 = call ptr @sdsempty()
  %135 = load i32, ptr %9, align 4, !tbaa !19
  %136 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %134, ptr noundef @.str.10, i32 noundef %135)
  call void %130(ptr noundef %133, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %136)
  store i32 7, ptr %8, align 4
  br label %189

137:                                              ; preds = %121
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = call ptr @json_obj_get_type(ptr noundef %138, ptr noundef @.str.6, i32 noundef 5)
  %140 = icmp ne ptr %139, null
  br i1 %140, label %153, label %141

141:                                              ; preds = %137
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.otfcc_Options, ptr %142, i32 0, i32 24
  %144 = load ptr, ptr %143, align 8, !tbaa !11
  %145 = getelementptr inbounds %struct.otfcc_ILogger, ptr %144, i32 0, i32 6
  %146 = load ptr, ptr %145, align 8, !tbaa !24
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.otfcc_Options, ptr %147, i32 0, i32 24
  %149 = load ptr, ptr %148, align 8, !tbaa !11
  %150 = call ptr @sdsempty()
  %151 = load i32, ptr %9, align 4, !tbaa !19
  %152 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %150, ptr noundef @.str.11, i32 noundef %151)
  call void %146(ptr noundef %149, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %152)
  store i32 7, ptr %8, align 4
  br label %189

153:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = call i32 @json_obj_getint(ptr noundef %154, ptr noundef @.str.2)
  %156 = trunc i32 %155 to i16
  %157 = getelementptr inbounds %struct.otfcc_NameRecord, ptr %11, i32 0, i32 0
  store i16 %156, ptr %157, align 8, !tbaa !25
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = call i32 @json_obj_getint(ptr noundef %158, ptr noundef @.str.3)
  %160 = trunc i32 %159 to i16
  %161 = getelementptr inbounds %struct.otfcc_NameRecord, ptr %11, i32 0, i32 1
  store i16 %160, ptr %161, align 2, !tbaa !28
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = call i32 @json_obj_getint(ptr noundef %162, ptr noundef @.str.4)
  %164 = trunc i32 %163 to i16
  %165 = getelementptr inbounds %struct.otfcc_NameRecord, ptr %11, i32 0, i32 2
  store i16 %164, ptr %165, align 4, !tbaa !29
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = call i32 @json_obj_getint(ptr noundef %166, ptr noundef @.str.5)
  %168 = trunc i32 %167 to i16
  %169 = getelementptr inbounds %struct.otfcc_NameRecord, ptr %11, i32 0, i32 3
  store i16 %168, ptr %169, align 2, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = call ptr @json_obj_get_type(ptr noundef %170, ptr noundef @.str.6, i32 noundef 5)
  store ptr %171, ptr %12, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._json_value, ptr %172, i32 0, i32 2
  %174 = getelementptr inbounds %struct.anon, ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct._json_value, ptr %176, i32 0, i32 2
  %178 = getelementptr inbounds %struct.anon, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !21
  %180 = zext i32 %179 to i64
  %181 = call ptr @sdsnewlen(ptr noundef %175, i64 noundef %180)
  %182 = getelementptr inbounds %struct.otfcc_NameRecord, ptr %11, i32 0, i32 4
  store ptr %181, ptr %182, align 8, !tbaa !31
  %183 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_name, ptr @table_iName, i32 0, i32 13), align 8, !tbaa !32
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 0
  %186 = load i64, ptr %185, align 8
  %187 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8
  call void %183(ptr noundef %184, i64 %186, ptr %188)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  store i32 0, ptr %8, align 4
  br label %189

189:                                              ; preds = %153, %141, %125, %109, %93, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %190 = load i32, ptr %8, align 4
  switch i32 %190, label %210 [
    i32 0, label %191
    i32 7, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189, %64
  %193 = load i32, ptr %9, align 4, !tbaa !19
  %194 = add i32 %193, 1
  store i32 %194, ptr %9, align 4, !tbaa !19
  br label %34, !llvm.loop !33

195:                                              ; preds = %41
  %196 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_name, ptr @table_iName, i32 0, i32 18), align 8, !tbaa !35
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  call void %196(ptr noundef %197, ptr noundef @name_record_sort)
  br label %198

198:                                              ; preds = %195
  store i8 0, ptr %7, align 1, !tbaa !16
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.otfcc_Options, ptr %199, i32 0, i32 24
  %201 = load ptr, ptr %200, align 8, !tbaa !11
  %202 = getelementptr inbounds %struct.otfcc_ILogger, ptr %201, i32 0, i32 8
  %203 = load ptr, ptr %202, align 8, !tbaa !36
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.otfcc_Options, ptr %204, i32 0, i32 24
  %206 = load ptr, ptr %205, align 8, !tbaa !11
  call void %203(ptr noundef %206)
  br label %29, !llvm.loop !37

207:                                              ; preds = %32
  br label %208

208:                                              ; preds = %207, %2
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %209

210:                                              ; preds = %189
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @name_record_sort(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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, !6, i64 48}
!10 = !{!"__caryll_vectorinterface_table_name", !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, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!11 = !{!12, !6, i64 32}
!12 = !{!"", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !13, i64 9, !13, i64 10, !13, i64 11, !13, i64 12, !13, i64 13, !13, i64 14, !13, i64 15, !13, i64 16, !13, i64 17, !13, i64 18, !13, i64 19, !13, i64 20, !13, i64 21, !13, i64 22, !6, i64 24, !6, i64 32}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!15, !6, i64 32}
!15 = !{!"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}
!16 = !{!13, !13, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !20, i64 8}
!23 = !{!"_json_value", !6, i64 0, !20, i64 8, !7, i64 16, !7, i64 32}
!24 = !{!15, !6, i64 48}
!25 = !{!26, !27, i64 0}
!26 = !{!"", !27, i64 0, !27, i64 2, !27, i64 4, !27, i64 6, !6, i64 8}
!27 = !{!"short", !7, i64 0}
!28 = !{!26, !27, i64 2}
!29 = !{!26, !27, i64 4}
!30 = !{!26, !27, i64 6}
!31 = !{!26, !6, i64 8}
!32 = !{!10, !6, i64 104}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!10, !6, i64 144}
!36 = !{!15, !6, i64 64}
!37 = distinct !{!37, !34}


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

%struct.__caryll_vectorinterface_table_name = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@table_iName = external dso_local local_unnamed_addr constant %struct.__caryll_vectorinterface_table_name, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [50 x i8], align 1

declare ptr @sdsnewlen(ptr noundef, i64 noundef) local_unnamed_addr #0

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

declare ptr @sdsempty() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_parseName(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iName, i64 48), align 8, !tbaa !5
  %4 = tail call ptr (...) %3() #3
  %5 = tail call ptr @json_obj_get_type(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 2)
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %92, label %.preheader

.preheader:                                       ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  %7 = load ptr, ptr %6, align 8, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = tail call ptr @sdsempty() #3
  %11 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %10, ptr noundef nonnull @.str.1) #3
  tail call void %9(ptr noundef %7, ptr noundef %11) #3
  %12 = getelementptr inbounds i8, ptr %5, i64 16
  %13 = getelementptr inbounds i8, ptr %5, i64 24
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iName, i64 104), align 8
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iName, i64 144), align 8
  %16 = load i32, ptr %12, align 8, !tbaa !15
  %.not57 = icmp eq i32 %16, 0
  br i1 %.not57, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %88, %.preheader
  tail call void %15(ptr noundef %4, ptr noundef nonnull @name_record_sort) #3
  %17 = load ptr, ptr %6, align 8, !tbaa !10
  %18 = getelementptr inbounds i8, ptr %17, i64 64
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  tail call void %19(ptr noundef %17) #3
  br label %92

.lr.ph:                                           ; preds = %.preheader, %88
  %indvars.iv = phi i64 [ %indvars.iv.next, %88 ], [ 0, %.preheader ]
  %20 = load ptr, ptr %13, align 8, !tbaa !15
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %.not47 = icmp eq ptr %22, null
  br i1 %.not47, label %88, label %23

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds i8, ptr %22, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !18
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %88

27:                                               ; preds = %23
  %28 = tail call ptr @json_obj_get_type(ptr noundef nonnull %22, ptr noundef nonnull @.str.2, i32 noundef 3)
  %.not48 = icmp eq ptr %28, null
  br i1 %.not48, label %29, label %36

29:                                               ; preds = %27
  %30 = load ptr, ptr %6, align 8, !tbaa !10
  %31 = getelementptr inbounds i8, ptr %30, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !21
  %33 = tail call ptr @sdsempty() #3
  %34 = trunc nuw i64 %indvars.iv to i32
  %35 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %33, ptr noundef nonnull @.str.7, i32 noundef %34) #3
  tail call void %32(ptr noundef %30, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %35) #3
  br label %88

36:                                               ; preds = %27
  %37 = tail call ptr @json_obj_get_type(ptr noundef nonnull %22, ptr noundef nonnull @.str.3, i32 noundef 3)
  %.not49 = icmp eq ptr %37, null
  br i1 %.not49, label %38, label %45

38:                                               ; preds = %36
  %39 = load ptr, ptr %6, align 8, !tbaa !10
  %40 = getelementptr inbounds i8, ptr %39, i64 48
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = tail call ptr @sdsempty() #3
  %43 = trunc nuw i64 %indvars.iv to i32
  %44 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %42, ptr noundef nonnull @.str.8, i32 noundef %43) #3
  tail call void %41(ptr noundef %39, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %44) #3
  br label %88

45:                                               ; preds = %36
  %46 = tail call ptr @json_obj_get_type(ptr noundef nonnull %22, ptr noundef nonnull @.str.4, i32 noundef 3)
  %.not50 = icmp eq ptr %46, null
  br i1 %.not50, label %47, label %54

47:                                               ; preds = %45
  %48 = load ptr, ptr %6, align 8, !tbaa !10
  %49 = getelementptr inbounds i8, ptr %48, i64 48
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = tail call ptr @sdsempty() #3
  %52 = trunc nuw i64 %indvars.iv to i32
  %53 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %51, ptr noundef nonnull @.str.9, i32 noundef %52) #3
  tail call void %50(ptr noundef %48, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %53) #3
  br label %88

54:                                               ; preds = %45
  %55 = tail call ptr @json_obj_get_type(ptr noundef nonnull %22, ptr noundef nonnull @.str.5, i32 noundef 3)
  %.not51 = icmp eq ptr %55, null
  br i1 %.not51, label %56, label %63

56:                                               ; preds = %54
  %57 = load ptr, ptr %6, align 8, !tbaa !10
  %58 = getelementptr inbounds i8, ptr %57, i64 48
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = tail call ptr @sdsempty() #3
  %61 = trunc nuw i64 %indvars.iv to i32
  %62 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %60, ptr noundef nonnull @.str.10, i32 noundef %61) #3
  tail call void %59(ptr noundef %57, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %62) #3
  br label %88

63:                                               ; preds = %54
  %64 = tail call ptr @json_obj_get_type(ptr noundef nonnull %22, ptr noundef nonnull @.str.6, i32 noundef 5)
  %.not52 = icmp eq ptr %64, null
  br i1 %.not52, label %65, label %72

65:                                               ; preds = %63
  %66 = load ptr, ptr %6, align 8, !tbaa !10
  %67 = getelementptr inbounds i8, ptr %66, i64 48
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = tail call ptr @sdsempty() #3
  %70 = trunc nuw i64 %indvars.iv to i32
  %71 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %69, ptr noundef nonnull @.str.11, i32 noundef %70) #3
  tail call void %68(ptr noundef %66, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %71) #3
  br label %88

72:                                               ; preds = %63
  %73 = tail call i32 @json_obj_getint(ptr noundef nonnull %22, ptr noundef nonnull @.str.2)
  %74 = tail call i32 @json_obj_getint(ptr noundef nonnull %22, ptr noundef nonnull @.str.3)
  %75 = shl i32 %74, 16
  %76 = and i32 %73, 65535
  %.sroa.0.2.insert.insert53 = or disjoint i32 %75, %76
  %.sroa.0.2.insert.insert = zext i32 %.sroa.0.2.insert.insert53 to i64
  %77 = tail call i32 @json_obj_getint(ptr noundef nonnull %22, ptr noundef nonnull @.str.4)
  %78 = and i32 %77, 65535
  %.sroa.0.4.insert.ext = zext nneg i32 %78 to i64
  %.sroa.0.4.insert.shift = shl nuw nsw i64 %.sroa.0.4.insert.ext, 32
  %.sroa.0.4.insert.insert = or disjoint i64 %.sroa.0.4.insert.shift, %.sroa.0.2.insert.insert
  %79 = tail call i32 @json_obj_getint(ptr noundef nonnull %22, ptr noundef nonnull @.str.5)
  %80 = and i32 %79, 65535
  %.sroa.0.6.insert.ext = zext nneg i32 %80 to i64
  %.sroa.0.6.insert.shift = shl nuw i64 %.sroa.0.6.insert.ext, 48
  %.sroa.0.6.insert.insert = or disjoint i64 %.sroa.0.4.insert.insert, %.sroa.0.6.insert.shift
  %81 = tail call ptr @json_obj_get_type(ptr noundef nonnull %22, ptr noundef nonnull @.str.6, i32 noundef 5)
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %83 = getelementptr inbounds i8, ptr %81, i64 24
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = load i32, ptr %82, align 8, !tbaa !15
  %86 = zext i32 %85 to i64
  %87 = tail call ptr @sdsnewlen(ptr noundef %84, i64 noundef %86) #3
  tail call void %14(ptr noundef %4, i64 %.sroa.0.6.insert.insert, ptr %87) #3
  br label %88

88:                                               ; preds = %29, %38, %47, %56, %65, %72, %.lr.ph, %23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %89 = load i32, ptr %12, align 8, !tbaa !15
  %90 = zext i32 %89 to i64
  %91 = icmp ult i64 %indvars.iv.next, %90
  br i1 %91, label %.lr.ph, label %._crit_edge, !llvm.loop !22

92:                                               ; preds = %._crit_edge, %2
  ret ptr %4
}

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @name_record_sort(ptr noundef, ptr noundef) #1

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind 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 = { 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, !7, i64 48}
!6 = !{!"__caryll_vectorinterface_table_name", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 32}
!11 = !{!"", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !12, i64 5, !12, i64 6, !12, i64 7, !12, i64 8, !12, i64 9, !12, i64 10, !12, i64 11, !12, i64 12, !12, i64 13, !12, i64 14, !12, i64 15, !12, i64 16, !12, i64 17, !12, i64 18, !12, i64 19, !12, i64 20, !12, i64 21, !12, i64 22, !7, i64 24, !7, i64 32}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!14, !7, i64 32}
!14 = !{!"otfcc_ILogger", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88}
!15 = !{!8, !8, i64 0}
!16 = !{!14, !7, i64 64}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !20, i64 8}
!19 = !{!"_json_value", !7, i64 0, !20, i64 8, !8, i64 16, !8, i64 32}
!20 = !{!"int", !8, i64 0}
!21 = !{!14, !7, i64 48}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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