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

; 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::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.ghc::filesystem::path::iterator" = type { %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.ghc::filesystem::path" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.ghc::filesystem::path::input_iterator_range" = type { %"class.ghc::filesystem::path::iterator", %"class.ghc::filesystem::path::iterator" }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 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 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path9root_nameEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4pathC2IA3_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(3), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3ghc10filesystem4path18lexically_relativeERKS1_(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.ghc::filesystem::path", align 8
  %8 = alloca %"class.ghc::filesystem::path", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %12 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %13 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %14 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %15 = alloca i1, align 1
  %16 = alloca i1, align 1
  %17 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %18 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %19 = alloca i1, align 1
  %20 = alloca i1, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.ghc::filesystem::path::input_iterator_range", align 8
  %25 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %26 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %27 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.ghc::filesystem::path", align 8
  %30 = alloca %"class.ghc::filesystem::path", align 8
  %31 = alloca i1, align 1
  %32 = alloca i1, align 1
  %33 = alloca %"class.ghc::filesystem::path", align 8
  %34 = alloca i1, align 1
  %35 = alloca i1, align 1
  %36 = alloca %"class.ghc::filesystem::path", align 8
  %37 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %38 = alloca i1, align 1
  %39 = alloca i1, align 1
  %40 = alloca i1, align 1
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca %"class.ghc::filesystem::path::input_iterator_range", align 8
  %44 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %45 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %46 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %47 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @_ZNK3ghc10filesystem4path9root_nameEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %48)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path9root_nameEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %50 unwind label %69

50:                                               ; preds = %3
  %51 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br i1 %51, label %66, label %52

52:                                               ; preds = %50
  %53 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path11is_absoluteEv(ptr noundef nonnull align 8 dereferenceable(32) %48)
  %54 = zext i1 %53 to i32
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path11is_absoluteEv(ptr noundef nonnull align 8 dereferenceable(32) %55)
  %57 = zext i1 %56 to i32
  %58 = icmp ne i32 %54, %57
  br i1 %58, label %66, label %59

59:                                               ; preds = %52
  %60 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path18has_root_directoryEv(ptr noundef nonnull align 8 dereferenceable(32) %48)
  br i1 %60, label %64, label %61

61:                                               ; preds = %59
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path18has_root_directoryEv(ptr noundef nonnull align 8 dereferenceable(32) %62)
  br label %64

64:                                               ; preds = %61, %59
  %65 = phi i1 [ false, %59 ], [ %63, %61 ]
  br label %66

66:                                               ; preds = %64, %52, %50
  %67 = phi i1 [ true, %52 ], [ true, %50 ], [ %65, %64 ]
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br i1 %67, label %68, label %73

68:                                               ; preds = %66
  call void @_ZN3ghc10filesystem4pathC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %414

69:                                               ; preds = %3
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br label %415

73:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #5
  call void @_ZNK3ghc10filesystem4path5beginEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %48)
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #5
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path5beginEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %74)
          to label %75 unwind label %104

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %103, %75
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #5
  store i1 false, ptr %15, align 1
  store i1 false, ptr %16, align 1
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %77 unwind label %108

77:                                               ; preds = %76
  %78 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(72) %13)
          to label %79 unwind label %112

79:                                               ; preds = %77
  br i1 %78, label %80, label %91

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 72, ptr %14) #5
  store i1 true, ptr %15, align 1
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %82 unwind label %116

82:                                               ; preds = %80
  store i1 true, ptr %16, align 1
  %83 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef nonnull align 8 dereferenceable(72) %14)
          to label %84 unwind label %120

84:                                               ; preds = %82
  br i1 %83, label %85, label %91

85:                                               ; preds = %84
  %86 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %87 unwind label %120

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %12)
          to label %89 unwind label %120

89:                                               ; preds = %87
  %90 = call noundef zeroext i1 @_ZN3ghc10filesystemeqERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %86, ptr noundef nonnull align 8 dereferenceable(32) %88) #5
  br label %91

91:                                               ; preds = %89, %84, %79
  %92 = phi i1 [ false, %84 ], [ false, %79 ], [ %90, %89 ]
  %93 = load i1, ptr %16, align 1
  br i1 %93, label %94, label %95

94:                                               ; preds = %91
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %14) #5
  br label %95

95:                                               ; preds = %94, %91
  %96 = load i1, ptr %15, align 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #5
  br label %98

98:                                               ; preds = %97, %95
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #5
  br i1 %92, label %99, label %137

99:                                               ; preds = %98
  %100 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %101 unwind label %133

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %12)
          to label %103 unwind label %133

103:                                              ; preds = %101
  br label %76, !llvm.loop !9

104:                                              ; preds = %73
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  br label %413

108:                                              ; preds = %76
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %9, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %10, align 4
  br label %132

112:                                              ; preds = %77
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  br label %131

116:                                              ; preds = %80
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %9, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %10, align 4
  br label %127

120:                                              ; preds = %87, %85, %82
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %9, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %10, align 4
  %124 = load i1, ptr %16, align 1
  br i1 %124, label %125, label %126

125:                                              ; preds = %120
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %14) #5
  br label %126

126:                                              ; preds = %125, %120
  br label %127

127:                                              ; preds = %126, %116
  %128 = load i1, ptr %15, align 1
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #5
  br label %130

130:                                              ; preds = %129, %127
  br label %131

131:                                              ; preds = %130, %112
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #5
  br label %132

132:                                              ; preds = %131, %108
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #5
  br label %412

133:                                              ; preds = %154, %101, %99
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %412

137:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #5
  store i1 false, ptr %19, align 1
  store i1 false, ptr %20, align 1
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %138 unwind label %156

138:                                              ; preds = %137
  %139 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(72) %17)
          to label %140 unwind label %160

140:                                              ; preds = %138
  br i1 %139, label %141, label %146

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 72, ptr %18) #5
  store i1 true, ptr %19, align 1
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %142)
          to label %143 unwind label %164

143:                                              ; preds = %141
  store i1 true, ptr %20, align 1
  %144 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef nonnull align 8 dereferenceable(72) %18)
          to label %145 unwind label %168

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %140
  %147 = phi i1 [ false, %140 ], [ %144, %145 ]
  %148 = load i1, ptr %20, align 1
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %18) #5
  br label %150

150:                                              ; preds = %149, %146
  %151 = load i1, ptr %19, align 1
  br i1 %151, label %152, label %153

152:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 72, ptr %18) #5
  br label %153

153:                                              ; preds = %152, %150
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #5
  br i1 %147, label %154, label %181

154:                                              ; preds = %153
  invoke void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 dereferenceable(2) @.str.4, i32 noundef 2)
          to label %155 unwind label %133

155:                                              ; preds = %154
  store i32 1, ptr %21, align 4
  br label %411

156:                                              ; preds = %137
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  br label %180

160:                                              ; preds = %138
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  br label %179

164:                                              ; preds = %141
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %9, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %10, align 4
  br label %175

168:                                              ; preds = %143
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %9, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %10, align 4
  %172 = load i1, ptr %20, align 1
  br i1 %172, label %173, label %174

173:                                              ; preds = %168
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %18) #5
  br label %174

174:                                              ; preds = %173, %168
  br label %175

175:                                              ; preds = %174, %164
  %176 = load i1, ptr %19, align 1
  br i1 %176, label %177, label %178

177:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 72, ptr %18) #5
  br label %178

178:                                              ; preds = %177, %175
  br label %179

179:                                              ; preds = %178, %160
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #5
  br label %180

180:                                              ; preds = %179, %156
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #5
  br label %412

181:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %25) #5
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %182)
          to label %183 unwind label %193

183:                                              ; preds = %181
  invoke void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEEC2ERKS3_S6_(ptr noundef nonnull align 8 dereferenceable(144) %24, ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef nonnull align 8 dereferenceable(72) %25)
          to label %184 unwind label %197

184:                                              ; preds = %183
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %25) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #5
  store ptr %24, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %26) #5
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE5beginEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %26, ptr noundef nonnull align 8 dereferenceable(144) %185)
          to label %186 unwind label %202

186:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #5
  %187 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %27, ptr noundef nonnull align 8 dereferenceable(144) %187)
          to label %188 unwind label %206

188:                                              ; preds = %186
  br label %189

189:                                              ; preds = %287, %188
  %190 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %26, ptr noundef nonnull align 8 dereferenceable(72) %27)
          to label %191 unwind label %210

191:                                              ; preds = %189
  br i1 %190, label %214, label %192

192:                                              ; preds = %191
  store i32 4, ptr %21, align 4
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %27) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %26) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %26) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %24) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %293

193:                                              ; preds = %181
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  br label %201

197:                                              ; preds = %183
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %9, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %10, align 4
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %25) #5
  br label %201

201:                                              ; preds = %197, %193
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #5
  br label %292

202:                                              ; preds = %184
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %9, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %10, align 4
  br label %291

206:                                              ; preds = %186
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %9, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %10, align 4
  br label %290

210:                                              ; preds = %285, %189
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %9, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %10, align 4
  br label %289

214:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %215 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %26)
          to label %216 unwind label %245

216:                                              ; preds = %214
  store ptr %215, ptr %28, align 8, !tbaa !5
  %217 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #5
  store i1 false, ptr %31, align 1
  store i1 false, ptr %32, align 1
  store i1 false, ptr %34, align 1
  store i1 false, ptr %35, align 1
  invoke void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 1 dereferenceable(2) @.str.4, i32 noundef 2)
          to label %218 unwind label %249

218:                                              ; preds = %216
  %219 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %217, ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  br i1 %219, label %220, label %228

220:                                              ; preds = %218
  %221 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  store i1 true, ptr %31, align 1
  invoke void @_ZN3ghc10filesystem4pathC2IA1_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 1 dereferenceable(1) @.str.1, i32 noundef 2)
          to label %222 unwind label %253

222:                                              ; preds = %220
  store i1 true, ptr %32, align 1
  %223 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %221, ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  br i1 %223, label %224, label %228

224:                                              ; preds = %222
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #5
  store i1 true, ptr %34, align 1
  invoke void @_ZN3ghc10filesystem4pathC2IA3_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 1 dereferenceable(3) @.str.5, i32 noundef 2)
          to label %226 unwind label %257

226:                                              ; preds = %224
  store i1 true, ptr %35, align 1
  %227 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %225, ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  br label %228

228:                                              ; preds = %226, %222, %218
  %229 = phi i1 [ false, %222 ], [ false, %218 ], [ %227, %226 ]
  %230 = load i1, ptr %35, align 1
  br i1 %230, label %231, label %232

231:                                              ; preds = %228
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  br label %232

232:                                              ; preds = %231, %228
  %233 = load i1, ptr %34, align 1
  br i1 %233, label %234, label %235

234:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #5
  br label %235

235:                                              ; preds = %234, %232
  %236 = load i1, ptr %32, align 1
  br i1 %236, label %237, label %238

237:                                              ; preds = %235
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  br label %238

238:                                              ; preds = %237, %235
  %239 = load i1, ptr %31, align 1
  br i1 %239, label %240, label %241

240:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  br label %241

241:                                              ; preds = %240, %238
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  br i1 %229, label %242, label %272

242:                                              ; preds = %241
  %243 = load i32, ptr %22, align 4, !tbaa !11
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %22, align 4, !tbaa !11
  br label %284

245:                                              ; preds = %214
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %9, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %10, align 4
  br label %288

249:                                              ; preds = %216
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %9, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %10, align 4
  br label %271

253:                                              ; preds = %220
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %9, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %10, align 4
  br label %267

257:                                              ; preds = %224
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %9, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %10, align 4
  %261 = load i1, ptr %34, align 1
  br i1 %261, label %262, label %263

262:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #5
  br label %263

263:                                              ; preds = %262, %257
  %264 = load i1, ptr %32, align 1
  br i1 %264, label %265, label %266

265:                                              ; preds = %263
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  br label %266

266:                                              ; preds = %265, %263
  br label %267

267:                                              ; preds = %266, %253
  %268 = load i1, ptr %31, align 1
  br i1 %268, label %269, label %270

269:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  br label %270

270:                                              ; preds = %269, %267
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  br label %271

271:                                              ; preds = %270, %249
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  br label %288

272:                                              ; preds = %241
  %273 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #5
  invoke void @_ZN3ghc10filesystem4pathC2IA3_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 1 dereferenceable(3) @.str.5, i32 noundef 2)
          to label %274 unwind label %279

274:                                              ; preds = %272
  %275 = call noundef zeroext i1 @_ZN3ghc10filesystemeqERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %273, ptr noundef nonnull align 8 dereferenceable(32) %36) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #5
  br i1 %275, label %276, label %283

276:                                              ; preds = %274
  %277 = load i32, ptr %22, align 4, !tbaa !11
  %278 = add nsw i32 %277, -1
  store i32 %278, ptr %22, align 4, !tbaa !11
  br label %283

279:                                              ; preds = %272
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %9, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #5
  br label %288

283:                                              ; preds = %276, %274
  br label %284

284:                                              ; preds = %283, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %285

285:                                              ; preds = %284
  %286 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %26)
          to label %287 unwind label %210

287:                                              ; preds = %285
  br label %189

288:                                              ; preds = %279, %271, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %289

289:                                              ; preds = %288, %210
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %27) #5
  br label %290

290:                                              ; preds = %289, %206
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %26) #5
  br label %291

291:                                              ; preds = %290, %202
  call void @llvm.lifetime.end.p0(i64 72, ptr %26) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %24) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %24) #5
  br label %292

292:                                              ; preds = %291, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %410

293:                                              ; preds = %192
  %294 = load i32, ptr %22, align 4, !tbaa !11
  %295 = icmp eq i32 %294, 0
  store i1 false, ptr %38, align 1
  store i1 false, ptr %39, align 1
  br i1 %295, label %296, label %306

296:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 72, ptr %37) #5
  store i1 true, ptr %38, align 1
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %297 unwind label %316

297:                                              ; preds = %296
  store i1 true, ptr %39, align 1
  %298 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(72) %37)
          to label %299 unwind label %320

299:                                              ; preds = %297
  br i1 %298, label %304, label %300

300:                                              ; preds = %299
  %301 = invoke noundef ptr @_ZNK3ghc10filesystem4path8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %302 unwind label %320

302:                                              ; preds = %300
  %303 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %301) #5
  br label %304

304:                                              ; preds = %302, %299
  %305 = phi i1 [ true, %299 ], [ %303, %302 ]
  br label %306

306:                                              ; preds = %304, %293
  %307 = phi i1 [ false, %293 ], [ %305, %304 ]
  %308 = load i1, ptr %39, align 1
  br i1 %308, label %309, label %310

309:                                              ; preds = %306
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %37) #5
  br label %310

310:                                              ; preds = %309, %306
  %311 = load i1, ptr %38, align 1
  br i1 %311, label %312, label %313

312:                                              ; preds = %310
  call void @llvm.lifetime.end.p0(i64 72, ptr %37) #5
  br label %313

313:                                              ; preds = %312, %310
  br i1 %307, label %314, label %335

314:                                              ; preds = %313
  invoke void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 dereferenceable(2) @.str.4, i32 noundef 2)
          to label %315 unwind label %331

315:                                              ; preds = %314
  store i32 1, ptr %21, align 4
  br label %409

316:                                              ; preds = %296
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %9, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %10, align 4
  br label %327

320:                                              ; preds = %300, %297
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %9, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %10, align 4
  %324 = load i1, ptr %39, align 1
  br i1 %324, label %325, label %326

325:                                              ; preds = %320
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %37) #5
  br label %326

326:                                              ; preds = %325, %320
  br label %327

327:                                              ; preds = %326, %316
  %328 = load i1, ptr %38, align 1
  br i1 %328, label %329, label %330

329:                                              ; preds = %327
  call void @llvm.lifetime.end.p0(i64 72, ptr %37) #5
  br label %330

330:                                              ; preds = %329, %327
  br label %410

331:                                              ; preds = %314
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %9, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %10, align 4
  br label %410

335:                                              ; preds = %313
  %336 = load i32, ptr %22, align 4, !tbaa !11
  %337 = icmp slt i32 %336, 0
  br i1 %337, label %338, label %339

338:                                              ; preds = %335
  call void @_ZN3ghc10filesystem4pathC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  store i32 1, ptr %21, align 4
  br label %409

339:                                              ; preds = %335
  store i1 false, ptr %40, align 1
  call void @_ZN3ghc10filesystem4pathC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  store i32 0, ptr %41, align 4, !tbaa !11
  br label %340

340:                                              ; preds = %348, %339
  %341 = load i32, ptr %41, align 4, !tbaa !11
  %342 = load i32, ptr %22, align 4, !tbaa !11
  %343 = icmp slt i32 %341, %342
  br i1 %343, label %345, label %344

344:                                              ; preds = %340
  store i32 6, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  br label %355

345:                                              ; preds = %340
  %346 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVIA3_cEERS1_RKT_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 dereferenceable(3) @.str.5)
          to label %347 unwind label %351

347:                                              ; preds = %345
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %41, align 4, !tbaa !11
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %41, align 4, !tbaa !11
  br label %340, !llvm.loop !13

351:                                              ; preds = %345
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %9, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  br label %408

355:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %44) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %44, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %356 unwind label %366

356:                                              ; preds = %355
  invoke void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEEC2ERKS3_S6_(ptr noundef nonnull align 8 dereferenceable(144) %43, ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(72) %44)
          to label %357 unwind label %370

357:                                              ; preds = %356
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %44) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %44) #5
  store ptr %43, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %45) #5
  %358 = load ptr, ptr %42, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE5beginEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %45, ptr noundef nonnull align 8 dereferenceable(144) %358)
          to label %359 unwind label %375

359:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 72, ptr %46) #5
  %360 = load ptr, ptr %42, align 8, !tbaa !5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE3endEv(ptr dead_on_unwind writable sret(%"class.ghc::filesystem::path::iterator") align 8 %46, ptr noundef nonnull align 8 dereferenceable(144) %360)
          to label %361 unwind label %379

361:                                              ; preds = %359
  br label %362

362:                                              ; preds = %395, %361
  %363 = invoke noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %45, ptr noundef nonnull align 8 dereferenceable(72) %46)
          to label %364 unwind label %383

364:                                              ; preds = %362
  br i1 %363, label %387, label %365

365:                                              ; preds = %364
  store i32 9, ptr %21, align 4
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %46) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %46) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %45) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %45) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %43) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  br label %404

366:                                              ; preds = %355
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %9, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %10, align 4
  br label %374

370:                                              ; preds = %356
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %9, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %10, align 4
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %44) #5
  br label %374

374:                                              ; preds = %370, %366
  call void @llvm.lifetime.end.p0(i64 72, ptr %44) #5
  br label %403

375:                                              ; preds = %357
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %9, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %10, align 4
  br label %402

379:                                              ; preds = %359
  %380 = landingpad { ptr, i32 }
          cleanup
  %381 = extractvalue { ptr, i32 } %380, 0
  store ptr %381, ptr %9, align 8
  %382 = extractvalue { ptr, i32 } %380, 1
  store i32 %382, ptr %10, align 4
  br label %401

383:                                              ; preds = %393, %362
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %9, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %10, align 4
  br label %400

387:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #5
  %388 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %45)
          to label %389 unwind label %396

389:                                              ; preds = %387
  store ptr %388, ptr %47, align 8, !tbaa !5
  %390 = load ptr, ptr %47, align 8, !tbaa !5
  %391 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %390)
          to label %392 unwind label %396

392:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #5
  br label %393

393:                                              ; preds = %392
  %394 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %45)
          to label %395 unwind label %383

395:                                              ; preds = %393
  br label %362

396:                                              ; preds = %389, %387
  %397 = landingpad { ptr, i32 }
          cleanup
  %398 = extractvalue { ptr, i32 } %397, 0
  store ptr %398, ptr %9, align 8
  %399 = extractvalue { ptr, i32 } %397, 1
  store i32 %399, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #5
  br label %400

400:                                              ; preds = %396, %383
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %46) #5
  br label %401

401:                                              ; preds = %400, %379
  call void @llvm.lifetime.end.p0(i64 72, ptr %46) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %45) #5
  br label %402

402:                                              ; preds = %401, %375
  call void @llvm.lifetime.end.p0(i64 72, ptr %45) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %43) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %43) #5
  br label %403

403:                                              ; preds = %402, %374
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  br label %408

404:                                              ; preds = %365
  store i1 true, ptr %40, align 1
  store i32 1, ptr %21, align 4
  %405 = load i1, ptr %40, align 1
  br i1 %405, label %407, label %406

406:                                              ; preds = %404
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %407

407:                                              ; preds = %406, %404
  br label %409

408:                                              ; preds = %403, %351
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %410

409:                                              ; preds = %407, %338, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %411

410:                                              ; preds = %408, %331, %330, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %412

411:                                              ; preds = %409, %155
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %12) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #5
  br label %414

412:                                              ; preds = %410, %180, %133, %132
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %12) #5
  br label %413

413:                                              ; preds = %412, %104
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #5
  br label %415

414:                                              ; preds = %411, %68
  ret void

415:                                              ; preds = %413, %69
  %416 = load ptr, ptr %9, align 8
  %417 = load i32, ptr %10, align 4
  %418 = insertvalue { ptr, i32 } poison, ptr %416, 0
  %419 = insertvalue { ptr, i32 } %418, i32 %417, 1
  resume { ptr, i32 } %419
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(2), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEEC2ERKS3_S6_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4pathC2IA1_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVIA3_cEERS1_RKT_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(3)) #4 align 2

declare void @_ZN3ghc10filesystem4pathC1Ev(ptr)

declare void @_ZN3ghc10filesystem4pathD1Ev(ptr)

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

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}


; 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::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.ghc::filesystem::path::iterator" = type { %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.ghc::filesystem::path" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.ghc::filesystem::path::input_iterator_range" = type { %"class.ghc::filesystem::path::iterator", %"class.ghc::filesystem::path::iterator" }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path9root_nameEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4pathC2IA3_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(3), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3ghc10filesystem4path18lexically_relativeERKS1_(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.ghc::filesystem::path", align 8
  %5 = alloca %"class.ghc::filesystem::path", align 8
  %6 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %7 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %8 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %9 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %10 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %11 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %12 = alloca %"class.ghc::filesystem::path::input_iterator_range", align 8
  %13 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %14 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %15 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %16 = alloca %"class.ghc::filesystem::path", align 8
  %17 = alloca %"class.ghc::filesystem::path", align 8
  %18 = alloca %"class.ghc::filesystem::path", align 8
  %19 = alloca %"class.ghc::filesystem::path", align 8
  %20 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %21 = alloca %"class.ghc::filesystem::path::input_iterator_range", align 8
  %22 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %23 = alloca %"class.ghc::filesystem::path::iterator", align 8
  %24 = alloca %"class.ghc::filesystem::path::iterator", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNK3ghc10filesystem4path9root_nameEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  invoke void @_ZNK3ghc10filesystem4path9root_nameEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %25 unwind label %36

25:                                               ; preds = %3
  %26 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br i1 %26, label %.critedge, label %27

27:                                               ; preds = %25
  %28 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path11is_absoluteEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %29 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path11is_absoluteEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %30 = xor i1 %28, %29
  br i1 %30, label %.critedge, label %31

31:                                               ; preds = %27
  %32 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path18has_root_directoryEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  br i1 %32, label %.critedge2, label %33

33:                                               ; preds = %31
  %34 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path18has_root_directoryEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br i1 %34, label %35, label %38

.critedge:                                        ; preds = %25, %27
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %35

35:                                               ; preds = %.critedge, %33
  call void @_ZN3ghc10filesystem4pathC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %161

36:                                               ; preds = %3
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %162

.critedge2:                                       ; preds = %31
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %38

38:                                               ; preds = %.critedge2, %33
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #5
  call void @_ZNK3ghc10filesystem4path5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #5
  invoke void @_ZNK3ghc10filesystem4path5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.preheader130 unwind label %51

.preheader130:                                    ; preds = %38, %49
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %39 unwind label %53

39:                                               ; preds = %.preheader130
  %40 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %8)
  br i1 %40, label %41, label %.critedge107.thread

.critedge107.thread:                              ; preds = %39
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #5
  br label %.loopexit

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %42 unwind label %55

42:                                               ; preds = %41
  %43 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %7, ptr noundef nonnull align 8 dereferenceable(72) %9)
  br i1 %43, label %.critedge107, label %.critedge127

.critedge107:                                     ; preds = %42
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %6)
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %7)
  %46 = call noundef zeroext i1 @_ZN3ghc10filesystemeqERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %45) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #5
  br i1 %46, label %47, label %.loopexit

47:                                               ; preds = %.critedge107
  %48 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %6)
          to label %49 unwind label %.loopexit131

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %7)
          to label %.preheader130 unwind label %.loopexit131, !llvm.loop !5

51:                                               ; preds = %38
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %160

53:                                               ; preds = %.preheader130
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %41
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #5
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #5
  br label %159

.loopexit131:                                     ; preds = %47, %49
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %159

.loopexit.split-lp:                               ; preds = %62
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %159

.critedge127:                                     ; preds = %42
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.critedge107, %.critedge127, %.critedge107.thread
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %10) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %58 unwind label %63

58:                                               ; preds = %.loopexit
  %59 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %10)
  br i1 %59, label %60, label %.critedge109.thread

.critedge109.thread:                              ; preds = %58
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %10) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %10) #5
  br label %68

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.critedge109 unwind label %65

.critedge109:                                     ; preds = %60
  %61 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %7, ptr noundef nonnull align 8 dereferenceable(72) %11)
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %10) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %10) #5
  br i1 %61, label %62, label %68

62:                                               ; preds = %.critedge109
  invoke void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 dereferenceable(2) @.str.4, i32 noundef 2)
          to label %158 unwind label %.loopexit.split-lp

63:                                               ; preds = %.loopexit
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %60
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %10) #5
  br label %67

67:                                               ; preds = %65, %63
  %.pn78 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %10) #5
  br label %159

68:                                               ; preds = %.critedge109.thread, %.critedge109
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %69 unwind label %75

69:                                               ; preds = %68
  invoke void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEEC2ERKS3_S6_(ptr noundef nonnull align 8 dereferenceable(144) %12, ptr noundef nonnull align 8 dereferenceable(72) %7, ptr noundef nonnull align 8 dereferenceable(72) %13)
          to label %70 unwind label %77

70:                                               ; preds = %69
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %14) #5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(144) %12)
          to label %71 unwind label %80

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %15) #5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(144) %12)
          to label %.preheader129 unwind label %82

.preheader129:                                    ; preds = %71, %109
  %.073 = phi i32 [ %spec.select, %109 ], [ 0, %71 ]
  %72 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %14, ptr noundef nonnull align 8 dereferenceable(72) %15)
  br i1 %72, label %86, label %73

73:                                               ; preds = %.preheader129
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %15) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %15) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %14) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #5
  %74 = icmp eq i32 %.073, 0
  br i1 %74, label %114, label %124

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %69
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #5
  br label %79

79:                                               ; preds = %77, %75
  %.pn80 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #5
  br label %159

80:                                               ; preds = %70
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %113

82:                                               ; preds = %71
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %112

84:                                               ; preds = %109
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %111

86:                                               ; preds = %.preheader129
  %87 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  invoke void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 1 dereferenceable(2) @.str.4, i32 noundef 2)
          to label %88 unwind label %95

88:                                               ; preds = %86
  %89 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br i1 %89, label %90, label %.critedge113.thread

.critedge113.thread:                              ; preds = %88
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  br label %103

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  invoke void @_ZN3ghc10filesystem4pathC2IA1_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 1 dereferenceable(1) @.str.1, i32 noundef 2)
          to label %91 unwind label %97

91:                                               ; preds = %90
  %92 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br i1 %92, label %93, label %.critedge128

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #5
  invoke void @_ZN3ghc10filesystem4pathC2IA3_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 1 dereferenceable(3) @.str.5, i32 noundef 2)
          to label %.critedge111.thread unwind label %99

.critedge111.thread:                              ; preds = %93
  %94 = call noundef zeroext i1 @_ZN3ghc10filesystemneERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  br i1 %94, label %109, label %103

95:                                               ; preds = %86
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %102

97:                                               ; preds = %90
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %101

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %101

101:                                              ; preds = %97, %99
  %.pn91 = phi { ptr, i32 } [ %100, %99 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %102

102:                                              ; preds = %101, %95
  %.pn91.pn = phi { ptr, i32 } [ %.pn91, %101 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  br label %111

.critedge128:                                     ; preds = %91
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  br label %103

103:                                              ; preds = %.critedge128, %.critedge113.thread, %.critedge111.thread
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #5
  invoke void @_ZN3ghc10filesystem4pathC2IA3_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(3) @.str.5, i32 noundef 2)
          to label %104 unwind label %107

104:                                              ; preds = %103
  %105 = call noundef zeroext i1 @_ZN3ghc10filesystemeqERKNS0_4pathES3_(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  %106 = sext i1 %105 to i32
  br label %109

107:                                              ; preds = %103
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  br label %111

109:                                              ; preds = %.critedge111.thread, %104
  %.sink = phi i32 [ %106, %104 ], [ 1, %.critedge111.thread ]
  %spec.select = add nsw i32 %.073, %.sink
  %110 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
          to label %.preheader129 unwind label %84

111:                                              ; preds = %102, %107, %84
  %.pn96 = phi { ptr, i32 } [ %85, %84 ], [ %108, %107 ], [ %.pn91.pn, %102 ]
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %15) #5
  br label %112

112:                                              ; preds = %111, %82
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %111 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %15) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %14) #5
  br label %113

113:                                              ; preds = %112, %80
  %.pn96.pn.pn = phi { ptr, i32 } [ %.pn96.pn, %112 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #5
  br label %159

114:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %20) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %115 unwind label %120

115:                                              ; preds = %114
  %116 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %20)
  br i1 %116, label %.critedge115.thread124, label %.critedge115

.critedge115.thread124:                           ; preds = %115
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %20) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %20) #5
  br label %119

.critedge115:                                     ; preds = %115
  %117 = call noundef ptr @_ZNK3ghc10filesystem4path8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(72) %6)
  %118 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %117) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %20) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %20) #5
  br i1 %118, label %119, label %.thread126

119:                                              ; preds = %.critedge115.thread124, %.critedge115
  invoke void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 dereferenceable(2) @.str.4, i32 noundef 2)
          to label %158 unwind label %122

120:                                              ; preds = %114
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %20) #5
  br label %159

122:                                              ; preds = %119
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %159

124:                                              ; preds = %73
  %125 = icmp slt i32 %.073, 0
  call void @_ZN3ghc10filesystem4pathC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br i1 %125, label %158, label %.lr.ph

.thread126:                                       ; preds = %.critedge115
  call void @_ZN3ghc10filesystem4pathC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %127, %.thread126
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %22) #5
  invoke void @_ZNK3ghc10filesystem4path3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %131 unwind label %136

.lr.ph:                                           ; preds = %124, %127
  %.064137 = phi i32 [ %128, %127 ], [ 0, %124 ]
  %126 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVIA3_cEERS1_RKT_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 1 dereferenceable(3) @.str.5)
          to label %127 unwind label %129

127:                                              ; preds = %.lr.ph
  %128 = add nuw nsw i32 %.064137, 1
  %exitcond.not = icmp eq i32 %128, %.073
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !7

129:                                              ; preds = %.lr.ph
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %157

131:                                              ; preds = %._crit_edge
  invoke void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEEC2ERKS3_S6_(ptr noundef nonnull align 8 dereferenceable(144) %21, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %22)
          to label %132 unwind label %138

132:                                              ; preds = %131
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %22) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %23) #5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %23, ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %133 unwind label %141

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %24) #5
  invoke void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ghc::filesystem::path::iterator") align 8 %24, ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %.preheader unwind label %143

.preheader:                                       ; preds = %133, %150
  %134 = call noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(72) %23, ptr noundef nonnull align 8 dereferenceable(72) %24)
  br i1 %134, label %147, label %135

135:                                              ; preds = %.preheader
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %24) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %24) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %23) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %23) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %21) #5
  br label %158

136:                                              ; preds = %._crit_edge
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %140

138:                                              ; preds = %131
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %22) #5
  br label %140

140:                                              ; preds = %138, %136
  %.pn82 = phi { ptr, i32 } [ %139, %138 ], [ %137, %136 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #5
  br label %157

141:                                              ; preds = %132
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %156

143:                                              ; preds = %133
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %155

145:                                              ; preds = %150
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %154

147:                                              ; preds = %.preheader
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3ghc10filesystem4path8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(72) %23)
  %149 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %148)
          to label %150 unwind label %152

150:                                              ; preds = %147
  %151 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN3ghc10filesystem4path8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(72) %23)
          to label %.preheader unwind label %145

152:                                              ; preds = %147
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %154

154:                                              ; preds = %152, %145
  %.pn84 = phi { ptr, i32 } [ %146, %145 ], [ %153, %152 ]
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %24) #5
  br label %155

155:                                              ; preds = %154, %143
  %.pn84.pn = phi { ptr, i32 } [ %.pn84, %154 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %24) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %23) #5
  br label %156

156:                                              ; preds = %155, %141
  %.pn84.pn.pn = phi { ptr, i32 } [ %.pn84.pn, %155 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %23) #5
  call void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %21) #5
  br label %157

157:                                              ; preds = %140, %156, %129
  %.pn89 = phi { ptr, i32 } [ %130, %129 ], [ %.pn84.pn.pn, %156 ], [ %.pn82, %140 ]
  call void @_ZN3ghc10filesystem4pathD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %159

158:                                              ; preds = %124, %135, %119, %62
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  br label %161

159:                                              ; preds = %.loopexit131, %.loopexit.split-lp, %122, %157, %120, %113, %79, %67, %57
  %.pn102 = phi { ptr, i32 } [ %.pn78, %67 ], [ %.pn, %57 ], [ %123, %122 ], [ %.pn89, %157 ], [ %121, %120 ], [ %.pn96.pn.pn, %113 ], [ %.pn80, %79 ], [ %lpad.loopexit, %.loopexit131 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #5
  br label %160

160:                                              ; preds = %159, %51
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %159 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #5
  call void @_ZN3ghc10filesystem4path8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  br label %162

161:                                              ; preds = %158, %35
  ret void

162:                                              ; preds = %160, %36
  %.pn102.pn.pn = phi { ptr, i32 } [ %.pn102.pn, %160 ], [ %37, %36 ]
  resume { ptr, i32 } %.pn102.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ghc10filesystem4path8iteratoreqERKS2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4pathC2IA2_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(2), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEEC2ERKS3_S6_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ghc::filesystem::path::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ghc10filesystem4pathC2IA1_cS1_EERKT_NS1_6formatE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ghc10filesystem4path20input_iterator_rangeINS1_8iteratorEED2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3ghc10filesystem4pathdVIA3_cEERS1_RKT_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #4 align 2

declare void @_ZN3ghc10filesystem4pathC1Ev(ptr) local_unnamed_addr

declare void @_ZN3ghc10filesystem4pathD1Ev(ptr) local_unnamed_addr

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass