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

; 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.workbuf_u = type { [256 x i32] }
%union.posit8_u = type { [1 x i8] }
%struct.timeval = type { i64, i64 }

@.str = external hidden unnamed_addr constant [66 x i8], align 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) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12add_compressP9workbuf_u(ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z7testrunRSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEPm(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %union.workbuf_u, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca %union.posit8_u, align 1
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca %struct.timeval, align 8
  %14 = alloca %struct.timeval, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca %union.posit8_u, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %32, %2
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = icmp ult i64 %22, 256
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %35

25:                                               ; preds = %20
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEclEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %28 = trunc i64 %27 to i32
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [256 x i32], ptr %5, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !11
  br label %32

32:                                               ; preds = %25
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = add i32 %33, 1
  store i32 %34, ptr %6, align 4, !tbaa !9
  br label %20, !llvm.loop !12

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %56, %35
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %38, 1024
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %59

41:                                               ; preds = %36
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = zext i8 %45 to i32
  %47 = icmp eq i32 %46, 128
  %48 = zext i1 %47 to i32
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = zext i8 %52 to i32
  %54 = add nsw i32 %53, %48
  %55 = trunc i32 %54 to i8
  store i8 %55, ptr %51, align 1, !tbaa !11
  br label %56

56:                                               ; preds = %41
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = add i32 %57, 1
  store i32 %58, ptr %7, align 4, !tbaa !9
  br label %36, !llvm.loop !14

59:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %74, %59
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = icmp ult i64 %62, 1024
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %77

65:                                               ; preds = %60
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [1024 x %union.posit8_u], ptr %5, i64 0, i64 %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 %68, i64 1, i1 false), !tbaa.struct !17
  %69 = getelementptr inbounds %union.posit8_u, ptr %10, i32 0, i32 0
  %70 = load i8, ptr %69, align 1
  %71 = call double @posit8_tod(i8 %70)
  %72 = load double, ptr %8, align 8, !tbaa !15
  %73 = fadd double %72, %71
  store double %73, ptr %8, align 8, !tbaa !15
  br label %74

74:                                               ; preds = %65
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = add i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !9
  br label %60, !llvm.loop !18

77:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %78 = call i32 @gettimeofday(ptr noundef %13, ptr noundef null) #5
  %79 = call noundef i32 @_Z12add_compressP9workbuf_u(ptr noundef %5)
  store i32 %79, ptr %11, align 4, !tbaa !9
  %80 = call i32 @gettimeofday(ptr noundef %14, ptr noundef null) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %105, %77
  %82 = load i32, ptr %17, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = icmp ult i64 %83, 1024
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %108

86:                                               ; preds = %81
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %91 = icmp ne i8 %90, 0
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  br label %105

93:                                               ; preds = %86
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [1024 x %union.posit8_u], ptr %5, i64 0, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 %98, i64 1, i1 false), !tbaa.struct !17
  %99 = getelementptr inbounds %union.posit8_u, ptr %19, i32 0, i32 0
  %100 = load i8, ptr %99, align 1
  %101 = call double @posit8_tod(i8 %100)
  store double %101, ptr %18, align 8, !tbaa !15
  %102 = load double, ptr %18, align 8, !tbaa !15
  %103 = load double, ptr %16, align 8, !tbaa !15
  %104 = fadd double %103, %102
  store double %104, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %105

105:                                              ; preds = %93, %92
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = add i32 %106, 1
  store i32 %107, ptr %17, align 4, !tbaa !9
  br label %81, !llvm.loop !21

108:                                              ; preds = %85
  %109 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !22
  %111 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
  %112 = load i64, ptr %111, align 8, !tbaa !22
  %113 = sub nsw i64 %110, %112
  store i64 %113, ptr %12, align 8, !tbaa !19
  %114 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 0
  %115 = load i64, ptr %114, align 8, !tbaa !24
  %116 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 0
  %117 = load i64, ptr %116, align 8, !tbaa !24
  %118 = sub nsw i64 %115, %117
  %119 = mul nsw i64 %118, 1000000
  %120 = load i64, ptr %12, align 8, !tbaa !19
  %121 = add i64 %120, %119
  store i64 %121, ptr %12, align 8, !tbaa !19
  %122 = load i64, ptr %12, align 8, !tbaa !19
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !19
  %125 = add i64 %124, %122
  store i64 %125, ptr %123, align 8, !tbaa !19
  %126 = load double, ptr %8, align 8, !tbaa !15
  %127 = load double, ptr %16, align 8, !tbaa !15
  %128 = load i32, ptr %15, align 4, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = load i64, ptr %12, align 8, !tbaa !19
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %126, double noundef %127, i32 noundef %128, i32 noundef %129, i64 noundef %130)
  %132 = load double, ptr %8, align 8, !tbaa !15
  %133 = load double, ptr %16, align 8, !tbaa !15
  %134 = fcmp oeq double %132, %133
  %135 = zext i1 %134 to i64
  %136 = select i1 %134, i32 0, i32 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %5) #5
  ret i32 %136
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEclEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare double @posit8_tod(i8) #3

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #4

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

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


; 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.workbuf_u = type { [256 x i32] }
%struct.timeval = type { i64, i64 }
%union.posit8_u = type { [1 x i8] }

@.str = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12add_compressP9workbuf_u(ptr noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z7testrunRSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEPm(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
  %3 = alloca %union.workbuf_u, align 4
  %4 = alloca %struct.timeval, align 8
  %5 = alloca %struct.timeval, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #5
  br label %6

6:                                                ; preds = %2, %6
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %6 ]
  %7 = tail call noundef i64 @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEclEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %8 = trunc i64 %7 to i32
  %9 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %indvars.iv
  store i32 %8, ptr %9, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %vector.body, label %6, !llvm.loop !8

vector.body:                                      ; preds = %6, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %6 ]
  %10 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %index
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %wide.load = load <16 x i8>, ptr %10, align 4, !tbaa !5
  %wide.load61 = load <16 x i8>, ptr %11, align 4, !tbaa !5
  %12 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %wide.load, <16 x i8> <i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127>)
  %13 = tail call <16 x i8> @llvm.smax.v16i8(<16 x i8> %wide.load61, <16 x i8> <i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127, i8 -127>)
  store <16 x i8> %12, ptr %10, align 4, !tbaa !5
  store <16 x i8> %13, ptr %11, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %14 = icmp eq i64 %index.next, 1024
  br i1 %14, label %.preheader, label %vector.body, !llvm.loop !10

15:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %16 = call i32 @gettimeofday(ptr noundef nonnull %4, ptr noundef null) #5
  %17 = call noundef i32 @_Z12add_compressP9workbuf_u(ptr noundef nonnull %3)
  %18 = call i32 @gettimeofday(ptr noundef nonnull %5, ptr noundef null) #5
  br label %38

.preheader:                                       ; preds = %vector.body, %.preheader
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %.preheader ], [ 0, %vector.body ]
  %.03444 = phi double [ %21, %.preheader ], [ 0.000000e+00, %vector.body ]
  %19 = getelementptr inbounds [1024 x %union.posit8_u], ptr %3, i64 0, i64 %indvars.iv53
  %.sroa.013.0.copyload = load i8, ptr %19, align 1, !tbaa !5
  %20 = tail call double @posit8_tod(i8 %.sroa.013.0.copyload)
  %21 = fadd double %.03444, %20
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next54, 1024
  br i1 %exitcond56.not, label %15, label %.preheader, !llvm.loop !13

22:                                               ; preds = %45
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %4, i64 8
  %26 = load i64, ptr %25, align 8, !tbaa !14
  %27 = sub nsw i64 %24, %26
  %28 = load i64, ptr %5, align 8, !tbaa !17
  %29 = load i64, ptr %4, align 8, !tbaa !17
  %30 = sub nsw i64 %28, %29
  %31 = mul nsw i64 %30, 1000000
  %32 = add i64 %31, %27
  %33 = load i64, ptr %1, align 8, !tbaa !18
  %34 = add i64 %32, %33
  store i64 %34, ptr %1, align 8, !tbaa !18
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %21, double noundef %.1, i32 noundef %.133, i32 noundef %17, i64 noundef %32)
  %36 = fcmp une double %21, %.1
  %37 = zext i1 %36 to i32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #5
  ret i32 %37

38:                                               ; preds = %15, %45
  %indvars.iv57 = phi i64 [ 0, %15 ], [ %indvars.iv.next58, %45 ]
  %.03146 = phi double [ 0.000000e+00, %15 ], [ %.1, %45 ]
  %.03245 = phi i32 [ 0, %15 ], [ %.133, %45 ]
  %39 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %indvars.iv57
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %.not = icmp eq i8 %40, 0
  br i1 %.not, label %45, label %41

41:                                               ; preds = %38
  %42 = add nsw i32 %.03245, 1
  %43 = call double @posit8_tod(i8 %40)
  %44 = fadd double %.03146, %43
  br label %45

45:                                               ; preds = %38, %41
  %.133 = phi i32 [ %42, %41 ], [ %.03245, %38 ]
  %.1 = phi double [ %44, %41 ], [ %.03146, %38 ]
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next58, 1024
  br i1 %exitcond60.not, label %22, label %38, !llvm.loop !19
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEclEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare double @posit8_tod(i8) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <16 x i8> @llvm.smax.v16i8(<16 x i8>, <16 x i8>) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9, !11, !12}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !9}
!14 = !{!15, !16, i64 8}
!15 = !{!"_ZTS7timeval", !16, i64 0, !16, i64 8}
!16 = !{!"long", !6, i64 0}
!17 = !{!15, !16, i64 0}
!18 = !{!16, !16, i64 0}
!19 = distinct !{!19, !9}


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