; LLVM IR from ctlst-tech/catpilot :: os/fatfs/core (ff)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.DIR = type { %struct.FFOBJID, i32, i32, i32, ptr, [12 x i8], i32, ptr }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i32, i32 }
%struct.FATFS = type { i8, i8, i8, i8, i8, i8, i16, i16, i16, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [512 x i8] }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mount_volume(ptr noundef, ptr noundef, i8 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden void @unlock_volume(ptr noundef, i32 noundef) #1

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

declare ptr @ff_memalloc(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @follow_path(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ld_clust(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @inc_share(ptr noundef, i32 noundef) #1

declare void @ff_memfree(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @dir_sdi(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @f_opendir(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %13, label %12

12:                                               ; preds = %2
  store i32 9, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %120

13:                                               ; preds = %2
  %14 = call i32 @mount_volume(ptr noundef %5, ptr noundef %7, i8 noundef zeroext 0)
  store i32 %14, ptr %6, align 4, !tbaa !9
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %109

17:                                               ; preds = %13
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.DIR, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds %struct.FFOBJID, ptr %20, i32 0, i32 0
  store ptr %18, ptr %21, align 8, !tbaa !11
  %22 = call ptr @ff_memalloc(i32 noundef 512)
  store ptr %22, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %27, label %25

25:                                               ; preds = %17
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  call void @unlock_volume(ptr noundef %26, i32 noundef 17)
  store i32 17, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %120

27:                                               ; preds = %17
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.FATFS, ptr %29, i32 0, i32 9
  store ptr %28, ptr %30, align 8, !tbaa !15
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call i32 @follow_path(ptr noundef %31, ptr noundef %32)
  store i32 %33, ptr %6, align 4, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %103

36:                                               ; preds = %27
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.DIR, ptr %37, i32 0, i32 5
  %39 = getelementptr inbounds [12 x i8], ptr %38, i64 0, i64 11
  %40 = load i8, ptr %39, align 1, !tbaa !17
  %41 = zext i8 %40 to i32
  %42 = and i32 %41, 128
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %63, label %44

44:                                               ; preds = %36
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.DIR, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %struct.FFOBJID, ptr %46, i32 0, i32 2
  %48 = load i8, ptr %47, align 2, !tbaa !18
  %49 = zext i8 %48 to i32
  %50 = and i32 %49, 16
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %61

52:                                               ; preds = %44
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.DIR, ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !19
  %57 = call i32 @ld_clust(ptr noundef %53, ptr noundef %56)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.DIR, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds %struct.FFOBJID, ptr %59, i32 0, i32 4
  store i32 %57, ptr %60, align 4, !tbaa !20
  br label %62

61:                                               ; preds = %44
  store i32 5, ptr %6, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %61, %52
  br label %63

63:                                               ; preds = %62, %36
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %102

66:                                               ; preds = %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.FATFS, ptr %67, i32 0, i32 6
  %69 = load i16, ptr %68, align 2, !tbaa !21
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.DIR, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %struct.FFOBJID, ptr %71, i32 0, i32 1
  store i16 %69, ptr %72, align 8, !tbaa !22
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = call i32 @dir_sdi(ptr noundef %73, i32 noundef 0)
  store i32 %74, ptr %6, align 4, !tbaa !9
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %101

77:                                               ; preds = %66
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.DIR, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds %struct.FFOBJID, ptr %79, i32 0, i32 4
  %81 = load i32, ptr %80, align 4, !tbaa !20
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %96

83:                                               ; preds = %77
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = call i32 @inc_share(ptr noundef %84, i32 noundef 0)
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.DIR, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %struct.FFOBJID, ptr %87, i32 0, i32 6
  store i32 %85, ptr %88, align 4, !tbaa !23
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.DIR, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %struct.FFOBJID, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %91, align 4, !tbaa !23
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %83
  store i32 18, ptr %6, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %94, %83
  br label %100

96:                                               ; preds = %77
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.DIR, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %struct.FFOBJID, ptr %98, i32 0, i32 6
  store i32 0, ptr %99, align 4, !tbaa !23
  br label %100

100:                                              ; preds = %96, %95
  br label %101

101:                                              ; preds = %100, %66
  br label %102

102:                                              ; preds = %101, %63
  br label %103

103:                                              ; preds = %102, %27
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  call void @ff_memfree(ptr noundef %104)
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 4
  br i1 %106, label %107, label %108

107:                                              ; preds = %103
  store i32 5, ptr %6, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %107, %103
  br label %109

109:                                              ; preds = %108, %13
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %116

112:                                              ; preds = %109
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.DIR, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds %struct.FFOBJID, ptr %114, i32 0, i32 0
  store ptr null, ptr %115, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %112, %109
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !9
  call void @unlock_volume(ptr noundef %117, i32 noundef %118)
  %119 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %119, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %120

120:                                              ; preds = %116, %25, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %121 = load i32, ptr %3, align 4
  ret i32 %121
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !13, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !7, i64 48, !10, i64 60, !6, i64 64}
!13 = !{!"", !6, i64 0, !14, i64 8, !7, i64 10, !7, i64 11, !10, i64 12, !10, i64 16, !10, i64 20}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !14, i64 6, !14, i64 8, !14, i64 10, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64}
!17 = !{!7, !7, i64 0}
!18 = !{!12, !7, i64 10}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !10, i64 12}
!21 = !{!16, !14, i64 6}
!22 = !{!12, !14, i64 8}
!23 = !{!12, !10, i64 20}


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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mount_volume(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @unlock_volume(ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare ptr @ff_memalloc(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @follow_path(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ld_clust(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @inc_share(ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @ff_memfree(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @dir_sdi(ptr noundef, i32 noundef) local_unnamed_addr #1

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

5:                                                ; preds = %2
  %6 = call i32 @mount_volume(ptr noundef nonnull %3, ptr noundef nonnull %4, i8 noundef zeroext 0)
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %.thread46

8:                                                ; preds = %5
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %9, ptr %0, align 8, !tbaa !9
  %10 = call ptr @ff_memalloc(i32 noundef 512) #3
  %.not34 = icmp eq ptr %10, null
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  br i1 %.not34, label %12, label %13

12:                                               ; preds = %8
  call void @unlock_volume(ptr noundef %11, i32 noundef 17)
  br label %50

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %10, ptr %14, align 8, !tbaa !14
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = call i32 @follow_path(ptr noundef nonnull %0, ptr noundef %15)
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %46

18:                                               ; preds = %13
  %19 = getelementptr inbounds i8, ptr %0, i64 59
  %20 = load i8, ptr %19, align 1, !tbaa !16
  %.not35 = icmp sgt i8 %20, -1
  br i1 %.not35, label %21, label %31

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 10
  %23 = load i8, ptr %22, align 2, !tbaa !17
  %24 = and i8 %23, 16
  %.not36 = icmp eq i8 %24, 0
  br i1 %.not36, label %select.unfold, label %25

25:                                               ; preds = %21
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = call i32 @ld_clust(ptr noundef %26, ptr noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %29, ptr %30, align 4, !tbaa !19
  br label %31

31:                                               ; preds = %18, %25
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 6
  %34 = load i16, ptr %33, align 2, !tbaa !20
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  store i16 %34, ptr %35, align 8, !tbaa !21
  %36 = call i32 @dir_sdi(ptr noundef nonnull %0, i32 noundef 0)
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %46

38:                                               ; preds = %31
  %39 = getelementptr inbounds i8, ptr %0, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !19
  %.not37 = icmp eq i32 %40, 0
  br i1 %.not37, label %44, label %41

41:                                               ; preds = %38
  %42 = call i32 @inc_share(ptr noundef nonnull %0, i32 noundef 0)
  %43 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %42, ptr %43, align 4, !tbaa !22
  %.not38 = icmp eq i32 %42, 0
  br i1 %.not38, label %select.unfold, label %.thread52

44:                                               ; preds = %38
  %45 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 0, ptr %45, align 4, !tbaa !22
  br label %.thread52

46:                                               ; preds = %31, %13
  %.1 = phi i32 [ %36, %31 ], [ %16, %13 ]
  %.1.fr = freeze i32 %.1
  call void @ff_memfree(ptr noundef nonnull %10) #3
  %47 = icmp eq i32 %.1.fr, 4
  %spec.select = select i1 %47, i32 5, i32 %.1.fr
  br label %.thread46

.thread52:                                        ; preds = %41, %44
  call void @ff_memfree(ptr noundef nonnull %10) #3
  br label %48

select.unfold:                                    ; preds = %41, %21
  %.1.ph = phi i32 [ 5, %21 ], [ 18, %41 ]
  call void @ff_memfree(ptr noundef nonnull %10) #3
  br label %.thread46

.thread46:                                        ; preds = %46, %5, %select.unfold
  %.249 = phi i32 [ %.1.ph, %select.unfold ], [ %6, %5 ], [ %spec.select, %46 ]
  store ptr null, ptr %0, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %.thread52, %.thread46
  %.250 = phi i32 [ %.249, %.thread46 ], [ 0, %.thread52 ]
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  call void @unlock_volume(ptr noundef %49, i32 noundef %.250)
  br label %50

50:                                               ; preds = %2, %48, %12
  %.0 = phi i32 [ %.250, %48 ], [ 17, %12 ], [ 9, %2 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"", !11, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !6, i64 40, !7, i64 48, !13, i64 60, !6, i64 64}
!11 = !{!"", !6, i64 0, !12, i64 8, !7, i64 10, !7, i64 11, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 16}
!15 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !12, i64 6, !12, i64 8, !12, i64 10, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !7, i64 64}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !7, i64 10}
!18 = !{!10, !6, i64 40}
!19 = !{!10, !13, i64 12}
!20 = !{!15, !12, i64 6}
!21 = !{!10, !12, i64 8}
!22 = !{!10, !13, i64 20}


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