; LLVM IR from litespeedtech/ls-qpack :: lsqpack (lsqpack_dec_cleanup)

; 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.lsqpack_dec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, %struct.lsqpack_ringbuf, %struct.anon.8, [8 x %struct.anon.9], i32, float, %struct.anon.10, %struct.lsqpack_dec_err }
%struct.lsqpack_ringbuf = type { i32, i32, i32, ptr }
%struct.anon.8 = type { ptr, ptr }
%struct.anon.9 = type { ptr, ptr }
%struct.anon.10 = type { i32, %union.anon }
%union.anon = type { %struct.anon.11 }
%struct.anon.11 = type { %struct.lsqpack_dec_int_state, %struct.lsqpack_huff_decode_state, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i8, i8 }
%struct.lsqpack_dec_int_state = type { i32, i32, i32, i64 }
%struct.lsqpack_huff_decode_state = type { i32, %struct.lsqpack_decode_status }
%struct.lsqpack_decode_status = type { i8, i8 }
%struct.lsqpack_dec_err = type { i32, i32, i64, i64 }
%struct.header_block_read_ctx = type { %struct.anon.15, %struct.anon.15, ptr, i64, i64, i64, i32, i32, i32, %struct.anon.16, ptr, i32, %struct.hbrc_buf, %union.anon.17 }
%struct.anon.15 = type { ptr, ptr }
%struct.anon.16 = type { ptr, i32, i32 }
%struct.hbrc_buf = type { ptr, i64, i64 }
%union.anon.17 = type { %struct.anon.22 }
%struct.anon.22 = type { i32, i32, i32, i32, i32, %struct.lsqpack_dec_int_state, %struct.lsqpack_huff_decode_state }
%struct.anon.12 = type { %struct.lsqpack_dec_int_state, %struct.lsqpack_huff_decode_state, i32, ptr, i32, i32, i32, i8 }

@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @lsqpack_dec_cleanup(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.lsqpack_dec, ptr %6, i32 0, i32 13
  %8 = getelementptr inbounds %struct.anon.8, ptr %7, i32 0, i32 0
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %9, ptr %4, align 8, !tbaa !5
  br label %10

10:                                               ; preds = %19, %1
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %21

13:                                               ; preds = %10
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.header_block_read_ctx, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.anon.15, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  store ptr %17, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %18) #3
  br label %19

19:                                               ; preds = %13
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %20, ptr %4, align 8, !tbaa !5
  br label %10, !llvm.loop !22

21:                                               ; preds = %10
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.lsqpack_dec, ptr %22, i32 0, i32 17
  %24 = getelementptr inbounds %struct.anon.10, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !24
  %26 = icmp sge i32 %25, 1
  br i1 %26, label %27, label %47

27:                                               ; preds = %21
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.lsqpack_dec, ptr %28, i32 0, i32 17
  %30 = getelementptr inbounds %struct.anon.10, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !24
  %32 = icmp sle i32 %31, 5
  br i1 %32, label %33, label %47

33:                                               ; preds = %27
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.lsqpack_dec, ptr %34, i32 0, i32 17
  %36 = getelementptr inbounds %struct.anon.10, ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds %struct.anon.11, ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %37, align 8, !tbaa !25
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %46

40:                                               ; preds = %33
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.lsqpack_dec, ptr %41, i32 0, i32 17
  %43 = getelementptr inbounds %struct.anon.10, ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %struct.anon.11, ptr %43, i32 0, i32 5
  %45 = load ptr, ptr %44, align 8, !tbaa !25
  call void @free(ptr noundef %45) #3
  br label %46

46:                                               ; preds = %40, %33
  br label %74

47:                                               ; preds = %27, %21
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.lsqpack_dec, ptr %48, i32 0, i32 17
  %50 = getelementptr inbounds %struct.anon.10, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !24
  %52 = icmp sge i32 %51, 8
  br i1 %52, label %53, label %73

53:                                               ; preds = %47
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.lsqpack_dec, ptr %54, i32 0, i32 17
  %56 = getelementptr inbounds %struct.anon.10, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !24
  %58 = icmp sle i32 %57, 14
  br i1 %58, label %59, label %73

59:                                               ; preds = %53
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.lsqpack_dec, ptr %60, i32 0, i32 17
  %62 = getelementptr inbounds %struct.anon.10, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %struct.anon.12, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !25
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %72

66:                                               ; preds = %59
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.lsqpack_dec, ptr %67, i32 0, i32 17
  %69 = getelementptr inbounds %struct.anon.10, ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds %struct.anon.12, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  call void @free(ptr noundef %71) #3
  br label %72

72:                                               ; preds = %66, %59
  br label %73

73:                                               ; preds = %72, %53, %47
  br label %74

74:                                               ; preds = %73, %46
  br label %75

75:                                               ; preds = %81, %74
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.lsqpack_dec, ptr %76, i32 0, i32 12
  %78 = call i32 @ringbuf_empty(ptr noundef %77)
  %79 = icmp ne i32 %78, 0
  %80 = xor i1 %79, true
  br i1 %80, label %81, label %86

81:                                               ; preds = %75
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.lsqpack_dec, ptr %82, i32 0, i32 12
  %84 = call ptr @ringbuf_advance_tail(ptr noundef %83)
  store ptr %84, ptr %3, align 8, !tbaa !5
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qdec_decref_entry(ptr noundef %85)
  br label %75, !llvm.loop !26

86:                                               ; preds = %75
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.lsqpack_dec, ptr %87, i32 0, i32 12
  call void @ringbuf_cleanup(ptr noundef %88)
  br label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.lsqpack_dec, ptr %90, i32 0, i32 11
  %92 = load ptr, ptr %91, align 8, !tbaa !27
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %107

94:                                               ; preds = %89
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.lsqpack_dec, ptr %95, i32 0, i32 11
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.37) #3
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.lsqpack_dec, ptr %99, i32 0, i32 11
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.6) #3
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.lsqpack_dec, ptr %103, i32 0, i32 11
  %105 = load ptr, ptr %104, align 8, !tbaa !27
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.2) #3
  br label %107

107:                                              ; preds = %94, %89
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @ringbuf_empty(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @ringbuf_advance_tail(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @qdec_decref_entry(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @ringbuf_cleanup(ptr noundef) #2

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 80}
!10 = !{!"lsqpack_dec", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48, !12, i64 56, !13, i64 80, !7, i64 96, !11, i64 224, !14, i64 228, !15, i64 232, !16, i64 328}
!11 = !{!"int", !7, i64 0}
!12 = !{!"lsqpack_ringbuf", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!13 = !{!"", !6, i64 0, !6, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = !{!"", !11, i64 0, !7, i64 8}
!16 = !{!"lsqpack_dec_err", !11, i64 0, !11, i64 4, !17, i64 8, !17, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"header_block_read_ctx", !13, i64 0, !13, i64 16, !6, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !20, i64 80, !6, i64 96, !11, i64 104, !21, i64 112, !7, i64 136}
!20 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12}
!21 = !{!"hbrc_buf", !6, i64 0, !17, i64 8, !17, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!10, !11, i64 232}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !23}
!27 = !{!10, !6, i64 48}


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

@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @lsqpack_dec_cleanup(ptr noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 80
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not31 = icmp eq ptr %3, null
  br i1 %.not31, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.032 = phi ptr [ %4, %.lr.ph ], [ %3, %1 ]
  %4 = load ptr, ptr %.032, align 8, !tbaa !17
  tail call void @free(ptr noundef nonnull %.032) #3
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph, %1
  %5 = getelementptr inbounds i8, ptr %0, i64 232
  %6 = load i32, ptr %5, align 8, !tbaa !23
  %7 = add i32 %6, -1
  %or.cond = icmp ult i32 %7, 5
  br i1 %or.cond, label %8, label %11

8:                                                ; preds = %._crit_edge
  %9 = getelementptr inbounds i8, ptr %0, i64 288
  %10 = load ptr, ptr %9, align 8, !tbaa !24
  %.not27 = icmp eq ptr %10, null
  br i1 %.not27, label %16, label %.sink.split

11:                                               ; preds = %._crit_edge
  %12 = add i32 %6, -8
  %or.cond30 = icmp ult i32 %12, 7
  br i1 %or.cond30, label %13, label %16

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 280
  %15 = load ptr, ptr %14, align 8, !tbaa !24
  %.not26 = icmp eq ptr %15, null
  br i1 %.not26, label %16, label %.sink.split

.sink.split:                                      ; preds = %13, %8
  %.sink = phi ptr [ %10, %8 ], [ %15, %13 ]
  tail call void @free(ptr noundef nonnull %.sink) #3
  br label %16

16:                                               ; preds = %.sink.split, %11, %13, %8
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  %18 = tail call i32 @ringbuf_empty(ptr noundef nonnull %17)
  %.not2833 = icmp eq i32 %18, 0
  br i1 %.not2833, label %.lr.ph35, label %._crit_edge36

.lr.ph35:                                         ; preds = %16, %.lr.ph35
  %19 = tail call ptr @ringbuf_advance_tail(ptr noundef nonnull %17)
  tail call void @qdec_decref_entry(ptr noundef %19)
  %20 = tail call i32 @ringbuf_empty(ptr noundef nonnull %17)
  %.not28 = icmp eq i32 %20, 0
  br i1 %.not28, label %.lr.ph35, label %._crit_edge36, !llvm.loop !25

._crit_edge36:                                    ; preds = %.lr.ph35, %16
  tail call void @ringbuf_cleanup(ptr noundef nonnull %17)
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  %22 = load ptr, ptr %21, align 8, !tbaa !26
  %.not29 = icmp eq ptr %22, null
  br i1 %.not29, label %29, label %23

23:                                               ; preds = %._crit_edge36
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str.37) #3
  %25 = load ptr, ptr %21, align 8, !tbaa !26
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.6) #3
  %27 = load ptr, ptr %21, align 8, !tbaa !26
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.2) #3
  br label %29

29:                                               ; preds = %23, %._crit_edge36
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @ringbuf_empty(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @ringbuf_advance_tail(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @qdec_decref_entry(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @ringbuf_cleanup(ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 80}
!6 = !{!"lsqpack_dec", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !11, i64 56, !12, i64 80, !8, i64 96, !7, i64 224, !13, i64 228, !14, i64 232, !15, i64 328}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"lsqpack_ringbuf", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = !{!"float", !8, i64 0}
!14 = !{!"", !7, i64 0, !8, i64 8}
!15 = !{!"lsqpack_dec_err", !7, i64 0, !7, i64 4, !16, i64 8, !16, i64 16}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"header_block_read_ctx", !12, i64 0, !12, i64 16, !10, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !19, i64 80, !10, i64 96, !7, i64 104, !20, i64 112, !8, i64 136}
!19 = !{!"", !10, i64 0, !7, i64 8, !7, i64 12}
!20 = !{!"hbrc_buf", !10, i64 0, !16, i64 8, !16, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !7, i64 232}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !22}
!26 = !{!6, !10, i64 48}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass