; LLVM IR from Simple-XX/SimpleKernel :: src/kernel/test.ll (Z8test_vmmv)

; 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"

@__executable_start = external global [0 x ptr], align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [157 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [162 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 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

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN3PMM12get_instanceEv() #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef, i64 noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8test_vmmv() #3 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  store i64 0, ptr %1, align 8, !tbaa !5
  %4 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %5 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  %6 = icmp ne ptr %5, null
  br i1 %6, label %7, label %8

7:                                                ; preds = %0
  br label %10

8:                                                ; preds = %0
  %9 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 109, ptr noundef @.str.11)
  br label %10

10:                                               ; preds = %8, %7
  %11 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %12 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %13 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %12)
  %14 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef %13, i64 noundef add (i64 ptrtoint (ptr @__executable_start to i64), i64 4096), ptr noundef %1)
  %15 = zext i1 %14 to i32
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %18

17:                                               ; preds = %10
  br label %20

18:                                               ; preds = %10
  %19 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 113, ptr noundef @.str.12)
  br label %20

20:                                               ; preds = %18, %17
  %21 = load i64, ptr %1, align 8, !tbaa !5
  %22 = icmp eq i64 %21, add (i64 ptrtoint (ptr @__executable_start to i64), i64 4096)
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  br label %26

24:                                               ; preds = %20
  %25 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 114, ptr noundef @.str.13)
  br label %26

26:                                               ; preds = %24, %23
  store i64 0, ptr %1, align 8, !tbaa !5
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %29 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %28)
  %30 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %27, ptr noundef %29, i64 noundef sub (i64 add (i64 ptrtoint (ptr @__executable_start to i64), i64 8388608), i64 1), ptr noundef %1)
  %31 = zext i1 %30 to i32
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %26
  br label %36

34:                                               ; preds = %26
  %35 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 120, ptr noundef @.str.14)
  br label %36

36:                                               ; preds = %34, %33
  %37 = load i64, ptr %1, align 8, !tbaa !5
  %38 = and i64 sub (i64 add (i64 ptrtoint (ptr @__executable_start to i64), i64 8388608), i64 1), -4096
  %39 = icmp eq i64 %37, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  br label %43

41:                                               ; preds = %36
  %42 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 123, ptr noundef @.str.15)
  br label %43

43:                                               ; preds = %41, %40
  store i64 0, ptr %1, align 8, !tbaa !5
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %46 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %45)
  %47 = call noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef ptrtoint (ptr @__executable_start to i64), i64 noundef 4096)
  %48 = add i64 %47, 8388608
  %49 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %44, ptr noundef %46, i64 noundef %48, ptr noundef %1)
  %50 = zext i1 %49 to i32
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %43
  br label %55

53:                                               ; preds = %43
  %54 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 130, ptr noundef @.str.16)
  br label %55

55:                                               ; preds = %53, %52
  %56 = load i64, ptr %1, align 8, !tbaa !5
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  br label %61

59:                                               ; preds = %55
  %60 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 131, ptr noundef @.str.17)
  br label %61

61:                                               ; preds = %59, %58
  store i64 0, ptr %1, align 8, !tbaa !5
  %62 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %64 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %63)
  %65 = call noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef ptrtoint (ptr @__executable_start to i64), i64 noundef 4096)
  %66 = add i64 %65, 8388608
  %67 = add i64 %66, 4132
  %68 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %62, ptr noundef %64, i64 noundef %67, ptr noundef null)
  %69 = zext i1 %68 to i32
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %61
  br label %74

72:                                               ; preds = %61
  %73 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 138, ptr noundef @.str.18)
  br label %74

74:                                               ; preds = %72, %71
  store i64 0, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store i64 3221225472, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %75 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN3PMM12get_instanceEv()
  %76 = call noundef i64 @_ZN3PMM17alloc_page_kernelEv(ptr noundef nonnull align 8 dereferenceable(72) %75)
  store i64 %76, ptr %3, align 8, !tbaa !5
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %79 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %78)
  %80 = load i64, ptr %2, align 8, !tbaa !5
  %81 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %77, ptr noundef %79, i64 noundef %80, ptr noundef null)
  %82 = zext i1 %81 to i32
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %74
  br label %87

85:                                               ; preds = %74
  %86 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 148, ptr noundef @.str.19)
  br label %87

87:                                               ; preds = %85, %84
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %90 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %89)
  %91 = load i64, ptr %2, align 8, !tbaa !5
  %92 = load i64, ptr %3, align 8, !tbaa !5
  call void @_ZN3VMM4mmapEPmmmj(ptr noundef nonnull align 1 dereferenceable(1) %88, ptr noundef %90, i64 noundef %91, i64 noundef %92, i32 noundef 2)
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %95 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %94)
  %96 = load i64, ptr %2, align 8, !tbaa !5
  %97 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %93, ptr noundef %95, i64 noundef %96, ptr noundef %1)
  %98 = zext i1 %97 to i32
  %99 = icmp eq i32 %98, 1
  br i1 %99, label %100, label %101

100:                                              ; preds = %87
  br label %103

101:                                              ; preds = %87
  %102 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 154, ptr noundef @.str.20)
  br label %103

103:                                              ; preds = %101, %100
  %104 = load i64, ptr %1, align 8, !tbaa !5
  %105 = load i64, ptr %3, align 8, !tbaa !5
  %106 = icmp eq i64 %104, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %103
  br label %110

108:                                              ; preds = %103
  %109 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 155, ptr noundef @.str.21)
  br label %110

110:                                              ; preds = %108, %107
  %111 = load i64, ptr %2, align 8, !tbaa !5
  %112 = inttoptr i64 %111 to ptr
  store i64 205, ptr %112, align 8, !tbaa !5
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %115 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %114)
  %116 = load i64, ptr %2, align 8, !tbaa !5
  call void @_ZN3VMM6unmmapEPmm(ptr noundef nonnull align 1 dereferenceable(1) %113, ptr noundef %115, i64 noundef %116)
  %117 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %118 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %119 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %118)
  %120 = load i64, ptr %2, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %117, ptr noundef %119, i64 noundef %120, ptr noundef %1)
  %122 = zext i1 %121 to i32
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %110
  br label %127

125:                                              ; preds = %110
  %126 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 162, ptr noundef @.str.22)
  br label %127

127:                                              ; preds = %125, %124
  %128 = load i64, ptr %1, align 8, !tbaa !5
  %129 = icmp eq i64 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %127
  br label %133

131:                                              ; preds = %127
  %132 = call i32 (ptr, ...) @err(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 163, ptr noundef @.str.17)
  br label %133

133:                                              ; preds = %131, %130
  %134 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN3PMM12get_instanceEv()
  %135 = load i64, ptr %3, align 8, !tbaa !5
  call void @_ZN3PMM9free_pageEm(ptr noundef nonnull align 8 dereferenceable(72) %134, i64 noundef %135)
  %136 = call i32 (ptr, ...) @info(ptr noundef @.str.23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret i32 0
}

declare noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv() #1

declare noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1)) #1

declare noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i64 noundef, ptr noundef) #1

declare noundef i64 @_ZN3PMM17alloc_page_kernelEv(ptr noundef nonnull align 8 dereferenceable(72)) #1

declare void @_ZN3VMM4mmapEPmmmj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i64 noundef, i64 noundef, i32 noundef) #1

declare void @_ZN3VMM6unmmapEPmm(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i64 noundef) #1

declare void @_ZN3PMM9free_pageEm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) #1

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 = { inlinehint 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 #3 = { 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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"

@__executable_start = external global [0 x ptr], align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [157 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [162 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 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

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN3PMM12get_instanceEv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef, i64 noundef) local_unnamed_addr #2

declare i32 @err(ptr noundef, ...) local_unnamed_addr #1

declare i32 @info(ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8test_vmmv() local_unnamed_addr #3 {
  %1 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i64 0, ptr %1, align 8, !tbaa !5
  %2 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %3 = tail call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %6

4:                                                ; preds = %0
  %5 = tail call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 109, ptr noundef nonnull @.str.11)
  br label %6

6:                                                ; preds = %0, %4
  %7 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %8 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %9 = tail call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %10 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %9, i64 noundef add (i64 ptrtoint (ptr @__executable_start to i64), i64 4096), ptr noundef nonnull %1)
  br i1 %10, label %13, label %11

11:                                               ; preds = %6
  %12 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 113, ptr noundef nonnull @.str.12)
  br label %13

13:                                               ; preds = %6, %11
  %14 = load i64, ptr %1, align 8, !tbaa !5
  %15 = icmp eq i64 %14, add (i64 ptrtoint (ptr @__executable_start to i64), i64 4096)
  br i1 %15, label %18, label %16

16:                                               ; preds = %13
  %17 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 114, ptr noundef nonnull @.str.13)
  br label %18

18:                                               ; preds = %13, %16
  store i64 0, ptr %1, align 8, !tbaa !5
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %21 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %20)
  %22 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef %21, i64 noundef sub (i64 add (i64 ptrtoint (ptr @__executable_start to i64), i64 8388608), i64 1), ptr noundef nonnull %1)
  br i1 %22, label %25, label %23

23:                                               ; preds = %18
  %24 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 120, ptr noundef nonnull @.str.14)
  br label %25

25:                                               ; preds = %18, %23
  %26 = load i64, ptr %1, align 8, !tbaa !5
  %27 = and i64 sub (i64 add (i64 ptrtoint (ptr @__executable_start to i64), i64 8388608), i64 1), -4096
  %28 = icmp eq i64 %26, %27
  br i1 %28, label %31, label %29

29:                                               ; preds = %25
  %30 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 123, ptr noundef nonnull @.str.15)
  br label %31

31:                                               ; preds = %25, %29
  store i64 0, ptr %1, align 8, !tbaa !5
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %34 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %33)
  %35 = call noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef ptrtoint (ptr @__executable_start to i64), i64 noundef 4096)
  %36 = add i64 %35, 8388608
  %37 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %32, ptr noundef %34, i64 noundef %36, ptr noundef nonnull %1)
  br i1 %37, label %38, label %40

38:                                               ; preds = %31
  %39 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 130, ptr noundef nonnull @.str.16)
  br label %40

40:                                               ; preds = %31, %38
  %41 = load i64, ptr %1, align 8, !tbaa !5
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %45, label %43

43:                                               ; preds = %40
  %44 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 131, ptr noundef nonnull @.str.17)
  br label %45

45:                                               ; preds = %40, %43
  store i64 0, ptr %1, align 8, !tbaa !5
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %48 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %47)
  %49 = call noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef ptrtoint (ptr @__executable_start to i64), i64 noundef 4096)
  %50 = add i64 %49, 8392740
  %51 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %46, ptr noundef %48, i64 noundef %50, ptr noundef null)
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  %53 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 138, ptr noundef nonnull @.str.18)
  br label %54

54:                                               ; preds = %45, %52
  store i64 0, ptr %1, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN3PMM12get_instanceEv()
  %56 = call noundef i64 @_ZN3PMM17alloc_page_kernelEv(ptr noundef nonnull align 8 dereferenceable(72) %55)
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %59 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %58)
  %60 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %57, ptr noundef %59, i64 noundef 3221225472, ptr noundef null)
  br i1 %60, label %61, label %63

61:                                               ; preds = %54
  %62 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 148, ptr noundef nonnull @.str.19)
  br label %63

63:                                               ; preds = %54, %61
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %65 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %66 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %65)
  call void @_ZN3VMM4mmapEPmmmj(ptr noundef nonnull align 1 dereferenceable(1) %64, ptr noundef %66, i64 noundef 3221225472, i64 noundef %56, i32 noundef 2)
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %69 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %68)
  %70 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %67, ptr noundef %69, i64 noundef 3221225472, ptr noundef nonnull %1)
  br i1 %70, label %73, label %71

71:                                               ; preds = %63
  %72 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 154, ptr noundef nonnull @.str.20)
  br label %73

73:                                               ; preds = %63, %71
  %74 = load i64, ptr %1, align 8, !tbaa !5
  %75 = icmp eq i64 %74, %56
  br i1 %75, label %78, label %76

76:                                               ; preds = %73
  %77 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.21)
  br label %78

78:                                               ; preds = %73, %76
  store i64 205, ptr inttoptr (i64 3221225472 to ptr), align 1073741824, !tbaa !5
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %80 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %81 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %80)
  call void @_ZN3VMM6unmmapEPmm(ptr noundef nonnull align 1 dereferenceable(1) %79, ptr noundef %81, i64 noundef 3221225472)
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv()
  %84 = call noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1) %83)
  %85 = call noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1) %82, ptr noundef %84, i64 noundef 3221225472, ptr noundef nonnull %1)
  br i1 %85, label %86, label %88

86:                                               ; preds = %78
  %87 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 162, ptr noundef nonnull @.str.22)
  br label %88

88:                                               ; preds = %78, %86
  %89 = load i64, ptr %1, align 8, !tbaa !5
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %93, label %91

91:                                               ; preds = %88
  %92 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 163, ptr noundef nonnull @.str.17)
  br label %93

93:                                               ; preds = %88, %91
  %94 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN3PMM12get_instanceEv()
  call void @_ZN3PMM9free_pageEm(ptr noundef nonnull align 8 dereferenceable(72) %94, i64 noundef %56)
  %95 = call i32 (ptr, ...) @info(ptr noundef nonnull @.str.23)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i32 0
}

declare noundef nonnull align 1 dereferenceable(1) ptr @_ZN3VMM12get_instanceEv() local_unnamed_addr #1

declare noundef ptr @_ZN3VMM7get_pgdEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN3VMM8get_mmapEPmmPKv(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN3PMM17alloc_page_kernelEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1

declare void @_ZN3VMM4mmapEPmmmj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN3VMM6unmmapEPmm(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN3PMM9free_pageEm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { inlinehint 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 #3 = { 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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