; LLVM IR from seppo0010/rlite :: tests (skiplist-test)

; 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.greatest_run_info = type { i32, i32, i32, i32, i32, i32, %struct.greatest_suite_info, ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i64, i64, [1 x %struct.__jmp_buf_tag] }
%struct.greatest_suite_info = type { i32, i32, i32, i32, i64, i64, i64, i64 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@greatest_info = external global %struct.greatest_run_info, align 8
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @skiplist_test() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 -1, ptr %1, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %39, %0
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = icmp sle i32 %9, 1
  br i1 %10, label %11, label %42

11:                                               ; preds = %8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %35, %11
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 3
  br i1 %14, label %15, label %38

15:                                               ; preds = %12
  br label %16

16:                                               ; preds = %15
  %17 = call i32 @greatest_pre_test(ptr noundef @.str)
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %24

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = call i32 @basic_skiplist_test(i32 noundef %20, i32 noundef %21)
  store i32 %22, ptr %3, align 4, !tbaa !5
  %23 = load i32, ptr %3, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str, i32 noundef %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %32

24:                                               ; preds = %16
  %25 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %26 = and i32 %25, 4
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %31

28:                                               ; preds = %24
  %29 = load ptr, ptr @stdout, align 8, !tbaa !14
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.1, ptr noundef @.str) #5
  br label %31

31:                                               ; preds = %28, %24
  br label %32

32:                                               ; preds = %31, %19
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !15

38:                                               ; preds = %12
  br label %39

39:                                               ; preds = %38
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %1, align 4, !tbaa !5
  br label %8, !llvm.loop !17

42:                                               ; preds = %8
  br label %43

43:                                               ; preds = %42
  %44 = call i32 @greatest_pre_test(ptr noundef @.str.2)
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %54

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %47 = call i32 @_setjmp(ptr noundef getelementptr inbounds (%struct.greatest_run_info, ptr @greatest_info, i32 0, i32 20)) #6
  store i32 %47, ptr %4, align 4, !tbaa !5
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %46
  %51 = call i32 @basic_skiplist_first_node_test()
  store i32 %51, ptr %4, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %50, %46
  %53 = load i32, ptr %4, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.2, i32 noundef %53)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %62

54:                                               ; preds = %43
  %55 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %56 = and i32 %55, 4
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %54
  %59 = load ptr, ptr @stdout, align 8, !tbaa !14
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.1, ptr noundef @.str.2) #5
  br label %61

61:                                               ; preds = %58, %54
  br label %62

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

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %105, %64
  %66 = load i32, ptr %1, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 3
  br i1 %67, label %68, label %108

68:                                               ; preds = %65
  br label %69

69:                                               ; preds = %68
  %70 = call i32 @greatest_pre_test(ptr noundef @.str.3)
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %76

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = call i32 @basic_skiplist_delete_node_test(i32 noundef %73)
  store i32 %74, ptr %5, align 4, !tbaa !5
  %75 = load i32, ptr %5, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.3, i32 noundef %75)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %84

76:                                               ; preds = %69
  %77 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %78 = and i32 %77, 4
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %76
  %81 = load ptr, ptr @stdout, align 8, !tbaa !14
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.1, ptr noundef @.str.3) #5
  br label %83

83:                                               ; preds = %80, %76
  br label %84

84:                                               ; preds = %83, %72
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = call i32 @greatest_pre_test(ptr noundef @.str.4)
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %90, label %94

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %92 = call i32 @basic_skiplist_iterator_test(i32 noundef %91)
  store i32 %92, ptr %6, align 4, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.4, i32 noundef %93)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %102

94:                                               ; preds = %87
  %95 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %96 = and i32 %95, 4
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %101

98:                                               ; preds = %94
  %99 = load ptr, ptr @stdout, align 8, !tbaa !14
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.1, ptr noundef @.str.4) #5
  br label %101

101:                                              ; preds = %98, %94
  br label %102

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

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %1, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %1, align 4, !tbaa !5
  br label %65, !llvm.loop !18

108:                                              ; preds = %65
  br label %109

109:                                              ; preds = %108
  %110 = call i32 @greatest_pre_test(ptr noundef @.str.5)
  %111 = icmp eq i32 %110, 1
  br i1 %111, label %112, label %120

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %113 = call i32 @_setjmp(ptr noundef getelementptr inbounds (%struct.greatest_run_info, ptr @greatest_info, i32 0, i32 20)) #6
  store i32 %113, ptr %7, align 4, !tbaa !5
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %112
  %117 = call i32 @basic_skiplist_node_by_rank()
  store i32 %117, ptr %7, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %116, %112
  %119 = load i32, ptr %7, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.5, i32 noundef %119)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %128

120:                                              ; preds = %109
  %121 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %122 = and i32 %121, 4
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %127

124:                                              ; preds = %120
  %125 = load ptr, ptr @stdout, align 8, !tbaa !14
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.1, ptr noundef @.str.5) #5
  br label %127

127:                                              ; preds = %124, %120
  br label %128

128:                                              ; preds = %127, %118
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

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

declare i32 @greatest_pre_test(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_test(i32 noundef, i32 noundef) #0

declare void @greatest_post_test(ptr noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_delete_node_test(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_iterator_test(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_first_node_test() #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_node_by_rank() #0

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"greatest_run_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !13, i64 72, !6, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !6, i64 128, !6, i64 132, !13, i64 136, !13, i64 144, !12, i64 152, !12, i64 160, !7, i64 168}
!11 = !{!"greatest_suite_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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

%struct.greatest_run_info = type { i32, i32, i32, i32, i32, i32, %struct.greatest_suite_info, ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i64, i64, [1 x %struct.__jmp_buf_tag] }
%struct.greatest_suite_info = type { i32, i32, i32, i32, i64, i64, i64, i64 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@greatest_info = external global %struct.greatest_run_info, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @skiplist_test() local_unnamed_addr #0 {
.preheader:
  %0 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %1 = icmp eq i32 %0, 1
  br i1 %1, label %2, label %4

2:                                                ; preds = %.preheader
  %3 = call i32 @basic_skiplist_test(i32 noundef -1, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %3) #4
  br label %10

4:                                                ; preds = %.preheader
  %5 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %6 = and i32 %5, 4
  %.not25 = icmp eq i32 %6, 0
  br i1 %.not25, label %10, label %7

7:                                                ; preds = %4
  %8 = load ptr, ptr @stdout, align 8, !tbaa !13
  %9 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %10

10:                                               ; preds = %2, %7, %4
  %11 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %19, label %13

13:                                               ; preds = %10
  %14 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %15 = and i32 %14, 4
  %.not25.1 = icmp eq i32 %15, 0
  br i1 %.not25.1, label %21, label %16

16:                                               ; preds = %13
  %17 = load ptr, ptr @stdout, align 8, !tbaa !13
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %21

19:                                               ; preds = %10
  %20 = call i32 @basic_skiplist_test(i32 noundef -1, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %20) #4
  br label %21

21:                                               ; preds = %19, %16, %13
  %22 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %23 = icmp eq i32 %22, 1
  br i1 %23, label %30, label %24

24:                                               ; preds = %21
  %25 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %26 = and i32 %25, 4
  %.not25.2 = icmp eq i32 %26, 0
  br i1 %.not25.2, label %.preheader.1, label %27

27:                                               ; preds = %24
  %28 = load ptr, ptr @stdout, align 8, !tbaa !13
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %.preheader.1

30:                                               ; preds = %21
  %31 = call i32 @basic_skiplist_test(i32 noundef -1, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %31) #4
  br label %.preheader.1

.preheader.1:                                     ; preds = %30, %27, %24
  %32 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %40, label %34

34:                                               ; preds = %.preheader.1
  %35 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %36 = and i32 %35, 4
  %.not25.129 = icmp eq i32 %36, 0
  br i1 %.not25.129, label %42, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr @stdout, align 8, !tbaa !13
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %42

40:                                               ; preds = %.preheader.1
  %41 = call i32 @basic_skiplist_test(i32 noundef 0, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %41) #4
  br label %42

42:                                               ; preds = %40, %37, %34
  %43 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %51, label %45

45:                                               ; preds = %42
  %46 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %47 = and i32 %46, 4
  %.not25.1.1 = icmp eq i32 %47, 0
  br i1 %.not25.1.1, label %53, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr @stdout, align 8, !tbaa !13
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %53

51:                                               ; preds = %42
  %52 = call i32 @basic_skiplist_test(i32 noundef 0, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %52) #4
  br label %53

53:                                               ; preds = %51, %48, %45
  %54 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %62, label %56

56:                                               ; preds = %53
  %57 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %58 = and i32 %57, 4
  %.not25.2.1 = icmp eq i32 %58, 0
  br i1 %.not25.2.1, label %.preheader.2, label %59

59:                                               ; preds = %56
  %60 = load ptr, ptr @stdout, align 8, !tbaa !13
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %.preheader.2

62:                                               ; preds = %53
  %63 = call i32 @basic_skiplist_test(i32 noundef 0, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %63) #4
  br label %.preheader.2

.preheader.2:                                     ; preds = %62, %59, %56
  %64 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %72, label %66

66:                                               ; preds = %.preheader.2
  %67 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %68 = and i32 %67, 4
  %.not25.230 = icmp eq i32 %68, 0
  br i1 %.not25.230, label %74, label %69

69:                                               ; preds = %66
  %70 = load ptr, ptr @stdout, align 8, !tbaa !13
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %74

72:                                               ; preds = %.preheader.2
  %73 = call i32 @basic_skiplist_test(i32 noundef 1, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %73) #4
  br label %74

74:                                               ; preds = %72, %69, %66
  %75 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %83, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %79 = and i32 %78, 4
  %.not25.1.2 = icmp eq i32 %79, 0
  br i1 %.not25.1.2, label %85, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr @stdout, align 8, !tbaa !13
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %85

83:                                               ; preds = %74
  %84 = call i32 @basic_skiplist_test(i32 noundef 1, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %84) #4
  br label %85

85:                                               ; preds = %83, %80, %77
  %86 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #4
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %94, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %90 = and i32 %89, 4
  %.not25.2.2 = icmp eq i32 %90, 0
  br i1 %.not25.2.2, label %96, label %91

91:                                               ; preds = %88
  %92 = load ptr, ptr @stdout, align 8, !tbaa !13
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #4
  br label %96

94:                                               ; preds = %85
  %95 = call i32 @basic_skiplist_test(i32 noundef 1, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %95) #4
  br label %96

96:                                               ; preds = %94, %91, %88
  %97 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.2) #4
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %105

99:                                               ; preds = %96
  %100 = call i32 @_setjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @greatest_info, i64 168)) #5
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %99
  %103 = call i32 @basic_skiplist_first_node_test()
  br label %104

104:                                              ; preds = %102, %99
  %.019 = phi i32 [ %103, %102 ], [ %100, %99 ]
  call void @greatest_post_test(ptr noundef nonnull @.str.2, i32 noundef %.019) #4
  br label %111

105:                                              ; preds = %96
  %106 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %107 = and i32 %106, 4
  %.not = icmp eq i32 %107, 0
  br i1 %.not, label %111, label %108

108:                                              ; preds = %105
  %109 = load ptr, ptr @stdout, align 8, !tbaa !13
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #4
  br label %111

111:                                              ; preds = %105, %108, %104
  %112 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.3) #4
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %116

114:                                              ; preds = %111
  %115 = call i32 @basic_skiplist_delete_node_test(i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str.3, i32 noundef %115) #4
  br label %122

116:                                              ; preds = %111
  %117 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %118 = and i32 %117, 4
  %.not23 = icmp eq i32 %118, 0
  br i1 %.not23, label %122, label %119

119:                                              ; preds = %116
  %120 = load ptr, ptr @stdout, align 8, !tbaa !13
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #4
  br label %122

122:                                              ; preds = %114, %119, %116
  %123 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.4) #4
  %124 = icmp eq i32 %123, 1
  br i1 %124, label %125, label %127

125:                                              ; preds = %122
  %126 = call i32 @basic_skiplist_iterator_test(i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str.4, i32 noundef %126) #4
  br label %133

127:                                              ; preds = %122
  %128 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %129 = and i32 %128, 4
  %.not24 = icmp eq i32 %129, 0
  br i1 %.not24, label %133, label %130

130:                                              ; preds = %127
  %131 = load ptr, ptr @stdout, align 8, !tbaa !13
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #4
  br label %133

133:                                              ; preds = %125, %130, %127
  %134 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.3) #4
  %135 = icmp eq i32 %134, 1
  br i1 %135, label %142, label %136

136:                                              ; preds = %133
  %137 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %138 = and i32 %137, 4
  %.not23.1 = icmp eq i32 %138, 0
  br i1 %.not23.1, label %144, label %139

139:                                              ; preds = %136
  %140 = load ptr, ptr @stdout, align 8, !tbaa !13
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #4
  br label %144

142:                                              ; preds = %133
  %143 = call i32 @basic_skiplist_delete_node_test(i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str.3, i32 noundef %143) #4
  br label %144

144:                                              ; preds = %142, %139, %136
  %145 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.4) #4
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %153, label %147

147:                                              ; preds = %144
  %148 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %149 = and i32 %148, 4
  %.not24.1 = icmp eq i32 %149, 0
  br i1 %.not24.1, label %155, label %150

150:                                              ; preds = %147
  %151 = load ptr, ptr @stdout, align 8, !tbaa !13
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #4
  br label %155

153:                                              ; preds = %144
  %154 = call i32 @basic_skiplist_iterator_test(i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str.4, i32 noundef %154) #4
  br label %155

155:                                              ; preds = %153, %150, %147
  %156 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.3) #4
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %164, label %158

158:                                              ; preds = %155
  %159 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %160 = and i32 %159, 4
  %.not23.2 = icmp eq i32 %160, 0
  br i1 %.not23.2, label %166, label %161

161:                                              ; preds = %158
  %162 = load ptr, ptr @stdout, align 8, !tbaa !13
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #4
  br label %166

164:                                              ; preds = %155
  %165 = call i32 @basic_skiplist_delete_node_test(i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.3, i32 noundef %165) #4
  br label %166

166:                                              ; preds = %164, %161, %158
  %167 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.4) #4
  %168 = icmp eq i32 %167, 1
  br i1 %168, label %175, label %169

169:                                              ; preds = %166
  %170 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %171 = and i32 %170, 4
  %.not24.2 = icmp eq i32 %171, 0
  br i1 %.not24.2, label %177, label %172

172:                                              ; preds = %169
  %173 = load ptr, ptr @stdout, align 8, !tbaa !13
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #4
  br label %177

175:                                              ; preds = %166
  %176 = call i32 @basic_skiplist_iterator_test(i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.4, i32 noundef %176) #4
  br label %177

177:                                              ; preds = %175, %172, %169
  %178 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.5) #4
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %186

180:                                              ; preds = %177
  %181 = call i32 @_setjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @greatest_info, i64 168)) #5
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %183, label %185

183:                                              ; preds = %180
  %184 = call i32 @basic_skiplist_node_by_rank()
  br label %185

185:                                              ; preds = %183, %180
  %.0 = phi i32 [ %184, %183 ], [ %181, %180 ]
  call void @greatest_post_test(ptr noundef nonnull @.str.5, i32 noundef %.0) #4
  br label %192

186:                                              ; preds = %177
  %187 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %188 = and i32 %187, 4
  %.not22 = icmp eq i32 %188, 0
  br i1 %.not22, label %192, label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr @stdout, align 8, !tbaa !13
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #4
  br label %192

192:                                              ; preds = %186, %189, %185
  ret void
}

declare i32 @greatest_pre_test(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_test(i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @greatest_post_test(ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_delete_node_test(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_iterator_test(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_first_node_test() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_skiplist_node_by_rank() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind returns_twice "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind returns_twice }

!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, !7, i64 0}
!6 = !{!"greatest_run_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !7, i64 128, !7, i64 132, !12, i64 136, !12, i64 144, !11, i64 152, !11, i64 160, !8, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"greatest_suite_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"long", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!12, !12, i64 0}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass