; LLVM IR from nubot-nudt/simatch :: src/robot_code/world_model/rtdb/rtdb_api.ll (Z8_DB_freei)

; 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.shmid_ds = type { %struct.ipc_perm, i64, i64, i64, i64, i32, i32, i64, i64, i64 }
%struct.ipc_perm = type { i32, i32, i32, i32, i32, i32, i16, i16, i64, i64 }
%struct.RTDBdef = type { i32, i32, [10 x i32], i32, [10 x i32], i32, [10 x [100 x i32]] }

@def_shmid = external dso_local global [10 x i32], align 16
@p_def = external dso_local global [10 x ptr], align 16
@shared_shmid = external dso_local global [10 x [10 x i32]], align 16
@p_shared_mem = external dso_local global [10 x [10 x ptr]], align 16
@local_shmid = external dso_local global [10 x i32], align 16
@p_local_mem = external dso_local global [10 x ptr], align 16
@.str.4 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@__FUNCTION__._Z8_DB_freei = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8_DB_freei(i32 noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.shmid_ds, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 112, ptr %4) #5
  %5 = load i32, ptr %2, align 4, !tbaa !5
  %6 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %5)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %58, %1
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [10 x ptr], ptr @p_def, i64 0, i64 %10
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds %struct.RTDBdef, ptr %12, i32 0, i32 1
  %14 = load i32, ptr %13, align 4, !tbaa !11
  %15 = icmp slt i32 %8, %14
  br i1 %15, label %16, label %61

16:                                               ; preds = %7
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [10 x [10 x ptr]], ptr @p_shared_mem, i64 0, i64 %18
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10 x ptr], ptr %19, i64 0, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call i32 @shmdt(ptr noundef %23) #5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [10 x [10 x i32]], ptr @shared_shmid, i64 0, i64 %26
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [10 x i32], ptr %27, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = call i32 @shmctl(i32 noundef %31, i32 noundef 2, ptr noundef %4) #5
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %39

34:                                               ; preds = %16
  %35 = call ptr @__errno_location() #6
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = call ptr @strerror(i32 noundef %36) #5
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.4, ptr noundef @__FUNCTION__._Z8_DB_freei, ptr noundef %37)
  br label %39

39:                                               ; preds = %34, %16
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = getelementptr inbounds %struct.shmid_ds, ptr %4, i32 0, i32 7
  %42 = load i64, ptr %41, align 8, !tbaa !13
  %43 = trunc i64 %42 to i32
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %40, i32 noundef %43)
  %45 = getelementptr inbounds %struct.shmid_ds, ptr %4, i32 0, i32 7
  %46 = load i64, ptr %45, align 8, !tbaa !13
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %48, label %57

48:                                               ; preds = %39
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [10 x [10 x i32]], ptr @shared_shmid, i64 0, i64 %50
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [10 x i32], ptr %51, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = call i32 @shmctl(i32 noundef %55, i32 noundef 0, ptr noundef null) #5
  br label %57

57:                                               ; preds = %48, %39
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %3, align 4, !tbaa !5
  br label %7, !llvm.loop !18

61:                                               ; preds = %7
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10 x ptr], ptr @p_local_mem, i64 0, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = call i32 @shmdt(ptr noundef %65) #5
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [10 x i32], ptr @local_shmid, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = call i32 @shmctl(i32 noundef %70, i32 noundef 2, ptr noundef %4) #5
  %72 = icmp eq i32 %71, -1
  br i1 %72, label %73, label %78

73:                                               ; preds = %61
  %74 = call ptr @__errno_location() #6
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = call ptr @strerror(i32 noundef %75) #5
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.4, ptr noundef @__FUNCTION__._Z8_DB_freei, ptr noundef %76)
  br label %78

78:                                               ; preds = %73, %61
  %79 = getelementptr inbounds %struct.shmid_ds, ptr %4, i32 0, i32 7
  %80 = load i64, ptr %79, align 8, !tbaa !13
  %81 = trunc i64 %80 to i32
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %81)
  %83 = getelementptr inbounds %struct.shmid_ds, ptr %4, i32 0, i32 7
  %84 = load i64, ptr %83, align 8, !tbaa !13
  %85 = icmp eq i64 %84, 0
  br i1 %85, label %86, label %92

86:                                               ; preds = %78
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [10 x i32], ptr @local_shmid, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = call i32 @shmctl(i32 noundef %90, i32 noundef 0, ptr noundef null) #5
  br label %92

92:                                               ; preds = %86, %78
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [10 x ptr], ptr @p_def, i64 0, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = call i32 @shmdt(ptr noundef %96) #5
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10 x i32], ptr @def_shmid, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = call i32 @shmctl(i32 noundef %101, i32 noundef 2, ptr noundef %4) #5
  %103 = icmp eq i32 %102, -1
  br i1 %103, label %104, label %109

104:                                              ; preds = %92
  %105 = call ptr @__errno_location() #6
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = call ptr @strerror(i32 noundef %106) #5
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.4, ptr noundef @__FUNCTION__._Z8_DB_freei, ptr noundef %107)
  br label %109

109:                                              ; preds = %104, %92
  %110 = getelementptr inbounds %struct.shmid_ds, ptr %4, i32 0, i32 7
  %111 = load i64, ptr %110, align 8, !tbaa !13
  %112 = trunc i64 %111 to i32
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %112)
  %114 = getelementptr inbounds %struct.shmid_ds, ptr %4, i32 0, i32 7
  %115 = load i64, ptr %114, align 8, !tbaa !13
  %116 = icmp eq i64 %115, 0
  br i1 %116, label %117, label %123

117:                                              ; preds = %109
  %118 = load i32, ptr %2, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [10 x i32], ptr @def_shmid, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = call i32 @shmctl(i32 noundef %121, i32 noundef 0, ptr noundef null) #5
  br label %123

123:                                              ; preds = %117, %109
  call void @llvm.lifetime.end.p0(i64 112, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

; Function Attrs: nounwind
declare i32 @shmdt(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @shmctl(i32 noundef, i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 "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 = { nounwind willreturn memory(none) "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 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 4}
!12 = !{!"_ZTS7RTDBdef", !6, i64 0, !6, i64 4, !7, i64 8, !6, i64 48, !7, i64 52, !6, i64 92, !7, i64 96}
!13 = !{!14, !17, i64 88}
!14 = !{!"_ZTS8shmid_ds", !15, i64 0, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !6, i64 80, !6, i64 84, !17, i64 88, !17, i64 96, !17, i64 104}
!15 = !{!"_ZTS8ipc_perm", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !16, i64 24, !16, i64 26, !17, i64 32, !17, i64 40}
!16 = !{!"short", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; 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.shmid_ds = type { %struct.ipc_perm, i64, i64, i64, i64, i32, i32, i64, i64, i64 }
%struct.ipc_perm = type { i32, i32, i32, i32, i32, i32, i16, i16, i64, i64 }

@def_shmid = external dso_local local_unnamed_addr global [10 x i32], align 16
@p_def = external dso_local local_unnamed_addr global [10 x ptr], align 16
@shared_shmid = external dso_local local_unnamed_addr global [10 x [10 x i32]], align 16
@p_shared_mem = external dso_local local_unnamed_addr global [10 x [10 x ptr]], align 16
@local_shmid = external dso_local local_unnamed_addr global [10 x i32], align 16
@p_local_mem = external dso_local local_unnamed_addr global [10 x ptr], align 16
@.str.4 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@__FUNCTION__._Z8_DB_freei = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z8_DB_freei(i32 noundef %0) local_unnamed_addr #4 {
  %2 = alloca %struct.shmid_ds, align 8
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %2) #5
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %0)
  %4 = sext i32 %0 to i64
  %5 = getelementptr inbounds [10 x ptr], ptr @p_def, i64 0, i64 %4
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %10 = getelementptr inbounds i8, ptr %2, i64 88
  br label %11

11:                                               ; preds = %.lr.ph, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %34 ]
  %12 = getelementptr inbounds [10 x [10 x ptr]], ptr @p_shared_mem, i64 0, i64 %4, i64 %indvars.iv
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = call i32 @shmdt(ptr noundef %13) #5
  %15 = getelementptr inbounds [10 x [10 x i32]], ptr @shared_shmid, i64 0, i64 %4, i64 %indvars.iv
  %16 = load i32, ptr %15, align 4, !tbaa !12
  %17 = call i32 @shmctl(i32 noundef %16, i32 noundef 2, ptr noundef nonnull %2) #5
  %18 = icmp eq i32 %17, -1
  br i1 %18, label %19, label %24

19:                                               ; preds = %11
  %20 = tail call ptr @__errno_location() #6
  %21 = load i32, ptr %20, align 4, !tbaa !12
  %22 = call ptr @strerror(i32 noundef %21) #5
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._Z8_DB_freei, ptr noundef %22)
  br label %24

24:                                               ; preds = %19, %11
  %25 = load i64, ptr %10, align 8, !tbaa !13
  %26 = trunc i64 %25 to i32
  %27 = trunc nuw nsw i64 %indvars.iv to i32
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %27, i32 noundef %26)
  %29 = load i64, ptr %10, align 8, !tbaa !13
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %24
  %32 = load i32, ptr %15, align 4, !tbaa !12
  %33 = call i32 @shmctl(i32 noundef %32, i32 noundef 0, ptr noundef null) #5
  br label %34

34:                                               ; preds = %24, %31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %11, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %34, %1
  %40 = getelementptr inbounds [10 x ptr], ptr @p_local_mem, i64 0, i64 %4
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = call i32 @shmdt(ptr noundef %41) #5
  %43 = getelementptr inbounds [10 x i32], ptr @local_shmid, i64 0, i64 %4
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = call i32 @shmctl(i32 noundef %44, i32 noundef 2, ptr noundef nonnull %2) #5
  %46 = icmp eq i32 %45, -1
  br i1 %46, label %47, label %52

47:                                               ; preds = %._crit_edge
  %48 = tail call ptr @__errno_location() #6
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = call ptr @strerror(i32 noundef %49) #5
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._Z8_DB_freei, ptr noundef %50)
  br label %52

52:                                               ; preds = %47, %._crit_edge
  %53 = getelementptr inbounds i8, ptr %2, i64 88
  %54 = load i64, ptr %53, align 8, !tbaa !13
  %55 = trunc i64 %54 to i32
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %55)
  %57 = load i64, ptr %53, align 8, !tbaa !13
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %52
  %60 = load i32, ptr %43, align 4, !tbaa !12
  %61 = call i32 @shmctl(i32 noundef %60, i32 noundef 0, ptr noundef null) #5
  br label %62

62:                                               ; preds = %59, %52
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call i32 @shmdt(ptr noundef %63) #5
  %65 = getelementptr inbounds [10 x i32], ptr @def_shmid, i64 0, i64 %4
  %66 = load i32, ptr %65, align 4, !tbaa !12
  %67 = call i32 @shmctl(i32 noundef %66, i32 noundef 2, ptr noundef nonnull %2) #5
  %68 = icmp eq i32 %67, -1
  br i1 %68, label %69, label %74

69:                                               ; preds = %62
  %70 = tail call ptr @__errno_location() #6
  %71 = load i32, ptr %70, align 4, !tbaa !12
  %72 = call ptr @strerror(i32 noundef %71) #5
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._Z8_DB_freei, ptr noundef %72)
  br label %74

74:                                               ; preds = %69, %62
  %75 = load i64, ptr %53, align 8, !tbaa !13
  %76 = trunc i64 %75 to i32
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %76)
  %78 = load i64, ptr %53, align 8, !tbaa !13
  %79 = icmp eq i64 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %74
  %81 = load i32, ptr %65, align 4, !tbaa !12
  %82 = call i32 @shmctl(i32 noundef %81, i32 noundef 0, ptr noundef null) #5
  br label %83

83:                                               ; preds = %80, %74
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %2) #5
  ret void
}

; Function Attrs: nounwind
declare i32 @shmdt(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @shmctl(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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, !11, i64 4}
!10 = !{!"_ZTS7RTDBdef", !11, i64 0, !11, i64 4, !7, i64 8, !11, i64 48, !7, i64 52, !11, i64 92, !7, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !17, i64 88}
!14 = !{!"_ZTS8shmid_ds", !15, i64 0, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !11, i64 80, !11, i64 84, !17, i64 88, !17, i64 96, !17, i64 104}
!15 = !{!"_ZTS8ipc_perm", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !16, i64 24, !16, i64 26, !17, i64 32, !17, i64 40}
!16 = !{!"short", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass