; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (grid_point_generator3)

; 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.jet::Vector" = type { double, double, double }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet19GridPointGenerator312forEachPointERKNS_11BoundingBoxIdLm3EEEdRKSt8functionIFbRKNS_6VectorIdLm3EEEEE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) unnamed_addr #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.jet::Vector", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call noundef double @_ZNK3jet11BoundingBoxIdLm3EE5widthEv(ptr noundef nonnull align 8 dereferenceable(48) %19)
  store double %20, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call noundef double @_ZNK3jet11BoundingBoxIdLm3EE6heightEv(ptr noundef nonnull align 8 dereferenceable(48) %21)
  store double %22, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef double @_ZNK3jet11BoundingBoxIdLm3EE5depthEv(ptr noundef nonnull align 8 dereferenceable(48) %23)
  store double %24, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  store i8 0, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %25

25:                                               ; preds = %110, %4
  %26 = load i32, ptr %14, align 4, !tbaa !13
  %27 = sitofp i32 %26 to double
  %28 = load double, ptr %7, align 8, !tbaa !9
  %29 = fmul double %27, %28
  %30 = load double, ptr %12, align 8, !tbaa !9
  %31 = fcmp ole double %29, %30
  br i1 %31, label %32, label %36

32:                                               ; preds = %25
  %33 = load i8, ptr %13, align 1, !tbaa !11, !range !15, !noundef !16
  %34 = trunc i8 %33 to i1
  %35 = xor i1 %34, true
  br label %36

36:                                               ; preds = %32, %25
  %37 = phi i1 [ false, %25 ], [ %35, %32 ]
  br i1 %37, label %39, label %38

38:                                               ; preds = %36
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %113

39:                                               ; preds = %36
  %40 = load i32, ptr %14, align 4, !tbaa !13
  %41 = sitofp i32 %40 to double
  %42 = load double, ptr %7, align 8, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.jet::BoundingBox", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %"class.jet::Vector", ptr %44, i32 0, i32 2
  %46 = load double, ptr %45, align 8, !tbaa !17
  %47 = call double @llvm.fmuladd.f64(double %41, double %42, double %46)
  %48 = getelementptr inbounds %"class.jet::Vector", ptr %9, i32 0, i32 2
  store double %47, ptr %48, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !13
  br label %49

49:                                               ; preds = %106, %39
  %50 = load i32, ptr %16, align 4, !tbaa !13
  %51 = sitofp i32 %50 to double
  %52 = load double, ptr %7, align 8, !tbaa !9
  %53 = fmul double %51, %52
  %54 = load double, ptr %11, align 8, !tbaa !9
  %55 = fcmp ole double %53, %54
  br i1 %55, label %56, label %60

56:                                               ; preds = %49
  %57 = load i8, ptr %13, align 1, !tbaa !11, !range !15, !noundef !16
  %58 = trunc i8 %57 to i1
  %59 = xor i1 %58, true
  br label %60

60:                                               ; preds = %56, %49
  %61 = phi i1 [ false, %49 ], [ %59, %56 ]
  br i1 %61, label %63, label %62

62:                                               ; preds = %60
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %109

63:                                               ; preds = %60
  %64 = load i32, ptr %16, align 4, !tbaa !13
  %65 = sitofp i32 %64 to double
  %66 = load double, ptr %7, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.jet::BoundingBox", ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %"class.jet::Vector", ptr %68, i32 0, i32 1
  %70 = load double, ptr %69, align 8, !tbaa !21
  %71 = call double @llvm.fmuladd.f64(double %65, double %66, double %70)
  %72 = getelementptr inbounds %"class.jet::Vector", ptr %9, i32 0, i32 1
  store double %71, ptr %72, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %73

73:                                               ; preds = %101, %63
  %74 = load i32, ptr %17, align 4, !tbaa !13
  %75 = sitofp i32 %74 to double
  %76 = load double, ptr %7, align 8, !tbaa !9
  %77 = fmul double %75, %76
  %78 = load double, ptr %10, align 8, !tbaa !9
  %79 = fcmp ole double %77, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %73
  %81 = load i8, ptr %13, align 1, !tbaa !11, !range !15, !noundef !16
  %82 = trunc i8 %81 to i1
  %83 = xor i1 %82, true
  br label %84

84:                                               ; preds = %80, %73
  %85 = phi i1 [ false, %73 ], [ %83, %80 ]
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  store i32 8, ptr %15, align 4
  br label %104

87:                                               ; preds = %84
  %88 = load i32, ptr %17, align 4, !tbaa !13
  %89 = sitofp i32 %88 to double
  %90 = load double, ptr %7, align 8, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.jet::BoundingBox", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"class.jet::Vector", ptr %92, i32 0, i32 0
  %94 = load double, ptr %93, align 8, !tbaa !23
  %95 = call double @llvm.fmuladd.f64(double %89, double %90, double %94)
  %96 = getelementptr inbounds %"class.jet::Vector", ptr %9, i32 0, i32 0
  store double %95, ptr %96, align 8, !tbaa !24
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZNKSt8functionIFbRKN3jet6VectorIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef nonnull align 8 dereferenceable(24) %9)
  br i1 %98, label %100, label %99

99:                                               ; preds = %87
  store i8 1, ptr %13, align 1, !tbaa !11
  store i32 8, ptr %15, align 4
  br label %104

100:                                              ; preds = %87
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %17, align 4, !tbaa !13
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %17, align 4, !tbaa !13
  br label %73, !llvm.loop !25

104:                                              ; preds = %99, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %16, align 4, !tbaa !13
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %16, align 4, !tbaa !13
  br label %49, !llvm.loop !27

109:                                              ; preds = %62
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %14, align 4, !tbaa !13
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !13
  br label %25, !llvm.loop !28

113:                                              ; preds = %38
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  ret void
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !10, i64 16}
!18 = !{!"_ZTSN3jet11BoundingBoxIdLm3EEE", !19, i64 0, !19, i64 24}
!19 = !{!"_ZTSN3jet6VectorIdLm3EEE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!19, !10, i64 16}
!21 = !{!18, !10, i64 8}
!22 = !{!19, !10, i64 8}
!23 = !{!18, !10, i64 0}
!24 = !{!19, !10, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


; 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.jet::Vector" = type { double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet19GridPointGenerator312forEachPointERKNS_11BoundingBoxIdLm3EEEdRKSt8functionIFbRKNS_6VectorIdLm3EEEEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) unnamed_addr #0 align 2 {
  %5 = alloca %"class.jet::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %6 = call noundef double @_ZNK3jet11BoundingBoxIdLm3EE5widthEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %7 = call noundef double @_ZNK3jet11BoundingBoxIdLm3EE6heightEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %8 = call noundef double @_ZNK3jet11BoundingBoxIdLm3EE5depthEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %9 = fmul double %2, 0.000000e+00
  %10 = fcmp ugt double %9, %8
  br i1 %10, label %._crit_edge49, label %.lr.ph48

.lr.ph48:                                         ; preds = %4
  %11 = getelementptr inbounds i8, ptr %1, i64 16
  %12 = getelementptr inbounds i8, ptr %5, i64 16
  %13 = fcmp ugt double %9, %7
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  %16 = fcmp ugt double %9, %6
  %or.cond = or i1 %13, %16
  br i1 %or.cond, label %._crit_edge49, label %.lr.ph48.split.split

._crit_edge49:                                    ; preds = %._crit_edge41.split, %32, %.lr.ph48, %4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  ret void

.lr.ph48.split.split:                             ; preds = %.lr.ph48, %._crit_edge41.split
  %17 = phi double [ %21, %._crit_edge41.split ], [ 0.000000e+00, %.lr.ph48 ]
  %.02946 = phi i32 [ %20, %._crit_edge41.split ], [ 0, %.lr.ph48 ]
  %18 = load double, ptr %11, align 8, !tbaa !5
  %19 = call double @llvm.fmuladd.f64(double %17, double %2, double %18)
  store double %19, ptr %12, align 8, !tbaa !11
  br label %.lr.ph

._crit_edge41.split:                              ; preds = %._crit_edge
  %20 = add nuw nsw i32 %.02946, 1
  %21 = uitofp nneg i32 %20 to double
  %22 = fmul double %21, %2
  %23 = fcmp ugt double %22, %8
  br i1 %23, label %._crit_edge49, label %.lr.ph48.split.split, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph48.split.split, %._crit_edge
  %24 = phi double [ %38, %._crit_edge ], [ 0.000000e+00, %.lr.ph48.split.split ]
  %.02838 = phi i32 [ %37, %._crit_edge ], [ 0, %.lr.ph48.split.split ]
  %25 = load double, ptr %14, align 8, !tbaa !14
  %26 = call double @llvm.fmuladd.f64(double %24, double %2, double %25)
  store double %26, ptr %15, align 8, !tbaa !15
  br label %32

27:                                               ; preds = %32
  %28 = add nuw nsw i32 %.033, 1
  %29 = uitofp nneg i32 %28 to double
  %30 = fmul double %29, %2
  %31 = fcmp ugt double %30, %6
  br i1 %31, label %._crit_edge, label %32, !llvm.loop !16

32:                                               ; preds = %.lr.ph, %27
  %33 = phi double [ 0.000000e+00, %.lr.ph ], [ %29, %27 ]
  %.033 = phi i32 [ 0, %.lr.ph ], [ %28, %27 ]
  %34 = load double, ptr %1, align 8, !tbaa !17
  %35 = call double @llvm.fmuladd.f64(double %33, double %2, double %34)
  store double %35, ptr %5, align 8, !tbaa !18
  %36 = call noundef zeroext i1 @_ZNKSt8functionIFbRKN3jet6VectorIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %36, label %27, label %._crit_edge49

._crit_edge:                                      ; preds = %27
  %37 = add nuw nsw i32 %.02838, 1
  %38 = uitofp nneg i32 %37 to double
  %39 = fmul double %38, %2
  %40 = fcmp ugt double %39, %7
  br i1 %40, label %._crit_edge41.split, label %.lr.ph, !llvm.loop !19
}

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 16}
!6 = !{!"_ZTSN3jet11BoundingBoxIdLm3EEE", !7, i64 0, !7, i64 24}
!7 = !{!"_ZTSN3jet6VectorIdLm3EEE", !8, i64 0, !8, i64 8, !8, i64 16}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!7, !8, i64 16}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !8, i64 8}
!15 = !{!7, !8, i64 8}
!16 = distinct !{!16, !13}
!17 = !{!6, !8, i64 0}
!18 = !{!7, !8, i64 0}
!19 = distinct !{!19, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass