; LLVM IR from cpq/bare-metal-programming-guide :: steps/step-7-webserver/ek-tm4c1294xl (main)

; 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.mip_driver_tm4c = type { i32 }
%struct.mip_driver = type { ptr, ptr, ptr, ptr, ptr }
%struct.mg_mgr = type { ptr, %struct.mg_dns, %struct.mg_dns, i32, i8, i64, i64, ptr, i16, ptr, ptr, i32, ptr, i64 }
%struct.mg_dns = type { ptr, ptr }
%struct.mip_if = type { [6 x i8], i32, i32, i32, %struct.mg_str, %struct.mg_str, i8, ptr, ptr, ptr, i64, i64, i64, [62 x i8], i16, i16, i8, %struct.queue }
%struct.mg_str = type { ptr, i64 }
%struct.queue = type { ptr, i64, i64, i64 }
%struct.FLASH_CTRL_Type = type { i32, i32, i32, i32, i32, i32, [2 x i32], i32, [3 x i32], i32, [2 x i32], i32, [48 x i32], i32, [943 x i32], i32, i32, i32, i32, i32, i32, [63 x i32], i32, [62 x i32], i32, [3 x i32], i32, i32, i32, i32, [4 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [112 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SYSCTL_Type = type { i32, i32, [12 x i32], i32, [5 x i32], i32, i32, i32, i32, i32, i32, [5 x i32], i32, [12 x i32], i32, [3 x i32], i32, [29 x i32], i32, [2 x i32], i32, i32, i32, i32, i32, [2 x i32], i32, i32, i32, [7 x i32], i32, i32, [4 x i32], i32, [4 x i32], i32, i32, i32, [6 x i32], i32, [6 x i32], i32, [34 x i32], i32, i32, i32, i32, [28 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, i32, [6 x i32], i32, i32, i32, i32, i32, i32, [86 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [6 x i32], i32, [9 x i32], i32, [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [6 x i32], i32, [9 x i32], i32, [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [6 x i32], i32, [9 x i32], i32, [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [6 x i32], i32, [9 x i32], i32, [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [6 x i32], i32, [9 x i32], i32, [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [6 x i32], i32, [9 x i32], i32 }

@s_ticks = external hidden global i32, align 4
@__const.main.driver_data = external hidden unnamed_addr constant %struct.mip_driver_tm4c, align 4
@mip_driver_tm4c = external global %struct.mip_driver, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [110 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@main.on = external hidden global i8, align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i16, align 2
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.mg_mgr, align 8
  %7 = alloca %struct.mip_driver_tm4c, align 4
  %8 = alloca %struct.mip_if, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 2, ptr %2) #6
  store i16 19969, ptr %2, align 2, !tbaa !5
  call void @clock_init()
  call void @systick_init(i32 noundef 120000)
  %9 = load i16, ptr %2, align 2, !tbaa !5
  call void @gpio_init(i16 noundef zeroext %9, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 0)
  call void @uart_init(ptr noundef inttoptr (i64 1073790976 to ptr), i64 noundef 115200)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 500, ptr %4, align 4, !tbaa !9
  call void @gpio_init(i16 noundef zeroext 17924, i8 noundef zeroext 2, i8 noundef zeroext 0, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 5)
  call void @gpio_init(i16 noundef zeroext 17920, i8 noundef zeroext 2, i8 noundef zeroext 0, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 5)
  call void @__NVIC_EnableIRQ(i32 noundef 40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %10 = load volatile i32, ptr getelementptr inbounds (%struct.FLASH_CTRL_Type, ptr inttoptr (i64 1074778112 to ptr), i32 0, i32 17), align 4, !tbaa !11
  store i32 %10, ptr %5, align 4, !tbaa !9
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = and i64 %12, -131073
  %14 = trunc i64 %13 to i32
  store i32 %14, ptr %5, align 4, !tbaa !9
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = zext i32 %15 to i64
  %17 = or i64 %16, 65536
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr %5, align 4, !tbaa !9
  %19 = load i32, ptr %5, align 4, !tbaa !9
  store volatile i32 %19, ptr getelementptr inbounds (%struct.FLASH_CTRL_Type, ptr inttoptr (i64 1074778112 to ptr), i32 0, i32 17), align 4, !tbaa !11
  %20 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 131), align 4, !tbaa !13
  %21 = zext i32 %20 to i64
  %22 = or i64 %21, 1
  %23 = trunc i64 %22 to i32
  store volatile i32 %23, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 131), align 4, !tbaa !13
  %24 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 106), align 4, !tbaa !15
  %25 = zext i32 %24 to i64
  %26 = or i64 %25, 1
  %27 = trunc i64 %26 to i32
  store volatile i32 %27, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 106), align 4, !tbaa !15
  %28 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 106), align 4, !tbaa !15
  %29 = zext i32 %28 to i64
  %30 = and i64 %29, -2
  %31 = trunc i64 %30 to i32
  store volatile i32 %31, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 106), align 4, !tbaa !15
  %32 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 120), align 4, !tbaa !16
  %33 = zext i32 %32 to i64
  %34 = or i64 %33, 1
  %35 = trunc i64 %34 to i32
  store volatile i32 %35, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 120), align 4, !tbaa !16
  %36 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 95), align 4, !tbaa !17
  %37 = zext i32 %36 to i64
  %38 = or i64 %37, 1
  %39 = trunc i64 %38 to i32
  store volatile i32 %39, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 95), align 4, !tbaa !17
  %40 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 95), align 4, !tbaa !17
  %41 = zext i32 %40 to i64
  %42 = and i64 %41, -2
  %43 = trunc i64 %42 to i32
  store volatile i32 %43, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 95), align 4, !tbaa !17
  br label %44

44:                                               ; preds = %57, %0
  %45 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 231), align 4, !tbaa !18
  %46 = zext i32 %45 to i64
  %47 = and i64 %46, 1
  %48 = icmp ne i64 %47, 0
  br i1 %48, label %49, label %55

49:                                               ; preds = %44
  %50 = load volatile i32, ptr getelementptr inbounds (%struct.SYSCTL_Type, ptr inttoptr (i64 1074782208 to ptr), i32 0, i32 220), align 4, !tbaa !19
  %51 = zext i32 %50 to i64
  %52 = and i64 %51, 1
  %53 = icmp ne i64 %52, 0
  %54 = xor i1 %53, true
  br label %55

55:                                               ; preds = %49, %44
  %56 = phi i1 [ true, %44 ], [ %54, %49 ]
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  call void @spin(i32 noundef 1)
  br label %44, !llvm.loop !20

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 120, ptr %6) #6
  call void @mg_mgr_init(ptr noundef %6)
  call void @mg_log_set(i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @__const.main.driver_data, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 216, ptr %8) #6
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 216, i1 false)
  %59 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 0
  store i8 2, ptr %59, align 1, !tbaa !22
  %60 = getelementptr inbounds i8, ptr %59, i64 1
  %61 = getelementptr inbounds i8, ptr %59, i64 2
  store i8 1, ptr %61, align 1, !tbaa !22
  %62 = getelementptr inbounds i8, ptr %59, i64 3
  store i8 2, ptr %62, align 1, !tbaa !22
  %63 = getelementptr inbounds i8, ptr %59, i64 4
  store i8 3, ptr %63, align 1, !tbaa !22
  %64 = getelementptr inbounds i8, ptr %59, i64 5
  store i8 5, ptr %64, align 1, !tbaa !22
  %65 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 1
  %66 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 2
  %67 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 3
  %68 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 4
  %69 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 5
  %70 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 6
  store i8 1, ptr %70, align 8, !tbaa !23
  %71 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 7
  store ptr @mip_driver_tm4c, ptr %71, align 8, !tbaa !30
  %72 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 8
  store ptr %7, ptr %72, align 8, !tbaa !31
  %73 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 9
  %74 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 10
  %75 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 11
  %76 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 12
  %77 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 13
  %78 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 14
  %79 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 15
  %80 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 16
  %81 = getelementptr inbounds %struct.mip_if, ptr %8, i32 0, i32 17
  call void @mip_init(ptr noundef %6, ptr noundef %8)
  %82 = load volatile i32, ptr getelementptr inbounds (%struct.FLASH_CTRL_Type, ptr inttoptr (i64 1074778112 to ptr), i32 0, i32 17), align 4, !tbaa !11
  store i32 %82, ptr %5, align 4, !tbaa !9
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = and i64 %84, -65537
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %5, align 4, !tbaa !9
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = or i64 %88, 131072
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %5, align 4, !tbaa !9
  %91 = load i32, ptr %5, align 4, !tbaa !9
  store volatile i32 %91, ptr getelementptr inbounds (%struct.FLASH_CTRL_Type, ptr inttoptr (i64 1074778112 to ptr), i32 0, i32 17), align 4, !tbaa !11
  %92 = call ptr @mg_http_listen(ptr noundef %6, ptr noundef @.str, ptr noundef @device_dashboard_fn, ptr noundef %6)
  br label %93

93:                                               ; preds = %58
  %94 = call zeroext i1 @mg_log_prefix(i32 noundef 2, ptr noundef @.str.1, i32 noundef 70, ptr noundef @__func__.main)
  br i1 %94, label %95, label %96

95:                                               ; preds = %93
  call void (ptr, ...) @mg_log(ptr noundef @.str.2)
  br label %96

96:                                               ; preds = %95, %93
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %116, %98
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = load volatile i32, ptr @s_ticks, align 4, !tbaa !9
  %102 = call zeroext i1 @timer_expired(ptr noundef %3, i32 noundef %100, i32 noundef %101)
  br i1 %102, label %103, label %116

103:                                              ; preds = %99
  %104 = load i16, ptr %2, align 2, !tbaa !5
  %105 = load i8, ptr @main.on, align 1, !tbaa !32, !range !33, !noundef !34
  %106 = trunc i8 %105 to i1
  call void @gpio_write(i16 noundef zeroext %104, i1 noundef zeroext %106)
  %107 = load i8, ptr @main.on, align 1, !tbaa !32, !range !33, !noundef !34
  %108 = trunc i8 %107 to i1
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i8
  store i8 %110, ptr @main.on, align 1, !tbaa !32
  %111 = load i8, ptr @main.on, align 1, !tbaa !32, !range !33, !noundef !34
  %112 = trunc i8 %111 to i1
  %113 = zext i1 %112 to i32
  %114 = load volatile i32, ptr @s_ticks, align 4, !tbaa !9
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %113, i32 noundef %114)
  br label %116

116:                                              ; preds = %103, %99
  call void @mg_mgr_poll(ptr noundef %6, i32 noundef 0)
  br label %99
}

; Function Attrs: 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 void @clock_init() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @systick_init(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gpio_init(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @uart_init(ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @__NVIC_EnableIRQ(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @spin(i32 noundef) #2

declare void @mg_mgr_init(ptr noundef) #3

declare void @mg_log_set(i32 noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare void @mip_init(ptr noundef, ptr noundef) #3

declare ptr @mg_http_listen(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @device_dashboard_fn(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare zeroext i1 @mg_log_prefix(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare void @mg_log(ptr noundef, ...) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @timer_expired(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gpio_write(i16 noundef zeroext, i1 noundef zeroext) #2

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

declare void @mg_mgr_poll(ptr noundef, i32 noundef) #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"short", !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 4040}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !10, i64 32, !7, i64 36, !10, i64 48, !7, i64 52, !10, i64 60, !7, i64 64, !10, i64 256, !7, i64 260, !10, i64 4032, !10, i64 4036, !10, i64 4040, !10, i64 4044, !10, i64 4048, !10, i64 4052, !7, i64 4056, !10, i64 4308, !7, i64 4312, !10, i64 4560, !7, i64 4564, !10, i64 4576, !10, i64 4580, !10, i64 4584, !10, i64 4588, !7, i64 4592, !10, i64 4608, !10, i64 4612, !10, i64 4616, !10, i64 4620, !10, i64 4624, !10, i64 4628, !10, i64 4632, !10, i64 4636, !10, i64 4640, !10, i64 4644, !10, i64 4648, !10, i64 4652, !10, i64 4656, !10, i64 4660, !10, i64 4664, !10, i64 4668, !7, i64 4672, !10, i64 5120, !10, i64 5124, !10, i64 5128, !10, i64 5132, !10, i64 5136, !10, i64 5140, !10, i64 5144, !10, i64 5148, !10, i64 5152, !10, i64 5156, !10, i64 5160, !10, i64 5164, !10, i64 5168, !10, i64 5172, !10, i64 5176, !10, i64 5180}
!13 = !{!14, !10, i64 1692}
!14 = !{!"", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 56, !7, i64 60, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !7, i64 104, !10, i64 124, !7, i64 128, !10, i64 176, !7, i64 180, !10, i64 192, !7, i64 196, !10, i64 312, !7, i64 316, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !7, i64 344, !10, i64 352, !10, i64 356, !10, i64 360, !7, i64 364, !10, i64 392, !10, i64 396, !7, i64 400, !10, i64 416, !7, i64 420, !10, i64 436, !10, i64 440, !10, i64 444, !7, i64 448, !10, i64 472, !7, i64 476, !10, i64 500, !7, i64 504, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !7, i64 656, !10, i64 768, !10, i64 772, !10, i64 776, !10, i64 780, !10, i64 784, !10, i64 788, !10, i64 792, !10, i64 796, !10, i64 800, !10, i64 804, !10, i64 808, !10, i64 812, !10, i64 816, !10, i64 820, !10, i64 824, !10, i64 828, !10, i64 832, !10, i64 836, !10, i64 840, !10, i64 844, !10, i64 848, !10, i64 852, !10, i64 856, !10, i64 860, !7, i64 864, !10, i64 880, !10, i64 884, !7, i64 888, !10, i64 912, !10, i64 916, !10, i64 920, !10, i64 924, !10, i64 928, !10, i64 932, !7, i64 936, !10, i64 1280, !10, i64 1284, !10, i64 1288, !10, i64 1292, !10, i64 1296, !10, i64 1300, !10, i64 1304, !10, i64 1308, !10, i64 1312, !10, i64 1316, !10, i64 1320, !10, i64 1324, !10, i64 1328, !10, i64 1332, !10, i64 1336, !10, i64 1340, !10, i64 1344, !10, i64 1348, !7, i64 1352, !10, i64 1368, !7, i64 1372, !10, i64 1396, !7, i64 1400, !10, i64 1436, !7, i64 1440, !10, i64 1536, !10, i64 1540, !10, i64 1544, !10, i64 1548, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !10, i64 1584, !10, i64 1588, !10, i64 1592, !10, i64 1596, !10, i64 1600, !10, i64 1604, !7, i64 1608, !10, i64 1624, !7, i64 1628, !10, i64 1652, !7, i64 1656, !10, i64 1692, !7, i64 1696, !10, i64 1792, !10, i64 1796, !10, i64 1800, !10, i64 1804, !10, i64 1808, !10, i64 1812, !10, i64 1816, !10, i64 1820, !10, i64 1824, !10, i64 1828, !10, i64 1832, !10, i64 1836, !10, i64 1840, !10, i64 1844, !10, i64 1848, !10, i64 1852, !10, i64 1856, !10, i64 1860, !7, i64 1864, !10, i64 1880, !7, i64 1884, !10, i64 1908, !7, i64 1912, !10, i64 1948, !7, i64 1952, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !10, i64 2068, !10, i64 2072, !10, i64 2076, !10, i64 2080, !10, i64 2084, !10, i64 2088, !10, i64 2092, !10, i64 2096, !10, i64 2100, !10, i64 2104, !10, i64 2108, !10, i64 2112, !10, i64 2116, !7, i64 2120, !10, i64 2136, !7, i64 2140, !10, i64 2164, !7, i64 2168, !10, i64 2204, !7, i64 2208, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !10, i64 2336, !10, i64 2340, !10, i64 2344, !10, i64 2348, !10, i64 2352, !10, i64 2356, !10, i64 2360, !10, i64 2364, !10, i64 2368, !10, i64 2372, !7, i64 2376, !10, i64 2392, !7, i64 2396, !10, i64 2420, !7, i64 2424, !10, i64 2460, !7, i64 2464, !10, i64 2560, !10, i64 2564, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !10, i64 2600, !10, i64 2604, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !10, i64 2628, !7, i64 2632, !10, i64 2648, !7, i64 2652, !10, i64 2676, !7, i64 2680, !10, i64 2716}
!15 = !{!14, !10, i64 1436}
!16 = !{!14, !10, i64 1584}
!17 = !{!14, !10, i64 1328}
!18 = !{!14, !10, i64 2716}
!19 = !{!14, !10, i64 2608}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !28, i64 56}
!24 = !{!"mip_if", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !25, i64 24, !25, i64 40, !28, i64 56, !26, i64 64, !26, i64 72, !26, i64 80, !27, i64 88, !27, i64 96, !27, i64 104, !7, i64 112, !6, i64 174, !6, i64 176, !7, i64 178, !29, i64 184}
!25 = !{!"mg_str", !26, i64 0, !27, i64 8}
!26 = !{!"any pointer", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_Bool", !7, i64 0}
!29 = !{!"queue", !26, i64 0, !27, i64 8, !27, i64 16, !27, i64 24}
!30 = !{!24, !26, i64 64}
!31 = !{!24, !26, i64 72}
!32 = !{!28, !28, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}


; 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.mip_driver_tm4c = type { i32 }
%struct.mip_driver = type { ptr, ptr, ptr, ptr, ptr }
%struct.mg_mgr = type { ptr, %struct.mg_dns, %struct.mg_dns, i32, i8, i64, i64, ptr, i16, ptr, ptr, i32, ptr, i64 }
%struct.mg_dns = type { ptr, ptr }
%struct.mip_if = type { [6 x i8], i32, i32, i32, %struct.mg_str, %struct.mg_str, i8, ptr, ptr, ptr, i64, i64, i64, [62 x i8], i16, i16, i8, %struct.queue }
%struct.mg_str = type { ptr, i64 }
%struct.queue = type { ptr, i64, i64, i64 }

@s_ticks = external hidden global i32, align 4
@__const.main.driver_data = external hidden unnamed_addr constant %struct.mip_driver_tm4c, align 4
@mip_driver_tm4c = external global %struct.mip_driver, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [110 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@main.on = external hidden local_unnamed_addr global i8, align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.mg_mgr, align 8
  %3 = alloca %struct.mip_driver_tm4c, align 4
  %4 = alloca %struct.mip_if, align 8
  tail call void @clock_init()
  tail call void @systick_init(i32 noundef 120000)
  tail call void @gpio_init(i16 noundef zeroext 19969, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 0)
  tail call void @uart_init(ptr noundef nonnull inttoptr (i64 1073790976 to ptr), i64 noundef 115200)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  tail call void @gpio_init(i16 noundef zeroext 17924, i8 noundef zeroext 2, i8 noundef zeroext 0, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 5)
  tail call void @gpio_init(i16 noundef zeroext 17920, i8 noundef zeroext 2, i8 noundef zeroext 0, i8 noundef zeroext 1, i8 noundef zeroext 0, i8 noundef zeroext 5)
  tail call void @__NVIC_EnableIRQ(i32 noundef 40)
  %5 = load volatile i32, ptr inttoptr (i64 1074782152 to ptr), align 8, !tbaa !9
  %6 = and i32 %5, -196609
  %7 = or disjoint i32 %6, 65536
  store volatile i32 %7, ptr inttoptr (i64 1074782152 to ptr), align 8, !tbaa !9
  %8 = load volatile i32, ptr inttoptr (i64 1074783900 to ptr), align 4, !tbaa !11
  %9 = or i32 %8, 1
  store volatile i32 %9, ptr inttoptr (i64 1074783900 to ptr), align 4, !tbaa !11
  %10 = load volatile i32, ptr inttoptr (i64 1074783644 to ptr), align 4, !tbaa !13
  %11 = or i32 %10, 1
  store volatile i32 %11, ptr inttoptr (i64 1074783644 to ptr), align 4, !tbaa !13
  %12 = load volatile i32, ptr inttoptr (i64 1074783644 to ptr), align 4, !tbaa !13
  %13 = and i32 %12, -2
  store volatile i32 %13, ptr inttoptr (i64 1074783644 to ptr), align 4, !tbaa !13
  %14 = load volatile i32, ptr inttoptr (i64 1074783792 to ptr), align 16, !tbaa !14
  %15 = or i32 %14, 1
  store volatile i32 %15, ptr inttoptr (i64 1074783792 to ptr), align 16, !tbaa !14
  %16 = load volatile i32, ptr inttoptr (i64 1074783536 to ptr), align 16, !tbaa !15
  %17 = or i32 %16, 1
  store volatile i32 %17, ptr inttoptr (i64 1074783536 to ptr), align 16, !tbaa !15
  %18 = load volatile i32, ptr inttoptr (i64 1074783536 to ptr), align 16, !tbaa !15
  %19 = and i32 %18, -2
  store volatile i32 %19, ptr inttoptr (i64 1074783536 to ptr), align 16, !tbaa !15
  br label %20

20:                                               ; preds = %.critedge, %0
  %21 = load volatile i32, ptr inttoptr (i64 1074784924 to ptr), align 4, !tbaa !16
  %22 = and i32 %21, 1
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %.critedge, label %23

23:                                               ; preds = %20
  %24 = load volatile i32, ptr inttoptr (i64 1074784816 to ptr), align 16, !tbaa !17
  %25 = and i32 %24, 1
  %.not9 = icmp eq i32 %25, 0
  br i1 %.not9, label %.critedge, label %26

.critedge:                                        ; preds = %20, %23
  tail call void @spin(i32 noundef 1)
  br label %20, !llvm.loop !18

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #6
  call void @mg_mgr_init(ptr noundef nonnull %2) #6
  call void @mg_log_set(i32 noundef 3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %27 = load i32, ptr @__const.main.driver_data, align 4
  store i32 %27, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(216) %4, i8 0, i64 216, i1 false)
  store i8 2, ptr %4, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %4, i64 2
  store <4 x i8> <i8 1, i8 2, i8 3, i8 5>, ptr %28, align 2, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %4, i64 56
  store i8 1, ptr %29, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %4, i64 64
  store ptr @mip_driver_tm4c, ptr %30, align 8, !tbaa !29
  %31 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr %3, ptr %31, align 8, !tbaa !30
  call void @mip_init(ptr noundef nonnull %2, ptr noundef nonnull %4) #6
  %32 = load volatile i32, ptr inttoptr (i64 1074782152 to ptr), align 8, !tbaa !9
  %33 = and i32 %32, -196609
  %34 = or disjoint i32 %33, 131072
  store volatile i32 %34, ptr inttoptr (i64 1074782152 to ptr), align 8, !tbaa !9
  %35 = call ptr @mg_http_listen(ptr noundef nonnull %2, ptr noundef nonnull @.str, ptr noundef nonnull @device_dashboard_fn, ptr noundef nonnull %2) #6
  %36 = call zeroext i1 @mg_log_prefix(i32 noundef 2, ptr noundef nonnull @.str.1, i32 noundef 70, ptr noundef nonnull @__func__.main) #6
  br i1 %36, label %37, label %.preheader

37:                                               ; preds = %26
  call void (ptr, ...) @mg_log(ptr noundef nonnull @.str.2) #6
  br label %.preheader

.preheader:                                       ; preds = %37, %26
  br label %38

38:                                               ; preds = %.preheader, %51
  %39 = load volatile i32, ptr @s_ticks, align 4, !tbaa !5
  %40 = call zeroext i1 @timer_expired(ptr noundef nonnull %1, i32 noundef 500, i32 noundef %39)
  br i1 %40, label %41, label %51

41:                                               ; preds = %38
  %42 = load i8, ptr @main.on, align 1, !tbaa !31, !range !32, !noundef !33
  %43 = trunc nuw i8 %42 to i1
  call void @gpio_write(i16 noundef zeroext 19969, i1 noundef zeroext %43)
  %44 = load i8, ptr @main.on, align 1, !tbaa !31, !range !32, !noundef !33
  %45 = trunc nuw i8 %44 to i1
  %46 = xor i1 %45, true
  %47 = zext i1 %46 to i8
  store i8 %47, ptr @main.on, align 1, !tbaa !31
  %48 = zext i1 %46 to i32
  %49 = load volatile i32, ptr @s_ticks, align 4, !tbaa !5
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %48, i32 noundef %49)
  br label %51

51:                                               ; preds = %41, %38
  call void @mg_mgr_poll(ptr noundef nonnull %2, i32 noundef 0) #6
  br label %38
}

; 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 void @clock_init() local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @systick_init(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gpio_init(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @uart_init(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @__NVIC_EnableIRQ(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @spin(i32 noundef) local_unnamed_addr #2

declare void @mg_mgr_init(ptr noundef) local_unnamed_addr #3

declare void @mg_log_set(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare void @mip_init(ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @mg_http_listen(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @device_dashboard_fn(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare zeroext i1 @mg_log_prefix(i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @mg_log(ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @timer_expired(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gpio_write(i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2

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

declare void @mg_mgr_poll(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { noreturn 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #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, !6, i64 4040}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24, !6, i64 32, !7, i64 36, !6, i64 48, !7, i64 52, !6, i64 60, !7, i64 64, !6, i64 256, !7, i64 260, !6, i64 4032, !6, i64 4036, !6, i64 4040, !6, i64 4044, !6, i64 4048, !6, i64 4052, !7, i64 4056, !6, i64 4308, !7, i64 4312, !6, i64 4560, !7, i64 4564, !6, i64 4576, !6, i64 4580, !6, i64 4584, !6, i64 4588, !7, i64 4592, !6, i64 4608, !6, i64 4612, !6, i64 4616, !6, i64 4620, !6, i64 4624, !6, i64 4628, !6, i64 4632, !6, i64 4636, !6, i64 4640, !6, i64 4644, !6, i64 4648, !6, i64 4652, !6, i64 4656, !6, i64 4660, !6, i64 4664, !6, i64 4668, !7, i64 4672, !6, i64 5120, !6, i64 5124, !6, i64 5128, !6, i64 5132, !6, i64 5136, !6, i64 5140, !6, i64 5144, !6, i64 5148, !6, i64 5152, !6, i64 5156, !6, i64 5160, !6, i64 5164, !6, i64 5168, !6, i64 5172, !6, i64 5176, !6, i64 5180}
!11 = !{!12, !6, i64 1692}
!12 = !{!"", !6, i64 0, !6, i64 4, !7, i64 8, !6, i64 56, !7, i64 60, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !7, i64 104, !6, i64 124, !7, i64 128, !6, i64 176, !7, i64 180, !6, i64 192, !7, i64 196, !6, i64 312, !7, i64 316, !6, i64 324, !6, i64 328, !6, i64 332, !6, i64 336, !6, i64 340, !7, i64 344, !6, i64 352, !6, i64 356, !6, i64 360, !7, i64 364, !6, i64 392, !6, i64 396, !7, i64 400, !6, i64 416, !7, i64 420, !6, i64 436, !6, i64 440, !6, i64 444, !7, i64 448, !6, i64 472, !7, i64 476, !6, i64 500, !7, i64 504, !6, i64 640, !6, i64 644, !6, i64 648, !6, i64 652, !7, i64 656, !6, i64 768, !6, i64 772, !6, i64 776, !6, i64 780, !6, i64 784, !6, i64 788, !6, i64 792, !6, i64 796, !6, i64 800, !6, i64 804, !6, i64 808, !6, i64 812, !6, i64 816, !6, i64 820, !6, i64 824, !6, i64 828, !6, i64 832, !6, i64 836, !6, i64 840, !6, i64 844, !6, i64 848, !6, i64 852, !6, i64 856, !6, i64 860, !7, i64 864, !6, i64 880, !6, i64 884, !7, i64 888, !6, i64 912, !6, i64 916, !6, i64 920, !6, i64 924, !6, i64 928, !6, i64 932, !7, i64 936, !6, i64 1280, !6, i64 1284, !6, i64 1288, !6, i64 1292, !6, i64 1296, !6, i64 1300, !6, i64 1304, !6, i64 1308, !6, i64 1312, !6, i64 1316, !6, i64 1320, !6, i64 1324, !6, i64 1328, !6, i64 1332, !6, i64 1336, !6, i64 1340, !6, i64 1344, !6, i64 1348, !7, i64 1352, !6, i64 1368, !7, i64 1372, !6, i64 1396, !7, i64 1400, !6, i64 1436, !7, i64 1440, !6, i64 1536, !6, i64 1540, !6, i64 1544, !6, i64 1548, !6, i64 1552, !6, i64 1556, !6, i64 1560, !6, i64 1564, !6, i64 1568, !6, i64 1572, !6, i64 1576, !6, i64 1580, !6, i64 1584, !6, i64 1588, !6, i64 1592, !6, i64 1596, !6, i64 1600, !6, i64 1604, !7, i64 1608, !6, i64 1624, !7, i64 1628, !6, i64 1652, !7, i64 1656, !6, i64 1692, !7, i64 1696, !6, i64 1792, !6, i64 1796, !6, i64 1800, !6, i64 1804, !6, i64 1808, !6, i64 1812, !6, i64 1816, !6, i64 1820, !6, i64 1824, !6, i64 1828, !6, i64 1832, !6, i64 1836, !6, i64 1840, !6, i64 1844, !6, i64 1848, !6, i64 1852, !6, i64 1856, !6, i64 1860, !7, i64 1864, !6, i64 1880, !7, i64 1884, !6, i64 1908, !7, i64 1912, !6, i64 1948, !7, i64 1952, !6, i64 2048, !6, i64 2052, !6, i64 2056, !6, i64 2060, !6, i64 2064, !6, i64 2068, !6, i64 2072, !6, i64 2076, !6, i64 2080, !6, i64 2084, !6, i64 2088, !6, i64 2092, !6, i64 2096, !6, i64 2100, !6, i64 2104, !6, i64 2108, !6, i64 2112, !6, i64 2116, !7, i64 2120, !6, i64 2136, !7, i64 2140, !6, i64 2164, !7, i64 2168, !6, i64 2204, !7, i64 2208, !6, i64 2304, !6, i64 2308, !6, i64 2312, !6, i64 2316, !6, i64 2320, !6, i64 2324, !6, i64 2328, !6, i64 2332, !6, i64 2336, !6, i64 2340, !6, i64 2344, !6, i64 2348, !6, i64 2352, !6, i64 2356, !6, i64 2360, !6, i64 2364, !6, i64 2368, !6, i64 2372, !7, i64 2376, !6, i64 2392, !7, i64 2396, !6, i64 2420, !7, i64 2424, !6, i64 2460, !7, i64 2464, !6, i64 2560, !6, i64 2564, !6, i64 2568, !6, i64 2572, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !6, i64 2592, !6, i64 2596, !6, i64 2600, !6, i64 2604, !6, i64 2608, !6, i64 2612, !6, i64 2616, !6, i64 2620, !6, i64 2624, !6, i64 2628, !7, i64 2632, !6, i64 2648, !7, i64 2652, !6, i64 2676, !7, i64 2680, !6, i64 2716}
!13 = !{!12, !6, i64 1436}
!14 = !{!12, !6, i64 1584}
!15 = !{!12, !6, i64 1328}
!16 = !{!12, !6, i64 2716}
!17 = !{!12, !6, i64 2608}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !26, i64 56}
!22 = !{!"mip_if", !7, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !23, i64 24, !23, i64 40, !26, i64 56, !24, i64 64, !24, i64 72, !24, i64 80, !25, i64 88, !25, i64 96, !25, i64 104, !7, i64 112, !27, i64 174, !27, i64 176, !7, i64 178, !28, i64 184}
!23 = !{!"mg_str", !24, i64 0, !25, i64 8}
!24 = !{!"any pointer", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_Bool", !7, i64 0}
!27 = !{!"short", !7, i64 0}
!28 = !{!"queue", !24, i64 0, !25, i64 8, !25, i64 16, !25, i64 24}
!29 = !{!22, !24, i64 64}
!30 = !{!22, !24, i64 72}
!31 = !{!26, !26, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass