; LLVM IR from gulrak/filesystem :: test/impl_test.ll (ZN3ghc10filesystem16create_directoryERKNS0_4pathES3_RSt10error_code)

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

%"class.ghc::filesystem::file_status" = type <{ i32, i16, [2 x i8] }>
%"class.std::error_code" = type { i32, ptr }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_ZN3ghc10filesystem6detail17make_system_errorEi(i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ghc10filesystem4path5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10error_code5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nounwind
declare i32 @stat(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ghc10filesystem4path5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ghc10filesystem6statusERKNS0_4pathERSt10error_code(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::file_status") align 4, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3ghc10filesystem6existsENS0_11file_statusE(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3ghc10filesystem12is_directoryENS0_11file_statusE(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN3ghc10filesystem16create_directoryERKNS0_4pathES3_RSt10error_code(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::error_code", align 8
  %9 = alloca %"class.ghc::filesystem::file_status", align 4
  %10 = alloca %"class.ghc::filesystem::file_status", align 4
  %11 = alloca %"class.ghc::filesystem::file_status", align 4
  %12 = alloca i1, align 1
  %13 = alloca %"class.ghc::filesystem::file_status", align 4
  %14 = alloca i1, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.stat, align 8
  %18 = alloca %"class.std::error_code", align 8
  %19 = alloca %"class.std::error_code", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt10error_code5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3ghc10filesystem6statusERKNS0_4pathERSt10error_code(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::file_status") align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr noundef nonnull align 4 dereferenceable(6) %10, ptr noundef nonnull align 4 dereferenceable(6) %9) #4
  %22 = call noundef zeroext i1 @_ZN3ghc10filesystem12status_knownENS0_11file_statusE(ptr noundef %10) #4
  store i1 false, ptr %12, align 1
  store i1 false, ptr %14, align 1
  br i1 %22, label %23, label %27

23:                                               ; preds = %3
  call void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr noundef nonnull align 4 dereferenceable(6) %11, ptr noundef nonnull align 4 dereferenceable(6) %9) #4
  store i1 true, ptr %12, align 1
  %24 = call noundef zeroext i1 @_ZN3ghc10filesystem6existsENS0_11file_statusE(ptr noundef %11) #4
  br i1 %24, label %25, label %27

25:                                               ; preds = %23
  call void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr noundef nonnull align 4 dereferenceable(6) %13, ptr noundef nonnull align 4 dereferenceable(6) %9) #4
  store i1 true, ptr %14, align 1
  %26 = call noundef zeroext i1 @_ZN3ghc10filesystem12is_directoryENS0_11file_statusE(ptr noundef %13) #4
  br label %27

27:                                               ; preds = %25, %23, %3
  %28 = phi i1 [ false, %23 ], [ false, %3 ], [ %26, %25 ]
  %29 = load i1, ptr %14, align 1
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %13) #4
  br label %31

31:                                               ; preds = %30, %27
  %32 = load i1, ptr %12, align 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %11) #4
  br label %34

34:                                               ; preds = %33, %31
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %10) #4
  br i1 %28, label %35, label %36

35:                                               ; preds = %34
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %72

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 511, ptr %16, align 4, !tbaa !9
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #4
  br i1 %38, label %57, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 144, ptr %17) #4
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call noundef ptr @_ZNK3ghc10filesystem4path5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %40) #4
  %42 = call i32 @stat(ptr noundef %41, ptr noundef %17) #4
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %51

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %45 = call { i32, ptr } @_ZN3ghc10filesystem6detail17make_system_errorEi(i32 noundef 0)
  %46 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %47 = extractvalue { i32, ptr } %45, 0
  store i32 %47, ptr %46, align 8
  %48 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %49 = extractvalue { i32, ptr } %45, 1
  store ptr %49, ptr %48, align 8
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %54

51:                                               ; preds = %39
  %52 = getelementptr inbounds %struct.stat, ptr %17, i32 0, i32 3
  %53 = load i32, ptr %52, align 8, !tbaa !12
  store i32 %53, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %15, align 4
  br label %54

54:                                               ; preds = %51, %44
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #4
  %55 = load i32, ptr %15, align 4
  switch i32 %55, label %71 [
    i32 0, label %56
  ]

56:                                               ; preds = %54
  br label %57

57:                                               ; preds = %56, %36
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNK3ghc10filesystem4path5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %58) #4
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = call i32 @mkdir(ptr noundef %59, i32 noundef %60) #4
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %70

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %64 = call { i32, ptr } @_ZN3ghc10filesystem6detail17make_system_errorEi(i32 noundef 0)
  %65 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 0
  %66 = extractvalue { i32, ptr } %64, 0
  store i32 %66, ptr %65, align 8
  %67 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 1
  %68 = extractvalue { i32, ptr } %64, 1
  store ptr %68, ptr %67, align 8
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %69, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %71

70:                                               ; preds = %57
  store i1 true, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %71

71:                                               ; preds = %70, %63, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %72

72:                                               ; preds = %71, %35
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  %73 = load i1, ptr %4, align 1
  ret i1 %73
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3ghc10filesystem12status_knownENS0_11file_statusE(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @mkdir(ptr noundef, i32 noundef) #3

declare void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr, ptr)

declare void @_ZN3ghc10filesystem11file_statusD1Ev(ptr)

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !9, i64 8, i64 8, !5}
!12 = !{!13, !10, i64 24}
!13 = !{!"_ZTS4stat", !14, i64 0, !14, i64 8, !14, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !15, i64 72, !15, i64 88, !15, i64 104, !7, i64 120}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS8timespec", !14, i64 0, !14, i64 8}


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

%"class.ghc::filesystem::file_status" = type <{ i32, i16, [2 x i8] }>
%"class.std::error_code" = type { i32, ptr }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_ZN3ghc10filesystem6detail17make_system_errorEi(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ghc10filesystem4path5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10error_code5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ghc10filesystem4path5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ghc10filesystem6statusERKNS0_4pathERSt10error_code(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::file_status") align 4, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3ghc10filesystem6existsENS0_11file_statusE(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3ghc10filesystem12is_directoryENS0_11file_statusE(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN3ghc10filesystem16create_directoryERKNS0_4pathES3_RSt10error_code(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #0 {
  %4 = alloca %"class.std::error_code", align 8
  %5 = alloca %"class.ghc::filesystem::file_status", align 4
  %6 = alloca %"class.ghc::filesystem::file_status", align 4
  %7 = alloca %"class.ghc::filesystem::file_status", align 4
  %8 = alloca %"class.ghc::filesystem::file_status", align 4
  %9 = alloca %struct.stat, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #3
  call void @_ZNSt10error_code5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @_ZN3ghc10filesystem6statusERKNS0_4pathERSt10error_code(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::file_status") align 4 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %4) #3
  call void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr noundef nonnull align 4 dereferenceable(6) %6, ptr noundef nonnull align 4 dereferenceable(6) %5) #3
  %10 = call noundef zeroext i1 @_ZN3ghc10filesystem12status_knownENS0_11file_statusE(ptr noundef nonnull %6) #3
  br i1 %10, label %11, label %.sink.split

11:                                               ; preds = %3
  call void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr noundef nonnull align 4 dereferenceable(6) %7, ptr noundef nonnull align 4 dereferenceable(6) %5) #3
  %12 = call noundef zeroext i1 @_ZN3ghc10filesystem6existsENS0_11file_statusE(ptr noundef nonnull %7) #3
  br i1 %12, label %.thread22, label %.critedge

.thread22:                                        ; preds = %11
  call void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr noundef nonnull align 4 dereferenceable(6) %8, ptr noundef nonnull align 4 dereferenceable(6) %5) #3
  %13 = call noundef zeroext i1 @_ZN3ghc10filesystem12is_directoryENS0_11file_statusE(ptr noundef nonnull %8) #3
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %8) #3
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %7) #3
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %6) #3
  br i1 %13, label %32, label %14

.critedge:                                        ; preds = %11
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %7) #3
  br label %.sink.split

.sink.split:                                      ; preds = %3, %.critedge
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %6) #3
  br label %14

14:                                               ; preds = %.sink.split, %.thread22
  %15 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  br i1 %15, label %25, label %16

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #3
  %17 = call noundef ptr @_ZNK3ghc10filesystem4path5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %18 = call i32 @stat(ptr noundef %17, ptr noundef nonnull %9) #3
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %.thread25, label %21

.thread25:                                        ; preds = %16
  %19 = getelementptr inbounds i8, ptr %9, i64 24
  %20 = load i32, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #3
  br label %25

21:                                               ; preds = %16
  %22 = call { i32, ptr } @_ZN3ghc10filesystem6detail17make_system_errorEi(i32 noundef 0)
  %23 = extractvalue { i32, ptr } %22, 0
  %24 = extractvalue { i32, ptr } %22, 1
  store i32 %23, ptr %2, align 8, !tbaa !12
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %24, ptr %.sroa.44.0..sroa_idx, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #3
  br label %32

25:                                               ; preds = %.thread25, %14
  %.119 = phi i32 [ 511, %14 ], [ %20, %.thread25 ]
  %26 = call noundef ptr @_ZNK3ghc10filesystem4path5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  %27 = call i32 @mkdir(ptr noundef %26, i32 noundef %.119) #3
  %.not20 = icmp eq i32 %27, 0
  br i1 %.not20, label %32, label %28

28:                                               ; preds = %25
  %29 = call { i32, ptr } @_ZN3ghc10filesystem6detail17make_system_errorEi(i32 noundef 0)
  %30 = extractvalue { i32, ptr } %29, 0
  %31 = extractvalue { i32, ptr } %29, 1
  store i32 %30, ptr %2, align 8, !tbaa !12
  %.sroa.41.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %31, ptr %.sroa.41.0..sroa_idx, align 8, !tbaa !13
  br label %32

32:                                               ; preds = %21, %28, %25, %.thread22
  %.2 = phi i1 [ false, %.thread22 ], [ false, %28 ], [ false, %21 ], [ true, %25 ]
  call void @_ZN3ghc10filesystem11file_statusD1Ev(ptr noundef nonnull align 4 dereferenceable(6) %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3ghc10filesystem12status_knownENS0_11file_statusE(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @mkdir(ptr nocapture noundef readonly, i32 noundef) local_unnamed_addr #2

declare void @_ZN3ghc10filesystem11file_statusC1ERKS1_(ptr, ptr) local_unnamed_addr

declare void @_ZN3ghc10filesystem11file_statusD1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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, !10, i64 24}
!6 = !{!"_ZTS4stat", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !11, i64 88, !11, i64 104, !8, i64 120}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS8timespec", !7, i64 0, !7, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}


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