; LLVM IR from cmuratori/termbench :: termbench (main)

; 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.buffer = type { i32, i32, ptr }
%struct.test = type { ptr, ptr, [3 x i64] }
%struct.test_context = type { i32, %struct.buffer, i32, i32, i64, i64, double, i64, i64 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@_ZL11NumberTable = external hidden global [256 x [4 x i8]], align 16
@__const.main.Frame = external hidden unnamed_addr constant %struct.buffer, align 8
@_ZL5Tests = external hidden global [4 x %struct.test], align 16
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZL8SizeName = external hidden global [3 x ptr], align 16

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [65 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.buffer, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.buffer, align 8
  %20 = alloca [4 x %struct.test_context], align 16
  %21 = alloca i32, align 4
  %22 = alloca %struct.test, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca %struct.test, align 8
  %29 = alloca %struct.test_context, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %62, %2
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %65

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  store ptr %40, ptr %10, align 8, !tbaa !9
  %41 = load ptr, ptr %10, align 8, !tbaa !9
  %42 = call i32 @strcmp(ptr noundef %41, ptr noundef @.str) #10
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %35
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %61

45:                                               ; preds = %35
  %46 = load ptr, ptr %10, align 8, !tbaa !9
  %47 = call i32 @strcmp(ptr noundef %46, ptr noundef @.str.1) #10
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %60

50:                                               ; preds = %45
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.2) #10
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  store i32 2, ptr %8, align 4, !tbaa !5
  br label %59

55:                                               ; preds = %50
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = load ptr, ptr %10, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.3, ptr noundef %57) #9
  br label %59

59:                                               ; preds = %55, %54
  br label %60

60:                                               ; preds = %59, %49
  br label %61

61:                                               ; preds = %60, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %9, align 4, !tbaa !5
  br label %30, !llvm.loop !11

65:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 65, ptr %11) #9
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 65, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %97, %65
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 3
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %100

70:                                               ; preds = %66
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = add i32 -2147483646, %71
  %73 = getelementptr inbounds [65 x i8], ptr %11, i64 0, i64 0
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = mul nsw i32 16, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %73, i64 %76
  %78 = getelementptr inbounds [65 x i8], ptr %11, i64 0, i64 0
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = mul nsw i32 16, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %78, i64 %81
  %83 = getelementptr inbounds i8, ptr %82, i64 4
  %84 = getelementptr inbounds [65 x i8], ptr %11, i64 0, i64 0
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = mul nsw i32 16, %85
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %84, i64 %87
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = getelementptr inbounds [65 x i8], ptr %11, i64 0, i64 0
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = mul nsw i32 16, %91
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %90, i64 %93
  %95 = getelementptr inbounds i8, ptr %94, i64 12
  %96 = call noundef i32 @_ZL11__get_cpuidjPjS_S_S_(i32 noundef %72, ptr noundef %77, ptr noundef %83, ptr noundef %89, ptr noundef %95)
  br label %97

97:                                               ; preds = %70
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %12, align 4, !tbaa !5
  br label %66, !llvm.loop !13

100:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %114, %100
  %102 = load i32, ptr %13, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 256
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %117

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %106 = getelementptr inbounds %struct.buffer, ptr %14, i32 0, i32 0
  store i32 4, ptr %106, align 8, !tbaa !14
  %107 = getelementptr inbounds %struct.buffer, ptr %14, i32 0, i32 1
  store i32 0, ptr %107, align 4, !tbaa !16
  %108 = getelementptr inbounds %struct.buffer, ptr %14, i32 0, i32 2
  %109 = load i32, ptr %13, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [256 x [4 x i8]], ptr @_ZL11NumberTable, i64 0, i64 %110
  %112 = getelementptr inbounds [4 x i8], ptr %111, i64 0, i64 0
  store ptr %112, ptr %108, align 8, !tbaa !17
  %113 = load i32, ptr %13, align 4, !tbaa !5
  call void @_ZL13AppendDecimalP6bufferj(ptr noundef %14, i32 noundef %113)
  call void @_ZL10AppendCharP6bufferc(ptr noundef %14, i8 noundef signext 0)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %114

114:                                              ; preds = %105
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %13, align 4, !tbaa !5
  br label %101, !llvm.loop !18

117:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %118 = call noundef i64 @_ZL17GetTimerFrequencyv()
  store i64 %118, ptr %16, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 80, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 24, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 @__const.main.Frame, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 288, ptr %20) #9
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 288, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %166, %117
  %120 = load i32, ptr %21, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = icmp ult i64 %121, 4
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %169

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #9
  %125 = load i32, ptr %21, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [4 x %struct.test], ptr @_ZL5Tests, i64 0, i64 %126
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %127, i64 40, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %128 = getelementptr inbounds [4 x %struct.test_context], ptr %20, i64 0, i64 0
  %129 = load i32, ptr %21, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %struct.test_context, ptr %128, i64 %130
  store ptr %131, ptr %23, align 8, !tbaa !9
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = load ptr, ptr %23, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.test_context, ptr %133, i32 0, i32 0
  store i32 %132, ptr %134, align 8, !tbaa !23
  %135 = load ptr, ptr %23, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.test_context, ptr %135, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %136, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !27
  %137 = load i32, ptr %17, align 4, !tbaa !5
  %138 = load ptr, ptr %23, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.test_context, ptr %138, i32 0, i32 2
  store i32 %137, ptr %139, align 8, !tbaa !28
  %140 = load i32, ptr %18, align 4, !tbaa !5
  %141 = load ptr, ptr %23, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.test_context, ptr %141, i32 0, i32 3
  store i32 %140, ptr %142, align 4, !tbaa !29
  %143 = getelementptr inbounds %struct.test, ptr %22, i32 0, i32 2
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [3 x i64], ptr %143, i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !30
  %148 = load ptr, ptr %23, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.test_context, ptr %148, i32 0, i32 4
  store i64 %147, ptr %149, align 8, !tbaa !31
  %150 = getelementptr inbounds %struct.test, ptr %22, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !32
  %152 = load ptr, ptr %23, align 8, !tbaa !9
  call void %151(ptr noundef %152)
  %153 = load ptr, ptr %23, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.test_context, ptr %153, i32 0, i32 8
  %155 = load i64, ptr %154, align 8, !tbaa !34
  %156 = load ptr, ptr %23, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.test_context, ptr %156, i32 0, i32 7
  %158 = load i64, ptr %157, align 8, !tbaa !35
  %159 = sub i64 %155, %158
  %160 = uitofp i64 %159 to double
  %161 = load i64, ptr %16, align 8, !tbaa !19
  %162 = uitofp i64 %161 to double
  %163 = fdiv double %160, %162
  %164 = load ptr, ptr %23, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.test_context, ptr %164, i32 0, i32 6
  store double %163, ptr %165, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #9
  br label %166

166:                                              ; preds = %124
  %167 = load i32, ptr %21, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %21, align 4, !tbaa !5
  br label %119, !llvm.loop !37

169:                                              ; preds = %123
  call void @_ZL11AppendColorP6bufferijjj(ptr noundef %19, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  call void @_ZL11AppendColorP6bufferijjj(ptr noundef %19, i32 noundef 1, i32 noundef 255, i32 noundef 255, i32 noundef 255)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %175, %169
  %171 = load i32, ptr %24, align 4, !tbaa !5
  %172 = icmp slt i32 %171, 1024
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %178

174:                                              ; preds = %170
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.5)
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %24, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %24, align 4, !tbaa !5
  br label %170, !llvm.loop !38

178:                                              ; preds = %173
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.6)
  %179 = getelementptr inbounds [65 x i8], ptr %11, i64 0, i64 0
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef %179)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.5)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.7)
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = icmp ne i32 %180, 0
  %182 = zext i1 %181 to i64
  %183 = select i1 %181, ptr @.str.8, ptr @.str.9
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef %183)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  store double 0.000000e+00, ptr %25, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  store i64 0, ptr %26, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %214, %178
  %185 = load i32, ptr %27, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = icmp ult i64 %186, 4
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %217

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #9
  %190 = load i32, ptr %27, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [4 x %struct.test], ptr @_ZL5Tests, i64 0, i64 %191
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %192, i64 40, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 72, ptr %29) #9
  %193 = load i32, ptr %27, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [4 x %struct.test_context], ptr %20, i64 0, i64 %194
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %195, i64 72, i1 false), !tbaa.struct !40
  %196 = getelementptr inbounds %struct.test, ptr %28, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !41
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef %197)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.10)
  %198 = getelementptr inbounds %struct.test_context, ptr %29, i32 0, i32 6
  %199 = load double, ptr %198, align 8, !tbaa !36
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef %19, double noundef %199)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.11)
  %200 = getelementptr inbounds %struct.test_context, ptr %29, i32 0, i32 5
  %201 = load i64, ptr %200, align 8, !tbaa !42
  %202 = uitofp i64 %201 to double
  %203 = getelementptr inbounds %struct.test_context, ptr %29, i32 0, i32 6
  %204 = load double, ptr %203, align 8, !tbaa !36
  %205 = call noundef double @_ZL6GetGBSdd(double noundef %202, double noundef %204)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef %19, double noundef %205)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.12)
  %206 = getelementptr inbounds %struct.test_context, ptr %29, i32 0, i32 6
  %207 = load double, ptr %206, align 8, !tbaa !36
  %208 = load double, ptr %25, align 8, !tbaa !39
  %209 = fadd double %208, %207
  store double %209, ptr %25, align 8, !tbaa !39
  %210 = getelementptr inbounds %struct.test_context, ptr %29, i32 0, i32 5
  %211 = load i64, ptr %210, align 8, !tbaa !42
  %212 = load i64, ptr %26, align 8, !tbaa !30
  %213 = add i64 %212, %211
  store i64 %213, ptr %26, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 72, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #9
  br label %214

214:                                              ; preds = %189
  %215 = load i32, ptr %27, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %27, align 4, !tbaa !5
  br label %184, !llvm.loop !43

217:                                              ; preds = %188
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.13)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.14)
  %218 = load i32, ptr %8, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [3 x ptr], ptr @_ZL8SizeName, i64 0, i64 %219
  %221 = load ptr, ptr %220, align 8, !tbaa !9
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef %221)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.10)
  %222 = load double, ptr %25, align 8, !tbaa !39
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef %19, double noundef %222)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.11)
  %223 = load i64, ptr %26, align 8, !tbaa !30
  %224 = uitofp i64 %223 to double
  %225 = load double, ptr %25, align 8, !tbaa !39
  %226 = call noundef double @_ZL6GetGBSdd(double noundef %224, double noundef %225)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef %19, double noundef %226)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef %19, ptr noundef @.str.12)
  %227 = load i32, ptr %15, align 4, !tbaa !5
  call void @_ZL14RawFlushBufferiP6buffer(i32 noundef %227, ptr noundef %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 288, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 65, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %228 = load i32, ptr %3, align 4
  ret i32 %228
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL11__get_cpuidjPjS_S_S_(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13AppendDecimalP6bufferj(ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL10AppendCharP6bufferc(ptr noundef, i8 noundef signext) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL17GetTimerFrequencyv() #7

; 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) #8

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11AppendColorP6bufferijjj(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12AppendStringP6bufferPKc(ptr noundef, ptr noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12AppendDoubleP6bufferd(ptr noundef, double noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZL6GetGBSdd(double noundef, double noundef) #7

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14RawFlushBufferiP6buffer(i32 noundef, ptr noundef) #6

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS6buffer", !6, i64 0, !6, i64 4, !10, i64 8}
!16 = !{!15, !6, i64 4}
!17 = !{!15, !10, i64 8}
!18 = distinct !{!18, !12}
!19 = !{!20, !20, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 24, !22}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTS12test_context", !6, i64 0, !15, i64 8, !6, i64 24, !6, i64 28, !25, i64 32, !25, i64 40, !26, i64 48, !20, i64 56, !20, i64 64}
!25 = !{!"long", !7, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 8, !9}
!28 = !{!24, !6, i64 24}
!29 = !{!24, !6, i64 28}
!30 = !{!25, !25, i64 0}
!31 = !{!24, !25, i64 32}
!32 = !{!33, !10, i64 8}
!33 = !{!"_ZTS4test", !10, i64 0, !10, i64 8, !7, i64 16}
!34 = !{!24, !20, i64 64}
!35 = !{!24, !20, i64 56}
!36 = !{!24, !26, i64 48}
!37 = distinct !{!37, !12}
!38 = distinct !{!38, !12}
!39 = !{!26, !26, i64 0}
!40 = !{i64 0, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 8, !9, i64 24, i64 4, !5, i64 28, i64 4, !5, i64 32, i64 8, !30, i64 40, i64 8, !30, i64 48, i64 8, !39, i64 56, i64 8, !19, i64 64, i64 8, !19}
!41 = !{!33, !10, i64 0}
!42 = !{!24, !25, i64 40}
!43 = distinct !{!43, !12}


; 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.buffer = type { i32, i32, ptr }
%struct.test = type { ptr, ptr, [3 x i64] }
%struct.test_context = type { i32, %struct.buffer, i32, i32, i64, i64, double, i64, i64 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@_ZL11NumberTable = external hidden global [256 x [4 x i8]], align 16
@__const.main.Frame = external hidden unnamed_addr constant %struct.buffer, align 8
@_ZL5Tests = external hidden local_unnamed_addr global [4 x %struct.test], align 16
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZL8SizeName = external hidden local_unnamed_addr global [3 x ptr], align 16

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [65 x i8], align 16
  %4 = alloca %struct.buffer, align 8
  %5 = alloca %struct.buffer, align 8
  %6 = alloca [4 x %struct.test_context], align 16
  %7 = alloca %struct.test, align 8
  %8 = icmp sgt i32 %0, 1
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %39
  %9 = zext nneg i32 %.1 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.0.lcssa = phi i64 [ 1, %2 ], [ %9, %._crit_edge.loopexit ]
  call void @llvm.lifetime.start.p0(i64 65, ptr nonnull %3) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(65) %3, i8 0, i64 65, i1 false)
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  %12 = getelementptr inbounds i8, ptr %3, i64 12
  %13 = call noundef i32 @_ZL11__get_cpuidjPjS_S_S_(i32 noundef -2147483646, ptr noundef nonnull %3, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  %15 = getelementptr inbounds i8, ptr %3, i64 20
  %16 = getelementptr inbounds i8, ptr %3, i64 24
  %17 = getelementptr inbounds i8, ptr %3, i64 28
  %18 = call noundef i32 @_ZL11__get_cpuidjPjS_S_S_(i32 noundef -2147483645, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17)
  %19 = getelementptr inbounds i8, ptr %3, i64 32
  %20 = getelementptr inbounds i8, ptr %3, i64 36
  %21 = getelementptr inbounds i8, ptr %3, i64 40
  %22 = getelementptr inbounds i8, ptr %3, i64 44
  %23 = call noundef i32 @_ZL11__get_cpuidjPjS_S_S_(i32 noundef -2147483644, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %24 = getelementptr inbounds i8, ptr %4, i64 4
  %25 = getelementptr inbounds i8, ptr %4, i64 8
  br label %105

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %39 ]
  %.067 = phi i32 [ 1, %.lr.ph.preheader ], [ %.1, %39 ]
  %26 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str) #10
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %39, label %30

30:                                               ; preds = %.lr.ph
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.1) #10
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %39, label %33

33:                                               ; preds = %30
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.2) #10
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.3, ptr noundef %27) #11
  br label %39

39:                                               ; preds = %33, %30, %.lr.ph, %36
  %.1 = phi i32 [ %.067, %36 ], [ 1, %.lr.ph ], [ 0, %30 ], [ 2, %33 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !9

40:                                               ; preds = %105
  %41 = call noundef i64 @_ZL17GetTimerFrequencyv()
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) @__const.main.Frame, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 288, ptr nonnull %6) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(288) %6, i8 0, i64 288, i1 false)
  %42 = getelementptr inbounds i8, ptr %7, i64 16
  %43 = getelementptr inbounds [3 x i64], ptr %42, i64 0, i64 %.0.lcssa
  %44 = getelementptr inbounds i8, ptr %7, i64 8
  %45 = uitofp i64 %41 to double
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 16 dereferenceable(40) @_ZL5Tests, i64 40, i1 false), !tbaa.struct !11
  store i32 1, ptr %6, align 16, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) @__const.main.Frame, i64 16, i1 false)
  %47 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 80, ptr %47, align 8, !tbaa !20
  %48 = getelementptr inbounds i8, ptr %6, i64 28
  store i32 24, ptr %48, align 4, !tbaa !21
  %49 = load i64, ptr %43, align 8, !tbaa !22
  %50 = getelementptr inbounds i8, ptr %6, i64 32
  store i64 %49, ptr %50, align 16, !tbaa !23
  %51 = load ptr, ptr %44, align 8, !tbaa !24
  call void %51(ptr noundef nonnull %6)
  %52 = getelementptr inbounds i8, ptr %6, i64 64
  %53 = load i64, ptr %52, align 16, !tbaa !26
  %54 = getelementptr inbounds i8, ptr %6, i64 56
  %55 = load i64, ptr %54, align 8, !tbaa !27
  %56 = sub i64 %53, %55
  %57 = uitofp i64 %56 to double
  %58 = fdiv double %57, %45
  %59 = getelementptr inbounds i8, ptr %6, i64 48
  store double %58, ptr %59, align 16, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) getelementptr inbounds (i8, ptr @_ZL5Tests, i64 40), i64 40, i1 false), !tbaa.struct !11
  %60 = getelementptr inbounds i8, ptr %6, i64 72
  store i32 1, ptr %60, align 8, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %6, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !29
  %62 = getelementptr inbounds i8, ptr %6, i64 96
  store i32 80, ptr %62, align 16, !tbaa !20
  %63 = getelementptr inbounds i8, ptr %6, i64 100
  store i32 24, ptr %63, align 4, !tbaa !21
  %64 = load i64, ptr %43, align 8, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %6, i64 104
  store i64 %64, ptr %65, align 8, !tbaa !23
  %66 = load ptr, ptr %44, align 8, !tbaa !24
  call void %66(ptr noundef nonnull %60)
  %67 = getelementptr inbounds i8, ptr %6, i64 136
  %68 = load i64, ptr %67, align 8, !tbaa !26
  %69 = getelementptr inbounds i8, ptr %6, i64 128
  %70 = load i64, ptr %69, align 16, !tbaa !27
  %71 = sub i64 %68, %70
  %72 = uitofp i64 %71 to double
  %73 = fdiv double %72, %45
  %74 = getelementptr inbounds i8, ptr %6, i64 120
  store double %73, ptr %74, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 16 dereferenceable(40) getelementptr inbounds (i8, ptr @_ZL5Tests, i64 80), i64 40, i1 false), !tbaa.struct !11
  %75 = getelementptr inbounds i8, ptr %6, i64 144
  store i32 1, ptr %75, align 16, !tbaa !13
  %76 = getelementptr inbounds i8, ptr %6, i64 152
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !29
  %77 = getelementptr inbounds i8, ptr %6, i64 168
  store i32 80, ptr %77, align 8, !tbaa !20
  %78 = getelementptr inbounds i8, ptr %6, i64 172
  store i32 24, ptr %78, align 4, !tbaa !21
  %79 = load i64, ptr %43, align 8, !tbaa !22
  %80 = getelementptr inbounds i8, ptr %6, i64 176
  store i64 %79, ptr %80, align 16, !tbaa !23
  %81 = load ptr, ptr %44, align 8, !tbaa !24
  call void %81(ptr noundef nonnull %75)
  %82 = getelementptr inbounds i8, ptr %6, i64 208
  %83 = load i64, ptr %82, align 16, !tbaa !26
  %84 = getelementptr inbounds i8, ptr %6, i64 200
  %85 = load i64, ptr %84, align 8, !tbaa !27
  %86 = sub i64 %83, %85
  %87 = uitofp i64 %86 to double
  %88 = fdiv double %87, %45
  %89 = getelementptr inbounds i8, ptr %6, i64 192
  store double %88, ptr %89, align 16, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) getelementptr inbounds (i8, ptr @_ZL5Tests, i64 120), i64 40, i1 false), !tbaa.struct !11
  %90 = getelementptr inbounds i8, ptr %6, i64 216
  store i32 1, ptr %90, align 8, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %6, i64 224
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !29
  %92 = getelementptr inbounds i8, ptr %6, i64 240
  store i32 80, ptr %92, align 16, !tbaa !20
  %93 = getelementptr inbounds i8, ptr %6, i64 244
  store i32 24, ptr %93, align 4, !tbaa !21
  %94 = load i64, ptr %43, align 8, !tbaa !22
  %95 = getelementptr inbounds i8, ptr %6, i64 248
  store i64 %94, ptr %95, align 8, !tbaa !23
  %96 = load ptr, ptr %44, align 8, !tbaa !24
  call void %96(ptr noundef nonnull %90)
  %97 = getelementptr inbounds i8, ptr %6, i64 280
  %98 = load i64, ptr %97, align 8, !tbaa !26
  %99 = getelementptr inbounds i8, ptr %6, i64 272
  %100 = load i64, ptr %99, align 16, !tbaa !27
  %101 = sub i64 %98, %100
  %102 = uitofp i64 %101 to double
  %103 = fdiv double %102, %45
  %104 = getelementptr inbounds i8, ptr %6, i64 264
  store double %103, ptr %104, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #9
  call void @_ZL11AppendColorP6bufferijjj(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  call void @_ZL11AppendColorP6bufferijjj(ptr noundef nonnull %5, i32 noundef 1, i32 noundef 255, i32 noundef 255, i32 noundef 255)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.4)
  br label %128

105:                                              ; preds = %._crit_edge, %105
  %indvars.iv81 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next82, %105 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  store i32 4, ptr %4, align 8, !tbaa !31
  store i32 0, ptr %24, align 4, !tbaa !32
  %106 = getelementptr inbounds [256 x [4 x i8]], ptr @_ZL11NumberTable, i64 0, i64 %indvars.iv81
  store ptr %106, ptr %25, align 8, !tbaa !33
  %107 = trunc nuw nsw i64 %indvars.iv81 to i32
  call void @_ZL13AppendDecimalP6bufferj(ptr noundef nonnull %4, i32 noundef %107)
  call void @_ZL10AppendCharP6bufferc(ptr noundef nonnull %4, i8 noundef signext 0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next82, 256
  br i1 %exitcond84.not, label %40, label %105, !llvm.loop !34

108:                                              ; preds = %128
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.6)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull %3)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.5)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.7)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.9)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.5)
  %.sroa.04.0.copyload = load ptr, ptr @_ZL5Tests, align 16, !tbaa !5
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 40
  %.sroa.3.0.copyload = load i64, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !22
  %.sroa.5.0.copyload = load double, ptr %59, align 16, !tbaa !35
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef %.sroa.04.0.copyload)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.10)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %.sroa.5.0.copyload)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.11)
  %109 = uitofp i64 %.sroa.3.0.copyload to double
  %110 = call noundef double @_ZL6GetGBSdd(double noundef %109, double noundef %.sroa.5.0.copyload)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %110)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.12)
  %111 = fadd double %.sroa.5.0.copyload, 0.000000e+00
  %.sroa.04.0.copyload.1 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL5Tests, i64 40), align 8, !tbaa !5
  %.sroa.3.0..sroa_idx.1 = getelementptr inbounds i8, ptr %6, i64 112
  %.sroa.3.0.copyload.1 = load i64, ptr %.sroa.3.0..sroa_idx.1, align 16, !tbaa !22
  %.sroa.5.0.copyload.1 = load double, ptr %74, align 8, !tbaa !35
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef %.sroa.04.0.copyload.1)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.10)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %.sroa.5.0.copyload.1)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.11)
  %112 = uitofp i64 %.sroa.3.0.copyload.1 to double
  %113 = call noundef double @_ZL6GetGBSdd(double noundef %112, double noundef %.sroa.5.0.copyload.1)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %113)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.12)
  %114 = fadd double %111, %.sroa.5.0.copyload.1
  %115 = add i64 %.sroa.3.0.copyload.1, %.sroa.3.0.copyload
  %.sroa.04.0.copyload.2 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL5Tests, i64 80), align 16, !tbaa !5
  %.sroa.3.0..sroa_idx.2 = getelementptr inbounds i8, ptr %6, i64 184
  %.sroa.3.0.copyload.2 = load i64, ptr %.sroa.3.0..sroa_idx.2, align 8, !tbaa !22
  %.sroa.5.0.copyload.2 = load double, ptr %89, align 16, !tbaa !35
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef %.sroa.04.0.copyload.2)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.10)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %.sroa.5.0.copyload.2)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.11)
  %116 = uitofp i64 %.sroa.3.0.copyload.2 to double
  %117 = call noundef double @_ZL6GetGBSdd(double noundef %116, double noundef %.sroa.5.0.copyload.2)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %117)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.12)
  %118 = fadd double %114, %.sroa.5.0.copyload.2
  %119 = add i64 %.sroa.3.0.copyload.2, %115
  %.sroa.04.0.copyload.3 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL5Tests, i64 120), align 8, !tbaa !5
  %.sroa.3.0..sroa_idx.3 = getelementptr inbounds i8, ptr %6, i64 256
  %.sroa.3.0.copyload.3 = load i64, ptr %.sroa.3.0..sroa_idx.3, align 16, !tbaa !22
  %.sroa.5.0.copyload.3 = load double, ptr %104, align 8, !tbaa !35
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef %.sroa.04.0.copyload.3)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.10)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %.sroa.5.0.copyload.3)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.11)
  %120 = uitofp i64 %.sroa.3.0.copyload.3 to double
  %121 = call noundef double @_ZL6GetGBSdd(double noundef %120, double noundef %.sroa.5.0.copyload.3)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %121)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.12)
  %122 = fadd double %118, %.sroa.5.0.copyload.3
  %123 = add i64 %.sroa.3.0.copyload.3, %119
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.13)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.14)
  %124 = getelementptr inbounds [3 x ptr], ptr @_ZL8SizeName, i64 0, i64 %.0.lcssa
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef %125)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.10)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %122)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.11)
  %126 = uitofp i64 %123 to double
  %127 = call noundef double @_ZL6GetGBSdd(double noundef %126, double noundef %122)
  call void @_ZL12AppendDoubleP6bufferd(ptr noundef nonnull %5, double noundef %127)
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.12)
  call void @_ZL14RawFlushBufferiP6buffer(i32 noundef 1, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 65, ptr nonnull %3) #9
  ret i32 0

128:                                              ; preds = %40, %128
  %.06171 = phi i32 [ 0, %40 ], [ %129, %128 ]
  call void @_ZL12AppendStringP6bufferPKc(ptr noundef nonnull %5, ptr noundef nonnull @.str.5)
  %129 = add nuw nsw i32 %.06171, 1
  %exitcond89.not = icmp eq i32 %129, 1024
  br i1 %exitcond89.not, label %108, label %128, !llvm.loop !36
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL11__get_cpuidjPjS_S_S_(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13AppendDecimalP6bufferj(ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL10AppendCharP6bufferc(ptr noundef, i8 noundef signext) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL17GetTimerFrequencyv() local_unnamed_addr #7

; Function Attrs: mustprogress 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) #8

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11AppendColorP6bufferijjj(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12AppendStringP6bufferPKc(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12AppendDoubleP6bufferd(ptr noundef, double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZL6GetGBSdd(double noundef, double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14RawFlushBufferiP6buffer(i32 noundef, ptr noundef) local_unnamed_addr #6

attributes #0 = { mustprogress norecurse 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { mustprogress 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 24, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS12test_context", !15, i64 0, !16, i64 8, !15, i64 24, !15, i64 28, !17, i64 32, !17, i64 40, !18, i64 48, !19, i64 56, !19, i64 64}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS6buffer", !15, i64 0, !15, i64 4, !6, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!14, !15, i64 24}
!21 = !{!14, !15, i64 28}
!22 = !{!17, !17, i64 0}
!23 = !{!14, !17, i64 32}
!24 = !{!25, !6, i64 8}
!25 = !{!"_ZTS4test", !6, i64 0, !6, i64 8, !7, i64 16}
!26 = !{!14, !19, i64 64}
!27 = !{!14, !19, i64 56}
!28 = !{!14, !18, i64 48}
!29 = !{i64 0, i64 4, !30, i64 4, i64 4, !30, i64 8, i64 8, !5}
!30 = !{!15, !15, i64 0}
!31 = !{!16, !15, i64 0}
!32 = !{!16, !15, i64 4}
!33 = !{!16, !6, i64 8}
!34 = distinct !{!34, !10}
!35 = !{!18, !18, i64 0}
!36 = distinct !{!36, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass