; LLVM IR from seppo0010/rlite :: tests (type_list-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 [22 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 [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @type_list_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
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %215, %0
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 3
  br i1 %15, label %16, label %218

16:                                               ; preds = %13
  br label %17

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

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

24:                                               ; preds = %17
  %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) #4
  br label %31

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

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

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = call i32 @greatest_pre_test(ptr noundef @.str.2)
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %42

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = call i32 @basic_test_lpush_lpop(i32 noundef 100, i32 noundef %39)
  store i32 %40, ptr %3, align 4, !tbaa !5
  %41 = load i32, ptr %3, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.2, i32 noundef %41)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %50

42:                                               ; preds = %35
  %43 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %44 = and i32 %43, 4
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %42
  %47 = load ptr, ptr @stdout, align 8, !tbaa !14
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.1, ptr noundef @.str.2) #4
  br label %49

49:                                               ; preds = %46, %42
  br label %50

50:                                               ; preds = %49, %38
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = call i32 @greatest_pre_test(ptr noundef @.str.3)
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %56, label %60

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %57 = load i32, ptr %1, align 4, !tbaa !5
  %58 = call i32 @basic_test_rpush_lpop(i32 noundef 100, i32 noundef %57)
  store i32 %58, ptr %4, align 4, !tbaa !5
  %59 = load i32, ptr %4, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.3, i32 noundef %59)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %68

60:                                               ; preds = %53
  %61 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %62 = and i32 %61, 4
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %60
  %65 = load ptr, ptr @stdout, align 8, !tbaa !14
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.1, ptr noundef @.str.3) #4
  br label %67

67:                                               ; preds = %64, %60
  br label %68

68:                                               ; preds = %67, %56
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = call i32 @greatest_pre_test(ptr noundef @.str.4)
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %78

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %76 = call i32 @basic_test_lpush_rpop(i32 noundef 500, i32 noundef %75)
  store i32 %76, ptr %5, align 4, !tbaa !5
  %77 = load i32, ptr %5, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.4, i32 noundef %77)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %86

78:                                               ; preds = %71
  %79 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %80 = and i32 %79, 4
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %85

82:                                               ; preds = %78
  %83 = load ptr, ptr @stdout, align 8, !tbaa !14
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.1, ptr noundef @.str.4) #4
  br label %85

85:                                               ; preds = %82, %78
  br label %86

86:                                               ; preds = %85, %74
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = call i32 @greatest_pre_test(ptr noundef @.str.5)
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %96

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = call i32 @basic_test_lpush_lindex(i32 noundef 100, i32 noundef %93)
  store i32 %94, ptr %6, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.5, i32 noundef %95)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %104

96:                                               ; preds = %89
  %97 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %98 = and i32 %97, 4
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %103

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

103:                                              ; preds = %100, %96
  br label %104

104:                                              ; preds = %103, %92
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  %108 = call i32 @greatest_pre_test(ptr noundef @.str.6)
  %109 = icmp eq i32 %108, 1
  br i1 %109, label %110, label %114

110:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %111 = load i32, ptr %1, align 4, !tbaa !5
  %112 = call i32 @basic_test_lpush_linsert(i32 noundef %111)
  store i32 %112, ptr %7, align 4, !tbaa !5
  %113 = load i32, ptr %7, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.6, i32 noundef %113)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %122

114:                                              ; preds = %107
  %115 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %116 = and i32 %115, 4
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %121

118:                                              ; preds = %114
  %119 = load ptr, ptr @stdout, align 8, !tbaa !14
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.1, ptr noundef @.str.6) #4
  br label %121

121:                                              ; preds = %118, %114
  br label %122

122:                                              ; preds = %121, %110
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  %126 = call i32 @greatest_pre_test(ptr noundef @.str.7)
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %132

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %129 = load i32, ptr %1, align 4, !tbaa !5
  %130 = call i32 @basic_test_lpushx(i32 noundef %129)
  store i32 %130, ptr %8, align 4, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.7, i32 noundef %131)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %140

132:                                              ; preds = %125
  %133 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %134 = and i32 %133, 4
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %139

136:                                              ; preds = %132
  %137 = load ptr, ptr @stdout, align 8, !tbaa !14
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.1, ptr noundef @.str.7) #4
  br label %139

139:                                              ; preds = %136, %132
  br label %140

140:                                              ; preds = %139, %128
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = call i32 @greatest_pre_test(ptr noundef @.str.8)
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %146, label %150

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %147 = load i32, ptr %1, align 4, !tbaa !5
  %148 = call i32 @basic_test_lrange(i32 noundef %147)
  store i32 %148, ptr %9, align 4, !tbaa !5
  %149 = load i32, ptr %9, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.8, i32 noundef %149)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %158

150:                                              ; preds = %143
  %151 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %152 = and i32 %151, 4
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %157

154:                                              ; preds = %150
  %155 = load ptr, ptr @stdout, align 8, !tbaa !14
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.1, ptr noundef @.str.8) #4
  br label %157

157:                                              ; preds = %154, %150
  br label %158

158:                                              ; preds = %157, %146
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  %162 = call i32 @greatest_pre_test(ptr noundef @.str.9)
  %163 = icmp eq i32 %162, 1
  br i1 %163, label %164, label %168

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %165 = load i32, ptr %1, align 4, !tbaa !5
  %166 = call i32 @basic_test_lrem(i32 noundef %165)
  store i32 %166, ptr %10, align 4, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.9, i32 noundef %167)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %176

168:                                              ; preds = %161
  %169 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %170 = and i32 %169, 4
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %175

172:                                              ; preds = %168
  %173 = load ptr, ptr @stdout, align 8, !tbaa !14
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.1, ptr noundef @.str.9) #4
  br label %175

175:                                              ; preds = %172, %168
  br label %176

176:                                              ; preds = %175, %164
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  %180 = call i32 @greatest_pre_test(ptr noundef @.str.10)
  %181 = icmp eq i32 %180, 1
  br i1 %181, label %182, label %186

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %183 = load i32, ptr %1, align 4, !tbaa !5
  %184 = call i32 @basic_test_lset(i32 noundef 100, i32 noundef %183)
  store i32 %184, ptr %11, align 4, !tbaa !5
  %185 = load i32, ptr %11, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.10, i32 noundef %185)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %194

186:                                              ; preds = %179
  %187 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %188 = and i32 %187, 4
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %193

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

193:                                              ; preds = %190, %186
  br label %194

194:                                              ; preds = %193, %182
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  %198 = call i32 @greatest_pre_test(ptr noundef @.str.11)
  %199 = icmp eq i32 %198, 1
  br i1 %199, label %200, label %204

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %201 = load i32, ptr %1, align 4, !tbaa !5
  %202 = call i32 @basic_test_ltrim(i32 noundef %201)
  store i32 %202, ptr %12, align 4, !tbaa !5
  %203 = load i32, ptr %12, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.11, i32 noundef %203)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %212

204:                                              ; preds = %197
  %205 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %206 = and i32 %205, 4
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %211

208:                                              ; preds = %204
  %209 = load ptr, ptr @stdout, align 8, !tbaa !14
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.1, ptr noundef @.str.11) #4
  br label %211

211:                                              ; preds = %208, %204
  br label %212

212:                                              ; preds = %211, %200
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %1, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %1, align 4, !tbaa !5
  br label %13, !llvm.loop !15

218:                                              ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  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_test_lpush_llen(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 uwtable
declare hidden i32 @basic_test_lpush_lpop(i32 noundef, i32 noundef) #0

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_test_ltrim(i32 noundef) #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 }

!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"}


; 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 [22 x i8], align 1
@greatest_info = external local_unnamed_addr 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 [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @type_list_test() local_unnamed_addr #0 {
  br label %1

1:                                                ; preds = %0, %122
  %.034 = phi i32 [ 0, %0 ], [ %123, %122 ]
  %2 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str) #3
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  %5 = tail call i32 @basic_test_lpush_llen(i32 noundef 100, i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %5) #3
  br label %12

6:                                                ; preds = %1
  %7 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %8 = and i32 %7, 4
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %12, label %9

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

12:                                               ; preds = %4, %9, %6
  %13 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.2) #3
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %17

15:                                               ; preds = %12
  %16 = tail call i32 @basic_test_lpush_lpop(i32 noundef 100, i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.2, i32 noundef %16) #3
  br label %23

17:                                               ; preds = %12
  %18 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %19 = and i32 %18, 4
  %.not24 = icmp eq i32 %19, 0
  br i1 %.not24, label %23, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr @stdout, align 8, !tbaa !13
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #3
  br label %23

23:                                               ; preds = %15, %20, %17
  %24 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.3) #3
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = tail call i32 @basic_test_rpush_lpop(i32 noundef 100, i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.3, i32 noundef %27) #3
  br label %34

28:                                               ; preds = %23
  %29 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %30 = and i32 %29, 4
  %.not25 = icmp eq i32 %30, 0
  br i1 %.not25, label %34, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr @stdout, align 8, !tbaa !13
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #3
  br label %34

34:                                               ; preds = %26, %31, %28
  %35 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.4) #3
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = tail call i32 @basic_test_lpush_rpop(i32 noundef 500, i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.4, i32 noundef %38) #3
  br label %45

39:                                               ; preds = %34
  %40 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %41 = and i32 %40, 4
  %.not26 = icmp eq i32 %41, 0
  br i1 %.not26, label %45, label %42

42:                                               ; preds = %39
  %43 = load ptr, ptr @stdout, align 8, !tbaa !13
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #3
  br label %45

45:                                               ; preds = %37, %42, %39
  %46 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.5) #3
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %50

48:                                               ; preds = %45
  %49 = tail call i32 @basic_test_lpush_lindex(i32 noundef 100, i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.5, i32 noundef %49) #3
  br label %56

50:                                               ; preds = %45
  %51 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %52 = and i32 %51, 4
  %.not27 = icmp eq i32 %52, 0
  br i1 %.not27, label %56, label %53

53:                                               ; preds = %50
  %54 = load ptr, ptr @stdout, align 8, !tbaa !13
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #3
  br label %56

56:                                               ; preds = %48, %53, %50
  %57 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.6) #3
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %61

59:                                               ; preds = %56
  %60 = tail call i32 @basic_test_lpush_linsert(i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.6, i32 noundef %60) #3
  br label %67

61:                                               ; preds = %56
  %62 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %63 = and i32 %62, 4
  %.not28 = icmp eq i32 %63, 0
  br i1 %.not28, label %67, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr @stdout, align 8, !tbaa !13
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #3
  br label %67

67:                                               ; preds = %59, %64, %61
  %68 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.7) #3
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = tail call i32 @basic_test_lpushx(i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.7, i32 noundef %71) #3
  br label %78

72:                                               ; preds = %67
  %73 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %74 = and i32 %73, 4
  %.not29 = icmp eq i32 %74, 0
  br i1 %.not29, label %78, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr @stdout, align 8, !tbaa !13
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7) #3
  br label %78

78:                                               ; preds = %70, %75, %72
  %79 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.8) #3
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %83

81:                                               ; preds = %78
  %82 = tail call i32 @basic_test_lrange(i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.8, i32 noundef %82) #3
  br label %89

83:                                               ; preds = %78
  %84 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %85 = and i32 %84, 4
  %.not30 = icmp eq i32 %85, 0
  br i1 %.not30, label %89, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr @stdout, align 8, !tbaa !13
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #3
  br label %89

89:                                               ; preds = %81, %86, %83
  %90 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.9) #3
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %94

92:                                               ; preds = %89
  %93 = tail call i32 @basic_test_lrem(i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.9, i32 noundef %93) #3
  br label %100

94:                                               ; preds = %89
  %95 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %96 = and i32 %95, 4
  %.not31 = icmp eq i32 %96, 0
  br i1 %.not31, label %100, label %97

97:                                               ; preds = %94
  %98 = load ptr, ptr @stdout, align 8, !tbaa !13
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.9) #3
  br label %100

100:                                              ; preds = %92, %97, %94
  %101 = tail call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #3
  %102 = icmp eq i32 %101, 1
  br i1 %102, label %103, label %105

103:                                              ; preds = %100
  %104 = tail call i32 @basic_test_lset(i32 noundef 100, i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %104) #3
  br label %111

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

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

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

114:                                              ; preds = %111
  %115 = tail call i32 @basic_test_ltrim(i32 noundef %.034)
  tail call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %115) #3
  br label %122

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

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

122:                                              ; preds = %114, %119, %116
  %123 = add nuw nsw i32 %.034, 1
  %exitcond.not = icmp eq i32 %123, 3
  br i1 %exitcond.not, label %124, label %1, !llvm.loop !14

124:                                              ; preds = %122
  ret void
}

declare i32 @greatest_pre_test(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_test_lpush_llen(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 uwtable
declare hidden i32 @basic_test_lpush_lpop(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_test_ltrim(i32 noundef) 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 }

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


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