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

; 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_____IAllocator__ = type { ptr, ptr, ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____CallExpression__ = type { %struct.Node__, ptr, ptr, ptr, ptr, ptr }
%struct.tag_____List__Node____ = type { ptr, i32, 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 }

@mu_____string438 = external dso_local global %struct.string__, align 8
@mu_____string303 = external dso_local global %struct.string__, align 8
@mu_____string324 = external dso_local global %struct.string__, align 8
@mu_____string421 = external dso_local global %struct.string__, align 8
@mu_____string508 = external dso_local global %struct.string__, align 8
@mu_____string509 = external dso_local global %struct.string__, align 8
@mu_____string422 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__clear__(ptr noundef) #4

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genMinMax__(ptr noundef %0, ptr noundef %1, ptr %2, i32 %3, ptr noundef %4) #4 {
  %6 = alloca %struct.string__, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.Node__, align 8
  %11 = alloca %struct.tag_____Tag__, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.tag_____StringBuilder__, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.string__, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.string__, align 8
  %19 = alloca %struct.string__, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.string__, align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  store ptr %2, ptr %23, align 8
  %24 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  store i32 %3, ptr %24, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %4, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  store ptr %25, ptr %26, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  %30 = zext i1 %29 to i64
  %31 = select i1 %29, i32 14, i32 0
  %32 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 0
  store i32 %31, ptr %32, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 0
  %35 = load i32, ptr %34, align 8
  %36 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8
  %38 = call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %33, i32 %35, ptr %37)
  %39 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %40 = extractvalue { ptr, ptr } %38, 0
  store ptr %40, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %42 = extractvalue { ptr, ptr } %38, 1
  store ptr %42, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %43 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %44 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %47 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = call ptr %45(ptr noundef %48, i64 noundef 16)
  store ptr %49, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 16, i1 false)
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %51, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %52)
  %54 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %55 = extractvalue { ptr, i32 } %53, 0
  store ptr %55, ptr %54, align 8
  %56 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %57 = extractvalue { ptr, i32 } %53, 1
  store i32 %57, ptr %56, align 8
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8
  %61 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8
  call void @CGenerator__writeTag__(ptr noundef %58, ptr %60, ptr %62)
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = load ptr, ptr @mu_____string421, align 8
  %65 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %63, ptr %64, i32 %65)
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %70 = load i32, ptr %69, align 8
  call void @StringBuilder__write__(ptr noundef %66, ptr %68, i32 %70)
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load ptr, ptr @mu_____string422, align 8
  %73 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string422, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %71, ptr %72, i32 %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  store ptr %76, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !17
  %77 = load i32, ptr %17, align 4, !tbaa !17
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.tag_____List__Node____, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !20
  %81 = icmp ult i32 %77, %80
  br i1 %81, label %85, label %82

82:                                               ; preds = %5
  %83 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  call void %84(i32 noundef -3)
  br label %85

85:                                               ; preds = %82, %5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tag_____List__Node____, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = load i32, ptr %17, align 4, !tbaa !17
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds %struct.Node__, ptr %89, i64 %91
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds { i32, ptr }, ptr %92, i32 0, i32 0
  %95 = load i32, ptr %94, align 8
  %96 = getelementptr inbounds { i32, ptr }, ptr %92, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8
  call void @CGenerator__genExpression__(ptr noundef %86, i32 %95, ptr %97, ptr noundef %93)
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load ptr, ptr @mu_____string324, align 8
  %100 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string324, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %98, ptr %99, i32 %100)
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %101, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %104)
  %106 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %107 = extractvalue { ptr, i32 } %105, 0
  store ptr %107, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %109 = extractvalue { ptr, i32 } %105, 1
  store i32 %109, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %113 = load i32, ptr %112, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %103, ptr %111, i32 %113)
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %114)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %115)
  %117 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %118 = extractvalue { ptr, i32 } %116, 0
  store ptr %118, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %120 = extractvalue { ptr, i32 } %116, 1
  store i32 %120, ptr %119, align 8
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8
  call void @CGenerator__writeTag__(ptr noundef %121, ptr %123, ptr %125)
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load ptr, ptr @mu_____string421, align 8
  %128 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %126, ptr %127, i32 %128)
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %133 = load i32, ptr %132, align 8
  call void @StringBuilder__write__(ptr noundef %129, ptr %131, i32 %133)
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load ptr, ptr @mu_____string422, align 8
  %136 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string422, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %134, ptr %135, i32 %136)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !18
  store ptr %139, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 1, ptr %21, align 4, !tbaa !17
  %140 = load i32, ptr %21, align 4, !tbaa !17
  %141 = load ptr, ptr %20, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.tag_____List__Node____, ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 8, !tbaa !20
  %144 = icmp ult i32 %140, %143
  br i1 %144, label %148, label %145

145:                                              ; preds = %85
  %146 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  call void %147(i32 noundef -3)
  br label %148

148:                                              ; preds = %145, %85
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.tag_____List__Node____, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !22
  %153 = load i32, ptr %21, align 4, !tbaa !17
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds %struct.Node__, ptr %152, i64 %154
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = getelementptr inbounds { i32, ptr }, ptr %155, i32 0, i32 0
  %158 = load i32, ptr %157, align 8
  %159 = getelementptr inbounds { i32, ptr }, ptr %155, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8
  call void @CGenerator__genExpression__(ptr noundef %149, i32 %158, ptr %160, ptr noundef %156)
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load ptr, ptr @mu_____string324, align 8
  %163 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string324, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %161, ptr %162, i32 %163)
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %164, i32 0, i32 5
  %166 = load ptr, ptr %165, align 8, !tbaa !23
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %167)
  %169 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %170 = extractvalue { ptr, i32 } %168, 0
  store ptr %170, ptr %169, align 8
  %171 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %172 = extractvalue { ptr, i32 } %168, 1
  store i32 %172, ptr %171, align 8
  %173 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8
  %175 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %176 = load i32, ptr %175, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %166, ptr %174, i32 %176)
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load ptr, ptr @mu_____string438, align 8
  %179 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string438, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %177, ptr %178, i32 %179)
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8
  %183 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %184 = load i32, ptr %183, align 8
  call void @StringBuilder__write__(ptr noundef %180, ptr %182, i32 %184)
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = load ptr, ptr @mu_____string421, align 8
  %187 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %185, ptr %186, i32 %187)
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  %191 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  %192 = load i32, ptr %191, align 8
  call void @StringBuilder__write__(ptr noundef %188, ptr %190, i32 %192)
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = load ptr, ptr @mu_____string421, align 8
  %195 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %193, ptr %194, i32 %195)
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8
  %199 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %200 = load i32, ptr %199, align 8
  call void @StringBuilder__write__(ptr noundef %196, ptr %198, i32 %200)
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = load ptr, ptr @mu_____string303, align 8
  %203 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string303, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %201, ptr %202, i32 %203)
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = load ptr, ptr @mu_____string508, align 8
  %206 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string508, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %204, ptr %205, i32 %206)
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8
  %210 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %211 = load i32, ptr %210, align 8
  call void @StringBuilder__write__(ptr noundef %207, ptr %209, i32 %211)
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = load ptr, ptr @mu_____string509, align 8
  %214 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string509, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %212, ptr %213, i32 %214)
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8
  %218 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %219 = load i32, ptr %218, align 8
  call void @StringBuilder__write__(ptr noundef %215, ptr %217, i32 %219)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 8}
!10 = !{!"", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!14, !6, i64 0}
!16 = !{i64 0, i64 8, !5, i64 8, i64 4, !17, i64 12, i64 4, !17}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !6, i64 24}
!19 = !{!"tag_____CallExpression__", !10, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!20 = !{!21, !11, i64 8}
!21 = !{!"tag_____List__Node____", !6, i64 0, !11, i64 8, !11, i64 12}
!22 = !{!21, !6, i64 0}
!23 = !{!24, !6, i64 40}
!24 = !{!"tag_____GenerateContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !25, i64 80, !11, i64 96, !25, i64 104, !11, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!25 = !{!"", !6, i64 0, !11, i64 8}


; 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 }
%struct.tag_____IAllocator__ = type { ptr, ptr, ptr, ptr }

@mu_____string438 = 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_____string324 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string421 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string508 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string509 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string422 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local local_unnamed_addr global %struct.tag_____IAllocator__, 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genMinMax__(ptr noundef %0, ptr noundef %1, ptr %2, i32 %3, ptr noundef %4) local_unnamed_addr #2 {
  %.not = icmp eq ptr %1, null
  %6 = select i1 %.not, i32 0, i32 14
  %7 = tail call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %0, i32 %6, ptr %1)
  %8 = extractvalue { ptr, ptr } %7, 0
  %9 = extractvalue { ptr, ptr } %7, 1
  %10 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load ptr, ptr %10, align 8, !tbaa !10
  %14 = tail call ptr %12(ptr noundef %13, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %15 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %0)
  %16 = extractvalue { ptr, i32 } %15, 0
  %17 = extractvalue { ptr, i32 } %15, 1
  tail call void @CGenerator__writeTag__(ptr noundef %14, ptr %8, ptr %9)
  %18 = load ptr, ptr @mu_____string421, align 8
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %18, i32 %19)
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %16, i32 %17)
  %20 = load ptr, ptr @mu_____string422, align 8
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string422, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %20, i32 %21)
  %22 = getelementptr inbounds i8, ptr %1, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !15
  %.not67 = icmp eq i32 %25, 0
  br i1 %.not67, label %26, label %29

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

29:                                               ; preds = %26, %5
  %30 = load ptr, ptr %23, align 8, !tbaa !18
  %31 = load i32, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %30, i64 8
  %33 = load ptr, ptr %32, align 8
  tail call void @CGenerator__genExpression__(ptr noundef %0, i32 %31, ptr %33, ptr noundef nonnull %14)
  %34 = load ptr, ptr @mu_____string324, align 8
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string324, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %14, ptr %34, i32 %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %14)
  %39 = extractvalue { ptr, i32 } %38, 0
  %40 = extractvalue { ptr, i32 } %38, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %37, ptr %39, i32 %40)
  tail call void @StringBuilder__clear__(ptr noundef nonnull %14)
  %41 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %0)
  %42 = extractvalue { ptr, i32 } %41, 0
  %43 = extractvalue { ptr, i32 } %41, 1
  tail call void @CGenerator__writeTag__(ptr noundef nonnull %14, ptr %8, ptr %9)
  %44 = load ptr, ptr @mu_____string421, align 8
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %14, ptr %44, i32 %45)
  tail call void @StringBuilder__write__(ptr noundef nonnull %14, ptr %42, i32 %43)
  %46 = load ptr, ptr @mu_____string422, align 8
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string422, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %14, ptr %46, i32 %47)
  %48 = load ptr, ptr %22, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = icmp ugt i32 %50, 1
  br i1 %51, label %55, label %52

52:                                               ; preds = %29
  %53 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  tail call void %54(i32 noundef -3) #3
  br label %55

55:                                               ; preds = %52, %29
  %56 = load ptr, ptr %48, align 8, !tbaa !18
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = load i32, ptr %57, align 8
  %59 = getelementptr inbounds i8, ptr %56, i64 24
  %60 = load ptr, ptr %59, align 8
  tail call void @CGenerator__genExpression__(ptr noundef nonnull %0, i32 %58, ptr %60, ptr noundef nonnull %14)
  %61 = load ptr, ptr @mu_____string324, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string324, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %14, ptr %61, i32 %62)
  %63 = load ptr, ptr %36, align 8, !tbaa !19
  %64 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %14)
  %65 = extractvalue { ptr, i32 } %64, 0
  %66 = extractvalue { ptr, i32 } %64, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %63, ptr %65, i32 %66)
  %67 = load ptr, ptr @mu_____string438, align 8
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string438, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %67, i32 %68)
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %16, i32 %17)
  %69 = load ptr, ptr @mu_____string421, align 8
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %69, i32 %70)
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %2, i32 %3)
  %71 = load ptr, ptr @mu_____string421, align 8
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %71, i32 %72)
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %42, i32 %43)
  %73 = load ptr, ptr @mu_____string303, align 8
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string303, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %73, i32 %74)
  %75 = load ptr, ptr @mu_____string508, align 8
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string508, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %75, i32 %76)
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %16, i32 %17)
  %77 = load ptr, ptr @mu_____string509, align 8
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string509, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %77, i32 %78)
  tail call void @StringBuilder__write__(ptr noundef %4, ptr %42, i32 %43)
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 8}
!6 = !{!"tag_____IAllocator__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !7, i64 24}
!12 = !{!"tag_____CallExpression__", !13, i64 0, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!13 = !{!"", !14, i64 0, !7, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"tag_____List__Node____", !7, i64 0, !14, i64 8, !14, i64 12}
!17 = !{!7, !7, i64 0}
!18 = !{!16, !7, i64 0}
!19 = !{!20, !7, i64 40}
!20 = !{!"tag_____GenerateContext__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !14, i64 48, !14, i64 52, !7, i64 56, !7, i64 64, !7, i64 72, !21, i64 80, !14, i64 96, !21, i64 104, !14, i64 120, !7, i64 128, !7, i64 136, !8, i64 144}
!21 = !{!"", !7, i64 0, !14, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,TailCallElimPass