; LLVM IR from devicehive/esp8266-firmware :: firmware-src/sources/commands (hmc5883l_cmd)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.gpio_command_params = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, %union.anon, i16, i32, i8, i8, i8, [264 x i8], i32, i32, i32, i32, i32, i32, i32, i32, float }
%union.anon = type { [16 x i32] }
%struct.HMC5883L_XYZ = type { float, float, float }
%struct.COMMAND_RESULT = type { ptr, %union.CommandResultArgument }
%union.CommandResultArgument = type { ptr }

@__const.dh_handle_devices_hmc5883l_read.floatbufx = external hidden unnamed_addr constant [10 x i8], align 1
@__const.dh_handle_devices_hmc5883l_read.floatbufy = external hidden unnamed_addr constant [10 x i8], align 1
@__const.dh_handle_devices_hmc5883l_read.floatbufz = external hidden unnamed_addr constant [10 x i8], align 1
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dh_handle_devices_hmc5883l_read(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.gpio_command_params, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.HMC5883L_XYZ, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca [10 x i8], align 1
  %17 = alloca [10 x i8], align 1
  %18 = alloca [10 x i8], align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 408, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %41

21:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = call ptr @parse_params_pins_set(ptr noundef %22, i32 noundef %23, ptr noundef %9, i32 noundef 1, i32 noundef 0, i32 noundef 3670016, ptr noundef %10)
  store ptr %24, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %21
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  call void @dh_command_fail(ptr noundef %28, ptr noundef %29)
  store i32 1, ptr %12, align 4
  br label %38

30:                                               ; preds = %21
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = and i32 %31, 524288
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  %35 = getelementptr inbounds %struct.gpio_command_params, ptr %9, i32 0, i32 22
  %36 = load i32, ptr %35, align 4, !tbaa !11
  call void @hmc5883l_set_address(i32 noundef %36)
  br label %37

37:                                               ; preds = %34, %30
  store i32 0, ptr %12, align 4
  br label %38

38:                                               ; preds = %37, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %39 = load i32, ptr %12, align 4
  switch i32 %39, label %100 [
    i32 0, label %40
  ]

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %40, %4
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = or i32 %42, 524288
  store i32 %43, ptr %10, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = call i32 @dh_i2c_init_helper(ptr noundef %44, i32 noundef %45, ptr noundef %9)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %41
  store i32 1, ptr %12, align 4
  br label %100

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %50 = call i32 @hmc5883l_read(i32 noundef -1, i32 noundef -1, ptr noundef %13)
  store i32 %50, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = call ptr @dh_i2c_error_string(i32 noundef %51)
  store ptr %52, ptr %15, align 8, !tbaa !5
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %58

55:                                               ; preds = %49
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  call void @dh_command_fail(ptr noundef %56, ptr noundef %57)
  store i32 1, ptr %12, align 4
  br label %99

58:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 10, ptr %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 @__const.dh_handle_devices_hmc5883l_read.floatbufx, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 10, ptr %17) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.dh_handle_devices_hmc5883l_read.floatbufy, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 10, ptr %18) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 @__const.dh_handle_devices_hmc5883l_read.floatbufz, i64 10, i1 false)
  %59 = getelementptr inbounds %struct.HMC5883L_XYZ, ptr %13, i32 0, i32 0
  %60 = load float, ptr %59, align 4, !tbaa !15
  %61 = fcmp une float %60, -1.000000e+08
  br i1 %61, label %62, label %68

62:                                               ; preds = %58
  %63 = getelementptr inbounds [10 x i8], ptr %16, i64 0, i64 0
  %64 = getelementptr inbounds %struct.HMC5883L_XYZ, ptr %13, i32 0, i32 0
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = fpext float %65 to double
  %67 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %63, i32 noundef 10, ptr noundef @.str, double noundef %66)
  br label %68

68:                                               ; preds = %62, %58
  %69 = getelementptr inbounds %struct.HMC5883L_XYZ, ptr %13, i32 0, i32 1
  %70 = load float, ptr %69, align 4, !tbaa !17
  %71 = fcmp une float %70, -1.000000e+08
  br i1 %71, label %72, label %78

72:                                               ; preds = %68
  %73 = getelementptr inbounds [10 x i8], ptr %17, i64 0, i64 0
  %74 = getelementptr inbounds %struct.HMC5883L_XYZ, ptr %13, i32 0, i32 1
  %75 = load float, ptr %74, align 4, !tbaa !17
  %76 = fpext float %75 to double
  %77 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %73, i32 noundef 10, ptr noundef @.str, double noundef %76)
  br label %78

78:                                               ; preds = %72, %68
  %79 = getelementptr inbounds %struct.HMC5883L_XYZ, ptr %13, i32 0, i32 2
  %80 = load float, ptr %79, align 4, !tbaa !18
  %81 = fcmp une float %80, -1.000000e+08
  br i1 %81, label %82, label %88

82:                                               ; preds = %78
  %83 = getelementptr inbounds [10 x i8], ptr %18, i64 0, i64 0
  %84 = getelementptr inbounds %struct.HMC5883L_XYZ, ptr %13, i32 0, i32 2
  %85 = load float, ptr %84, align 4, !tbaa !18
  %86 = fpext float %85 to double
  %87 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %83, i32 noundef 10, ptr noundef @.str, double noundef %86)
  br label %88

88:                                               ; preds = %82, %78
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.COMMAND_RESULT, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !19
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.COMMAND_RESULT, ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds [10 x i8], ptr %16, i64 0, i64 0
  %95 = getelementptr inbounds [10 x i8], ptr %17, i64 0, i64 0
  %96 = getelementptr inbounds [10 x i8], ptr %18, i64 0, i64 0
  %97 = getelementptr inbounds %union.CommandResultArgument, ptr %93, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8
  call void (ptr, i32, i32, ...) %91(ptr %98, i32 noundef 1, i32 noundef 5, ptr noundef @.str.1, ptr noundef %94, ptr noundef %95, ptr noundef %96)
  call void @llvm.lifetime.end.p0(i64 10, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr %16) #4
  store i32 0, ptr %12, align 4
  br label %99

99:                                               ; preds = %88, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #4
  br label %100

100:                                              ; preds = %99, %48, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 408, ptr %9) #4
  %101 = load i32, ptr %12, align 4
  switch i32 %101, label %103 [
    i32 0, label %102
    i32 1, label %102
  ]

102:                                              ; preds = %100, %100
  ret void

103:                                              ; preds = %100
  unreachable
}

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

declare ptr @parse_params_pins_set(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @dh_command_fail(ptr noundef, ptr noundef) #2

declare void @hmc5883l_set_address(i32 noundef) #2

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

declare i32 @dh_i2c_init_helper(ptr noundef, i32 noundef, ptr noundef) #2

declare i32 @hmc5883l_read(i32 noundef, i32 noundef, ptr noundef) #2

declare ptr @dh_i2c_error_string(i32 noundef) #2

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

declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 380}
!12 = !{!"", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !10, i64 24, !10, i64 28, !7, i64 32, !13, i64 96, !10, i64 100, !7, i64 104, !7, i64 105, !7, i64 106, !7, i64 107, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !14, i64 404}
!13 = !{!"short", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8}
!17 = !{!16, !14, i64 4}
!18 = !{!16, !14, i64 8}
!19 = !{!20, !6, i64 0}
!20 = !{!"", !6, i64 0, !7, i64 8}


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

%struct.gpio_command_params = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, %union.anon, i16, i32, i8, i8, i8, [264 x i8], i32, i32, i32, i32, i32, i32, i32, i32, float }
%union.anon = type { [16 x i32] }
%struct.HMC5883L_XYZ = type { float, float, float }

@__const.dh_handle_devices_hmc5883l_read.floatbufx = external hidden unnamed_addr constant [10 x i8], align 1
@__const.dh_handle_devices_hmc5883l_read.floatbufy = external hidden unnamed_addr constant [10 x i8], align 1
@__const.dh_handle_devices_hmc5883l_read.floatbufz = external hidden unnamed_addr constant [10 x i8], align 1
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dh_handle_devices_hmc5883l_read(ptr noundef %0, ptr nocapture noundef readnone %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca %struct.gpio_command_params, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.HMC5883L_XYZ, align 4
  %8 = alloca [10 x i8], align 1
  %9 = alloca [10 x i8], align 1
  %10 = alloca [10 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %.thread, label %11

11:                                               ; preds = %4
  %12 = call ptr @parse_params_pins_set(ptr noundef %2, i32 noundef %3, ptr noundef nonnull %5, i32 noundef 1, i32 noundef 0, i32 noundef 3670016, ptr noundef nonnull %6) #4
  %.not19 = icmp eq ptr %12, null
  br i1 %.not19, label %13, label %19

13:                                               ; preds = %11
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = and i32 %14, 524288
  %.not20 = icmp eq i32 %15, 0
  br i1 %.not20, label %.thread, label %16

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %5, i64 380
  %18 = load i32, ptr %17, align 4, !tbaa !9
  call void @hmc5883l_set_address(i32 noundef %18) #4
  %.pre = load i32, ptr %6, align 4, !tbaa !5
  br label %.thread

19:                                               ; preds = %11
  call void @dh_command_fail(ptr noundef %0, ptr noundef nonnull %12) #4
  br label %52

.thread:                                          ; preds = %16, %13, %4
  %20 = phi i32 [ %.pre, %16 ], [ %14, %13 ], [ 0, %4 ]
  %21 = or i32 %20, 524288
  store i32 %21, ptr %6, align 4, !tbaa !5
  %22 = call i32 @dh_i2c_init_helper(ptr noundef %0, i32 noundef %21, ptr noundef nonnull %5) #4
  %.not21 = icmp eq i32 %22, 0
  br i1 %.not21, label %23, label %52

23:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  %24 = call i32 @hmc5883l_read(i32 noundef -1, i32 noundef -1, ptr noundef nonnull %7) #4
  %25 = call ptr @dh_i2c_error_string(i32 noundef %24) #4
  %.not22 = icmp eq ptr %25, null
  br i1 %.not22, label %27, label %26

26:                                               ; preds = %23
  call void @dh_command_fail(ptr noundef %0, ptr noundef nonnull %25) #4
  br label %51

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %8, ptr noundef nonnull align 1 dereferenceable(10) @__const.dh_handle_devices_hmc5883l_read.floatbufx, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %9, ptr noundef nonnull align 1 dereferenceable(10) @__const.dh_handle_devices_hmc5883l_read.floatbufy, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %10, ptr noundef nonnull align 1 dereferenceable(10) @__const.dh_handle_devices_hmc5883l_read.floatbufz, i64 10, i1 false)
  %28 = load float, ptr %7, align 4, !tbaa !13
  %29 = fcmp une float %28, -1.000000e+08
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = fpext float %28 to double
  %32 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %8, i32 noundef 10, ptr noundef nonnull @.str, double noundef %31) #4
  br label %33

33:                                               ; preds = %30, %27
  %34 = getelementptr inbounds i8, ptr %7, i64 4
  %35 = load float, ptr %34, align 4, !tbaa !15
  %36 = fcmp une float %35, -1.000000e+08
  br i1 %36, label %37, label %40

37:                                               ; preds = %33
  %38 = fpext float %35 to double
  %39 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %9, i32 noundef 10, ptr noundef nonnull @.str, double noundef %38) #4
  br label %40

40:                                               ; preds = %37, %33
  %41 = getelementptr inbounds i8, ptr %7, i64 8
  %42 = load float, ptr %41, align 4, !tbaa !16
  %43 = fcmp une float %42, -1.000000e+08
  br i1 %43, label %44, label %47

44:                                               ; preds = %40
  %45 = fpext float %42 to double
  %46 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %10, i32 noundef 10, ptr noundef nonnull @.str, double noundef %45) #4
  br label %47

47:                                               ; preds = %44, %40
  %48 = load ptr, ptr %0, align 8, !tbaa !17
  %49 = getelementptr inbounds i8, ptr %0, i64 8
  %50 = load ptr, ptr %49, align 8
  call void (ptr, i32, i32, ...) %48(ptr %50, i32 noundef 1, i32 noundef 5, ptr noundef nonnull @.str.1, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %8) #4
  br label %51

51:                                               ; preds = %47, %26
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  br label %52

52:                                               ; preds = %19, %.thread, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %5) #4
  ret void
}

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

declare ptr @parse_params_pins_set(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @dh_command_fail(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @hmc5883l_set_address(i32 noundef) 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 i32 @dh_i2c_init_helper(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @hmc5883l_read(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @dh_i2c_error_string(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !6, i64 380}
!10 = !{!"", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 10, !11, i64 12, !11, i64 14, !11, i64 16, !11, i64 18, !11, i64 20, !6, i64 24, !6, i64 28, !7, i64 32, !11, i64 96, !6, i64 100, !7, i64 104, !7, i64 105, !7, i64 106, !7, i64 107, !6, i64 372, !6, i64 376, !6, i64 380, !6, i64 384, !6, i64 388, !6, i64 392, !6, i64 396, !6, i64 400, !12, i64 404}
!11 = !{!"short", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{!14, !12, i64 4}
!16 = !{!14, !12, i64 8}
!17 = !{!18, !19, i64 0}
!18 = !{!"", !19, i64 0, !7, i64 8}
!19 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass