; LLVM IR from ohler55/agoo :: ext/agoo (graphql)

; 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._gqlType = type { ptr, ptr, ptr, i32, i32, i8, %union.anon }
%union.anon = type { %struct.anon.0 }
%struct.anon.0 = type { ptr, ptr, ptr }
%struct.anon = type { ptr, ptr }
%struct._gqlField = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._gqlTypeLink = type { ptr, ptr }
%struct._gqlEnumVal = type { ptr, ptr, ptr, ptr }
%struct._gqlArg = type { ptr, ptr, ptr, ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [7 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: nounwind uwtable
define dso_local ptr @gql_type_sdl(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = zext i1 %2 to i8
  store i8 %14, ptr %6, align 1, !tbaa !9
  %15 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %23

17:                                               ; preds = %3
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._gqlType, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = call ptr @desc_sdl(ptr noundef %18, ptr noundef %21, i32 noundef 0)
  br label %23

23:                                               ; preds = %17, %3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._gqlType, ptr %24, i32 0, i32 3
  %26 = load i32, ptr %25, align 8, !tbaa !16
  switch i32 %26, label %311 [
    i32 1, label %27
    i32 2, label %57
    i32 3, label %57
    i32 5, label %129
    i32 7, label %171
    i32 8, label %223
    i32 6, label %238
    i32 4, label %273
  ]

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call ptr @agoo_text_append(ptr noundef %28, ptr noundef @.str.3, i32 noundef 6)
  store ptr %29, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._gqlType, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = call ptr @append_dir_use(ptr noundef %30, ptr noundef %33)
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = call ptr @agoo_text_append(ptr noundef %35, ptr noundef @.str.17, i32 noundef 3)
  store ptr %36, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._gqlType, ptr %37, i32 0, i32 6
  %39 = getelementptr inbounds %struct.anon, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  store ptr %40, ptr %7, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %50, %27
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = icmp ne ptr null, %42
  br i1 %43, label %44, label %54

44:                                               ; preds = %41
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %48 = trunc i8 %47 to i1
  %49 = call ptr @field_sdl(ptr noundef %45, ptr noundef %46, i1 noundef zeroext %48)
  store ptr %49, ptr %4, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %44
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._gqlField, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  store ptr %53, ptr %7, align 8, !tbaa !5
  br label %41, !llvm.loop !21

54:                                               ; preds = %41
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call ptr @agoo_text_append(ptr noundef %55, ptr noundef @.str.18, i32 noundef 2)
  store ptr %56, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %312

57:                                               ; preds = %23, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call ptr @agoo_text_append(ptr noundef %58, ptr noundef @.str.19, i32 noundef 5)
  store ptr %59, ptr %4, align 8, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._gqlType, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  %64 = call ptr @agoo_text_append(ptr noundef %60, ptr noundef %63, i32 noundef -1)
  store ptr %64, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._gqlType, ptr %65, i32 0, i32 6
  %67 = getelementptr inbounds %struct.anon, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = icmp ne ptr null, %68
  br i1 %69, label %70, label %101

70:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._gqlType, ptr %71, i32 0, i32 6
  %73 = getelementptr inbounds %struct.anon, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  store ptr %74, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = call ptr @agoo_text_append(ptr noundef %75, ptr noundef @.str.20, i32 noundef 12)
  store ptr %76, ptr %4, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %96, %70
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = icmp ne ptr null, %78
  br i1 %79, label %80, label %100

80:                                               ; preds = %77
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._gqlTypeLink, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds %struct._gqlType, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !23
  %87 = call ptr @agoo_text_append(ptr noundef %81, ptr noundef %86, i32 noundef -1)
  store ptr %87, ptr %4, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._gqlTypeLink, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !26
  %91 = icmp ne ptr null, %90
  br i1 %91, label %92, label %95

92:                                               ; preds = %80
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = call ptr @agoo_text_append(ptr noundef %93, ptr noundef @.str.21, i32 noundef 3)
  store ptr %94, ptr %4, align 8, !tbaa !5
  br label %95

95:                                               ; preds = %92, %80
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._gqlTypeLink, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !26
  store ptr %99, ptr %9, align 8, !tbaa !5
  br label %77, !llvm.loop !27

100:                                              ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %101

101:                                              ; preds = %100, %57
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._gqlType, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !17
  %106 = call ptr @append_dir_use(ptr noundef %102, ptr noundef %105)
  store ptr %106, ptr %4, align 8, !tbaa !5
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = call ptr @agoo_text_append(ptr noundef %107, ptr noundef @.str.17, i32 noundef 3)
  store ptr %108, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._gqlType, ptr %109, i32 0, i32 6
  %111 = getelementptr inbounds %struct.anon, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  store ptr %112, ptr %8, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %122, %101
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = icmp ne ptr null, %114
  br i1 %115, label %116, label %126

116:                                              ; preds = %113
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %120 = trunc i8 %119 to i1
  %121 = call ptr @field_sdl(ptr noundef %117, ptr noundef %118, i1 noundef zeroext %120)
  store ptr %121, ptr %4, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %116
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._gqlField, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  store ptr %125, ptr %8, align 8, !tbaa !5
  br label %113, !llvm.loop !28

126:                                              ; preds = %113
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = call ptr @agoo_text_append(ptr noundef %127, ptr noundef @.str.18, i32 noundef 2)
  store ptr %128, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %312

129:                                              ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = call ptr @agoo_text_append(ptr noundef %130, ptr noundef @.str.22, i32 noundef 6)
  store ptr %131, ptr %4, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._gqlType, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !23
  %136 = call ptr @agoo_text_append(ptr noundef %132, ptr noundef %135, i32 noundef -1)
  store ptr %136, ptr %4, align 8, !tbaa !5
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._gqlType, ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = call ptr @append_dir_use(ptr noundef %137, ptr noundef %140)
  store ptr %141, ptr %4, align 8, !tbaa !5
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = call ptr @agoo_text_append(ptr noundef %142, ptr noundef @.str.23, i32 noundef 3)
  store ptr %143, ptr %4, align 8, !tbaa !5
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._gqlType, ptr %144, i32 0, i32 6
  %146 = load ptr, ptr %145, align 8, !tbaa !18
  store ptr %146, ptr %10, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %166, %129
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = icmp ne ptr null, %148
  br i1 %149, label %150, label %170

150:                                              ; preds = %147
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct._gqlTypeLink, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !24
  %155 = getelementptr inbounds %struct._gqlType, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !23
  %157 = call ptr @agoo_text_append(ptr noundef %151, ptr noundef %156, i32 noundef -1)
  store ptr %157, ptr %4, align 8, !tbaa !5
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct._gqlTypeLink, ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !26
  %161 = icmp ne ptr null, %160
  br i1 %161, label %162, label %165

162:                                              ; preds = %150
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = call ptr @agoo_text_append(ptr noundef %163, ptr noundef @.str.24, i32 noundef 3)
  store ptr %164, ptr %4, align 8, !tbaa !5
  br label %165

165:                                              ; preds = %162, %150
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._gqlTypeLink, ptr %167, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !26
  store ptr %169, ptr %10, align 8, !tbaa !5
  br label %147, !llvm.loop !29

170:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %312

171:                                              ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = call ptr @agoo_text_append(ptr noundef %172, ptr noundef @.str.25, i32 noundef 5)
  store ptr %173, ptr %4, align 8, !tbaa !5
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct._gqlType, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !23
  %178 = call ptr @agoo_text_append(ptr noundef %174, ptr noundef %177, i32 noundef -1)
  store ptr %178, ptr %4, align 8, !tbaa !5
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._gqlType, ptr %180, i32 0, i32 2
  %182 = load ptr, ptr %181, align 8, !tbaa !17
  %183 = call ptr @append_dir_use(ptr noundef %179, ptr noundef %182)
  store ptr %183, ptr %4, align 8, !tbaa !5
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = call ptr @agoo_text_append(ptr noundef %184, ptr noundef @.str.17, i32 noundef 3)
  store ptr %185, ptr %4, align 8, !tbaa !5
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct._gqlType, ptr %186, i32 0, i32 6
  %188 = load ptr, ptr %187, align 8, !tbaa !18
  store ptr %188, ptr %11, align 8, !tbaa !5
  br label %189

189:                                              ; preds = %216, %171
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = icmp ne ptr null, %190
  br i1 %191, label %192, label %220

192:                                              ; preds = %189
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = call ptr @agoo_text_append(ptr noundef %193, ptr noundef @.str.26, i32 noundef 2)
  store ptr %194, ptr %4, align 8, !tbaa !5
  %195 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %196 = trunc i8 %195 to i1
  br i1 %196, label %197, label %203

197:                                              ; preds = %192
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct._gqlEnumVal, ptr %199, i32 0, i32 2
  %201 = load ptr, ptr %200, align 8, !tbaa !30
  %202 = call ptr @desc_sdl(ptr noundef %198, ptr noundef %201, i32 noundef 2)
  store ptr %202, ptr %4, align 8, !tbaa !5
  br label %203

203:                                              ; preds = %197, %192
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct._gqlEnumVal, ptr %205, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !32
  %208 = call ptr @agoo_text_append(ptr noundef %204, ptr noundef %207, i32 noundef -1)
  store ptr %208, ptr %4, align 8, !tbaa !5
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._gqlEnumVal, ptr %210, i32 0, i32 3
  %212 = load ptr, ptr %211, align 8, !tbaa !33
  %213 = call ptr @append_dir_use(ptr noundef %209, ptr noundef %212)
  store ptr %213, ptr %4, align 8, !tbaa !5
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = call ptr @agoo_text_append(ptr noundef %214, ptr noundef @.str.27, i32 noundef 1)
  store ptr %215, ptr %4, align 8, !tbaa !5
  br label %216

216:                                              ; preds = %203
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct._gqlEnumVal, ptr %217, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !34
  store ptr %219, ptr %11, align 8, !tbaa !5
  br label %189, !llvm.loop !35

220:                                              ; preds = %189
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = call ptr @agoo_text_append(ptr noundef %221, ptr noundef @.str.18, i32 noundef 2)
  store ptr %222, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %312

223:                                              ; preds = %23
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = call ptr @agoo_text_append(ptr noundef %224, ptr noundef @.str.28, i32 noundef 7)
  store ptr %225, ptr %4, align 8, !tbaa !5
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct._gqlType, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !23
  %230 = call ptr @agoo_text_append(ptr noundef %226, ptr noundef %229, i32 noundef -1)
  store ptr %230, ptr %4, align 8, !tbaa !5
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct._gqlType, ptr %232, i32 0, i32 2
  %234 = load ptr, ptr %233, align 8, !tbaa !17
  %235 = call ptr @append_dir_use(ptr noundef %231, ptr noundef %234)
  store ptr %235, ptr %4, align 8, !tbaa !5
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = call ptr @agoo_text_append(ptr noundef %236, ptr noundef @.str.27, i32 noundef 1)
  store ptr %237, ptr %4, align 8, !tbaa !5
  br label %312

238:                                              ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = call ptr @agoo_text_append(ptr noundef %239, ptr noundef @.str.29, i32 noundef 10)
  store ptr %240, ptr %4, align 8, !tbaa !5
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct._gqlType, ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !23
  %245 = call ptr @agoo_text_append(ptr noundef %241, ptr noundef %244, i32 noundef -1)
  store ptr %245, ptr %4, align 8, !tbaa !5
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct._gqlType, ptr %247, i32 0, i32 2
  %249 = load ptr, ptr %248, align 8, !tbaa !17
  %250 = call ptr @append_dir_use(ptr noundef %246, ptr noundef %249)
  store ptr %250, ptr %4, align 8, !tbaa !5
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = call ptr @agoo_text_append(ptr noundef %251, ptr noundef @.str.17, i32 noundef 3)
  store ptr %252, ptr %4, align 8, !tbaa !5
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct._gqlType, ptr %253, i32 0, i32 6
  %255 = getelementptr inbounds %struct.anon, ptr %254, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8, !tbaa !18
  store ptr %256, ptr %12, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %266, %238
  %258 = load ptr, ptr %12, align 8, !tbaa !5
  %259 = icmp ne ptr null, %258
  br i1 %259, label %260, label %270

260:                                              ; preds = %257
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = load ptr, ptr %12, align 8, !tbaa !5
  %263 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %264 = trunc i8 %263 to i1
  %265 = call ptr @field_sdl(ptr noundef %261, ptr noundef %262, i1 noundef zeroext %264)
  store ptr %265, ptr %4, align 8, !tbaa !5
  br label %266

266:                                              ; preds = %260
  %267 = load ptr, ptr %12, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct._gqlField, ptr %267, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8, !tbaa !19
  store ptr %269, ptr %12, align 8, !tbaa !5
  br label %257, !llvm.loop !36

270:                                              ; preds = %257
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = call ptr @agoo_text_append(ptr noundef %271, ptr noundef @.str.18, i32 noundef 2)
  store ptr %272, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %312

273:                                              ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = call ptr @agoo_text_append(ptr noundef %274, ptr noundef @.str.30, i32 noundef 6)
  store ptr %275, ptr %4, align 8, !tbaa !5
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct._gqlType, ptr %277, i32 0, i32 0
  %279 = load ptr, ptr %278, align 8, !tbaa !23
  %280 = call ptr @agoo_text_append(ptr noundef %276, ptr noundef %279, i32 noundef -1)
  store ptr %280, ptr %4, align 8, !tbaa !5
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct._gqlType, ptr %282, i32 0, i32 2
  %284 = load ptr, ptr %283, align 8, !tbaa !17
  %285 = call ptr @append_dir_use(ptr noundef %281, ptr noundef %284)
  store ptr %285, ptr %4, align 8, !tbaa !5
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = call ptr @agoo_text_append(ptr noundef %286, ptr noundef @.str.17, i32 noundef 3)
  store ptr %287, ptr %4, align 8, !tbaa !5
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct._gqlType, ptr %288, i32 0, i32 6
  %290 = load ptr, ptr %289, align 8, !tbaa !18
  store ptr %290, ptr %13, align 8, !tbaa !5
  br label %291

291:                                              ; preds = %304, %273
  %292 = load ptr, ptr %13, align 8, !tbaa !5
  %293 = icmp ne ptr null, %292
  br i1 %293, label %294, label %308

294:                                              ; preds = %291
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = load ptr, ptr %13, align 8, !tbaa !5
  %297 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %298 = trunc i8 %297 to i1
  %299 = load ptr, ptr %13, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct._gqlArg, ptr %299, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8, !tbaa !37
  %302 = icmp eq ptr null, %301
  %303 = call ptr @arg_sdl(ptr noundef %295, ptr noundef %296, i1 noundef zeroext %298, i1 noundef zeroext false, i1 noundef zeroext %302)
  store ptr %303, ptr %4, align 8, !tbaa !5
  br label %304

304:                                              ; preds = %294
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct._gqlArg, ptr %305, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !37
  store ptr %307, ptr %13, align 8, !tbaa !5
  br label %291, !llvm.loop !39

308:                                              ; preds = %291
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = call ptr @agoo_text_append(ptr noundef %309, ptr noundef @.str.18, i32 noundef 2)
  store ptr %310, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %312

311:                                              ; preds = %23
  br label %312

312:                                              ; preds = %311, %308, %270, %223, %220, %170, %126, %54
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  ret ptr %313
}

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

declare ptr @agoo_text_append(ptr noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden ptr @field_sdl(ptr noundef, ptr noundef, i1 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @arg_sdl(ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 8}
!14 = !{!"_gqlType", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !15, i64 28, !10, i64 32, !7, i64 40}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 24}
!17 = !{!14, !6, i64 16}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_gqlField", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!14, !6, i64 0}
!24 = !{!25, !6, i64 8}
!25 = !{!"_gqlTypeLink", !6, i64 0, !6, i64 8}
!26 = !{!25, !6, i64 0}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = !{!31, !6, i64 16}
!31 = !{!"_gqlEnumVal", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!31, !6, i64 8}
!33 = !{!31, !6, i64 24}
!34 = !{!31, !6, i64 0}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}
!37 = !{!38, !6, i64 0}
!38 = !{!"_gqlArg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!39 = distinct !{!39, !22}


; 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.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @gql_type_sdl(ptr noundef %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2) local_unnamed_addr #0 {
  br i1 %2, label %4, label %8

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call ptr @desc_sdl(ptr noundef %0, ptr noundef %6, i32 noundef 0)
  br label %8

8:                                                ; preds = %4, %3
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !12
  switch i32 %10, label %.loopexit119 [
    i32 1, label %11
    i32 2, label %20
    i32 3, label %20
    i32 5, label %43
    i32 7, label %59
    i32 8, label %82
    i32 6, label %90
    i32 4, label %101
  ]

11:                                               ; preds = %8
  %12 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.3, i32 noundef 6) #2
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = tail call ptr @append_dir_use(ptr noundef %12, ptr noundef %14)
  %16 = tail call ptr @agoo_text_append(ptr noundef %15, ptr noundef nonnull @.str.17, i32 noundef 3) #2
  %17 = getelementptr inbounds i8, ptr %1, i64 40
  %.0107157 = load ptr, ptr %17, align 8, !tbaa !14
  %.not118158 = icmp eq ptr %.0107157, null
  br i1 %.not118158, label %._crit_edge163, label %.lr.ph162

.lr.ph162:                                        ; preds = %11, %.lr.ph162
  %.0107160 = phi ptr [ %.0107, %.lr.ph162 ], [ %.0107157, %11 ]
  %.0108159 = phi ptr [ %18, %.lr.ph162 ], [ %16, %11 ]
  %18 = tail call ptr @field_sdl(ptr noundef %.0108159, ptr noundef nonnull %.0107160, i1 noundef zeroext %2)
  %.0107 = load ptr, ptr %.0107160, align 8, !tbaa !14
  %.not118 = icmp eq ptr %.0107, null
  br i1 %.not118, label %._crit_edge163, label %.lr.ph162, !llvm.loop !15

._crit_edge163:                                   ; preds = %.lr.ph162, %11
  %.0108.lcssa = phi ptr [ %16, %11 ], [ %18, %.lr.ph162 ]
  %19 = tail call ptr @agoo_text_append(ptr noundef %.0108.lcssa, ptr noundef nonnull @.str.18, i32 noundef 2) #2
  br label %.loopexit119

20:                                               ; preds = %8, %8
  %21 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.19, i32 noundef 5) #2
  %22 = load ptr, ptr %1, align 8, !tbaa !17
  %23 = tail call ptr @agoo_text_append(ptr noundef %21, ptr noundef %22, i32 noundef -1) #2
  %24 = getelementptr inbounds i8, ptr %1, i64 40
  %25 = getelementptr inbounds i8, ptr %1, i64 48
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %.not114 = icmp eq ptr %26, null
  br i1 %.not114, label %.loopexit, label %27

27:                                               ; preds = %20
  %28 = tail call ptr @agoo_text_append(ptr noundef %23, ptr noundef nonnull @.str.20, i32 noundef 12) #2
  br label %29

29:                                               ; preds = %27, %35
  %.0105148 = phi ptr [ %26, %27 ], [ %.pre, %35 ]
  %.1147 = phi ptr [ %28, %27 ], [ %36, %35 ]
  %30 = getelementptr inbounds i8, ptr %.0105148, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = tail call ptr @agoo_text_append(ptr noundef %.1147, ptr noundef %32, i32 noundef -1) #2
  %34 = load ptr, ptr %.0105148, align 8, !tbaa !20
  %.not117 = icmp eq ptr %34, null
  br i1 %.not117, label %.loopexit, label %35

35:                                               ; preds = %29
  %36 = tail call ptr @agoo_text_append(ptr noundef %33, ptr noundef nonnull @.str.21, i32 noundef 3) #2
  %.pre = load ptr, ptr %.0105148, align 8, !tbaa !20
  %.not115 = icmp eq ptr %.pre, null
  br i1 %.not115, label %.loopexit, label %29, !llvm.loop !21

.loopexit:                                        ; preds = %29, %35, %20
  %.3 = phi ptr [ %23, %20 ], [ %33, %29 ], [ %36, %35 ]
  %37 = getelementptr inbounds i8, ptr %1, i64 16
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = tail call ptr @append_dir_use(ptr noundef %.3, ptr noundef %38)
  %40 = tail call ptr @agoo_text_append(ptr noundef %39, ptr noundef nonnull @.str.17, i32 noundef 3) #2
  %.0106149 = load ptr, ptr %24, align 8, !tbaa !14
  %.not116150 = icmp eq ptr %.0106149, null
  br i1 %.not116150, label %._crit_edge155, label %.lr.ph154

.lr.ph154:                                        ; preds = %.loopexit, %.lr.ph154
  %.0106152 = phi ptr [ %.0106, %.lr.ph154 ], [ %.0106149, %.loopexit ]
  %.4151 = phi ptr [ %41, %.lr.ph154 ], [ %40, %.loopexit ]
  %41 = tail call ptr @field_sdl(ptr noundef %.4151, ptr noundef nonnull %.0106152, i1 noundef zeroext %2)
  %.0106 = load ptr, ptr %.0106152, align 8, !tbaa !14
  %.not116 = icmp eq ptr %.0106, null
  br i1 %.not116, label %._crit_edge155, label %.lr.ph154, !llvm.loop !22

._crit_edge155:                                   ; preds = %.lr.ph154, %.loopexit
  %.4.lcssa = phi ptr [ %40, %.loopexit ], [ %41, %.lr.ph154 ]
  %42 = tail call ptr @agoo_text_append(ptr noundef %.4.lcssa, ptr noundef nonnull @.str.18, i32 noundef 2) #2
  br label %.loopexit119

43:                                               ; preds = %8
  %44 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.22, i32 noundef 6) #2
  %45 = load ptr, ptr %1, align 8, !tbaa !17
  %46 = tail call ptr @agoo_text_append(ptr noundef %44, ptr noundef %45, i32 noundef -1) #2
  %47 = getelementptr inbounds i8, ptr %1, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = tail call ptr @append_dir_use(ptr noundef %46, ptr noundef %48)
  %50 = tail call ptr @agoo_text_append(ptr noundef %49, ptr noundef nonnull @.str.23, i32 noundef 3) #2
  %51 = getelementptr inbounds i8, ptr %1, i64 40
  %.0104140 = load ptr, ptr %51, align 8, !tbaa !14
  %.not112141 = icmp eq ptr %.0104140, null
  br i1 %.not112141, label %.loopexit119, label %.lr.ph145

.lr.ph145:                                        ; preds = %43, %57
  %.0104143 = phi ptr [ %.0104.pre, %57 ], [ %.0104140, %43 ]
  %.5142 = phi ptr [ %58, %57 ], [ %50, %43 ]
  %52 = getelementptr inbounds i8, ptr %.0104143, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = tail call ptr @agoo_text_append(ptr noundef %.5142, ptr noundef %54, i32 noundef -1) #2
  %56 = load ptr, ptr %.0104143, align 8, !tbaa !14
  %.not113 = icmp eq ptr %56, null
  br i1 %.not113, label %.loopexit119, label %57

57:                                               ; preds = %.lr.ph145
  %58 = tail call ptr @agoo_text_append(ptr noundef %55, ptr noundef nonnull @.str.24, i32 noundef 3) #2
  %.0104.pre = load ptr, ptr %.0104143, align 8, !tbaa !14
  %.not112 = icmp eq ptr %.0104.pre, null
  br i1 %.not112, label %.loopexit119, label %.lr.ph145, !llvm.loop !23

59:                                               ; preds = %8
  %60 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.25, i32 noundef 5) #2
  %61 = load ptr, ptr %1, align 8, !tbaa !17
  %62 = tail call ptr @agoo_text_append(ptr noundef %60, ptr noundef %61, i32 noundef -1) #2
  %63 = getelementptr inbounds i8, ptr %1, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = tail call ptr @append_dir_use(ptr noundef %62, ptr noundef %64)
  %66 = tail call ptr @agoo_text_append(ptr noundef %65, ptr noundef nonnull @.str.17, i32 noundef 3) #2
  %67 = getelementptr inbounds i8, ptr %1, i64 40
  %.0103132 = load ptr, ptr %67, align 8, !tbaa !14
  %.not111133 = icmp eq ptr %.0103132, null
  br i1 %.not111133, label %._crit_edge138, label %.lr.ph137

.lr.ph137:                                        ; preds = %59, %73
  %.0103135 = phi ptr [ %.0103, %73 ], [ %.0103132, %59 ]
  %.7134 = phi ptr [ %80, %73 ], [ %66, %59 ]
  %68 = tail call ptr @agoo_text_append(ptr noundef %.7134, ptr noundef nonnull @.str.26, i32 noundef 2) #2
  br i1 %2, label %69, label %73

69:                                               ; preds = %.lr.ph137
  %70 = getelementptr inbounds i8, ptr %.0103135, i64 16
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = tail call ptr @desc_sdl(ptr noundef %68, ptr noundef %71, i32 noundef 2)
  br label %73

73:                                               ; preds = %69, %.lr.ph137
  %.8 = phi ptr [ %72, %69 ], [ %68, %.lr.ph137 ]
  %74 = getelementptr inbounds i8, ptr %.0103135, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  %76 = tail call ptr @agoo_text_append(ptr noundef %.8, ptr noundef %75, i32 noundef -1) #2
  %77 = getelementptr inbounds i8, ptr %.0103135, i64 24
  %78 = load ptr, ptr %77, align 8, !tbaa !27
  %79 = tail call ptr @append_dir_use(ptr noundef %76, ptr noundef %78)
  %80 = tail call ptr @agoo_text_append(ptr noundef %79, ptr noundef nonnull @.str.27, i32 noundef 1) #2
  %.0103 = load ptr, ptr %.0103135, align 8, !tbaa !14
  %.not111 = icmp eq ptr %.0103, null
  br i1 %.not111, label %._crit_edge138, label %.lr.ph137, !llvm.loop !28

._crit_edge138:                                   ; preds = %73, %59
  %.7.lcssa = phi ptr [ %66, %59 ], [ %80, %73 ]
  %81 = tail call ptr @agoo_text_append(ptr noundef %.7.lcssa, ptr noundef nonnull @.str.18, i32 noundef 2) #2
  br label %.loopexit119

82:                                               ; preds = %8
  %83 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.28, i32 noundef 7) #2
  %84 = load ptr, ptr %1, align 8, !tbaa !17
  %85 = tail call ptr @agoo_text_append(ptr noundef %83, ptr noundef %84, i32 noundef -1) #2
  %86 = getelementptr inbounds i8, ptr %1, i64 16
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = tail call ptr @append_dir_use(ptr noundef %85, ptr noundef %87)
  %89 = tail call ptr @agoo_text_append(ptr noundef %88, ptr noundef nonnull @.str.27, i32 noundef 1) #2
  br label %.loopexit119

90:                                               ; preds = %8
  %91 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.29, i32 noundef 10) #2
  %92 = load ptr, ptr %1, align 8, !tbaa !17
  %93 = tail call ptr @agoo_text_append(ptr noundef %91, ptr noundef %92, i32 noundef -1) #2
  %94 = getelementptr inbounds i8, ptr %1, i64 16
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = tail call ptr @append_dir_use(ptr noundef %93, ptr noundef %95)
  %97 = tail call ptr @agoo_text_append(ptr noundef %96, ptr noundef nonnull @.str.17, i32 noundef 3) #2
  %98 = getelementptr inbounds i8, ptr %1, i64 40
  %.0102124 = load ptr, ptr %98, align 8, !tbaa !14
  %.not110125 = icmp eq ptr %.0102124, null
  br i1 %.not110125, label %._crit_edge130, label %.lr.ph129

.lr.ph129:                                        ; preds = %90, %.lr.ph129
  %.0102127 = phi ptr [ %.0102, %.lr.ph129 ], [ %.0102124, %90 ]
  %.9126 = phi ptr [ %99, %.lr.ph129 ], [ %97, %90 ]
  %99 = tail call ptr @field_sdl(ptr noundef %.9126, ptr noundef nonnull %.0102127, i1 noundef zeroext %2)
  %.0102 = load ptr, ptr %.0102127, align 8, !tbaa !14
  %.not110 = icmp eq ptr %.0102, null
  br i1 %.not110, label %._crit_edge130, label %.lr.ph129, !llvm.loop !29

._crit_edge130:                                   ; preds = %.lr.ph129, %90
  %.9.lcssa = phi ptr [ %97, %90 ], [ %99, %.lr.ph129 ]
  %100 = tail call ptr @agoo_text_append(ptr noundef %.9.lcssa, ptr noundef nonnull @.str.18, i32 noundef 2) #2
  br label %.loopexit119

101:                                              ; preds = %8
  %102 = tail call ptr @agoo_text_append(ptr noundef %0, ptr noundef nonnull @.str.30, i32 noundef 6) #2
  %103 = load ptr, ptr %1, align 8, !tbaa !17
  %104 = tail call ptr @agoo_text_append(ptr noundef %102, ptr noundef %103, i32 noundef -1) #2
  %105 = getelementptr inbounds i8, ptr %1, i64 16
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = tail call ptr @append_dir_use(ptr noundef %104, ptr noundef %106)
  %108 = tail call ptr @agoo_text_append(ptr noundef %107, ptr noundef nonnull @.str.17, i32 noundef 3) #2
  %109 = getelementptr inbounds i8, ptr %1, i64 40
  %.0120 = load ptr, ptr %109, align 8, !tbaa !14
  %.not121 = icmp eq ptr %.0120, null
  br i1 %.not121, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %101, %.lr.ph
  %.0123 = phi ptr [ %.0, %.lr.ph ], [ %.0120, %101 ]
  %.10122 = phi ptr [ %112, %.lr.ph ], [ %108, %101 ]
  %110 = load ptr, ptr %.0123, align 8, !tbaa !30
  %111 = icmp eq ptr %110, null
  %112 = tail call ptr @arg_sdl(ptr noundef %.10122, ptr noundef nonnull %.0123, i1 noundef zeroext %2, i1 noundef zeroext false, i1 noundef zeroext %111)
  %.0 = load ptr, ptr %.0123, align 8, !tbaa !14
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph, %101
  %.10.lcssa = phi ptr [ %108, %101 ], [ %112, %.lr.ph ]
  %113 = tail call ptr @agoo_text_append(ptr noundef %.10.lcssa, ptr noundef nonnull @.str.18, i32 noundef 2) #2
  br label %.loopexit119

.loopexit119:                                     ; preds = %.lr.ph145, %57, %43, %8, %._crit_edge, %._crit_edge130, %82, %._crit_edge138, %._crit_edge155, %._crit_edge163
  %.11 = phi ptr [ %0, %8 ], [ %113, %._crit_edge ], [ %100, %._crit_edge130 ], [ %89, %82 ], [ %81, %._crit_edge138 ], [ %42, %._crit_edge155 ], [ %19, %._crit_edge163 ], [ %50, %43 ], [ %55, %.lr.ph145 ], [ %58, %57 ]
  ret ptr %.11
}

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

declare ptr @agoo_text_append(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @field_sdl(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @arg_sdl(ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) 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 = { 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 8}
!6 = !{!"_gqlType", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !11, i64 32, !8, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !7, i64 16}
!14 = !{!8, !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !7, i64 0}
!18 = !{!19, !7, i64 8}
!19 = !{!"_gqlTypeLink", !7, i64 0, !7, i64 8}
!20 = !{!19, !7, i64 0}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = !{!25, !7, i64 16}
!25 = !{!"_gqlEnumVal", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!26 = !{!25, !7, i64 8}
!27 = !{!25, !7, i64 24}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}
!30 = !{!31, !7, i64 0}
!31 = !{!"_gqlArg", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!32 = distinct !{!32, !16}


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