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

; 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.posit4_u = type { [1 x i8] }

@NAR4 = external hidden constant %union.posit4_u, align 1
@ZERO4 = external hidden constant %union.posit4_u, align 1
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [65 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 [65 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 [65 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 [65 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
@.str.14 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1

; 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 i32, align 4
  %7 = alloca %union.posit4_u, align 1
  %8 = alloca %union.posit4_u, align 1
  %9 = alloca %union.posit4_u, align 1
  %10 = alloca [14 x i8], align 1
  %11 = alloca i8, align 1
  %12 = alloca %union.posit4_u, align 1
  %13 = alloca %union.posit4_u, align 1
  %14 = alloca %union.posit4_u, align 1
  %15 = alloca %union.posit4_u, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %union.posit4_u, align 1
  %20 = alloca i32, align 4
  %21 = alloca %union.posit4_u, align 1
  %22 = alloca %union.posit4_u, align 1
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca %union.posit4_u, align 1
  %27 = alloca i32, align 4
  %28 = alloca %union.posit4_u, align 1
  %29 = alloca i32, align 4
  %30 = alloca %union.posit4_u, align 1
  %31 = alloca %union.posit4_u, align 1
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca %union.posit4_u, align 1
  %36 = alloca i32, align 4
  %37 = alloca %union.posit4_u, align 1
  %38 = alloca i32, align 4
  %39 = alloca %union.posit4_u, align 1
  %40 = alloca %union.posit4_u, align 1
  %41 = alloca float, align 4
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca %union.posit4_u, align 1
  %45 = alloca i32, align 4
  %46 = alloca %union.posit4_u, align 1
  %47 = alloca i32, align 4
  %48 = alloca %union.posit4_u, align 1
  %49 = alloca %union.posit4_u, align 1
  %50 = alloca float, align 4
  %51 = alloca float, align 4
  %52 = alloca float, align 4
  %53 = alloca %union.posit4_u, align 1
  %54 = alloca i32, align 4
  %55 = alloca %union.posit4_u, align 1
  %56 = alloca %union.posit4_u, align 1
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca %union.posit4_u, align 1
  %60 = alloca i32, align 4
  %61 = alloca %union.posit4_u, align 1
  %62 = alloca %union.posit4_u, align 1
  %63 = alloca double, align 8
  %64 = alloca double, align 8
  %65 = alloca %union.posit4_u, align 1
  %66 = alloca i32, align 4
  %67 = alloca %union.posit4_u, align 1
  %68 = alloca %union.posit4_u, align 1
  %69 = alloca double, align 8
  %70 = alloca double, align 8
  %71 = alloca %union.posit4_u, align 1
  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) #6
  store i32 16, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 14, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @NAR4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @ZERO4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %72 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %73 = load i8, ptr %72, align 1
  %74 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %75 = load i8, ptr %74, align 1
  %76 = call i8 @posit4_add(i8 %73, i8 %75)
  %77 = getelementptr inbounds %union.posit4_u, ptr %12, i32 0, i32 0
  store i8 %76, ptr %77, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %12, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  %78 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %79 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %80 = load i8, ptr %79, align 1
  call void @posit4_str(ptr noundef %78, i8 %80)
  %81 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %81)
  %83 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %84 = load i8, ptr %83, align 1
  %85 = call zeroext i8 @posit4_bits(i8 %84)
  %86 = zext i8 %85 to i32
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %86)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @NAR4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @ZERO4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %88 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %89 = load i8, ptr %88, align 1
  %90 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %91 = load i8, ptr %90, align 1
  %92 = call i8 @posit4_sub(i8 %89, i8 %91)
  %93 = getelementptr inbounds %union.posit4_u, ptr %13, i32 0, i32 0
  store i8 %92, ptr %93, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %13, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  %94 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %95 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %96 = load i8, ptr %95, align 1
  call void @posit4_str(ptr noundef %94, i8 %96)
  %97 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %97)
  %99 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %100 = load i8, ptr %99, align 1
  %101 = call zeroext i8 @posit4_bits(i8 %100)
  %102 = zext i8 %101 to i32
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %102)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @NAR4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @ZERO4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %104 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %105 = load i8, ptr %104, align 1
  %106 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %107 = load i8, ptr %106, align 1
  %108 = call i8 @posit4_mul(i8 %105, i8 %107)
  %109 = getelementptr inbounds %union.posit4_u, ptr %14, i32 0, i32 0
  store i8 %108, ptr %109, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %14, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  %110 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %111 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %112 = load i8, ptr %111, align 1
  call void @posit4_str(ptr noundef %110, i8 %112)
  %113 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %113)
  %115 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %116 = load i8, ptr %115, align 1
  %117 = call zeroext i8 @posit4_bits(i8 %116)
  %118 = zext i8 %117 to i32
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %118)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @NAR4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @ZERO4, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %120 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %121 = load i8, ptr %120, align 1
  %122 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %123 = load i8, ptr %122, align 1
  %124 = call i8 @posit4_div(i8 %121, i8 %123)
  %125 = getelementptr inbounds %union.posit4_u, ptr %15, i32 0, i32 0
  store i8 %124, ptr %125, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %15, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  %126 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %127 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %128 = load i8, ptr %127, align 1
  call void @posit4_str(ptr noundef %126, i8 %128)
  %129 = getelementptr inbounds [14 x i8], ptr %10, i64 0, i64 0
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %129)
  %131 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %132 = load i8, ptr %131, align 1
  %133 = call zeroext i8 @posit4_bits(i8 %132)
  %134 = zext i8 %133 to i32
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %134)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %203, %2
  %137 = load i32, ptr %17, align 4, !tbaa !5
  %138 = icmp slt i32 %137, 16
  br i1 %138, label %140, label %139

139:                                              ; preds = %136
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %206

140:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %141 = load i32, ptr %17, align 4, !tbaa !5
  %142 = trunc i32 %141 to i8
  %143 = call i8 @posit4_reinterpret(i8 noundef zeroext %142)
  %144 = getelementptr inbounds %union.posit4_u, ptr %19, i32 0, i32 0
  store i8 %143, ptr %144, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %19, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %199, %140
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = icmp slt i32 %146, 16
  br i1 %147, label %149, label %148

148:                                              ; preds = %145
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %202

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  %150 = load i32, ptr %20, align 4, !tbaa !5
  %151 = trunc i32 %150 to i8
  %152 = call i8 @posit4_reinterpret(i8 noundef zeroext %151)
  %153 = getelementptr inbounds %union.posit4_u, ptr %21, i32 0, i32 0
  store i8 %152, ptr %153, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 %21, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %154 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %155 = load i8, ptr %154, align 1
  %156 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %157 = load i8, ptr %156, align 1
  %158 = call i8 @posit4_add(i8 %155, i8 %157)
  %159 = getelementptr inbounds %union.posit4_u, ptr %22, i32 0, i32 0
  store i8 %158, ptr %159, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %22, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %160 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %161 = load i8, ptr %160, align 1
  %162 = call float @posit4_tof(i8 %161)
  store float %162, ptr %23, align 4, !tbaa !15
  %163 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %164 = load i8, ptr %163, align 1
  %165 = call float @posit4_tof(i8 %164)
  store float %165, ptr %24, align 4, !tbaa !15
  %166 = load float, ptr %23, align 4, !tbaa !15
  %167 = load float, ptr %24, align 4, !tbaa !15
  %168 = fadd float %166, %167
  store float %168, ptr %25, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  %169 = load float, ptr %25, align 4, !tbaa !15
  %170 = call i8 @posit4_fromf(float noundef %169)
  %171 = getelementptr inbounds %union.posit4_u, ptr %26, i32 0, i32 0
  store i8 %170, ptr %171, align 1
  %172 = getelementptr inbounds %union.posit4_u, ptr %26, i32 0, i32 0
  %173 = load i8, ptr %172, align 1
  %174 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %175 = load i8, ptr %174, align 1
  %176 = call i32 @posit4_cmp(i8 %173, i8 %175)
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %198

178:                                              ; preds = %149
  %179 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %180 = load i8, ptr %179, align 1
  %181 = call zeroext i8 @posit4_bits(i8 %180)
  %182 = zext i8 %181 to i32
  %183 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %184 = load i8, ptr %183, align 1
  %185 = call zeroext i8 @posit4_bits(i8 %184)
  %186 = zext i8 %185 to i32
  %187 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %188 = load i8, ptr %187, align 1
  %189 = call zeroext i8 @posit4_bits(i8 %188)
  %190 = zext i8 %189 to i32
  %191 = getelementptr inbounds %union.posit4_u, ptr %26, i32 0, i32 0
  %192 = load i8, ptr %191, align 1
  %193 = call zeroext i8 @posit4_bits(i8 %192)
  %194 = zext i8 %193 to i32
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %182, i32 noundef %186, i32 noundef %190, i32 noundef %194)
  %196 = load i32, ptr %16, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %16, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %178, %149
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %20, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %20, align 4, !tbaa !5
  br label %145, !llvm.loop !17

202:                                              ; preds = %148
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %17, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %17, align 4, !tbaa !5
  br label %136, !llvm.loop !19

206:                                              ; preds = %139
  %207 = load i32, ptr %16, align 4, !tbaa !5
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %211

209:                                              ; preds = %206
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %213

211:                                              ; preds = %206
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %213

213:                                              ; preds = %211, %209
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %281, %213
  %215 = load i32, ptr %27, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 16
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %284

218:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  %219 = load i32, ptr %27, align 4, !tbaa !5
  %220 = trunc i32 %219 to i8
  %221 = call i8 @posit4_reinterpret(i8 noundef zeroext %220)
  %222 = getelementptr inbounds %union.posit4_u, ptr %28, i32 0, i32 0
  store i8 %221, ptr %222, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %28, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %277, %218
  %224 = load i32, ptr %29, align 4, !tbaa !5
  %225 = icmp slt i32 %224, 16
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %280

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  %228 = load i32, ptr %29, align 4, !tbaa !5
  %229 = trunc i32 %228 to i8
  %230 = call i8 @posit4_reinterpret(i8 noundef zeroext %229)
  %231 = getelementptr inbounds %union.posit4_u, ptr %30, i32 0, i32 0
  store i8 %230, ptr %231, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 %30, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  %232 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %233 = load i8, ptr %232, align 1
  %234 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %235 = load i8, ptr %234, align 1
  %236 = call i8 @posit4_sub(i8 %233, i8 %235)
  %237 = getelementptr inbounds %union.posit4_u, ptr %31, i32 0, i32 0
  store i8 %236, ptr %237, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %31, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %238 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %239 = load i8, ptr %238, align 1
  %240 = call float @posit4_tof(i8 %239)
  store float %240, ptr %32, align 4, !tbaa !15
  %241 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %242 = load i8, ptr %241, align 1
  %243 = call float @posit4_tof(i8 %242)
  store float %243, ptr %33, align 4, !tbaa !15
  %244 = load float, ptr %32, align 4, !tbaa !15
  %245 = load float, ptr %33, align 4, !tbaa !15
  %246 = fsub float %244, %245
  store float %246, ptr %34, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #6
  %247 = load float, ptr %34, align 4, !tbaa !15
  %248 = call i8 @posit4_fromf(float noundef %247)
  %249 = getelementptr inbounds %union.posit4_u, ptr %35, i32 0, i32 0
  store i8 %248, ptr %249, align 1
  %250 = getelementptr inbounds %union.posit4_u, ptr %35, i32 0, i32 0
  %251 = load i8, ptr %250, align 1
  %252 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %253 = load i8, ptr %252, align 1
  %254 = call i32 @posit4_cmp(i8 %251, i8 %253)
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %276

256:                                              ; preds = %227
  %257 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %258 = load i8, ptr %257, align 1
  %259 = call zeroext i8 @posit4_bits(i8 %258)
  %260 = zext i8 %259 to i32
  %261 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %262 = load i8, ptr %261, align 1
  %263 = call zeroext i8 @posit4_bits(i8 %262)
  %264 = zext i8 %263 to i32
  %265 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %266 = load i8, ptr %265, align 1
  %267 = call zeroext i8 @posit4_bits(i8 %266)
  %268 = zext i8 %267 to i32
  %269 = getelementptr inbounds %union.posit4_u, ptr %35, i32 0, i32 0
  %270 = load i8, ptr %269, align 1
  %271 = call zeroext i8 @posit4_bits(i8 %270)
  %272 = zext i8 %271 to i32
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %260, i32 noundef %264, i32 noundef %268, i32 noundef %272)
  %274 = load i32, ptr %16, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %16, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %256, %227
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %29, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %29, align 4, !tbaa !5
  br label %223, !llvm.loop !20

280:                                              ; preds = %226
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %27, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %27, align 4, !tbaa !5
  br label %214, !llvm.loop !21

284:                                              ; preds = %217
  %285 = load i32, ptr %16, align 4, !tbaa !5
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %289

287:                                              ; preds = %284
  %288 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %291

289:                                              ; preds = %284
  %290 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %291

291:                                              ; preds = %289, %287
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %292

292:                                              ; preds = %359, %291
  %293 = load i32, ptr %36, align 4, !tbaa !5
  %294 = icmp slt i32 %293, 16
  br i1 %294, label %296, label %295

295:                                              ; preds = %292
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %362

296:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  %297 = load i32, ptr %36, align 4, !tbaa !5
  %298 = trunc i32 %297 to i8
  %299 = call i8 @posit4_reinterpret(i8 noundef zeroext %298)
  %300 = getelementptr inbounds %union.posit4_u, ptr %37, i32 0, i32 0
  store i8 %299, ptr %300, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %37, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %355, %296
  %302 = load i32, ptr %38, align 4, !tbaa !5
  %303 = icmp slt i32 %302, 16
  br i1 %303, label %305, label %304

304:                                              ; preds = %301
  store i32 17, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %358

305:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  %306 = load i32, ptr %38, align 4, !tbaa !5
  %307 = trunc i32 %306 to i8
  %308 = call i8 @posit4_reinterpret(i8 noundef zeroext %307)
  %309 = getelementptr inbounds %union.posit4_u, ptr %39, i32 0, i32 0
  store i8 %308, ptr %309, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 %39, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #6
  %310 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %311 = load i8, ptr %310, align 1
  %312 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %313 = load i8, ptr %312, align 1
  %314 = call i8 @posit4_mul(i8 %311, i8 %313)
  %315 = getelementptr inbounds %union.posit4_u, ptr %40, i32 0, i32 0
  store i8 %314, ptr %315, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %40, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %316 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %317 = load i8, ptr %316, align 1
  %318 = call float @posit4_tof(i8 %317)
  store float %318, ptr %41, align 4, !tbaa !15
  %319 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %320 = load i8, ptr %319, align 1
  %321 = call float @posit4_tof(i8 %320)
  store float %321, ptr %42, align 4, !tbaa !15
  %322 = load float, ptr %41, align 4, !tbaa !15
  %323 = load float, ptr %42, align 4, !tbaa !15
  %324 = fmul float %322, %323
  store float %324, ptr %43, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #6
  %325 = load float, ptr %43, align 4, !tbaa !15
  %326 = call i8 @posit4_fromf(float noundef %325)
  %327 = getelementptr inbounds %union.posit4_u, ptr %44, i32 0, i32 0
  store i8 %326, ptr %327, align 1
  %328 = getelementptr inbounds %union.posit4_u, ptr %44, i32 0, i32 0
  %329 = load i8, ptr %328, align 1
  %330 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %331 = load i8, ptr %330, align 1
  %332 = call i32 @posit4_cmp(i8 %329, i8 %331)
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %334, label %354

334:                                              ; preds = %305
  %335 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %336 = load i8, ptr %335, align 1
  %337 = call zeroext i8 @posit4_bits(i8 %336)
  %338 = zext i8 %337 to i32
  %339 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %340 = load i8, ptr %339, align 1
  %341 = call zeroext i8 @posit4_bits(i8 %340)
  %342 = zext i8 %341 to i32
  %343 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %344 = load i8, ptr %343, align 1
  %345 = call zeroext i8 @posit4_bits(i8 %344)
  %346 = zext i8 %345 to i32
  %347 = getelementptr inbounds %union.posit4_u, ptr %44, i32 0, i32 0
  %348 = load i8, ptr %347, align 1
  %349 = call zeroext i8 @posit4_bits(i8 %348)
  %350 = zext i8 %349 to i32
  %351 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %338, i32 noundef %342, i32 noundef %346, i32 noundef %350)
  %352 = load i32, ptr %16, align 4, !tbaa !5
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %16, align 4, !tbaa !5
  br label %354

354:                                              ; preds = %334, %305
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %355

355:                                              ; preds = %354
  %356 = load i32, ptr %38, align 4, !tbaa !5
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %38, align 4, !tbaa !5
  br label %301, !llvm.loop !22

358:                                              ; preds = %304
  br label %359

359:                                              ; preds = %358
  %360 = load i32, ptr %36, align 4, !tbaa !5
  %361 = add nsw i32 %360, 1
  store i32 %361, ptr %36, align 4, !tbaa !5
  br label %292, !llvm.loop !23

362:                                              ; preds = %295
  %363 = load i32, ptr %16, align 4, !tbaa !5
  %364 = icmp ne i32 %363, 0
  br i1 %364, label %365, label %367

365:                                              ; preds = %362
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %369

367:                                              ; preds = %362
  %368 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %369

369:                                              ; preds = %367, %365
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %370

370:                                              ; preds = %437, %369
  %371 = load i32, ptr %45, align 4, !tbaa !5
  %372 = icmp slt i32 %371, 16
  br i1 %372, label %374, label %373

373:                                              ; preds = %370
  store i32 20, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %440

374:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #6
  %375 = load i32, ptr %45, align 4, !tbaa !5
  %376 = trunc i32 %375 to i8
  %377 = call i8 @posit4_reinterpret(i8 noundef zeroext %376)
  %378 = getelementptr inbounds %union.posit4_u, ptr %46, i32 0, i32 0
  store i8 %377, ptr %378, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %46, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %379

379:                                              ; preds = %433, %374
  %380 = load i32, ptr %47, align 4, !tbaa !5
  %381 = icmp slt i32 %380, 16
  br i1 %381, label %383, label %382

382:                                              ; preds = %379
  store i32 23, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %436

383:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #6
  %384 = load i32, ptr %47, align 4, !tbaa !5
  %385 = trunc i32 %384 to i8
  %386 = call i8 @posit4_reinterpret(i8 noundef zeroext %385)
  %387 = getelementptr inbounds %union.posit4_u, ptr %48, i32 0, i32 0
  store i8 %386, ptr %387, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 %48, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #6
  %388 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %389 = load i8, ptr %388, align 1
  %390 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %391 = load i8, ptr %390, align 1
  %392 = call i8 @posit4_div(i8 %389, i8 %391)
  %393 = getelementptr inbounds %union.posit4_u, ptr %49, i32 0, i32 0
  store i8 %392, ptr %393, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %49, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  %394 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %395 = load i8, ptr %394, align 1
  %396 = call float @posit4_tof(i8 %395)
  store float %396, ptr %50, align 4, !tbaa !15
  %397 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %398 = load i8, ptr %397, align 1
  %399 = call float @posit4_tof(i8 %398)
  store float %399, ptr %51, align 4, !tbaa !15
  %400 = load float, ptr %50, align 4, !tbaa !15
  %401 = load float, ptr %51, align 4, !tbaa !15
  %402 = fdiv float %400, %401
  store float %402, ptr %52, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #6
  %403 = load float, ptr %52, align 4, !tbaa !15
  %404 = call i8 @posit4_fromf(float noundef %403)
  %405 = getelementptr inbounds %union.posit4_u, ptr %53, i32 0, i32 0
  store i8 %404, ptr %405, align 1
  %406 = getelementptr inbounds %union.posit4_u, ptr %53, i32 0, i32 0
  %407 = load i8, ptr %406, align 1
  %408 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %409 = load i8, ptr %408, align 1
  %410 = call i32 @posit4_cmp(i8 %407, i8 %409)
  %411 = icmp ne i32 %410, 0
  br i1 %411, label %412, label %432

412:                                              ; preds = %383
  %413 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %414 = load i8, ptr %413, align 1
  %415 = call zeroext i8 @posit4_bits(i8 %414)
  %416 = zext i8 %415 to i32
  %417 = getelementptr inbounds %union.posit4_u, ptr %8, i32 0, i32 0
  %418 = load i8, ptr %417, align 1
  %419 = call zeroext i8 @posit4_bits(i8 %418)
  %420 = zext i8 %419 to i32
  %421 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %422 = load i8, ptr %421, align 1
  %423 = call zeroext i8 @posit4_bits(i8 %422)
  %424 = zext i8 %423 to i32
  %425 = getelementptr inbounds %union.posit4_u, ptr %53, i32 0, i32 0
  %426 = load i8, ptr %425, align 1
  %427 = call zeroext i8 @posit4_bits(i8 %426)
  %428 = zext i8 %427 to i32
  %429 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %416, i32 noundef %420, i32 noundef %424, i32 noundef %428)
  %430 = load i32, ptr %16, align 4, !tbaa !5
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %16, align 4, !tbaa !5
  br label %432

432:                                              ; preds = %412, %383
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  br label %433

433:                                              ; preds = %432
  %434 = load i32, ptr %47, align 4, !tbaa !5
  %435 = add nsw i32 %434, 1
  store i32 %435, ptr %47, align 4, !tbaa !5
  br label %379, !llvm.loop !24

436:                                              ; preds = %382
  br label %437

437:                                              ; preds = %436
  %438 = load i32, ptr %45, align 4, !tbaa !5
  %439 = add nsw i32 %438, 1
  store i32 %439, ptr %45, align 4, !tbaa !5
  br label %370, !llvm.loop !25

440:                                              ; preds = %373
  %441 = load i32, ptr %16, align 4, !tbaa !5
  %442 = icmp ne i32 %441, 0
  br i1 %442, label %443, label %445

443:                                              ; preds = %440
  %444 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %447

445:                                              ; preds = %440
  %446 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %447

447:                                              ; preds = %445, %443
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  store i32 0, ptr %54, align 4, !tbaa !5
  br label %448

448:                                              ; preds = %492, %447
  %449 = load i32, ptr %54, align 4, !tbaa !5
  %450 = icmp slt i32 %449, 16
  br i1 %450, label %452, label %451

451:                                              ; preds = %448
  store i32 26, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  br label %495

452:                                              ; preds = %448
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #6
  %453 = load i32, ptr %54, align 4, !tbaa !5
  %454 = trunc i32 %453 to i8
  %455 = call i8 @posit4_reinterpret(i8 noundef zeroext %454)
  %456 = getelementptr inbounds %union.posit4_u, ptr %55, i32 0, i32 0
  store i8 %455, ptr %456, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %55, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #6
  %457 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %458 = load i8, ptr %457, align 1
  %459 = call i8 @posit4_sqrt(i8 %458)
  %460 = getelementptr inbounds %union.posit4_u, ptr %56, i32 0, i32 0
  store i8 %459, ptr %460, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %56, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  %461 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %462 = load i8, ptr %461, align 1
  %463 = call double @posit4_tod(i8 %462)
  store double %463, ptr %57, align 8, !tbaa !26
  %464 = load double, ptr %57, align 8, !tbaa !26
  %465 = call double @sqrt(double noundef %464) #6
  store double %465, ptr %58, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #6
  %466 = load double, ptr %58, align 8, !tbaa !26
  %467 = call i8 @posit4_fromd(double noundef %466)
  %468 = getelementptr inbounds %union.posit4_u, ptr %59, i32 0, i32 0
  store i8 %467, ptr %468, align 1
  %469 = getelementptr inbounds %union.posit4_u, ptr %59, i32 0, i32 0
  %470 = load i8, ptr %469, align 1
  %471 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %472 = load i8, ptr %471, align 1
  %473 = call i32 @posit4_cmp(i8 %470, i8 %472)
  %474 = icmp ne i32 %473, 0
  br i1 %474, label %475, label %491

475:                                              ; preds = %452
  %476 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %477 = load i8, ptr %476, align 1
  %478 = call zeroext i8 @posit4_bits(i8 %477)
  %479 = zext i8 %478 to i32
  %480 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %481 = load i8, ptr %480, align 1
  %482 = call zeroext i8 @posit4_bits(i8 %481)
  %483 = zext i8 %482 to i32
  %484 = getelementptr inbounds %union.posit4_u, ptr %59, i32 0, i32 0
  %485 = load i8, ptr %484, align 1
  %486 = call zeroext i8 @posit4_bits(i8 %485)
  %487 = zext i8 %486 to i32
  %488 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %479, i32 noundef %483, i32 noundef %487)
  %489 = load i32, ptr %16, align 4, !tbaa !5
  %490 = add nsw i32 %489, 1
  store i32 %490, ptr %16, align 4, !tbaa !5
  br label %491

491:                                              ; preds = %475, %452
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  br label %492

492:                                              ; preds = %491
  %493 = load i32, ptr %54, align 4, !tbaa !5
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr %54, align 4, !tbaa !5
  br label %448, !llvm.loop !28

495:                                              ; preds = %451
  %496 = load i32, ptr %16, align 4, !tbaa !5
  %497 = icmp ne i32 %496, 0
  br i1 %497, label %498, label %500

498:                                              ; preds = %495
  %499 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %502

500:                                              ; preds = %495
  %501 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %502

502:                                              ; preds = %500, %498
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #6
  store i32 0, ptr %60, align 4, !tbaa !5
  br label %503

503:                                              ; preds = %547, %502
  %504 = load i32, ptr %60, align 4, !tbaa !5
  %505 = icmp slt i32 %504, 16
  br i1 %505, label %507, label %506

506:                                              ; preds = %503
  store i32 29, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #6
  br label %550

507:                                              ; preds = %503
  call void @llvm.lifetime.start.p0(i64 1, ptr %61) #6
  %508 = load i32, ptr %60, align 4, !tbaa !5
  %509 = trunc i32 %508 to i8
  %510 = call i8 @posit4_reinterpret(i8 noundef zeroext %509)
  %511 = getelementptr inbounds %union.posit4_u, ptr %61, i32 0, i32 0
  store i8 %510, ptr %511, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %61, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %62) #6
  %512 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %513 = load i8, ptr %512, align 1
  %514 = call i8 @posit4_exp(i8 %513)
  %515 = getelementptr inbounds %union.posit4_u, ptr %62, i32 0, i32 0
  store i8 %514, ptr %515, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %62, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %62) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #6
  %516 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %517 = load i8, ptr %516, align 1
  %518 = call double @posit4_tod(i8 %517)
  store double %518, ptr %63, align 8, !tbaa !26
  %519 = load double, ptr %63, align 8, !tbaa !26
  %520 = call double @exp(double noundef %519) #6
  store double %520, ptr %64, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %65) #6
  %521 = load double, ptr %64, align 8, !tbaa !26
  %522 = call i8 @posit4_fromd(double noundef %521)
  %523 = getelementptr inbounds %union.posit4_u, ptr %65, i32 0, i32 0
  store i8 %522, ptr %523, align 1
  %524 = getelementptr inbounds %union.posit4_u, ptr %65, i32 0, i32 0
  %525 = load i8, ptr %524, align 1
  %526 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %527 = load i8, ptr %526, align 1
  %528 = call i32 @posit4_cmp(i8 %525, i8 %527)
  %529 = icmp ne i32 %528, 0
  br i1 %529, label %530, label %546

530:                                              ; preds = %507
  %531 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %532 = load i8, ptr %531, align 1
  %533 = call zeroext i8 @posit4_bits(i8 %532)
  %534 = zext i8 %533 to i32
  %535 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %536 = load i8, ptr %535, align 1
  %537 = call zeroext i8 @posit4_bits(i8 %536)
  %538 = zext i8 %537 to i32
  %539 = getelementptr inbounds %union.posit4_u, ptr %65, i32 0, i32 0
  %540 = load i8, ptr %539, align 1
  %541 = call zeroext i8 @posit4_bits(i8 %540)
  %542 = zext i8 %541 to i32
  %543 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %534, i32 noundef %538, i32 noundef %542)
  %544 = load i32, ptr %16, align 4, !tbaa !5
  %545 = add nsw i32 %544, 1
  store i32 %545, ptr %16, align 4, !tbaa !5
  br label %546

546:                                              ; preds = %530, %507
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  br label %547

547:                                              ; preds = %546
  %548 = load i32, ptr %60, align 4, !tbaa !5
  %549 = add nsw i32 %548, 1
  store i32 %549, ptr %60, align 4, !tbaa !5
  br label %503, !llvm.loop !29

550:                                              ; preds = %506
  %551 = load i32, ptr %16, align 4, !tbaa !5
  %552 = icmp ne i32 %551, 0
  br i1 %552, label %553, label %555

553:                                              ; preds = %550
  %554 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %557

555:                                              ; preds = %550
  %556 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %557

557:                                              ; preds = %555, %553
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #6
  store i32 0, ptr %66, align 4, !tbaa !5
  br label %558

558:                                              ; preds = %602, %557
  %559 = load i32, ptr %66, align 4, !tbaa !5
  %560 = icmp slt i32 %559, 16
  br i1 %560, label %562, label %561

561:                                              ; preds = %558
  store i32 32, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #6
  br label %605

562:                                              ; preds = %558
  call void @llvm.lifetime.start.p0(i64 1, ptr %67) #6
  %563 = load i32, ptr %66, align 4, !tbaa !5
  %564 = trunc i32 %563 to i8
  %565 = call i8 @posit4_reinterpret(i8 noundef zeroext %564)
  %566 = getelementptr inbounds %union.posit4_u, ptr %67, i32 0, i32 0
  store i8 %565, ptr %566, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %67, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #6
  %567 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %568 = load i8, ptr %567, align 1
  %569 = call i8 @posit4_log(i8 %568)
  %570 = getelementptr inbounds %union.posit4_u, ptr %68, i32 0, i32 0
  store i8 %569, ptr %570, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 %68, i64 1, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #6
  %571 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %572 = load i8, ptr %571, align 1
  %573 = call double @posit4_tod(i8 %572)
  store double %573, ptr %69, align 8, !tbaa !26
  %574 = load double, ptr %69, align 8, !tbaa !26
  %575 = call double @log(double noundef %574) #6
  store double %575, ptr %70, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %71) #6
  %576 = load double, ptr %70, align 8, !tbaa !26
  %577 = call i8 @posit4_fromd(double noundef %576)
  %578 = getelementptr inbounds %union.posit4_u, ptr %71, i32 0, i32 0
  store i8 %577, ptr %578, align 1
  %579 = getelementptr inbounds %union.posit4_u, ptr %71, i32 0, i32 0
  %580 = load i8, ptr %579, align 1
  %581 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %582 = load i8, ptr %581, align 1
  %583 = call i32 @posit4_cmp(i8 %580, i8 %582)
  %584 = icmp ne i32 %583, 0
  br i1 %584, label %585, label %601

585:                                              ; preds = %562
  %586 = getelementptr inbounds %union.posit4_u, ptr %7, i32 0, i32 0
  %587 = load i8, ptr %586, align 1
  %588 = call zeroext i8 @posit4_bits(i8 %587)
  %589 = zext i8 %588 to i32
  %590 = getelementptr inbounds %union.posit4_u, ptr %9, i32 0, i32 0
  %591 = load i8, ptr %590, align 1
  %592 = call zeroext i8 @posit4_bits(i8 %591)
  %593 = zext i8 %592 to i32
  %594 = getelementptr inbounds %union.posit4_u, ptr %71, i32 0, i32 0
  %595 = load i8, ptr %594, align 1
  %596 = call zeroext i8 @posit4_bits(i8 %595)
  %597 = zext i8 %596 to i32
  %598 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %589, i32 noundef %593, i32 noundef %597)
  %599 = load i32, ptr %16, align 4, !tbaa !5
  %600 = add nsw i32 %599, 1
  store i32 %600, ptr %16, align 4, !tbaa !5
  br label %601

601:                                              ; preds = %585, %562
  call void @llvm.lifetime.end.p0(i64 1, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  br label %602

602:                                              ; preds = %601
  %603 = load i32, ptr %66, align 4, !tbaa !5
  %604 = add nsw i32 %603, 1
  store i32 %604, ptr %66, align 4, !tbaa !5
  br label %558, !llvm.loop !30

605:                                              ; preds = %561
  %606 = load i32, ptr %16, align 4, !tbaa !5
  %607 = icmp ne i32 %606, 0
  br i1 %607, label %608, label %610

608:                                              ; preds = %605
  %609 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %612

610:                                              ; preds = %605
  %611 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  br label %612

612:                                              ; preds = %610, %608
  %613 = load i8, ptr %11, align 1, !tbaa !11, !range !31, !noundef !32
  %614 = trunc i8 %613 to i1
  %615 = zext i1 %614 to i32
  %616 = icmp sgt i32 %615, 0
  %617 = zext i1 %616 to i64
  %618 = select i1 %616, i32 1, i32 0
  store i32 %618, ptr %3, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 14, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %619 = load i32, ptr %3, align 4
  ret i32 %619
}

; 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 i8 @posit4_add(i8, i8) #3

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

declare void @posit4_str(ptr noundef, i8) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @posit4_bits(i8) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i8 @posit4_sub(i8, i8) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i8 @posit4_mul(i8, i8) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i8 @posit4_div(i8, i8) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i8 @posit4_reinterpret(i8 noundef zeroext) #3

declare float @posit4_tof(i8) #4

declare i8 @posit4_fromf(float noundef) #4

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

declare i8 @posit4_sqrt(i8) #4

declare double @posit4_tod(i8) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

declare i8 @posit4_fromd(double noundef) #4

declare i8 @posit4_exp(i8) #4

; Function Attrs: nounwind
declare double @exp(double noundef) #5

declare i8 @posit4_log(i8) #4

; Function Attrs: nounwind
declare double @log(double noundef) #5

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 "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 = { 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 1, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !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 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = distinct !{!28, !18}
!29 = distinct !{!29, !18}
!30 = distinct !{!30, !18}
!31 = !{i8 0, i8 2}
!32 = !{}


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

%union.posit4_u = type { [1 x i8] }

@NAR4 = external hidden local_unnamed_addr constant %union.posit4_u, align 1
@ZERO4 = external hidden local_unnamed_addr constant %union.posit4_u, align 1
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [65 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 [65 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 [65 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 [65 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
@.str.14 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1

; 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 [14 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 14, ptr nonnull %3) #6
  %.sroa.0141.0.copyload = load i8, ptr @NAR4, align 1, !tbaa !5
  %.sroa.0122.0.copyload = load i8, ptr @ZERO4, align 1, !tbaa !5
  %4 = tail call i8 @posit4_add(i8 %.sroa.0141.0.copyload, i8 %.sroa.0122.0.copyload)
  call void @posit4_str(ptr noundef nonnull %3, i8 %4) #6
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %6 = call zeroext i8 @posit4_bits(i8 %4)
  %7 = zext i8 %6 to i32
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %7)
  %9 = call i8 @posit4_sub(i8 %.sroa.0141.0.copyload, i8 %.sroa.0122.0.copyload)
  call void @posit4_str(ptr noundef nonnull %3, i8 %9) #6
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %11 = call zeroext i8 @posit4_bits(i8 %9)
  %12 = zext i8 %11 to i32
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %12)
  %14 = call i8 @posit4_mul(i8 %.sroa.0141.0.copyload, i8 %.sroa.0122.0.copyload)
  call void @posit4_str(ptr noundef nonnull %3, i8 %14) #6
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %16 = call zeroext i8 @posit4_bits(i8 %14)
  %17 = zext i8 %16 to i32
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %17)
  %19 = call i8 @posit4_div(i8 %.sroa.0141.0.copyload, i8 %.sroa.0122.0.copyload)
  call void @posit4_str(ptr noundef nonnull %3, i8 %19) #6
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %21 = call zeroext i8 @posit4_bits(i8 %19)
  %22 = zext i8 %21 to i32
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %22)
  br label %26

24:                                               ; preds = %29
  %.not = icmp ne i32 %.2173, 0
  %.str.3..str.4 = select i1 %.not, ptr @.str.3, ptr @.str.4
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3..str.4)
  br label %54

26:                                               ; preds = %2, %29
  %.0171204 = phi i32 [ 0, %2 ], [ %.2173, %29 ]
  %.0178203 = phi i32 [ 0, %2 ], [ %30, %29 ]
  %27 = trunc nuw i32 %.0178203 to i8
  %28 = call i8 @posit4_reinterpret(i8 noundef zeroext %27)
  br label %31

29:                                               ; preds = %51
  %30 = add nuw nsw i32 %.0178203, 1
  %exitcond223.not = icmp eq i32 %30, 16
  br i1 %exitcond223.not, label %24, label %26, !llvm.loop !8

31:                                               ; preds = %26, %51
  %.1172202 = phi i32 [ %.0171204, %26 ], [ %.2173, %51 ]
  %.0179201 = phi i32 [ 0, %26 ], [ %52, %51 ]
  %32 = trunc nuw i32 %.0179201 to i8
  %33 = call i8 @posit4_reinterpret(i8 noundef zeroext %32)
  %34 = call i8 @posit4_add(i8 %28, i8 %33)
  %35 = call float @posit4_tof(i8 %28) #6
  %36 = call float @posit4_tof(i8 %33) #6
  %37 = fadd float %35, %36
  %38 = call i8 @posit4_fromf(float noundef %37) #6
  %39 = call i32 @posit4_cmp(i8 %38, i8 %34)
  %.not200 = icmp eq i32 %39, 0
  br i1 %.not200, label %51, label %40

40:                                               ; preds = %31
  %41 = call zeroext i8 @posit4_bits(i8 %28)
  %42 = zext i8 %41 to i32
  %43 = call zeroext i8 @posit4_bits(i8 %33)
  %44 = zext i8 %43 to i32
  %45 = call zeroext i8 @posit4_bits(i8 %34)
  %46 = zext i8 %45 to i32
  %47 = call zeroext i8 @posit4_bits(i8 %38)
  %48 = zext i8 %47 to i32
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %42, i32 noundef %44, i32 noundef %46, i32 noundef %48)
  %50 = add nsw i32 %.1172202, 1
  br label %51

51:                                               ; preds = %40, %31
  %.2173 = phi i32 [ %50, %40 ], [ %.1172202, %31 ]
  %52 = add nuw nsw i32 %.0179201, 1
  %exitcond.not = icmp eq i32 %52, 16
  br i1 %exitcond.not, label %29, label %31, !llvm.loop !10

53:                                               ; preds = %57
  %.not188 = icmp eq i32 %.5176, 0
  br i1 %.not188, label %83, label %81

54:                                               ; preds = %24, %57
  %.3174208 = phi i32 [ 0, %24 ], [ %.5176, %57 ]
  %.0180207 = phi i32 [ 0, %24 ], [ %58, %57 ]
  %55 = trunc nuw i32 %.0180207 to i8
  %56 = call i8 @posit4_reinterpret(i8 noundef zeroext %55)
  br label %59

57:                                               ; preds = %79
  %58 = add nuw nsw i32 %.0180207, 1
  %exitcond225.not = icmp eq i32 %58, 16
  br i1 %exitcond225.not, label %53, label %54, !llvm.loop !11

59:                                               ; preds = %54, %79
  %.4175206 = phi i32 [ %.3174208, %54 ], [ %.5176, %79 ]
  %.0182205 = phi i32 [ 0, %54 ], [ %80, %79 ]
  %60 = trunc nuw i32 %.0182205 to i8
  %61 = call i8 @posit4_reinterpret(i8 noundef zeroext %60)
  %62 = call i8 @posit4_sub(i8 %56, i8 %61)
  %63 = call float @posit4_tof(i8 %56) #6
  %64 = call float @posit4_tof(i8 %61) #6
  %65 = fsub float %63, %64
  %66 = call i8 @posit4_fromf(float noundef %65) #6
  %67 = call i32 @posit4_cmp(i8 %66, i8 %62)
  %.not199 = icmp eq i32 %67, 0
  br i1 %.not199, label %79, label %68

68:                                               ; preds = %59
  %69 = call zeroext i8 @posit4_bits(i8 %56)
  %70 = zext i8 %69 to i32
  %71 = call zeroext i8 @posit4_bits(i8 %61)
  %72 = zext i8 %71 to i32
  %73 = call zeroext i8 @posit4_bits(i8 %62)
  %74 = zext i8 %73 to i32
  %75 = call zeroext i8 @posit4_bits(i8 %66)
  %76 = zext i8 %75 to i32
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %70, i32 noundef %72, i32 noundef %74, i32 noundef %76)
  %78 = add nsw i32 %.4175206, 1
  br label %79

79:                                               ; preds = %68, %59
  %.5176 = phi i32 [ %78, %68 ], [ %.4175206, %59 ]
  %80 = add nuw nsw i32 %.0182205, 1
  %exitcond224.not = icmp eq i32 %80, 16
  br i1 %exitcond224.not, label %57, label %59, !llvm.loop !12

81:                                               ; preds = %53
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %86

83:                                               ; preds = %53
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %85 = zext i1 %.not to i32
  br label %86

86:                                               ; preds = %83, %81
  %.1 = phi i32 [ 1, %81 ], [ %85, %83 ]
  br label %89

87:                                               ; preds = %92
  %.not189 = icmp eq i32 %.8, 0
  %.str.10..str.9 = select i1 %.not189, ptr @.str.10, ptr @.str.9
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.10..str.9)
  br label %118

89:                                               ; preds = %86, %92
  %.6177212 = phi i32 [ 0, %86 ], [ %.8, %92 ]
  %.0183211 = phi i32 [ 0, %86 ], [ %93, %92 ]
  %90 = trunc nuw i32 %.0183211 to i8
  %91 = call i8 @posit4_reinterpret(i8 noundef zeroext %90)
  br label %94

92:                                               ; preds = %114
  %93 = add nuw nsw i32 %.0183211, 1
  %exitcond227.not = icmp eq i32 %93, 16
  br i1 %exitcond227.not, label %87, label %89, !llvm.loop !13

94:                                               ; preds = %89, %114
  %.7210 = phi i32 [ %.6177212, %89 ], [ %.8, %114 ]
  %.0184209 = phi i32 [ 0, %89 ], [ %115, %114 ]
  %95 = trunc nuw i32 %.0184209 to i8
  %96 = call i8 @posit4_reinterpret(i8 noundef zeroext %95)
  %97 = call i8 @posit4_mul(i8 %91, i8 %96)
  %98 = call float @posit4_tof(i8 %91) #6
  %99 = call float @posit4_tof(i8 %96) #6
  %100 = fmul float %98, %99
  %101 = call i8 @posit4_fromf(float noundef %100) #6
  %102 = call i32 @posit4_cmp(i8 %101, i8 %97)
  %.not198 = icmp eq i32 %102, 0
  br i1 %.not198, label %114, label %103

103:                                              ; preds = %94
  %104 = call zeroext i8 @posit4_bits(i8 %91)
  %105 = zext i8 %104 to i32
  %106 = call zeroext i8 @posit4_bits(i8 %96)
  %107 = zext i8 %106 to i32
  %108 = call zeroext i8 @posit4_bits(i8 %97)
  %109 = zext i8 %108 to i32
  %110 = call zeroext i8 @posit4_bits(i8 %101)
  %111 = zext i8 %110 to i32
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %105, i32 noundef %107, i32 noundef %109, i32 noundef %111)
  %113 = add nsw i32 %.7210, 1
  br label %114

114:                                              ; preds = %103, %94
  %.8 = phi i32 [ %113, %103 ], [ %.7210, %94 ]
  %115 = add nuw nsw i32 %.0184209, 1
  %exitcond226.not = icmp eq i32 %115, 16
  br i1 %exitcond226.not, label %92, label %94, !llvm.loop !14

116:                                              ; preds = %121
  %.not190 = icmp eq i32 %.11, 0
  %.str.13..str.12 = select i1 %.not190, ptr @.str.13, ptr @.str.12
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13..str.12)
  br label %147

118:                                              ; preds = %87, %121
  %.9216 = phi i32 [ 0, %87 ], [ %.11, %121 ]
  %.0185215 = phi i32 [ 0, %87 ], [ %122, %121 ]
  %119 = trunc nuw i32 %.0185215 to i8
  %120 = call i8 @posit4_reinterpret(i8 noundef zeroext %119)
  br label %123

121:                                              ; preds = %143
  %122 = add nuw nsw i32 %.0185215, 1
  %exitcond229.not = icmp eq i32 %122, 16
  br i1 %exitcond229.not, label %116, label %118, !llvm.loop !15

123:                                              ; preds = %118, %143
  %.10214 = phi i32 [ %.9216, %118 ], [ %.11, %143 ]
  %.0186213 = phi i32 [ 0, %118 ], [ %144, %143 ]
  %124 = trunc nuw i32 %.0186213 to i8
  %125 = call i8 @posit4_reinterpret(i8 noundef zeroext %124)
  %126 = call i8 @posit4_div(i8 %120, i8 %125)
  %127 = call float @posit4_tof(i8 %120) #6
  %128 = call float @posit4_tof(i8 %125) #6
  %129 = fdiv float %127, %128
  %130 = call i8 @posit4_fromf(float noundef %129) #6
  %131 = call i32 @posit4_cmp(i8 %130, i8 %126)
  %.not197 = icmp eq i32 %131, 0
  br i1 %.not197, label %143, label %132

132:                                              ; preds = %123
  %133 = call zeroext i8 @posit4_bits(i8 %120)
  %134 = zext i8 %133 to i32
  %135 = call zeroext i8 @posit4_bits(i8 %125)
  %136 = zext i8 %135 to i32
  %137 = call zeroext i8 @posit4_bits(i8 %126)
  %138 = zext i8 %137 to i32
  %139 = call zeroext i8 @posit4_bits(i8 %130)
  %140 = zext i8 %139 to i32
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %134, i32 noundef %136, i32 noundef %138, i32 noundef %140)
  %142 = add nsw i32 %.10214, 1
  br label %143

143:                                              ; preds = %132, %123
  %.11 = phi i32 [ %142, %132 ], [ %.10214, %123 ]
  %144 = add nuw nsw i32 %.0186213, 1
  %exitcond228.not = icmp eq i32 %144, 16
  br i1 %exitcond228.not, label %121, label %123, !llvm.loop !16

145:                                              ; preds = %164
  %.not191 = icmp eq i32 %.13, 0
  %.str.16..str.15 = select i1 %.not191, ptr @.str.16, ptr @.str.15
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.16..str.15)
  br label %168

147:                                              ; preds = %116, %164
  %.12218 = phi i32 [ 0, %116 ], [ %.13, %164 ]
  %.0187217 = phi i32 [ 0, %116 ], [ %165, %164 ]
  %148 = trunc nuw i32 %.0187217 to i8
  %149 = call i8 @posit4_reinterpret(i8 noundef zeroext %148)
  %150 = call i8 @posit4_sqrt(i8 %149) #6
  %151 = call double @posit4_tod(i8 %149) #6
  %152 = call double @sqrt(double noundef %151) #6
  %153 = call i8 @posit4_fromd(double noundef %152) #6
  %154 = call i32 @posit4_cmp(i8 %153, i8 %150)
  %.not196 = icmp eq i32 %154, 0
  br i1 %.not196, label %164, label %155

155:                                              ; preds = %147
  %156 = call zeroext i8 @posit4_bits(i8 %149)
  %157 = zext i8 %156 to i32
  %158 = call zeroext i8 @posit4_bits(i8 %150)
  %159 = zext i8 %158 to i32
  %160 = call zeroext i8 @posit4_bits(i8 %153)
  %161 = zext i8 %160 to i32
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %157, i32 noundef %159, i32 noundef %161)
  %163 = add nsw i32 %.12218, 1
  br label %164

164:                                              ; preds = %155, %147
  %.13 = phi i32 [ %163, %155 ], [ %.12218, %147 ]
  %165 = add nuw nsw i32 %.0187217, 1
  %exitcond230.not = icmp eq i32 %165, 16
  br i1 %exitcond230.not, label %145, label %147, !llvm.loop !17

166:                                              ; preds = %185
  %.not192 = icmp eq i32 %.15, 0
  %.str.19..str.18 = select i1 %.not192, ptr @.str.19, ptr @.str.18
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.19..str.18)
  br label %195

168:                                              ; preds = %145, %185
  %.14220 = phi i32 [ 0, %145 ], [ %.15, %185 ]
  %.0181219 = phi i32 [ 0, %145 ], [ %186, %185 ]
  %169 = trunc nuw i32 %.0181219 to i8
  %170 = call i8 @posit4_reinterpret(i8 noundef zeroext %169)
  %171 = call i8 @posit4_exp(i8 %170) #6
  %172 = call double @posit4_tod(i8 %170) #6
  %173 = call double @exp(double noundef %172) #6
  %174 = call i8 @posit4_fromd(double noundef %173) #6
  %175 = call i32 @posit4_cmp(i8 %174, i8 %171)
  %.not195 = icmp eq i32 %175, 0
  br i1 %.not195, label %185, label %176

176:                                              ; preds = %168
  %177 = call zeroext i8 @posit4_bits(i8 %170)
  %178 = zext i8 %177 to i32
  %179 = call zeroext i8 @posit4_bits(i8 %171)
  %180 = zext i8 %179 to i32
  %181 = call zeroext i8 @posit4_bits(i8 %174)
  %182 = zext i8 %181 to i32
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %178, i32 noundef %180, i32 noundef %182)
  %184 = add nsw i32 %.14220, 1
  br label %185

185:                                              ; preds = %176, %168
  %.15 = phi i32 [ %184, %176 ], [ %.14220, %168 ]
  %186 = add nuw nsw i32 %.0181219, 1
  %exitcond231.not = icmp eq i32 %186, 16
  br i1 %exitcond231.not, label %166, label %168, !llvm.loop !18

187:                                              ; preds = %212
  %188 = or i32 %.11, %.8
  %189 = icmp eq i32 %188, 0
  %190 = or i32 %.15, %.13
  %191 = icmp eq i32 %190, 0
  %.not193 = icmp eq i32 %.17, 0
  %.str.22..str.21 = select i1 %.not193, ptr @.str.22, ptr @.str.21
  %192 = select i1 %.not193, i1 %191, i1 false
  %193 = select i1 %192, i1 %189, i1 false
  %.1..... = select i1 %193, i32 %.1, i32 1
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.22..str.21)
  call void @llvm.lifetime.end.p0(i64 14, ptr nonnull %3) #6
  ret i32 %.1.....

195:                                              ; preds = %166, %212
  %.0170222 = phi i32 [ 0, %166 ], [ %213, %212 ]
  %.16221 = phi i32 [ 0, %166 ], [ %.17, %212 ]
  %196 = trunc nuw i32 %.0170222 to i8
  %197 = call i8 @posit4_reinterpret(i8 noundef zeroext %196)
  %198 = call i8 @posit4_log(i8 %197) #6
  %199 = call double @posit4_tod(i8 %197) #6
  %200 = call double @log(double noundef %199) #6
  %201 = call i8 @posit4_fromd(double noundef %200) #6
  %202 = call i32 @posit4_cmp(i8 %201, i8 %198)
  %.not194 = icmp eq i32 %202, 0
  br i1 %.not194, label %212, label %203

203:                                              ; preds = %195
  %204 = call zeroext i8 @posit4_bits(i8 %197)
  %205 = zext i8 %204 to i32
  %206 = call zeroext i8 @posit4_bits(i8 %198)
  %207 = zext i8 %206 to i32
  %208 = call zeroext i8 @posit4_bits(i8 %201)
  %209 = zext i8 %208 to i32
  %210 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %205, i32 noundef %207, i32 noundef %209)
  %211 = add nsw i32 %.16221, 1
  br label %212

212:                                              ; preds = %203, %195
  %.17 = phi i32 [ %211, %203 ], [ %.16221, %195 ]
  %213 = add nuw nsw i32 %.0170222, 1
  %exitcond232.not = icmp eq i32 %213, 16
  br i1 %exitcond232.not, label %187, label %195, !llvm.loop !19
}

; 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 i8 @posit4_add(i8, i8) 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 @posit4_str(ptr noundef, i8) 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 zeroext i8 @posit4_bits(i8) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i8 @posit4_reinterpret(i8 noundef zeroext) local_unnamed_addr #2

declare float @posit4_tof(i8) local_unnamed_addr #3

declare i8 @posit4_fromf(float noundef) local_unnamed_addr #3

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

declare i8 @posit4_sqrt(i8) local_unnamed_addr #3

declare double @posit4_tod(i8) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

declare i8 @posit4_fromd(double noundef) local_unnamed_addr #3

declare i8 @posit4_exp(i8) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #5

declare i8 @posit4_log(i8) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #5

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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}
!19 = distinct !{!19, !9}


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