; LLVM IR from pmwkaa/monotone :: monotone/main/command (parse)

; 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.Runtime = type { %struct.ExceptionMgr, %struct.Error, ptr }
%struct.ExceptionMgr = type { ptr }
%struct.Error = type { [256 x i8], i32, ptr, ptr, i32, ptr, ptr }
%struct.Token = type { i32, %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { %struct.Str, i8 }
%struct.Str = type { ptr, ptr, i8 }

@mn_runtime = external thread_local global %struct.Runtime, align 8
@.str = external hidden unnamed_addr constant [79 x i8], align 1
@__func__.parse = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.Token, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #6
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  call void @lex_next(ptr noundef %5, ptr noundef %4)
  %6 = getelementptr inbounds %struct.Token, ptr %4, i32 0, i32 0
  %7 = load i32, ptr %6, align 8, !tbaa !9
  switch i32 %7, label %187 [
    i32 25, label %8
    i32 27, label %11
    i32 56, label %14
    i32 30, label %17
    i32 31, label %20
    i32 49, label %23
    i32 32, label %26
    i32 40, label %52
    i32 42, label %85
    i32 44, label %111
    i32 48, label %130
    i32 53, label %149
    i32 54, label %168
    i32 0, label %192
  ]

8:                                                ; preds = %1
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = call ptr @parse_set(ptr noundef %9)
  store ptr %10, ptr %3, align 8, !tbaa !5
  br label %192

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call ptr @parse_show(ptr noundef %12)
  store ptr %13, ptr %3, align 8, !tbaa !5
  br label %192

14:                                               ; preds = %1
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = call ptr @parse_debug(ptr noundef %15)
  store ptr %16, ptr %3, align 8, !tbaa !5
  br label %192

17:                                               ; preds = %1
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = call ptr @parse_checkpoint(ptr noundef %18)
  store ptr %19, ptr %3, align 8, !tbaa !5
  br label %192

20:                                               ; preds = %1
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = call ptr @parse_service(ptr noundef %21)
  store ptr %22, ptr %3, align 8, !tbaa !5
  br label %192

23:                                               ; preds = %1
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = call ptr @parse_rebalance(ptr noundef %24)
  store ptr %25, ptr %3, align 8, !tbaa !5
  br label %192

26:                                               ; preds = %1
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = call zeroext i1 @lex_if(ptr noundef %27, i32 noundef 51, ptr noundef null)
  br i1 %28, label %29, label %32

29:                                               ; preds = %26
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = call ptr @parse_cloud_create(ptr noundef %30)
  store ptr %31, ptr %3, align 8, !tbaa !5
  br label %51

32:                                               ; preds = %26
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = call zeroext i1 @lex_if(ptr noundef %33, i32 noundef 33, ptr noundef null)
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = call ptr @parse_storage_create(ptr noundef %36)
  store ptr %37, ptr %3, align 8, !tbaa !5
  br label %50

38:                                               ; preds = %32
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = call zeroext i1 @lex_if(ptr noundef %39, i32 noundef 35, ptr noundef null)
  br i1 %40, label %41, label %44

41:                                               ; preds = %38
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = call ptr @parse_partition_create(ptr noundef %42)
  store ptr %43, ptr %3, align 8, !tbaa !5
  br label %49

44:                                               ; preds = %38
  %45 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %46 = getelementptr inbounds %struct.Runtime, ptr %45, i32 0, i32 1
  %47 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %48 = getelementptr inbounds %struct.Runtime, ptr %47, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %46, ptr noundef %48, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 79, ptr noundef @.str.1) #7
  unreachable

49:                                               ; preds = %41
  br label %50

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

51:                                               ; preds = %50, %29
  br label %192

52:                                               ; preds = %1
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = call zeroext i1 @lex_if(ptr noundef %53, i32 noundef 51, ptr noundef null)
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = call ptr @parse_cloud_drop(ptr noundef %56)
  store ptr %57, ptr %3, align 8, !tbaa !5
  br label %84

58:                                               ; preds = %52
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = call zeroext i1 @lex_if(ptr noundef %59, i32 noundef 33, ptr noundef null)
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = call ptr @parse_storage_drop(ptr noundef %62)
  store ptr %63, ptr %3, align 8, !tbaa !5
  br label %83

64:                                               ; preds = %58
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = call zeroext i1 @lex_if(ptr noundef %65, i32 noundef 35, ptr noundef null)
  br i1 %66, label %67, label %70

67:                                               ; preds = %64
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = call ptr @parse_partition_drop(ptr noundef %68)
  store ptr %69, ptr %3, align 8, !tbaa !5
  br label %82

70:                                               ; preds = %64
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = call zeroext i1 @lex_if(ptr noundef %71, i32 noundef 36, ptr noundef null)
  br i1 %72, label %73, label %76

73:                                               ; preds = %70
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = call ptr @parse_partition_drop_range(ptr noundef %74)
  store ptr %75, ptr %3, align 8, !tbaa !5
  br label %81

76:                                               ; preds = %70
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %78 = getelementptr inbounds %struct.Runtime, ptr %77, i32 0, i32 1
  %79 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %80 = getelementptr inbounds %struct.Runtime, ptr %79, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %78, ptr noundef %80, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 97, ptr noundef @.str.2) #7
  unreachable

81:                                               ; preds = %73
  br label %82

82:                                               ; preds = %81, %67
  br label %83

83:                                               ; preds = %82, %61
  br label %84

84:                                               ; preds = %83, %55
  br label %192

85:                                               ; preds = %1
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = call zeroext i1 @lex_if(ptr noundef %86, i32 noundef 51, ptr noundef null)
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = call ptr @parse_cloud_alter(ptr noundef %89)
  store ptr %90, ptr %3, align 8, !tbaa !5
  br label %110

91:                                               ; preds = %85
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = call zeroext i1 @lex_if(ptr noundef %92, i32 noundef 33, ptr noundef null)
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = call ptr @parse_storage_alter(ptr noundef %95)
  store ptr %96, ptr %3, align 8, !tbaa !5
  br label %109

97:                                               ; preds = %91
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = call zeroext i1 @lex_if(ptr noundef %98, i32 noundef 41, ptr noundef null)
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = call ptr @parse_pipeline_alter(ptr noundef %101)
  store ptr %102, ptr %3, align 8, !tbaa !5
  br label %108

103:                                              ; preds = %97
  %104 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %105 = getelementptr inbounds %struct.Runtime, ptr %104, i32 0, i32 1
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %107 = getelementptr inbounds %struct.Runtime, ptr %106, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %105, ptr noundef %107, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 112, ptr noundef @.str.3) #7
  unreachable

108:                                              ; preds = %100
  br label %109

109:                                              ; preds = %108, %94
  br label %110

110:                                              ; preds = %109, %88
  br label %192

111:                                              ; preds = %1
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = call zeroext i1 @lex_if(ptr noundef %112, i32 noundef 35, ptr noundef null)
  br i1 %113, label %114, label %117

114:                                              ; preds = %111
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = call ptr @parse_partition_move(ptr noundef %115)
  store ptr %116, ptr %3, align 8, !tbaa !5
  br label %129

117:                                              ; preds = %111
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = call zeroext i1 @lex_if(ptr noundef %118, i32 noundef 36, ptr noundef null)
  br i1 %119, label %120, label %123

120:                                              ; preds = %117
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = call ptr @parse_partition_move_range(ptr noundef %121)
  store ptr %122, ptr %3, align 8, !tbaa !5
  br label %128

123:                                              ; preds = %117
  %124 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %125 = getelementptr inbounds %struct.Runtime, ptr %124, i32 0, i32 1
  %126 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %127 = getelementptr inbounds %struct.Runtime, ptr %126, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %125, ptr noundef %127, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 125, ptr noundef @.str.4) #7
  unreachable

128:                                              ; preds = %120
  br label %129

129:                                              ; preds = %128, %114
  br label %192

130:                                              ; preds = %1
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = call zeroext i1 @lex_if(ptr noundef %131, i32 noundef 35, ptr noundef null)
  br i1 %132, label %133, label %136

133:                                              ; preds = %130
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = call ptr @parse_partition_refresh(ptr noundef %134)
  store ptr %135, ptr %3, align 8, !tbaa !5
  br label %148

136:                                              ; preds = %130
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = call zeroext i1 @lex_if(ptr noundef %137, i32 noundef 36, ptr noundef null)
  br i1 %138, label %139, label %142

139:                                              ; preds = %136
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = call ptr @parse_partition_refresh_range(ptr noundef %140)
  store ptr %141, ptr %3, align 8, !tbaa !5
  br label %147

142:                                              ; preds = %136
  %143 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %144 = getelementptr inbounds %struct.Runtime, ptr %143, i32 0, i32 1
  %145 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %146 = getelementptr inbounds %struct.Runtime, ptr %145, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %144, ptr noundef %146, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 137, ptr noundef @.str.5) #7
  unreachable

147:                                              ; preds = %139
  br label %148

148:                                              ; preds = %147, %133
  br label %192

149:                                              ; preds = %1
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = call zeroext i1 @lex_if(ptr noundef %150, i32 noundef 35, ptr noundef null)
  br i1 %151, label %152, label %155

152:                                              ; preds = %149
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = call ptr @parse_partition_download(ptr noundef %153)
  store ptr %154, ptr %3, align 8, !tbaa !5
  br label %167

155:                                              ; preds = %149
  %156 = load ptr, ptr %2, align 8, !tbaa !5
  %157 = call zeroext i1 @lex_if(ptr noundef %156, i32 noundef 36, ptr noundef null)
  br i1 %157, label %158, label %161

158:                                              ; preds = %155
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = call ptr @parse_partition_download_range(ptr noundef %159)
  store ptr %160, ptr %3, align 8, !tbaa !5
  br label %166

161:                                              ; preds = %155
  %162 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %163 = getelementptr inbounds %struct.Runtime, ptr %162, i32 0, i32 1
  %164 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %165 = getelementptr inbounds %struct.Runtime, ptr %164, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %163, ptr noundef %165, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 149, ptr noundef @.str.6) #7
  unreachable

166:                                              ; preds = %158
  br label %167

167:                                              ; preds = %166, %152
  br label %192

168:                                              ; preds = %1
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = call zeroext i1 @lex_if(ptr noundef %169, i32 noundef 35, ptr noundef null)
  br i1 %170, label %171, label %174

171:                                              ; preds = %168
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = call ptr @parse_partition_upload(ptr noundef %172)
  store ptr %173, ptr %3, align 8, !tbaa !5
  br label %186

174:                                              ; preds = %168
  %175 = load ptr, ptr %2, align 8, !tbaa !5
  %176 = call zeroext i1 @lex_if(ptr noundef %175, i32 noundef 36, ptr noundef null)
  br i1 %176, label %177, label %180

177:                                              ; preds = %174
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = call ptr @parse_partition_upload_range(ptr noundef %178)
  store ptr %179, ptr %3, align 8, !tbaa !5
  br label %185

180:                                              ; preds = %174
  %181 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %182 = getelementptr inbounds %struct.Runtime, ptr %181, i32 0, i32 1
  %183 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %184 = getelementptr inbounds %struct.Runtime, ptr %183, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %182, ptr noundef %184, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 161, ptr noundef @.str.7) #7
  unreachable

185:                                              ; preds = %177
  br label %186

186:                                              ; preds = %185, %171
  br label %192

187:                                              ; preds = %1
  %188 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %189 = getelementptr inbounds %struct.Runtime, ptr %188, i32 0, i32 1
  %190 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %191 = getelementptr inbounds %struct.Runtime, ptr %190, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %189, ptr noundef %191, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 167, ptr noundef @.str.8) #7
  unreachable

192:                                              ; preds = %186, %167, %148, %129, %110, %84, %51, %23, %20, %17, %14, %11, %8, %1
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = call zeroext i1 @lex_if(ptr noundef %193, i32 noundef 0, ptr noundef null)
  br i1 %194, label %205, label %195

195:                                              ; preds = %192
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %200

198:                                              ; preds = %195
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  call void @cmd_free(ptr noundef %199)
  br label %200

200:                                              ; preds = %198, %195
  %201 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %202 = getelementptr inbounds %struct.Runtime, ptr %201, i32 0, i32 1
  %203 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %204 = getelementptr inbounds %struct.Runtime, ptr %203, i32 0, i32 0
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %202, ptr noundef %204, ptr noundef @.str, ptr noundef @__func__.parse, i32 noundef 176, ptr noundef @.str.9) #7
  unreachable

205:                                              ; preds = %192
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr %206
}

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

declare void @lex_next(ptr noundef, ptr noundef) #2

declare ptr @parse_set(ptr noundef) #2

declare ptr @parse_show(ptr noundef) #2

declare ptr @parse_debug(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @parse_checkpoint(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @parse_service(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @parse_rebalance(ptr noundef) #3

declare zeroext i1 @lex_if(ptr noundef, i32 noundef, ptr noundef) #2

declare ptr @parse_cloud_create(ptr noundef) #2

declare ptr @parse_storage_create(ptr noundef) #2

declare ptr @parse_partition_create(ptr noundef) #2

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @error_throw_as(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #5

declare ptr @parse_cloud_drop(ptr noundef) #2

declare ptr @parse_storage_drop(ptr noundef) #2

declare ptr @parse_partition_drop(ptr noundef) #2

declare ptr @parse_partition_drop_range(ptr noundef) #2

declare ptr @parse_cloud_alter(ptr noundef) #2

declare ptr @parse_storage_alter(ptr noundef) #2

declare ptr @parse_pipeline_alter(ptr noundef) #2

declare ptr @parse_partition_move(ptr noundef) #2

declare ptr @parse_partition_move_range(ptr noundef) #2

declare ptr @parse_partition_refresh(ptr noundef) #2

declare ptr @parse_partition_refresh_range(ptr noundef) #2

declare ptr @parse_partition_download(ptr noundef) #2

declare ptr @parse_partition_download_range(ptr noundef) #2

declare ptr @parse_partition_upload(ptr noundef) #2

declare ptr @parse_partition_upload_range(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cmd_free(ptr noundef) #3

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

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 = { inlinehint 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 #4 = { inlinehint noreturn 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !11, i64 0}
!10 = !{!"Token", !11, i64 0, !7, i64 8}
!11 = !{!"int", !7, i64 0}


; 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.Runtime = type { %struct.ExceptionMgr, %struct.Error, ptr }
%struct.ExceptionMgr = type { ptr }
%struct.Error = type { [256 x i8], i32, ptr, ptr, i32, ptr, ptr }
%struct.Token = type { i32, %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { %struct.Str, i8 }
%struct.Str = type { ptr, ptr, i8 }

@mn_runtime = external thread_local global %struct.Runtime, align 8
@.str = external hidden unnamed_addr constant [79 x i8], align 1
@__func__.parse = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.Token, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #6
  call void @lex_next(ptr noundef %0, ptr noundef nonnull %2) #6
  %3 = load i32, ptr %2, align 8, !tbaa !5
  switch i32 %3, label %109 [
    i32 25, label %4
    i32 27, label %6
    i32 56, label %8
    i32 30, label %10
    i32 31, label %12
    i32 49, label %14
    i32 32, label %16
    i32 40, label %31
    i32 42, label %50
    i32 44, label %65
    i32 48, label %76
    i32 53, label %87
    i32 54, label %98
    i32 0, label %.thread
  ]

4:                                                ; preds = %1
  %5 = call ptr @parse_set(ptr noundef %0) #6
  br label %112

6:                                                ; preds = %1
  %7 = call ptr @parse_show(ptr noundef %0) #6
  br label %112

8:                                                ; preds = %1
  %9 = call ptr @parse_debug(ptr noundef %0) #6
  br label %112

10:                                               ; preds = %1
  %11 = call ptr @parse_checkpoint(ptr noundef %0)
  br label %112

12:                                               ; preds = %1
  %13 = call ptr @parse_service(ptr noundef %0)
  br label %112

14:                                               ; preds = %1
  %15 = call ptr @parse_rebalance(ptr noundef %0)
  br label %112

16:                                               ; preds = %1
  %17 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 51, ptr noundef null) #6
  br i1 %17, label %18, label %20

18:                                               ; preds = %16
  %19 = call ptr @parse_cloud_create(ptr noundef %0) #6
  br label %112

20:                                               ; preds = %16
  %21 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 33, ptr noundef null) #6
  br i1 %21, label %22, label %24

22:                                               ; preds = %20
  %23 = call ptr @parse_storage_create(ptr noundef %0) #6
  br label %112

24:                                               ; preds = %20
  %25 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 35, ptr noundef null) #6
  br i1 %25, label %26, label %28

26:                                               ; preds = %24
  %27 = call ptr @parse_partition_create(ptr noundef %0) #6
  br label %112

28:                                               ; preds = %24
  %29 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %30, ptr noundef nonnull %29, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 79, ptr noundef nonnull @.str.1) #7
  unreachable

31:                                               ; preds = %1
  %32 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 51, ptr noundef null) #6
  br i1 %32, label %33, label %35

33:                                               ; preds = %31
  %34 = call ptr @parse_cloud_drop(ptr noundef %0) #6
  br label %112

35:                                               ; preds = %31
  %36 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 33, ptr noundef null) #6
  br i1 %36, label %37, label %39

37:                                               ; preds = %35
  %38 = call ptr @parse_storage_drop(ptr noundef %0) #6
  br label %112

39:                                               ; preds = %35
  %40 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 35, ptr noundef null) #6
  br i1 %40, label %41, label %43

41:                                               ; preds = %39
  %42 = call ptr @parse_partition_drop(ptr noundef %0) #6
  br label %112

43:                                               ; preds = %39
  %44 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 36, ptr noundef null) #6
  br i1 %44, label %45, label %47

45:                                               ; preds = %43
  %46 = call ptr @parse_partition_drop_range(ptr noundef %0) #6
  br label %112

47:                                               ; preds = %43
  %48 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %49, ptr noundef nonnull %48, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 97, ptr noundef nonnull @.str.2) #7
  unreachable

50:                                               ; preds = %1
  %51 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 51, ptr noundef null) #6
  br i1 %51, label %52, label %54

52:                                               ; preds = %50
  %53 = call ptr @parse_cloud_alter(ptr noundef %0) #6
  br label %112

54:                                               ; preds = %50
  %55 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 33, ptr noundef null) #6
  br i1 %55, label %56, label %58

56:                                               ; preds = %54
  %57 = call ptr @parse_storage_alter(ptr noundef %0) #6
  br label %112

58:                                               ; preds = %54
  %59 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 41, ptr noundef null) #6
  br i1 %59, label %60, label %62

60:                                               ; preds = %58
  %61 = call ptr @parse_pipeline_alter(ptr noundef %0) #6
  br label %112

62:                                               ; preds = %58
  %63 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %64, ptr noundef nonnull %63, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 112, ptr noundef nonnull @.str.3) #7
  unreachable

65:                                               ; preds = %1
  %66 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 35, ptr noundef null) #6
  br i1 %66, label %67, label %69

67:                                               ; preds = %65
  %68 = call ptr @parse_partition_move(ptr noundef %0) #6
  br label %112

69:                                               ; preds = %65
  %70 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 36, ptr noundef null) #6
  br i1 %70, label %71, label %73

71:                                               ; preds = %69
  %72 = call ptr @parse_partition_move_range(ptr noundef %0) #6
  br label %112

73:                                               ; preds = %69
  %74 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %75, ptr noundef nonnull %74, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 125, ptr noundef nonnull @.str.4) #7
  unreachable

76:                                               ; preds = %1
  %77 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 35, ptr noundef null) #6
  br i1 %77, label %78, label %80

78:                                               ; preds = %76
  %79 = call ptr @parse_partition_refresh(ptr noundef %0) #6
  br label %112

80:                                               ; preds = %76
  %81 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 36, ptr noundef null) #6
  br i1 %81, label %82, label %84

82:                                               ; preds = %80
  %83 = call ptr @parse_partition_refresh_range(ptr noundef %0) #6
  br label %112

84:                                               ; preds = %80
  %85 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %86 = getelementptr inbounds i8, ptr %85, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %86, ptr noundef nonnull %85, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 137, ptr noundef nonnull @.str.5) #7
  unreachable

87:                                               ; preds = %1
  %88 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 35, ptr noundef null) #6
  br i1 %88, label %89, label %91

89:                                               ; preds = %87
  %90 = call ptr @parse_partition_download(ptr noundef %0) #6
  br label %112

91:                                               ; preds = %87
  %92 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 36, ptr noundef null) #6
  br i1 %92, label %93, label %95

93:                                               ; preds = %91
  %94 = call ptr @parse_partition_download_range(ptr noundef %0) #6
  br label %112

95:                                               ; preds = %91
  %96 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %97, ptr noundef nonnull %96, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 149, ptr noundef nonnull @.str.6) #7
  unreachable

98:                                               ; preds = %1
  %99 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 35, ptr noundef null) #6
  br i1 %99, label %100, label %102

100:                                              ; preds = %98
  %101 = call ptr @parse_partition_upload(ptr noundef %0) #6
  br label %112

102:                                              ; preds = %98
  %103 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 36, ptr noundef null) #6
  br i1 %103, label %104, label %106

104:                                              ; preds = %102
  %105 = call ptr @parse_partition_upload_range(ptr noundef %0) #6
  br label %112

106:                                              ; preds = %102
  %107 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %108 = getelementptr inbounds i8, ptr %107, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %108, ptr noundef nonnull %107, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 161, ptr noundef nonnull @.str.7) #7
  unreachable

109:                                              ; preds = %1
  %110 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %111, ptr noundef nonnull %110, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 167, ptr noundef nonnull @.str.8) #7
  unreachable

112:                                              ; preds = %100, %104, %89, %93, %78, %82, %67, %71, %52, %60, %56, %33, %41, %45, %37, %18, %26, %22, %14, %12, %10, %8, %6, %4
  %.0 = phi ptr [ %101, %100 ], [ %105, %104 ], [ %90, %89 ], [ %94, %93 ], [ %79, %78 ], [ %83, %82 ], [ %68, %67 ], [ %72, %71 ], [ %53, %52 ], [ %57, %56 ], [ %61, %60 ], [ %34, %33 ], [ %38, %37 ], [ %42, %41 ], [ %46, %45 ], [ %19, %18 ], [ %23, %22 ], [ %27, %26 ], [ %15, %14 ], [ %13, %12 ], [ %11, %10 ], [ %9, %8 ], [ %7, %6 ], [ %5, %4 ]
  %113 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 0, ptr noundef null) #6
  br i1 %113, label %119, label %115

.thread:                                          ; preds = %1
  %114 = call zeroext i1 @lex_if(ptr noundef %0, i32 noundef 0, ptr noundef null) #6
  br i1 %114, label %119, label %.thread50

115:                                              ; preds = %112
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %.thread50, label %116

116:                                              ; preds = %115
  call void @cmd_free(ptr noundef nonnull %.0)
  br label %.thread50

.thread50:                                        ; preds = %.thread, %116, %115
  %117 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %118, ptr noundef nonnull %117, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.parse, i32 noundef 176, ptr noundef nonnull @.str.9) #7
  unreachable

119:                                              ; preds = %.thread, %112
  %.048 = phi ptr [ null, %.thread ], [ %.0, %112 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  ret ptr %.048
}

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

declare void @lex_next(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @parse_set(ptr noundef) local_unnamed_addr #2

declare ptr @parse_show(ptr noundef) local_unnamed_addr #2

declare ptr @parse_debug(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @parse_checkpoint(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @parse_service(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @parse_rebalance(ptr noundef) local_unnamed_addr #3

declare zeroext i1 @lex_if(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @parse_cloud_create(ptr noundef) local_unnamed_addr #2

declare ptr @parse_storage_create(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_create(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @error_throw_as(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #5

declare ptr @parse_cloud_drop(ptr noundef) local_unnamed_addr #2

declare ptr @parse_storage_drop(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_drop(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_drop_range(ptr noundef) local_unnamed_addr #2

declare ptr @parse_cloud_alter(ptr noundef) local_unnamed_addr #2

declare ptr @parse_storage_alter(ptr noundef) local_unnamed_addr #2

declare ptr @parse_pipeline_alter(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_move(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_move_range(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_refresh(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_refresh_range(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_download(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_download_range(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_upload(ptr noundef) local_unnamed_addr #2

declare ptr @parse_partition_upload_range(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cmd_free(ptr noundef) local_unnamed_addr #3

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

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 = { mustprogress 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 = { inlinehint 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 #4 = { inlinehint noreturn 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"Token", !7, i64 0, !8, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}


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