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

; 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 [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [39 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 %union.posit32_u, align 4
  %17 = alloca i32, align 4
  %18 = alloca %union.posit32_u, align 4
  %19 = alloca float, align 4
  %20 = alloca %union.posit32_u, align 4
  %21 = alloca double, align 8
  %22 = 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
  %23 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %24 = load i32, ptr %23, align 4
  %25 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %26 = load i32, ptr %25, align 4
  %27 = call i32 @posit32_add(i32 %24, i32 %26)
  %28 = getelementptr inbounds %union.posit32_u, ptr %11, i32 0, i32 0
  store i32 %27, ptr %28, 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
  %29 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %30 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %31 = load i32, ptr %30, align 4
  call void @posit32_str(ptr noundef %29, i32 %31)
  %32 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %32)
  %34 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %35 = load i32, ptr %34, align 4
  %36 = call i32 @posit32_bits(i32 %35)
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %36)
  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
  %38 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %39 = load i32, ptr %38, align 4
  %40 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %41 = load i32, ptr %40, align 4
  %42 = call i32 @posit32_sub(i32 %39, i32 %41)
  %43 = getelementptr inbounds %union.posit32_u, ptr %12, i32 0, i32 0
  store i32 %42, ptr %43, 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
  %44 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %45 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %46 = load i32, ptr %45, align 4
  call void @posit32_str(ptr noundef %44, i32 %46)
  %47 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %47)
  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
  %49 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %50 = load i32, ptr %49, align 4
  %51 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %52 = load i32, ptr %51, align 4
  %53 = call i32 @posit32_mul(i32 %50, i32 %52)
  %54 = getelementptr inbounds %union.posit32_u, ptr %13, i32 0, i32 0
  store i32 %53, ptr %54, 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
  %55 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %56 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  call void @posit32_str(ptr noundef %55, i32 %57)
  %58 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %58)
  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
  %60 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %61 = load i32, ptr %60, align 4
  %62 = getelementptr inbounds %union.posit32_u, ptr %7, i32 0, i32 0
  %63 = load i32, ptr %62, align 4
  %64 = call i32 @posit32_div(i32 %61, i32 %63)
  %65 = getelementptr inbounds %union.posit32_u, ptr %14, i32 0, i32 0
  store i32 %64, ptr %65, 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
  %66 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %67 = getelementptr inbounds %union.posit32_u, ptr %8, i32 0, i32 0
  %68 = load i32, ptr %67, align 4
  call void @posit32_str(ptr noundef %66, i32 %68)
  %69 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %69)
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 -1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %72 = load i32, ptr %15, align 4, !tbaa !5
  %73 = call i32 @posit32_fromsi(i32 noundef %72)
  %74 = getelementptr inbounds %union.posit32_u, ptr %16, i32 0, i32 0
  store i32 %73, ptr %74, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %16, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %75 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %76 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %77 = load i32, ptr %76, align 4
  call void @posit32_str(ptr noundef %75, i32 %77)
  %78 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %79 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %80 = load i32, ptr %79, align 4
  %81 = call double @posit32_tod(i32 %80)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %78, double noundef %81)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 1, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %83 = load i32, ptr %17, align 4, !tbaa !5
  %84 = call i32 @posit32_fromui(i32 noundef %83)
  %85 = getelementptr inbounds %union.posit32_u, ptr %18, i32 0, i32 0
  store i32 %84, ptr %85, 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
  %86 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %87 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %88 = load i32, ptr %87, align 4
  call void @posit32_str(ptr noundef %86, i32 %88)
  %89 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %90 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %91 = load i32, ptr %90, align 4
  %92 = call double @posit32_tod(i32 %91)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %89, double noundef %92)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store float -1.500000e+00, ptr %19, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %94 = load float, ptr %19, align 4, !tbaa !15
  %95 = call i32 @posit32_fromf(float noundef %94)
  %96 = getelementptr inbounds %union.posit32_u, ptr %20, i32 0, i32 0
  store i32 %95, ptr %96, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %20, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %97 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %98 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %99 = load i32, ptr %98, align 4
  call void @posit32_str(ptr noundef %97, i32 %99)
  %100 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %101 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %102 = load i32, ptr %101, align 4
  %103 = call double @posit32_tod(i32 %102)
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %100, double noundef %103)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store double 1.500000e+00, ptr %21, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %105 = load double, ptr %21, align 8, !tbaa !17
  %106 = call i32 @posit32_fromd(double noundef %105)
  %107 = getelementptr inbounds %union.posit32_u, ptr %22, i32 0, i32 0
  store i32 %106, ptr %107, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %22, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %108 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %109 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %110 = load i32, ptr %109, align 4
  call void @posit32_str(ptr noundef %108, i32 %110)
  %111 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %112 = getelementptr inbounds %union.posit32_u, ptr %6, i32 0, i32 0
  %113 = load i32, ptr %112, align 4
  %114 = call double @posit32_tod(i32 %113)
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %111, double noundef %114)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %116 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %117 = trunc i8 %116 to i1
  %118 = zext i1 %117 to i32
  %119 = icmp sgt i32 %118, 0
  %120 = zext i1 %119 to i64
  %121 = select i1 %119, i32 1, i32 0
  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
  ret i32 %121
}

; 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

declare i32 @posit32_fromsi(i32 noundef) #4

declare double @posit32_tod(i32) #4

declare i32 @posit32_fromui(i32 noundef) #4

declare i32 @posit32_fromf(float noundef) #4

declare i32 @posit32_fromd(double noundef) #4

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 = !{!"float", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


; 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 [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [39 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 noundef 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.023.0.copyload = load i32, ptr @NAR32, align 4, !tbaa !5
  %.sroa.016.0.copyload = load i32, ptr @ZERO32, align 4, !tbaa !5
  %4 = tail call i32 @posit32_add(i32 %.sroa.023.0.copyload, i32 %.sroa.016.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.023.0.copyload, i32 %.sroa.016.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_mul(i32 %.sroa.023.0.copyload, i32 %.sroa.016.0.copyload)
  call void @posit32_str(ptr noundef nonnull %3, i32 %10) #5
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %3)
  %12 = call i32 @posit32_div(i32 %.sroa.023.0.copyload, i32 %.sroa.016.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 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %15 = call i32 @posit32_fromsi(i32 noundef -1) #5
  call void @posit32_str(ptr noundef nonnull %3, i32 %15) #5
  %16 = call double @posit32_tod(i32 %15) #5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %3, double noundef %16)
  %18 = call i32 @posit32_fromui(i32 noundef 1) #5
  call void @posit32_str(ptr noundef nonnull %3, i32 %18) #5
  %19 = call double @posit32_tod(i32 %18) #5
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %3, double noundef %19)
  %21 = call i32 @posit32_fromf(float noundef -1.500000e+00) #5
  call void @posit32_str(ptr noundef nonnull %3, i32 %21) #5
  %22 = call double @posit32_tod(i32 %21) #5
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %3, double noundef %22)
  %24 = call i32 @posit32_fromd(double noundef 1.500000e+00) #5
  call void @posit32_str(ptr noundef nonnull %3, i32 %24) #5
  %25 = call double @posit32_tod(i32 %24) #5
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %3, double noundef %25)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i32 0
}

; 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

declare i32 @posit32_fromsi(i32 noundef) local_unnamed_addr #3

declare double @posit32_tod(i32) local_unnamed_addr #3

declare i32 @posit32_fromui(i32 noundef) local_unnamed_addr #3

declare i32 @posit32_fromf(float noundef) local_unnamed_addr #3

declare i32 @posit32_fromd(double noundef) local_unnamed_addr #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 = { 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"}


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