; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_CGenerator (genPointerCast__)

; 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.string__ = type { ptr, i32 }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.tag_____CallExpression__ = type { %struct.Node__, ptr, ptr, ptr, ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____List__Node____ = type { ptr, i32, i32 }
%struct.tag_____Namespace__ = type { %struct.string__, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.tag_____GenerateContext__ = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, %struct.string__, i32, %struct.string__, i32, ptr, ptr, i8 }
%struct.tag_____CommonTags__ = type { %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@mu_____string438 = external dso_local global %struct.string__, align 8
@mu_____string408 = external dso_local global %struct.string__, align 8
@mu_____string303 = external dso_local global %struct.string__, align 8
@mu_____string486 = external dso_local global %struct.string__, align 8
@mu_____string457 = external dso_local global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8

; 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 speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

; 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
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) #2

; Function Attrs: nounwind uwtable
declare dso_local { ptr, ptr } @CGenerator__nodeTag__(ptr noundef, i32, ptr) #2

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__writeTag__(ptr noundef, ptr, ptr) #2

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__genExpression__(ptr noundef, i32, ptr, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genPointerCast__(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.tag_____Tag__, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.tag_____Tag__, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !13
  %22 = load i32, ptr %8, align 4, !tbaa !13
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.tag_____List__Node____, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !14
  %26 = icmp ult i32 %22, %25
  br i1 %26, label %30, label %27

27:                                               ; preds = %3
  %28 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  call void %29(i32 noundef -3)
  br label %30

30:                                               ; preds = %27, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.tag_____List__Node____, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = load i32, ptr %8, align 4, !tbaa !13
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds %struct.Node__, ptr %34, i64 %36
  %38 = getelementptr inbounds { i32, ptr }, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8
  %40 = getelementptr inbounds { i32, ptr }, ptr %37, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8
  %42 = call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %31, i32 %39, ptr %41)
  %43 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %44 = extractvalue { ptr, ptr } %42, 0
  store ptr %44, ptr %43, align 8
  %45 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %46 = extractvalue { ptr, ptr } %42, 1
  store ptr %46, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  store ptr %49, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 1, ptr %11, align 4, !tbaa !13
  %50 = load i32, ptr %11, align 4, !tbaa !13
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.tag_____List__Node____, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !14
  %54 = icmp ult i32 %50, %53
  br i1 %54, label %58, label %55

55:                                               ; preds = %30
  %56 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  call void %57(i32 noundef -3)
  br label %58

58:                                               ; preds = %55, %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.tag_____List__Node____, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = load i32, ptr %11, align 4, !tbaa !13
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds %struct.Node__, ptr %62, i64 %64
  %66 = getelementptr inbounds { i32, ptr }, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8
  %68 = getelementptr inbounds { i32, ptr }, ptr %65, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8
  %70 = call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %59, i32 %67, ptr %69)
  %71 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %72 = extractvalue { ptr, ptr } %70, 0
  store ptr %72, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %74 = extractvalue { ptr, ptr } %70, 1
  store ptr %74, ptr %73, align 8
  %75 = getelementptr inbounds %struct.tag_____Tag__, ptr %9, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds %struct.tag_____Namespace__, ptr %76, i32 0, i32 3
  %78 = load i32, ptr %77, align 4, !tbaa !19
  %79 = and i32 %78, 8192
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %133

81:                                               ; preds = %58
  %82 = getelementptr inbounds %struct.tag_____Tag__, ptr %12, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !17
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %86, i32 0, i32 18
  %88 = getelementptr inbounds %struct.tag_____Tag__, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !24
  %90 = icmp eq ptr %83, %89
  br i1 %90, label %94, label %91

91:                                               ; preds = %81
  %92 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  call void %93(i32 noundef -2)
  br label %94

94:                                               ; preds = %91, %81
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load ptr, ptr @mu_____string438, align 8
  %97 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string438, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %95, ptr %96, i32 %97)
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8
  call void @CGenerator__writeTag__(ptr noundef %98, ptr %100, ptr %102)
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load ptr, ptr @mu_____string486, align 8
  %105 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string486, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %103, ptr %104, i32 %105)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  store ptr %108, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !13
  %109 = load i32, ptr %14, align 4, !tbaa !13
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.tag_____List__Node____, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !14
  %113 = icmp ult i32 %109, %112
  br i1 %113, label %117, label %114

114:                                              ; preds = %94
  %115 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  call void %116(i32 noundef -3)
  br label %117

117:                                              ; preds = %114, %94
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.tag_____List__Node____, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = load i32, ptr %14, align 4, !tbaa !13
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds %struct.Node__, ptr %121, i64 %123
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds { i32, ptr }, ptr %124, i32 0, i32 0
  %127 = load i32, ptr %126, align 8
  %128 = getelementptr inbounds { i32, ptr }, ptr %124, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8
  call void @CGenerator__genExpression__(ptr noundef %118, i32 %127, ptr %129, ptr noundef %125)
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load ptr, ptr @mu_____string457, align 8
  %132 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string457, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %130, ptr %131, i32 %132)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %222

133:                                              ; preds = %58
  %134 = getelementptr inbounds %struct.tag_____Tag__, ptr %9, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !17
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !22
  %139 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %138, i32 0, i32 16
  %140 = getelementptr inbounds %struct.tag_____Tag__, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !26
  %142 = icmp eq ptr %135, %141
  br i1 %142, label %143, label %182

143:                                              ; preds = %133
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load ptr, ptr @mu_____string438, align 8
  %146 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string438, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %144, ptr %145, i32 %146)
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8
  call void @CGenerator__writeTag__(ptr noundef %147, ptr %149, ptr %151)
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = load ptr, ptr @mu_____string486, align 8
  %154 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string486, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %152, ptr %153, i32 %154)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %155, i32 0, i32 2
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  store ptr %157, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !13
  %158 = load i32, ptr %16, align 4, !tbaa !13
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.tag_____List__Node____, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !14
  %162 = icmp ult i32 %158, %161
  br i1 %162, label %166, label %163

163:                                              ; preds = %143
  %164 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  call void %165(i32 noundef -3)
  br label %166

166:                                              ; preds = %163, %143
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.tag_____List__Node____, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !16
  %171 = load i32, ptr %16, align 4, !tbaa !13
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds %struct.Node__, ptr %170, i64 %172
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds { i32, ptr }, ptr %173, i32 0, i32 0
  %176 = load i32, ptr %175, align 8
  %177 = getelementptr inbounds { i32, ptr }, ptr %173, i32 0, i32 1
  %178 = load ptr, ptr %177, align 8
  call void @CGenerator__genExpression__(ptr noundef %167, i32 %176, ptr %178, ptr noundef %174)
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load ptr, ptr @mu_____string457, align 8
  %181 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string457, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %179, ptr %180, i32 %181)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %221

182:                                              ; preds = %133
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load ptr, ptr @mu_____string438, align 8
  %185 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string438, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %183, ptr %184, i32 %185)
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8
  %189 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8
  call void @CGenerator__writeTag__(ptr noundef %186, ptr %188, ptr %190)
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = load ptr, ptr @mu_____string408, align 8
  %193 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string408, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %191, ptr %192, i32 %193)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %194, i32 0, i32 2
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  store ptr %196, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !13
  %197 = load i32, ptr %18, align 4, !tbaa !13
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.tag_____List__Node____, ptr %198, i32 0, i32 1
  %200 = load i32, ptr %199, align 8, !tbaa !14
  %201 = icmp ult i32 %197, %200
  br i1 %201, label %205, label %202

202:                                              ; preds = %182
  %203 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  call void %204(i32 noundef -3)
  br label %205

205:                                              ; preds = %202, %182
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.tag_____List__Node____, ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !16
  %210 = load i32, ptr %18, align 4, !tbaa !13
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds %struct.Node__, ptr %209, i64 %211
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds { i32, ptr }, ptr %212, i32 0, i32 0
  %215 = load i32, ptr %214, align 8
  %216 = getelementptr inbounds { i32, ptr }, ptr %212, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8
  call void @CGenerator__genExpression__(ptr noundef %206, i32 %215, ptr %217, ptr noundef %213)
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load ptr, ptr @mu_____string303, align 8
  %220 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string303, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %218, ptr %219, i32 %220)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %221

221:                                              ; preds = %205, %166
  br label %222

222:                                              ; preds = %221, %117
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 24}
!10 = !{!"tag_____CallExpression__", !11, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"", !12, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !12, i64 8}
!15 = !{!"tag_____List__Node____", !6, i64 0, !12, i64 8, !12, i64 12}
!16 = !{!15, !6, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!19 = !{!20, !12, i64 28}
!20 = !{!"tag_____Namespace__", !21, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !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, !12, i64 104}
!21 = !{!"", !6, i64 0, !12, i64 8}
!22 = !{!23, !6, i64 32}
!23 = !{!"tag_____GenerateContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !21, i64 80, !12, i64 96, !21, i64 104, !12, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!24 = !{!25, !6, i64 288}
!25 = !{!"tag_____CommonTags__", !18, i64 0, !18, i64 16, !18, i64 32, !18, i64 48, !18, i64 64, !18, i64 80, !18, i64 96, !18, i64 112, !18, i64 128, !18, i64 144, !18, i64 160, !18, i64 176, !18, i64 192, !18, i64 208, !18, i64 224, !18, i64 240, !18, i64 256, !18, i64 272, !18, i64 288, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376}
!26 = !{!25, !6, i64 256}


; 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.string__ = type { ptr, i32 }

@mu_____string438 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string408 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string303 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string486 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string457 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { ptr, ptr } @CGenerator__nodeTag__(ptr noundef, i32, ptr) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__writeTag__(ptr noundef, ptr, ptr) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__genExpression__(ptr noundef, i32, ptr, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genPointerCast__(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %1, i64 24
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !12
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %11

8:                                                ; preds = %3
  %9 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  tail call void %10(i32 noundef -3) #2
  br label %11

11:                                               ; preds = %8, %3
  %12 = load ptr, ptr %5, align 8, !tbaa !15
  %13 = load i32, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr %12, i64 8
  %15 = load ptr, ptr %14, align 8
  %16 = tail call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %0, i32 %13, ptr %15)
  %17 = extractvalue { ptr, ptr } %16, 0
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !12
  %21 = icmp ugt i32 %20, 1
  br i1 %21, label %25, label %22

22:                                               ; preds = %11
  %23 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  tail call void %24(i32 noundef -3) #2
  br label %25

25:                                               ; preds = %22, %11
  %26 = load ptr, ptr %18, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load i32, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %26, i64 24
  %30 = load ptr, ptr %29, align 8
  %31 = tail call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %0, i32 %28, ptr %30)
  %32 = extractvalue { ptr, ptr } %31, 0
  %33 = extractvalue { ptr, ptr } %31, 1
  %34 = getelementptr inbounds i8, ptr %17, i64 28
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = and i32 %35, 8192
  %.not53 = icmp eq i32 %36, 0
  %37 = getelementptr inbounds i8, ptr %0, i64 32
  %38 = load ptr, ptr %37, align 8, !tbaa !19
  br i1 %.not53, label %54, label %39

39:                                               ; preds = %25
  %40 = getelementptr inbounds i8, ptr %38, i64 288
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = icmp eq ptr %32, %41
  br i1 %42, label %46, label %43

43:                                               ; preds = %39
  %44 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  tail call void %45(i32 noundef -2) #2
  br label %46

46:                                               ; preds = %43, %39
  %47 = load ptr, ptr @mu_____string438, align 8
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string438, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %47, i32 %48)
  tail call void @CGenerator__writeTag__(ptr noundef %2, ptr %32, ptr %33)
  %49 = load ptr, ptr @mu_____string486, align 8
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string486, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %49, i32 %50)
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i32, ptr %52, align 8, !tbaa !12
  %.not56 = icmp eq i32 %53, 0
  br i1 %.not56, label %.sink.split, label %74

54:                                               ; preds = %25
  %55 = getelementptr inbounds i8, ptr %38, i64 256
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %57 = icmp eq ptr %17, %56
  %58 = load ptr, ptr @mu_____string438, align 8
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string438, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %58, i32 %59)
  tail call void @CGenerator__writeTag__(ptr noundef %2, ptr %32, ptr %33)
  br i1 %57, label %60, label %66

60:                                               ; preds = %54
  %61 = load ptr, ptr @mu_____string486, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string486, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %61, i32 %62)
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load i32, ptr %64, align 8, !tbaa !12
  %.not55 = icmp eq i32 %65, 0
  br i1 %.not55, label %.sink.split, label %74

66:                                               ; preds = %54
  %67 = load ptr, ptr @mu_____string408, align 8
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string408, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %67, i32 %68)
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load i32, ptr %70, align 8, !tbaa !12
  %.not54 = icmp eq i32 %71, 0
  br i1 %.not54, label %.sink.split, label %74

.sink.split:                                      ; preds = %66, %60, %46
  %.sink.ph = phi ptr [ %51, %46 ], [ %63, %60 ], [ %69, %66 ]
  %mu_____string457.sink.ph = phi ptr [ @mu_____string457, %46 ], [ @mu_____string457, %60 ], [ @mu_____string303, %66 ]
  %.sink58.ph = phi ptr [ getelementptr inbounds (i8, ptr @mu_____string457, i64 8), %46 ], [ getelementptr inbounds (i8, ptr @mu_____string457, i64 8), %60 ], [ getelementptr inbounds (i8, ptr @mu_____string303, i64 8), %66 ]
  %72 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  tail call void %73(i32 noundef -3) #2
  br label %74

74:                                               ; preds = %.sink.split, %66, %60, %46
  %.sink = phi ptr [ %51, %46 ], [ %63, %60 ], [ %69, %66 ], [ %.sink.ph, %.sink.split ]
  %mu_____string457.sink = phi ptr [ @mu_____string457, %46 ], [ @mu_____string457, %60 ], [ @mu_____string303, %66 ], [ %mu_____string457.sink.ph, %.sink.split ]
  %.sink58 = phi ptr [ getelementptr inbounds (i8, ptr @mu_____string457, i64 8), %46 ], [ getelementptr inbounds (i8, ptr @mu_____string457, i64 8), %60 ], [ getelementptr inbounds (i8, ptr @mu_____string303, i64 8), %66 ], [ %.sink58.ph, %.sink.split ]
  %75 = load ptr, ptr %.sink, align 8, !tbaa !15
  %76 = load i32, ptr %75, align 8
  %77 = getelementptr inbounds i8, ptr %75, i64 8
  %78 = load ptr, ptr %77, align 8
  tail call void @CGenerator__genExpression__(ptr noundef nonnull %0, i32 %76, ptr %78, ptr noundef %2)
  %79 = load ptr, ptr %mu_____string457.sink, align 8
  %80 = load i32, ptr %.sink58, align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %79, i32 %80)
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !11, i64 24}
!6 = !{!"tag_____CallExpression__", !7, i64 0, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 8}
!13 = !{!"tag_____List__Node____", !11, i64 0, !8, i64 8, !8, i64 12}
!14 = !{!11, !11, i64 0}
!15 = !{!13, !11, i64 0}
!16 = !{!17, !8, i64 28}
!17 = !{!"tag_____Namespace__", !18, i64 0, !11, i64 16, !8, i64 24, !8, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !8, i64 104}
!18 = !{!"", !11, i64 0, !8, i64 8}
!19 = !{!20, !11, i64 32}
!20 = !{!"tag_____GenerateContext__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !18, i64 80, !8, i64 96, !18, i64 104, !8, i64 120, !11, i64 128, !11, i64 136, !9, i64 144}
!21 = !{!22, !11, i64 288}
!22 = !{!"tag_____CommonTags__", !23, i64 0, !23, i64 16, !23, i64 32, !23, i64 48, !23, i64 64, !23, i64 80, !23, i64 96, !23, i64 112, !23, i64 128, !23, i64 144, !23, i64 160, !23, i64 176, !23, i64 192, !23, i64 208, !23, i64 224, !23, i64 240, !23, i64 256, !23, i64 272, !23, i64 288, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376}
!23 = !{!"tag_____Tag__", !11, i64 0, !11, i64 8}
!24 = !{!22, !11, i64 256}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass