; LLVM IR from stillwater-sc/universal :: c_api/shim/test/posit (posit32)

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

%union.posit32_u = type { i32 }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@NAR32 = external hidden constant { [4 x i8] }, align 4
@ZERO32 = external hidden constant { [4 x i8] }, align 4

; Function Attrs: nounwind uwtable
define dso_local 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 %union.posit32_u, align 4
  %7 = alloca %union.posit32_u, align 4
  %8 = alloca %union.posit32_u, align 4
  %9 = alloca [32 x i8], align 16
  %10 = alloca i8, align 1
  %11 = alloca %union.posit32_u, align 4
  %12 = alloca %union.posit32_u, align 4
  %13 = alloca %union.posit32_u, align 4
  %14 = alloca %union.posit32_u, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %union.posit32_u, align 4
  %19 = alloca i32, align 4
  %20 = alloca %union.posit32_u, align 4
  %21 = alloca %union.posit32_u, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %union.posit32_u, align 4
  %26 = alloca i32, align 4
  %27 = alloca %union.posit32_u, align 4
  %28 = alloca i32, align 4
  %29 = alloca %union.posit32_u, align 4
  %30 = alloca %union.posit32_u, align 4
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca %union.posit32_u, align 4
  %35 = alloca i32, align 4
  %36 = alloca %union.posit32_u, align 4
  %37 = alloca i32, align 4
  %38 = alloca %union.posit32_u, align 4
  %39 = alloca %union.posit32_u, align 4
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca %union.posit32_u, align 4
  %44 = alloca i32, align 4
  %45 = alloca %union.posit32_u, align 4
  %46 = alloca i32, align 4
  %47 = alloca %union.posit32_u, align 4
  %48 = alloca %union.posit32_u, align 4
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca %union.posit32_u, align 4
  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) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @NAR32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @ZERO32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %53 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %54 = load i32, ptr %53, align 4
  %55 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %56 = load i32, ptr %55, align 4
  %57 = call i32 @posit32_add(i32 %54, i32 %56)
  %58 = getelementptr inbounds %union.posit32_u, ptr %11, i32 0, i32 0
  store i32 %57, ptr %58, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %11, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %59 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %60 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %61 = load i32, ptr %60, align 4
  call void @posit32_str(ptr noundef %59, i32 %61)
  %62 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %62)
  %64 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %65 = load i32, ptr %64, align 4
  %66 = call i32 @posit32_bits(i32 %65)
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %66)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @NAR32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @ZERO32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %68 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %69 = load i32, ptr %68, align 4
  %70 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %71 = load i32, ptr %70, align 4
  %72 = call i32 @posit32_sub(i32 %69, i32 %71)
  %73 = getelementptr inbounds %union.posit32_u, ptr %12, i32 0, i32 0
  store i32 %72, ptr %73, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %12, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %74 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %75 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %76 = load i32, ptr %75, align 4
  call void @posit32_str(ptr noundef %74, i32 %76)
  %77 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %77)
  %79 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %80 = load i32, ptr %79, align 4
  %81 = call i32 @posit32_bits(i32 %80)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %81)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @NAR32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @ZERO32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %83 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %84 = load i32, ptr %83, align 4
  %85 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %86 = load i32, ptr %85, align 4
  %87 = call i32 @posit32_mul(i32 %84, i32 %86)
  %88 = getelementptr inbounds %union.posit32_u, ptr %13, i32 0, i32 0
  store i32 %87, ptr %88, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %13, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %89 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %90 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %91 = load i32, ptr %90, align 4
  call void @posit32_str(ptr noundef %89, i32 %91)
  %92 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %92)
  %94 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %95 = load i32, ptr %94, align 4
  %96 = call i32 @posit32_bits(i32 %95)
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %96)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @NAR32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @ZERO32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %98 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %99 = load i32, ptr %98, align 4
  %100 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %101 = load i32, ptr %100, align 4
  %102 = call i32 @posit32_div(i32 %99, i32 %101)
  %103 = getelementptr inbounds %union.posit32_u, ptr %14, i32 0, i32 0
  store i32 %102, ptr %103, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %14, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %104 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %105 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %106 = load i32, ptr %105, align 4
  call void @posit32_str(ptr noundef %104, i32 %106)
  %107 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %107)
  %109 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %110 = load i32, ptr %109, align 4
  %111 = call i32 @posit32_bits(i32 %110)
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %111)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %182, %2
  %114 = load i32, ptr %16, align 4, !tbaa !5
  %115 = icmp slt i32 %114, 256
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 2, ptr %17, align 4
  br label %185

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %118 = load i32, ptr %16, align 4, !tbaa !5
  %119 = call i32 @posit32_reinterpret(i32 noundef %118)
  %120 = getelementptr inbounds %union.posit32_u, ptr %18, i32 0, i32 0
  store i32 %119, ptr %120, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %18, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %173, %117
  %122 = load i32, ptr %19, align 4, !tbaa !5
  %123 = icmp slt i32 %122, 256
  br i1 %123, label %125, label %124

124:                                              ; preds = %121
  store i32 5, ptr %17, align 4
  br label %176

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %126 = load i32, ptr %19, align 4, !tbaa !5
  %127 = call i32 @posit32_reinterpret(i32 noundef %126)
  %128 = getelementptr inbounds %union.posit32_u, ptr %20, i32 0, i32 0
  store i32 %127, ptr %128, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %20, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %129 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %130 = load i32, ptr %129, align 4
  %131 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %132 = load i32, ptr %131, align 4
  %133 = call i32 @posit32_add(i32 %130, i32 %132)
  %134 = getelementptr inbounds %union.posit32_u, ptr %21, i32 0, i32 0
  store i32 %133, ptr %134, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %21, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %135 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %136 = load i32, ptr %135, align 4
  %137 = call double @posit32_tod(i32 %136)
  store double %137, ptr %22, align 8, !tbaa !15
  %138 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %139 = load i32, ptr %138, align 4
  %140 = call double @posit32_tod(i32 %139)
  store double %140, ptr %23, align 8, !tbaa !15
  %141 = load double, ptr %22, align 8, !tbaa !15
  %142 = load double, ptr %23, align 8, !tbaa !15
  %143 = fadd double %141, %142
  store double %143, ptr %24, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %144 = load double, ptr %24, align 8, !tbaa !15
  %145 = call i32 @posit32_fromd(double noundef %144)
  %146 = getelementptr inbounds %union.posit32_u, ptr %25, i32 0, i32 0
  store i32 %145, ptr %146, align 4
  %147 = getelementptr inbounds %union.posit32_u, ptr %25, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %150 = load i32, ptr %149, align 4
  %151 = call i32 @posit32_cmp(i32 %148, i32 %150)
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %169

153:                                              ; preds = %125
  %154 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %155 = load i32, ptr %154, align 4
  %156 = call i32 @posit32_bits(i32 %155)
  %157 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %158 = load i32, ptr %157, align 4
  %159 = call i32 @posit32_bits(i32 %158)
  %160 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %161 = load i32, ptr %160, align 4
  %162 = call i32 @posit32_bits(i32 %161)
  %163 = getelementptr inbounds %union.posit32_u, ptr %25, i32 0, i32 0
  %164 = load i32, ptr %163, align 4
  %165 = call i32 @posit32_bits(i32 %164)
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %156, i32 noundef %159, i32 noundef %162, i32 noundef %165)
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %15, align 4, !tbaa !5
  store i32 5, ptr %17, align 4
  br label %170

169:                                              ; preds = %125
  store i32 0, ptr %17, align 4
  br label %170

170:                                              ; preds = %169, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %171 = load i32, ptr %17, align 4
  switch i32 %171, label %176 [
    i32 0, label %172
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %19, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %19, align 4, !tbaa !5
  br label %121, !llvm.loop !17

176:                                              ; preds = %170, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %15, align 4, !tbaa !5
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %177
  store i32 2, ptr %17, align 4
  br label %185

181:                                              ; preds = %177
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %16, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %16, align 4, !tbaa !5
  br label %113, !llvm.loop !19

185:                                              ; preds = %180, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %15, align 4, !tbaa !5
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %191

189:                                              ; preds = %186
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i8 1, ptr %10, align 1, !tbaa !11
  br label %193

191:                                              ; preds = %186
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %193

193:                                              ; preds = %191, %189
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %252, %193
  %195 = load i32, ptr %26, align 4, !tbaa !5
  %196 = icmp slt i32 %195, 256
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %255

198:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %199 = load i32, ptr %26, align 4, !tbaa !5
  %200 = call i32 @posit32_reinterpret(i32 noundef %199)
  %201 = getelementptr inbounds %union.posit32_u, ptr %27, i32 0, i32 0
  store i32 %200, ptr %201, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %248, %198
  %203 = load i32, ptr %28, align 4, !tbaa !5
  %204 = icmp slt i32 %203, 256
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %251

206:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %207 = load i32, ptr %28, align 4, !tbaa !5
  %208 = call i32 @posit32_reinterpret(i32 noundef %207)
  %209 = getelementptr inbounds %union.posit32_u, ptr %29, i32 0, i32 0
  store i32 %208, ptr %209, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %29, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %210 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %211 = load i32, ptr %210, align 4
  %212 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %213 = load i32, ptr %212, align 4
  %214 = call i32 @posit32_sub(i32 %211, i32 %213)
  %215 = getelementptr inbounds %union.posit32_u, ptr %30, i32 0, i32 0
  store i32 %214, ptr %215, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %30, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %216 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %217 = load i32, ptr %216, align 4
  %218 = call double @posit32_tod(i32 %217)
  store double %218, ptr %31, align 8, !tbaa !15
  %219 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %220 = load i32, ptr %219, align 4
  %221 = call double @posit32_tod(i32 %220)
  store double %221, ptr %32, align 8, !tbaa !15
  %222 = load double, ptr %31, align 8, !tbaa !15
  %223 = load double, ptr %32, align 8, !tbaa !15
  %224 = fsub double %222, %223
  store double %224, ptr %33, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %225 = load double, ptr %33, align 8, !tbaa !15
  %226 = call i32 @posit32_fromd(double noundef %225)
  %227 = getelementptr inbounds %union.posit32_u, ptr %34, i32 0, i32 0
  store i32 %226, ptr %227, align 4
  %228 = load i32, ptr %34, align 4, !tbaa !14
  %229 = load i32, ptr %8, align 4, !tbaa !14
  %230 = icmp ne i32 %228, %229
  br i1 %230, label %231, label %247

231:                                              ; preds = %206
  %232 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %233 = load i32, ptr %232, align 4
  %234 = call i32 @posit32_bits(i32 %233)
  %235 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %236 = load i32, ptr %235, align 4
  %237 = call i32 @posit32_bits(i32 %236)
  %238 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %239 = load i32, ptr %238, align 4
  %240 = call i32 @posit32_bits(i32 %239)
  %241 = getelementptr inbounds %union.posit32_u, ptr %34, i32 0, i32 0
  %242 = load i32, ptr %241, align 4
  %243 = call i32 @posit32_bits(i32 %242)
  %244 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %234, i32 noundef %237, i32 noundef %240, i32 noundef %243)
  %245 = load i32, ptr %15, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %15, align 4, !tbaa !5
  br label %247

247:                                              ; preds = %231, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr %28, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %28, align 4, !tbaa !5
  br label %202, !llvm.loop !20

251:                                              ; preds = %205
  br label %252

252:                                              ; preds = %251
  %253 = load i32, ptr %26, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %26, align 4, !tbaa !5
  br label %194, !llvm.loop !21

255:                                              ; preds = %197
  %256 = load i32, ptr %15, align 4, !tbaa !5
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %260

258:                                              ; preds = %255
  %259 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i8 1, ptr %10, align 1, !tbaa !11
  br label %262

260:                                              ; preds = %255
  %261 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %262

262:                                              ; preds = %260, %258
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %324, %262
  %264 = load i32, ptr %35, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 256
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %327

267:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %268 = load i32, ptr %35, align 4, !tbaa !5
  %269 = call i32 @posit32_reinterpret(i32 noundef %268)
  %270 = getelementptr inbounds %union.posit32_u, ptr %36, i32 0, i32 0
  store i32 %269, ptr %270, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %36, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %271

271:                                              ; preds = %320, %267
  %272 = load i32, ptr %37, align 4, !tbaa !5
  %273 = icmp slt i32 %272, 256
  br i1 %273, label %275, label %274

274:                                              ; preds = %271
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %323

275:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %276 = load i32, ptr %37, align 4, !tbaa !5
  %277 = call i32 @posit32_reinterpret(i32 noundef %276)
  %278 = getelementptr inbounds %union.posit32_u, ptr %38, i32 0, i32 0
  store i32 %277, ptr %278, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %38, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %279 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %280 = load i32, ptr %279, align 4
  %281 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %282 = load i32, ptr %281, align 4
  %283 = call i32 @posit32_mul(i32 %280, i32 %282)
  %284 = getelementptr inbounds %union.posit32_u, ptr %39, i32 0, i32 0
  store i32 %283, ptr %284, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %39, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  %285 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %286 = load i32, ptr %285, align 4
  %287 = call double @posit32_tod(i32 %286)
  store double %287, ptr %40, align 8, !tbaa !15
  %288 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %289 = load i32, ptr %288, align 4
  %290 = call double @posit32_tod(i32 %289)
  store double %290, ptr %41, align 8, !tbaa !15
  %291 = load double, ptr %40, align 8, !tbaa !15
  %292 = load double, ptr %41, align 8, !tbaa !15
  %293 = fmul double %291, %292
  store double %293, ptr %42, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  %294 = load double, ptr %42, align 8, !tbaa !15
  %295 = call i32 @posit32_fromd(double noundef %294)
  %296 = getelementptr inbounds %union.posit32_u, ptr %43, i32 0, i32 0
  store i32 %295, ptr %296, align 4
  %297 = getelementptr inbounds %union.posit32_u, ptr %43, i32 0, i32 0
  %298 = load i32, ptr %297, align 4
  %299 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %300 = load i32, ptr %299, align 4
  %301 = call i32 @posit32_cmp(i32 %298, i32 %300)
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %319

303:                                              ; preds = %275
  %304 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %305 = load i32, ptr %304, align 4
  %306 = call i32 @posit32_bits(i32 %305)
  %307 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %308 = load i32, ptr %307, align 4
  %309 = call i32 @posit32_bits(i32 %308)
  %310 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %311 = load i32, ptr %310, align 4
  %312 = call i32 @posit32_bits(i32 %311)
  %313 = getelementptr inbounds %union.posit32_u, ptr %43, i32 0, i32 0
  %314 = load i32, ptr %313, align 4
  %315 = call i32 @posit32_bits(i32 %314)
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %306, i32 noundef %309, i32 noundef %312, i32 noundef %315)
  %317 = load i32, ptr %15, align 4, !tbaa !5
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %15, align 4, !tbaa !5
  br label %319

319:                                              ; preds = %303, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %37, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %37, align 4, !tbaa !5
  br label %271, !llvm.loop !22

323:                                              ; preds = %274
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %35, align 4, !tbaa !5
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %35, align 4, !tbaa !5
  br label %263, !llvm.loop !23

327:                                              ; preds = %266
  %328 = load i32, ptr %15, align 4, !tbaa !5
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %330, label %332

330:                                              ; preds = %327
  %331 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i8 1, ptr %10, align 1, !tbaa !11
  br label %334

332:                                              ; preds = %327
  %333 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %334

334:                                              ; preds = %332, %330
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %335

335:                                              ; preds = %396, %334
  %336 = load i32, ptr %44, align 4, !tbaa !5
  %337 = icmp slt i32 %336, 256
  br i1 %337, label %339, label %338

338:                                              ; preds = %335
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  br label %399

339:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #5
  %340 = load i32, ptr %44, align 4, !tbaa !5
  %341 = call i32 @posit32_reinterpret(i32 noundef %340)
  %342 = getelementptr inbounds %union.posit32_u, ptr %45, i32 0, i32 0
  store i32 %341, ptr %342, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #5
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %343

343:                                              ; preds = %392, %339
  %344 = load i32, ptr %46, align 4, !tbaa !5
  %345 = icmp slt i32 %344, 256
  br i1 %345, label %347, label %346

346:                                              ; preds = %343
  store i32 23, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #5
  br label %395

347:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  %348 = load i32, ptr %46, align 4, !tbaa !5
  %349 = call i32 @posit32_reinterpret(i32 noundef %348)
  %350 = getelementptr inbounds %union.posit32_u, ptr %47, i32 0, i32 0
  store i32 %349, ptr %350, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %47, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #5
  %351 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %352 = load i32, ptr %351, align 4
  %353 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %354 = load i32, ptr %353, align 4
  %355 = call i32 @posit32_div(i32 %352, i32 %354)
  %356 = getelementptr inbounds %union.posit32_u, ptr %48, i32 0, i32 0
  store i32 %355, ptr %356, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %48, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  %357 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %358 = load i32, ptr %357, align 4
  %359 = call double @posit32_tod(i32 %358)
  store double %359, ptr %49, align 8, !tbaa !15
  %360 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %361 = load i32, ptr %360, align 4
  %362 = call double @posit32_tod(i32 %361)
  store double %362, ptr %50, align 8, !tbaa !15
  %363 = load double, ptr %49, align 8, !tbaa !15
  %364 = load double, ptr %50, align 8, !tbaa !15
  %365 = fdiv double %363, %364
  store double %365, ptr %51, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #5
  %366 = load double, ptr %51, align 8, !tbaa !15
  %367 = call i32 @posit32_fromd(double noundef %366)
  %368 = getelementptr inbounds %union.posit32_u, ptr %52, i32 0, i32 0
  store i32 %367, ptr %368, align 4
  %369 = getelementptr inbounds %union.posit32_u, ptr %52, i32 0, i32 0
  %370 = load i32, ptr %369, align 4
  %371 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %372 = load i32, ptr %371, align 4
  %373 = call i32 @posit32_cmp(i32 %370, i32 %372)
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %391

375:                                              ; preds = %347
  %376 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %377 = load i32, ptr %376, align 4
  %378 = call i32 @posit32_bits(i32 %377)
  %379 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %380 = load i32, ptr %379, align 4
  %381 = call i32 @posit32_bits(i32 %380)
  %382 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %383 = load i32, ptr %382, align 4
  %384 = call i32 @posit32_bits(i32 %383)
  %385 = getelementptr inbounds %union.posit32_u, ptr %52, i32 0, i32 0
  %386 = load i32, ptr %385, align 4
  %387 = call i32 @posit32_bits(i32 %386)
  %388 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %378, i32 noundef %381, i32 noundef %384, i32 noundef %387)
  %389 = load i32, ptr %15, align 4, !tbaa !5
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %15, align 4, !tbaa !5
  br label %391

391:                                              ; preds = %375, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  br label %392

392:                                              ; preds = %391
  %393 = load i32, ptr %46, align 4, !tbaa !5
  %394 = add nsw i32 %393, 1
  store i32 %394, ptr %46, align 4, !tbaa !5
  br label %343, !llvm.loop !24

395:                                              ; preds = %346
  br label %396

396:                                              ; preds = %395
  %397 = load i32, ptr %44, align 4, !tbaa !5
  %398 = add nsw i32 %397, 1
  store i32 %398, ptr %44, align 4, !tbaa !5
  br label %335, !llvm.loop !25

399:                                              ; preds = %338
  %400 = load i32, ptr %15, align 4, !tbaa !5
  %401 = icmp ne i32 %400, 0
  br i1 %401, label %402, label %404

402:                                              ; preds = %399
  %403 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  store i8 1, ptr %10, align 1, !tbaa !11
  br label %406

404:                                              ; preds = %399
  %405 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %406

406:                                              ; preds = %404, %402
  %407 = load i8, ptr %10, align 1, !tbaa !11, !range !26, !noundef !27
  %408 = trunc i8 %407 to i1
  %409 = zext i1 %408 to i32
  %410 = icmp sgt i32 %409, 0
  %411 = zext i1 %410 to i64
  %412 = select i1 %410, i32 1, i32 0
  store i32 %412, ptr %3, align 4
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %413 = load i32, ptr %3, align 4
  ret i32 %413
}

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

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

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

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

declare void @posit32_str(ptr noundef, i32) #4

declare i32 @printf(ptr noundef, ...) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @posit32_bits(i32) #3

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

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

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

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

declare double @posit32_tod(i32) #4

declare i32 @posit32_fromd(double noundef) #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i64 0, i64 4, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = !{i8 0, i8 2}
!27 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@NAR32 = external hidden local_unnamed_addr constant { [4 x i8] }, align 4
@ZERO32 = external hidden local_unnamed_addr constant { [4 x i8] }, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  %.sroa.0104.0.copyload = load i32, ptr @NAR32, align 4, !tbaa !5
  %.sroa.085.0.copyload = load i32, ptr @ZERO32, align 4, !tbaa !5
  %4 = tail call i32 @posit32_add(i32 %.sroa.0104.0.copyload, i32 %.sroa.085.0.copyload)
  call void @posit32_str(ptr noundef nonnull %3, i32 %4) #5
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %6 = call i32 @posit32_bits(i32 %4)
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %6)
  %8 = call i32 @posit32_sub(i32 %.sroa.0104.0.copyload, i32 %.sroa.085.0.copyload)
  call void @posit32_str(ptr noundef nonnull %3, i32 %8) #5
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %10 = call i32 @posit32_bits(i32 %8)
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %10)
  %12 = call i32 @posit32_mul(i32 %.sroa.0104.0.copyload, i32 %.sroa.085.0.copyload)
  call void @posit32_str(ptr noundef nonnull %3, i32 %12) #5
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %14 = call i32 @posit32_bits(i32 %12)
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %14)
  %16 = call i32 @posit32_div(i32 %.sroa.0104.0.copyload, i32 %.sroa.085.0.copyload)
  call void @posit32_str(ptr noundef nonnull %3, i32 %16) #5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %18 = call i32 @posit32_bits(i32 %16)
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %18)
  br label %20

20:                                               ; preds = %2, %.thread149
  %21 = phi i1 [ true, %2 ], [ %40, %.thread149 ]
  %.0129158 = phi i32 [ 0, %2 ], [ %39, %.thread149 ]
  %22 = call i32 @posit32_reinterpret(i32 noundef %.0129158)
  br label %25

23:                                               ; preds = %25
  %24 = add nuw nsw i32 %.0132157, 1
  %exitcond.not = icmp eq i32 %24, 256
  br i1 %exitcond.not, label %.thread149, label %25, !llvm.loop !8

25:                                               ; preds = %20, %23
  %.0132157 = phi i32 [ 0, %20 ], [ %24, %23 ]
  %26 = call i32 @posit32_reinterpret(i32 noundef %.0132157)
  %27 = call i32 @posit32_add(i32 %22, i32 %26)
  %28 = call double @posit32_tod(i32 %22) #5
  %29 = call double @posit32_tod(i32 %26) #5
  %30 = fadd double %28, %29
  %31 = call i32 @posit32_fromd(double noundef %30) #5
  %32 = call i32 @posit32_cmp(i32 %31, i32 %27)
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %23, label %33

33:                                               ; preds = %25
  %34 = call i32 @posit32_bits(i32 %22)
  %35 = call i32 @posit32_bits(i32 %26)
  %36 = call i32 @posit32_bits(i32 %27)
  %37 = call i32 @posit32_bits(i32 %31)
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37)
  br label %.critedge

.thread149:                                       ; preds = %23
  %39 = add nuw nsw i32 %.0129158, 1
  %40 = icmp ult i32 %.0129158, 255
  %exitcond181.not = icmp eq i32 %39, 256
  br i1 %exitcond181.not, label %.critedge, label %20, !llvm.loop !10

.critedge:                                        ; preds = %.thread149, %33
  %.str.4.sink = phi ptr [ @.str.3, %33 ], [ @.str.4, %.thread149 ]
  %41 = phi i1 [ %21, %33 ], [ %40, %.thread149 ]
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4.sink)
  br label %44

43:                                               ; preds = %46
  %.not141 = icmp eq i32 %.7, 0
  br i1 %.not141, label %66, label %64

44:                                               ; preds = %.critedge, %46
  %.5162 = phi i32 [ 0, %.critedge ], [ %.7, %46 ]
  %.0133161 = phi i32 [ 0, %.critedge ], [ %47, %46 ]
  %45 = call i32 @posit32_reinterpret(i32 noundef %.0133161)
  br label %48

46:                                               ; preds = %62
  %47 = add nuw nsw i32 %.0133161, 1
  %exitcond183.not = icmp eq i32 %47, 256
  br i1 %exitcond183.not, label %43, label %44, !llvm.loop !11

48:                                               ; preds = %44, %62
  %.6160 = phi i32 [ %.5162, %44 ], [ %.7, %62 ]
  %.0134159 = phi i32 [ 0, %44 ], [ %63, %62 ]
  %49 = call i32 @posit32_reinterpret(i32 noundef %.0134159)
  %50 = call i32 @posit32_sub(i32 %45, i32 %49)
  %51 = call double @posit32_tod(i32 %45) #5
  %52 = call double @posit32_tod(i32 %49) #5
  %53 = fsub double %51, %52
  %54 = call i32 @posit32_fromd(double noundef %53) #5
  %.not146 = icmp eq i32 %54, %50
  br i1 %.not146, label %62, label %55

55:                                               ; preds = %48
  %56 = call i32 @posit32_bits(i32 %45)
  %57 = call i32 @posit32_bits(i32 %49)
  %58 = call i32 @posit32_bits(i32 %50)
  %59 = call i32 @posit32_bits(i32 %54)
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59)
  %61 = add nsw i32 %.6160, 1
  br label %62

62:                                               ; preds = %55, %48
  %.7 = phi i32 [ %61, %55 ], [ %.6160, %48 ]
  %63 = add nuw nsw i32 %.0134159, 1
  %exitcond182.not = icmp eq i32 %63, 256
  br i1 %exitcond182.not, label %46, label %48, !llvm.loop !12

64:                                               ; preds = %43
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %69

66:                                               ; preds = %43
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %68 = zext i1 %41 to i32
  br label %69

69:                                               ; preds = %66, %64
  %.1 = phi i32 [ 1, %64 ], [ %68, %66 ]
  br label %72

70:                                               ; preds = %74
  %.not142 = icmp eq i32 %.10, 0
  %.str.10..str.9 = select i1 %.not142, ptr @.str.10, ptr @.str.9
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.10..str.9)
  br label %97

72:                                               ; preds = %69, %74
  %.8166 = phi i32 [ 0, %69 ], [ %.10, %74 ]
  %.0135165 = phi i32 [ 0, %69 ], [ %75, %74 ]
  %73 = call i32 @posit32_reinterpret(i32 noundef %.0135165)
  br label %76

74:                                               ; preds = %91
  %75 = add nuw nsw i32 %.0135165, 1
  %exitcond185.not = icmp eq i32 %75, 256
  br i1 %exitcond185.not, label %70, label %72, !llvm.loop !13

76:                                               ; preds = %72, %91
  %.9164 = phi i32 [ %.8166, %72 ], [ %.10, %91 ]
  %.0136163 = phi i32 [ 0, %72 ], [ %92, %91 ]
  %77 = call i32 @posit32_reinterpret(i32 noundef %.0136163)
  %78 = call i32 @posit32_mul(i32 %73, i32 %77)
  %79 = call double @posit32_tod(i32 %73) #5
  %80 = call double @posit32_tod(i32 %77) #5
  %81 = fmul double %79, %80
  %82 = call i32 @posit32_fromd(double noundef %81) #5
  %83 = call i32 @posit32_cmp(i32 %82, i32 %78)
  %.not145 = icmp eq i32 %83, 0
  br i1 %.not145, label %91, label %84

84:                                               ; preds = %76
  %85 = call i32 @posit32_bits(i32 %73)
  %86 = call i32 @posit32_bits(i32 %77)
  %87 = call i32 @posit32_bits(i32 %78)
  %88 = call i32 @posit32_bits(i32 %82)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88)
  %90 = add nsw i32 %.9164, 1
  br label %91

91:                                               ; preds = %84, %76
  %.10 = phi i32 [ %90, %84 ], [ %.9164, %76 ]
  %92 = add nuw nsw i32 %.0136163, 1
  %exitcond184.not = icmp eq i32 %92, 256
  br i1 %exitcond184.not, label %74, label %76, !llvm.loop !14

93:                                               ; preds = %99
  %.not143 = icmp eq i32 %.13, 0
  %.str.13..str.12 = select i1 %.not143, ptr @.str.13, ptr @.str.12
  %94 = or i32 %.13, %.10
  %95 = icmp eq i32 %94, 0
  %.1.. = select i1 %95, i32 %.1, i32 1
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13..str.12)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i32 %.1..

97:                                               ; preds = %70, %99
  %.11170 = phi i32 [ 0, %70 ], [ %.13, %99 ]
  %.0130169 = phi i32 [ 0, %70 ], [ %100, %99 ]
  %98 = call i32 @posit32_reinterpret(i32 noundef %.0130169)
  br label %101

99:                                               ; preds = %116
  %100 = add nuw nsw i32 %.0130169, 1
  %exitcond187.not = icmp eq i32 %100, 256
  br i1 %exitcond187.not, label %93, label %97, !llvm.loop !15

101:                                              ; preds = %97, %116
  %.12168 = phi i32 [ %.11170, %97 ], [ %.13, %116 ]
  %.0128167 = phi i32 [ 0, %97 ], [ %117, %116 ]
  %102 = call i32 @posit32_reinterpret(i32 noundef %.0128167)
  %103 = call i32 @posit32_div(i32 %98, i32 %102)
  %104 = call double @posit32_tod(i32 %98) #5
  %105 = call double @posit32_tod(i32 %102) #5
  %106 = fdiv double %104, %105
  %107 = call i32 @posit32_fromd(double noundef %106) #5
  %108 = call i32 @posit32_cmp(i32 %107, i32 %103)
  %.not144 = icmp eq i32 %108, 0
  br i1 %.not144, label %116, label %109

109:                                              ; preds = %101
  %110 = call i32 @posit32_bits(i32 %98)
  %111 = call i32 @posit32_bits(i32 %102)
  %112 = call i32 @posit32_bits(i32 %103)
  %113 = call i32 @posit32_bits(i32 %107)
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef %113)
  %115 = add nsw i32 %.12168, 1
  br label %116

116:                                              ; preds = %109, %101
  %.13 = phi i32 [ %115, %109 ], [ %.12168, %101 ]
  %117 = add nuw nsw i32 %.0128167, 1
  %exitcond186.not = icmp eq i32 %117, 256
  br i1 %exitcond186.not, label %99, label %101, !llvm.loop !16
}

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

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

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

declare void @posit32_str(ptr noundef, i32) local_unnamed_addr #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @posit32_bits(i32) local_unnamed_addr #2

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

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

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

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

declare double @posit32_tod(i32) local_unnamed_addr #3

declare i32 @posit32_fromd(double noundef) local_unnamed_addr #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = distinct !{!12, !9}
!13 = distinct !{!13, !9}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}
!16 = distinct !{!16, !9}


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