; LLVM IR from ctlst-tech/catpilot :: bsp/ics/cubeio (cubeio)

; 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.cubeio_t = type { [32 x i8], ptr, %struct.cubeio_interface_t, i32, %struct.cubeio_sync_t, %struct.cubeio_packet_t, %struct.cubeio_packet_t, i32, %struct.cubeio_page_config_t, %struct.cubeio_pwm_out_t, %struct.cubeio_pwm_in_t, %struct.cubeio_rate_t, %struct.cubeio_page_reg_status_t, %struct.cubeio_page_rc_input_t, [16 x %struct.cubeio_range_cfg_t], [16 x %struct.cubeio_range_cfg_t], [16 x double], double, [16 x double], i32 }
%struct.cubeio_interface_t = type { ptr }
%struct.cubeio_sync_t = type { ptr, ptr, ptr, i32, i32, i32, i32, i32 }
%struct.cubeio_packet_t = type { i8, i8, i8, i8, [22 x i16] }
%struct.cubeio_page_config_t = type { i16, i16 }
%struct.cubeio_pwm_out_t = type { i8, [16 x i16], [16 x i16], i8, i16 }
%struct.cubeio_pwm_in_t = type { [16 x i16] }
%struct.cubeio_rate_t = type { i16, i16, i16, i16, i8, i8 }
%struct.cubeio_page_reg_status_t = type { i16, i32, i16, i16, i32, i32, i8, i8, i8, i8, i8, i8, i8 }
%struct.cubeio_page_rc_input_t = type { i8, i8, i8, [16 x i16], i16 }
%struct.cubeio_range_cfg_t = type { i16, i16, i16 }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1

declare void @log_module(i8 noundef zeroext, ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
define dso_local void @cubeio_stat(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds %struct.cubeio_t, ptr %3, i32 0, i32 3
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = icmp ne i32 %5, 2
  br i1 %6, label %7, label %8

7:                                                ; preds = %1
  br label %157

8:                                                ; preds = %1
  %9 = call i32 (ptr, ...) @printf_(ptr noundef @.str.1)
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.cubeio_t, ptr %10, i32 0, i32 0
  %12 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %12, ptr noundef @.str.2)
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.cubeio_t, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.cubeio_t, ptr %16, i32 0, i32 13
  %18 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %17, i32 0, i32 3
  %19 = getelementptr inbounds [16 x i16], ptr %18, i64 0, i64 0
  %20 = load i16, ptr %19, align 4, !tbaa !23
  %21 = zext i16 %20 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %15, ptr noundef @.str.3, i32 noundef %21)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.cubeio_t, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.cubeio_t, ptr %25, i32 0, i32 13
  %27 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %26, i32 0, i32 3
  %28 = getelementptr inbounds [16 x i16], ptr %27, i64 0, i64 1
  %29 = load i16, ptr %28, align 2, !tbaa !23
  %30 = zext i16 %29 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %24, ptr noundef @.str.4, i32 noundef %30)
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.cubeio_t, ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds [32 x i8], ptr %32, i64 0, i64 0
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.cubeio_t, ptr %34, i32 0, i32 13
  %36 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %35, i32 0, i32 3
  %37 = getelementptr inbounds [16 x i16], ptr %36, i64 0, i64 2
  %38 = load i16, ptr %37, align 4, !tbaa !23
  %39 = zext i16 %38 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %33, ptr noundef @.str.5, i32 noundef %39)
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.cubeio_t, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds [32 x i8], ptr %41, i64 0, i64 0
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.cubeio_t, ptr %43, i32 0, i32 13
  %45 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %44, i32 0, i32 3
  %46 = getelementptr inbounds [16 x i16], ptr %45, i64 0, i64 3
  %47 = load i16, ptr %46, align 2, !tbaa !23
  %48 = zext i16 %47 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %42, ptr noundef @.str.6, i32 noundef %48)
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.cubeio_t, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds [32 x i8], ptr %50, i64 0, i64 0
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.cubeio_t, ptr %52, i32 0, i32 13
  %54 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %53, i32 0, i32 3
  %55 = getelementptr inbounds [16 x i16], ptr %54, i64 0, i64 4
  %56 = load i16, ptr %55, align 4, !tbaa !23
  %57 = zext i16 %56 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %51, ptr noundef @.str.7, i32 noundef %57)
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.cubeio_t, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds [32 x i8], ptr %59, i64 0, i64 0
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.cubeio_t, ptr %61, i32 0, i32 13
  %63 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %62, i32 0, i32 3
  %64 = getelementptr inbounds [16 x i16], ptr %63, i64 0, i64 5
  %65 = load i16, ptr %64, align 2, !tbaa !23
  %66 = zext i16 %65 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %60, ptr noundef @.str.8, i32 noundef %66)
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.cubeio_t, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds [32 x i8], ptr %68, i64 0, i64 0
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.cubeio_t, ptr %70, i32 0, i32 13
  %72 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %71, i32 0, i32 3
  %73 = getelementptr inbounds [16 x i16], ptr %72, i64 0, i64 6
  %74 = load i16, ptr %73, align 4, !tbaa !23
  %75 = zext i16 %74 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %69, ptr noundef @.str.9, i32 noundef %75)
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.cubeio_t, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds [32 x i8], ptr %77, i64 0, i64 0
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.cubeio_t, ptr %79, i32 0, i32 13
  %81 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %80, i32 0, i32 3
  %82 = getelementptr inbounds [16 x i16], ptr %81, i64 0, i64 7
  %83 = load i16, ptr %82, align 2, !tbaa !23
  %84 = zext i16 %83 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %78, ptr noundef @.str.10, i32 noundef %84)
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.cubeio_t, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds [32 x i8], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.cubeio_t, ptr %88, i32 0, i32 13
  %90 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %89, i32 0, i32 3
  %91 = getelementptr inbounds [16 x i16], ptr %90, i64 0, i64 8
  %92 = load i16, ptr %91, align 4, !tbaa !23
  %93 = zext i16 %92 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %87, ptr noundef @.str.11, i32 noundef %93)
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.cubeio_t, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds [32 x i8], ptr %95, i64 0, i64 0
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.cubeio_t, ptr %97, i32 0, i32 13
  %99 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %98, i32 0, i32 3
  %100 = getelementptr inbounds [16 x i16], ptr %99, i64 0, i64 9
  %101 = load i16, ptr %100, align 2, !tbaa !23
  %102 = zext i16 %101 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %96, ptr noundef @.str.12, i32 noundef %102)
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.cubeio_t, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds [32 x i8], ptr %104, i64 0, i64 0
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.cubeio_t, ptr %106, i32 0, i32 13
  %108 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %107, i32 0, i32 3
  %109 = getelementptr inbounds [16 x i16], ptr %108, i64 0, i64 10
  %110 = load i16, ptr %109, align 4, !tbaa !23
  %111 = zext i16 %110 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %105, ptr noundef @.str.13, i32 noundef %111)
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.cubeio_t, ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds [32 x i8], ptr %113, i64 0, i64 0
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.cubeio_t, ptr %115, i32 0, i32 13
  %117 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %116, i32 0, i32 3
  %118 = getelementptr inbounds [16 x i16], ptr %117, i64 0, i64 11
  %119 = load i16, ptr %118, align 2, !tbaa !23
  %120 = zext i16 %119 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %114, ptr noundef @.str.14, i32 noundef %120)
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.cubeio_t, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds [32 x i8], ptr %122, i64 0, i64 0
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.cubeio_t, ptr %124, i32 0, i32 13
  %126 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %125, i32 0, i32 3
  %127 = getelementptr inbounds [16 x i16], ptr %126, i64 0, i64 12
  %128 = load i16, ptr %127, align 4, !tbaa !23
  %129 = zext i16 %128 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %123, ptr noundef @.str.15, i32 noundef %129)
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.cubeio_t, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds [32 x i8], ptr %131, i64 0, i64 0
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.cubeio_t, ptr %133, i32 0, i32 13
  %135 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %134, i32 0, i32 3
  %136 = getelementptr inbounds [16 x i16], ptr %135, i64 0, i64 13
  %137 = load i16, ptr %136, align 2, !tbaa !23
  %138 = zext i16 %137 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %132, ptr noundef @.str.16, i32 noundef %138)
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.cubeio_t, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds [32 x i8], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.cubeio_t, ptr %142, i32 0, i32 13
  %144 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %143, i32 0, i32 3
  %145 = getelementptr inbounds [16 x i16], ptr %144, i64 0, i64 14
  %146 = load i16, ptr %145, align 4, !tbaa !23
  %147 = zext i16 %146 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %141, ptr noundef @.str.17, i32 noundef %147)
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.cubeio_t, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds [32 x i8], ptr %149, i64 0, i64 0
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.cubeio_t, ptr %151, i32 0, i32 13
  %153 = getelementptr inbounds %struct.cubeio_page_rc_input_t, ptr %152, i32 0, i32 3
  %154 = getelementptr inbounds [16 x i16], ptr %153, i64 0, i64 15
  %155 = load i16, ptr %154, align 2, !tbaa !23
  %156 = zext i16 %155 to i32
  call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef %150, ptr noundef @.str.18, i32 noundef %156)
  br label %157

157:                                              ; preds = %8, %7
  ret void
}

declare i32 @printf_(ptr noundef, ...) #0

attributes #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 = { 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" }

!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, !12, i64 48}
!10 = !{!"", !7, i64 0, !6, i64 32, !11, i64 40, !12, i64 48, !13, i64 56, !14, i64 104, !14, i64 152, !12, i64 200, !15, i64 204, !17, i64 208, !18, i64 278, !19, i64 310, !20, i64 320, !21, i64 348, !7, i64 386, !7, i64 482, !7, i64 584, !22, i64 712, !7, i64 720, !12, i64 848}
!11 = !{!"", !6, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40}
!14 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!15 = !{!"", !16, i64 0, !16, i64 2}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !7, i64 0, !7, i64 2, !7, i64 34, !7, i64 66, !16, i64 68}
!18 = !{!"", !7, i64 0}
!19 = !{!"", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !7, i64 8, !7, i64 9}
!20 = !{!"", !16, i64 0, !12, i64 4, !16, i64 8, !16, i64 10, !12, i64 12, !12, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26}
!21 = !{!"", !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 4, !16, i64 36}
!22 = !{!"double", !7, i64 0}
!23 = !{!16, !16, 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"

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1

declare void @log_module(i8 noundef zeroext, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @cubeio_stat(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 48
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i32 %3, 2
  br i1 %.not, label %4, label %54

4:                                                ; preds = %1
  %5 = tail call i32 (ptr, ...) @printf_(ptr noundef nonnull @.str.1) #2
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 352
  %7 = load i16, ptr %6, align 4, !tbaa !22
  %8 = zext i16 %7 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef %8) #2
  %9 = getelementptr inbounds i8, ptr %0, i64 354
  %10 = load i16, ptr %9, align 2, !tbaa !22
  %11 = zext i16 %10 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.4, i32 noundef %11) #2
  %12 = getelementptr inbounds i8, ptr %0, i64 356
  %13 = load i16, ptr %12, align 4, !tbaa !22
  %14 = zext i16 %13 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.5, i32 noundef %14) #2
  %15 = getelementptr inbounds i8, ptr %0, i64 358
  %16 = load i16, ptr %15, align 2, !tbaa !22
  %17 = zext i16 %16 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.6, i32 noundef %17) #2
  %18 = getelementptr inbounds i8, ptr %0, i64 360
  %19 = load i16, ptr %18, align 4, !tbaa !22
  %20 = zext i16 %19 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.7, i32 noundef %20) #2
  %21 = getelementptr inbounds i8, ptr %0, i64 362
  %22 = load i16, ptr %21, align 2, !tbaa !22
  %23 = zext i16 %22 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.8, i32 noundef %23) #2
  %24 = getelementptr inbounds i8, ptr %0, i64 364
  %25 = load i16, ptr %24, align 4, !tbaa !22
  %26 = zext i16 %25 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.9, i32 noundef %26) #2
  %27 = getelementptr inbounds i8, ptr %0, i64 366
  %28 = load i16, ptr %27, align 2, !tbaa !22
  %29 = zext i16 %28 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.10, i32 noundef %29) #2
  %30 = getelementptr inbounds i8, ptr %0, i64 368
  %31 = load i16, ptr %30, align 4, !tbaa !22
  %32 = zext i16 %31 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.11, i32 noundef %32) #2
  %33 = getelementptr inbounds i8, ptr %0, i64 370
  %34 = load i16, ptr %33, align 2, !tbaa !22
  %35 = zext i16 %34 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.12, i32 noundef %35) #2
  %36 = getelementptr inbounds i8, ptr %0, i64 372
  %37 = load i16, ptr %36, align 4, !tbaa !22
  %38 = zext i16 %37 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.13, i32 noundef %38) #2
  %39 = getelementptr inbounds i8, ptr %0, i64 374
  %40 = load i16, ptr %39, align 2, !tbaa !22
  %41 = zext i16 %40 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.14, i32 noundef %41) #2
  %42 = getelementptr inbounds i8, ptr %0, i64 376
  %43 = load i16, ptr %42, align 4, !tbaa !22
  %44 = zext i16 %43 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.15, i32 noundef %44) #2
  %45 = getelementptr inbounds i8, ptr %0, i64 378
  %46 = load i16, ptr %45, align 2, !tbaa !22
  %47 = zext i16 %46 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.16, i32 noundef %47) #2
  %48 = getelementptr inbounds i8, ptr %0, i64 380
  %49 = load i16, ptr %48, align 4, !tbaa !22
  %50 = zext i16 %49 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.17, i32 noundef %50) #2
  %51 = getelementptr inbounds i8, ptr %0, i64 382
  %52 = load i16, ptr %51, align 2, !tbaa !22
  %53 = zext i16 %52 to i32
  tail call void (i8, ptr, ptr, ...) @log_module(i8 noundef zeroext 3, ptr noundef nonnull %0, ptr noundef nonnull @.str.18, i32 noundef %53) #2
  br label %54

54:                                               ; preds = %1, %4
  ret void
}

declare i32 @printf_(ptr noundef, ...) local_unnamed_addr #0

attributes #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 = { 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 #2 = { 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, !11, i64 48}
!6 = !{!"", !7, i64 0, !9, i64 32, !10, i64 40, !11, i64 48, !12, i64 56, !13, i64 104, !13, i64 152, !11, i64 200, !14, i64 204, !16, i64 208, !17, i64 278, !18, i64 310, !19, i64 320, !20, i64 348, !7, i64 386, !7, i64 482, !7, i64 584, !21, i64 712, !7, i64 720, !11, i64 848}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"", !9, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !9, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40}
!13 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!14 = !{!"", !15, i64 0, !15, i64 2}
!15 = !{!"short", !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 2, !7, i64 34, !7, i64 66, !15, i64 68}
!17 = !{!"", !7, i64 0}
!18 = !{!"", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !7, i64 8, !7, i64 9}
!19 = !{!"", !15, i64 0, !11, i64 4, !15, i64 8, !15, i64 10, !11, i64 12, !11, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 4, !15, i64 36}
!21 = !{!"double", !7, i64 0}
!22 = !{!15, !15, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass