; LLVM IR from freakout42/macrocalc :: mc/nro (nrocmd)

; 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.page = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i32], [200000 x i8], [200000 x i8], [200000 x i8], [200000 x i8] }
%struct.docctl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, [26 x i32] }

@pg = external global %struct.page, align 4
@dc = external global %struct.docctl, align 4
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@sofile = external global [0 x ptr], align 8
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @skipbl(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @brek() #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @space(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @skipwd(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @set(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @expesc(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @maceval(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @gettl(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @defmac(ptr noundef, ptr noundef) #0

declare i32 @getwrd(...) #4

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @getval(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @comtyp(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @comand(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca [200000 x i8], align 16
  %10 = alloca [180000 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 200000, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 180000, ptr %10) #6
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds [180000 x i8], ptr %10, i64 0, i64 0
  %16 = call i32 @comtyp(ptr noundef %14, ptr noundef %15)
  store i32 %16, ptr %4, align 4, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = icmp ne i32 %17, 31
  br i1 %18, label %19, label %26

19:                                               ; preds = %1
  %20 = load i32, ptr %4, align 4, !tbaa !9
  %21 = icmp ne i32 %20, 24
  br i1 %21, label %22, label %26

22:                                               ; preds = %19
  %23 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 11), align 4, !tbaa !11
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %291

26:                                               ; preds = %22, %19, %1
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %29, label %33

29:                                               ; preds = %26
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.4, ptr noundef %31) #6
  store i32 0, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %291

33:                                               ; preds = %26
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  call void @expesc(ptr noundef %34, ptr noundef %35)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call i32 @getval(ptr noundef %36, ptr noundef %8)
  store i32 %37, ptr %5, align 4, !tbaa !9
  %38 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %38, label %290 [
    i32 26, label %39
    i32 1, label %43
    i32 2, label %54
    i32 21, label %55
    i32 24, label %59
    i32 3, label %75
    i32 32, label %79
    i32 33, label %83
    i32 29, label %89
    i32 27, label %91
    i32 34, label %93
    i32 4, label %96
    i32 5, label %97
    i32 6, label %100
    i32 7, label %103
    i32 15, label %110
    i32 8, label %111
    i32 17, label %115
    i32 18, label %119
    i32 19, label %123
    i32 20, label %132
    i32 0, label %141
    i32 22, label %144
    i32 9, label %155
    i32 16, label %156
    i32 35, label %157
    i32 30, label %199
    i32 28, label %201
    i32 23, label %203
    i32 10, label %215
    i32 25, label %232
    i32 11, label %236
    i32 31, label %244
    i32 12, label %276
    i32 13, label %281
    i32 14, label %286
  ]

39:                                               ; preds = %33
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = load i8, ptr %8, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 9), i32 noundef %40, i32 noundef %42, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 6), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 7), align 4, !tbaa !15
  br label %290

43:                                               ; preds = %33
  %44 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 2), align 4, !tbaa !16
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  call void @space(i32 noundef 256)
  br label %47

47:                                               ; preds = %46, %43
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = load i8, ptr %8, align 1, !tbaa !13
  %50 = sext i8 %49 to i32
  %51 = load i32, ptr @pg, align 4, !tbaa !18
  %52 = add nsw i32 %51, 1
  call void @set(ptr noundef @pg, i32 noundef %48, i32 noundef %50, i32 noundef %52, i32 noundef -256, i32 noundef 256)
  %53 = load i32, ptr @pg, align 4, !tbaa !18
  store i32 %53, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 1), align 4, !tbaa !19
  br label %290

54:                                               ; preds = %33
  call void @brek()
  br label %290

55:                                               ; preds = %33
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = load i8, ptr %8, align 1, !tbaa !13
  %58 = sext i8 %57 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 10), i32 noundef %56, i32 noundef %58, i32 noundef 1, i32 noundef 0, i32 noundef 1)
  br label %290

59:                                               ; preds = %33
  %60 = load i8, ptr %8, align 1, !tbaa !13
  %61 = sext i8 %60 to i32
  %62 = icmp eq i32 %61, 13
  br i1 %62, label %67, label %63

63:                                               ; preds = %59
  %64 = load i8, ptr %8, align 1, !tbaa !13
  %65 = sext i8 %64 to i32
  %66 = icmp eq i32 %65, 10
  br i1 %66, label %67, label %68

67:                                               ; preds = %63, %59
  store i8 46, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 13), align 1, !tbaa !20
  br label %70

68:                                               ; preds = %63
  %69 = load i8, ptr %8, align 1, !tbaa !13
  store i8 %69, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 13), align 1, !tbaa !20
  br label %70

70:                                               ; preds = %68, %67
  %71 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 11), align 4, !tbaa !11
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %291

74:                                               ; preds = %70
  br label %290

75:                                               ; preds = %33
  call void @brek()
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = load i8, ptr %8, align 1, !tbaa !13
  %78 = sext i8 %77 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 5), i32 noundef %76, i32 noundef %78, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  br label %290

79:                                               ; preds = %33
  %80 = load i32, ptr %5, align 4, !tbaa !9
  %81 = load i8, ptr %8, align 1, !tbaa !13
  %82 = sext i8 %81 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 7), i32 noundef %80, i32 noundef %82, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 9), align 4, !tbaa !21
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 6), align 4, !tbaa !14
  br label %290

83:                                               ; preds = %33
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 16), align 4, !tbaa !22
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [0 x ptr], ptr @sofile, i64 0, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  call void @defmac(ptr noundef %84, ptr noundef %88)
  br label %290

89:                                               ; preds = %33
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %90, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 18), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 14))
  br label %290

91:                                               ; preds = %33
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %92, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 16), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 12))
  br label %290

93:                                               ; preds = %33
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.5) #6
  br label %290

96:                                               ; preds = %33
  call void @brek()
  store i32 1, ptr @dc, align 4, !tbaa !23
  br label %290

97:                                               ; preds = %33
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %98, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 18), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 14))
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %99, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 19), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 15))
  br label %290

100:                                              ; preds = %33
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %101, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 16), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 12))
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %102, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 17), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 13))
  br label %290

103:                                              ; preds = %33
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = load i8, ptr %8, align 1, !tbaa !13
  %106 = sext i8 %105 to i32
  %107 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 3), align 4, !tbaa !24
  %108 = sub nsw i32 %107, 1
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 2), i32 noundef %104, i32 noundef %106, i32 noundef 0, i32 noundef 0, i32 noundef %108)
  %109 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 2), align 4, !tbaa !25
  store i32 %109, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 4), align 4, !tbaa !26
  br label %290

110:                                              ; preds = %33
  store i32 1, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 8), align 4, !tbaa !27
  br label %290

111:                                              ; preds = %33
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = load i8, ptr %8, align 1, !tbaa !13
  %114 = sext i8 %113 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 1), i32 noundef %112, i32 noundef %114, i32 noundef 1, i32 noundef 1, i32 noundef 256)
  br label %290

115:                                              ; preds = %33
  %116 = load i32, ptr %5, align 4, !tbaa !9
  %117 = load i8, ptr %8, align 1, !tbaa !13
  %118 = sext i8 %117 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 4), i32 noundef %116, i32 noundef %118, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  br label %290

119:                                              ; preds = %33
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = load i8, ptr %8, align 1, !tbaa !13
  %122 = sext i8 %121 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 5), i32 noundef %120, i32 noundef %122, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  br label %290

123:                                              ; preds = %33
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = load i8, ptr %8, align 1, !tbaa !13
  %126 = sext i8 %125 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 6), i32 noundef %124, i32 noundef %126, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  %127 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 3), align 4, !tbaa !28
  %128 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 7), align 4, !tbaa !29
  %129 = sub nsw i32 %127, %128
  %130 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 6), align 4, !tbaa !30
  %131 = sub nsw i32 %129, %130
  store i32 %131, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 8), align 4, !tbaa !31
  br label %290

132:                                              ; preds = %33
  %133 = load i32, ptr %5, align 4, !tbaa !9
  %134 = load i8, ptr %8, align 1, !tbaa !13
  %135 = sext i8 %134 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 7), i32 noundef %133, i32 noundef %135, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  %136 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 3), align 4, !tbaa !28
  %137 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 7), align 4, !tbaa !29
  %138 = sub nsw i32 %136, %137
  %139 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 6), align 4, !tbaa !30
  %140 = sub nsw i32 %138, %139
  store i32 %140, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 8), align 4, !tbaa !31
  br label %290

141:                                              ; preds = %33
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds [180000 x i8], ptr %10, i64 0, i64 0
  call void @maceval(ptr noundef %142, ptr noundef %143)
  br label %290

144:                                              ; preds = %33
  call void @brek()
  %145 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 8), align 4, !tbaa !31
  %146 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 2), align 4, !tbaa !16
  %147 = sub nsw i32 %145, %146
  %148 = add nsw i32 %147, 1
  %149 = load i32, ptr %5, align 4, !tbaa !9
  %150 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 1), align 4, !tbaa !32
  %151 = mul nsw i32 %149, %150
  %152 = icmp slt i32 %148, %151
  br i1 %152, label %153, label %154

153:                                              ; preds = %144
  call void @space(i32 noundef 256)
  br label %154

154:                                              ; preds = %153, %144
  br label %290

155:                                              ; preds = %33
  call void @brek()
  store i32 0, ptr @dc, align 4, !tbaa !23
  br label %290

156:                                              ; preds = %33
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 8), align 4, !tbaa !27
  br label %290

157:                                              ; preds = %33
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = call ptr @skipwd(ptr noundef %158)
  store ptr %159, ptr %3, align 8, !tbaa !5
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = call ptr @skipbl(ptr noundef %160)
  store ptr %161, ptr %3, align 8, !tbaa !5
  %162 = call ptr @__ctype_b_loc() #7
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = load i8, ptr %164, align 1, !tbaa !13
  %166 = sext i8 %165 to i32
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds i16, ptr %163, i64 %167
  %169 = load i16, ptr %168, align 2, !tbaa !33
  %170 = zext i16 %169 to i32
  %171 = and i32 %170, 1024
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %176, label %173

173:                                              ; preds = %157
  %174 = load ptr, ptr @stderr, align 8, !tbaa !5
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.6) #6
  br label %198

176:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %177 = call ptr @__ctype_tolower_loc() #7
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = load i8, ptr %179, align 1, !tbaa !13
  %181 = sext i8 %180 to i32
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i32, ptr %178, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !9
  store i32 %184, ptr %12, align 4, !tbaa !9
  %185 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %185, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 97
  store i32 %187, ptr %7, align 4, !tbaa !9
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = call ptr @skipwd(ptr noundef %188)
  store ptr %189, ptr %3, align 8, !tbaa !5
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = call i32 @getval(ptr noundef %190, ptr noundef %8)
  store i32 %191, ptr %5, align 4, !tbaa !9
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [26 x i32], ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 17), i64 0, i64 %193
  %195 = load i32, ptr %5, align 4, !tbaa !9
  %196 = load i8, ptr %8, align 1, !tbaa !13
  %197 = sext i8 %196 to i32
  call void @set(ptr noundef %194, i32 noundef %195, i32 noundef %197, i32 noundef 0, i32 noundef -256, i32 noundef 256)
  br label %198

198:                                              ; preds = %176, %173
  br label %290

199:                                              ; preds = %33
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %200, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 19), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 15))
  br label %290

201:                                              ; preds = %33
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  call void @gettl(ptr noundef %202, ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 17), ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 13))
  br label %290

203:                                              ; preds = %33
  %204 = load i8, ptr %8, align 1, !tbaa !13
  %205 = sext i8 %204 to i32
  %206 = icmp eq i32 %205, 13
  br i1 %206, label %211, label %207

207:                                              ; preds = %203
  %208 = load i8, ptr %8, align 1, !tbaa !13
  %209 = sext i8 %208 to i32
  %210 = icmp eq i32 %209, 10
  br i1 %210, label %211, label %212

211:                                              ; preds = %207, %203
  store i8 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 12), align 4, !tbaa !35
  br label %214

212:                                              ; preds = %207
  %213 = load i8, ptr %8, align 1, !tbaa !13
  store i8 %213, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 12), align 4, !tbaa !35
  br label %214

214:                                              ; preds = %212, %211
  br label %290

215:                                              ; preds = %33
  %216 = load i32, ptr %5, align 4, !tbaa !9
  %217 = load i8, ptr %8, align 1, !tbaa !13
  %218 = sext i8 %217 to i32
  %219 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 4), align 4, !tbaa !36
  %220 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 5), align 4, !tbaa !37
  %221 = add nsw i32 %219, %220
  %222 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 6), align 4, !tbaa !30
  %223 = add nsw i32 %221, %222
  %224 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 7), align 4, !tbaa !29
  %225 = add nsw i32 %223, %224
  %226 = add nsw i32 %225, 1
  call void @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 3), i32 noundef %216, i32 noundef %218, i32 noundef 66, i32 noundef %226, i32 noundef 256)
  %227 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 3), align 4, !tbaa !28
  %228 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 6), align 4, !tbaa !30
  %229 = sub nsw i32 %227, %228
  %230 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 7), align 4, !tbaa !29
  %231 = sub nsw i32 %229, %230
  store i32 %231, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 8), align 4, !tbaa !31
  br label %290

232:                                              ; preds = %33
  %233 = load i32, ptr %5, align 4, !tbaa !9
  %234 = load i8, ptr %8, align 1, !tbaa !13
  %235 = sext i8 %234 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 9), i32 noundef %233, i32 noundef %235, i32 noundef 0, i32 noundef 0, i32 noundef 256)
  br label %290

236:                                              ; preds = %33
  %237 = load i32, ptr %5, align 4, !tbaa !9
  %238 = load i8, ptr %8, align 1, !tbaa !13
  %239 = sext i8 %238 to i32
  %240 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 4), align 4, !tbaa !26
  %241 = add nsw i32 %240, 1
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 3), i32 noundef %237, i32 noundef %239, i32 noundef 80, i32 noundef %241, i32 noundef 256)
  %242 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 3), align 4, !tbaa !24
  store i32 %242, ptr getelementptr inbounds ([2 x i32], ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 13), i64 0, i64 1), align 4, !tbaa !9
  store i32 %242, ptr getelementptr inbounds ([2 x i32], ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 12), i64 0, i64 1), align 4, !tbaa !9
  %243 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 3), align 4, !tbaa !24
  store i32 %243, ptr getelementptr inbounds ([2 x i32], ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 15), i64 0, i64 1), align 4, !tbaa !9
  store i32 %243, ptr getelementptr inbounds ([2 x i32], ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 14), i64 0, i64 1), align 4, !tbaa !9
  br label %290

244:                                              ; preds = %33
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = call ptr @skipwd(ptr noundef %245)
  store ptr %246, ptr %3, align 8, !tbaa !5
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = call ptr @skipbl(ptr noundef %247)
  store ptr %248, ptr %3, align 8, !tbaa !5
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %251 = call i32 (ptr, ptr, ...) @getwrd(ptr noundef %249, ptr noundef %250)
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %254

253:                                              ; preds = %244
  br label %290

254:                                              ; preds = %244
  %255 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 16), align 4, !tbaa !22
  %256 = add nsw i32 %255, 1
  %257 = icmp sge i32 %256, 4
  br i1 %257, label %258, label %261

258:                                              ; preds = %254
  %259 = load ptr, ptr @stderr, align 8, !tbaa !5
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.7) #6
  call void @exit(i32 noundef 10) #8
  unreachable

261:                                              ; preds = %254
  %262 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %263 = call noalias ptr @fopen(ptr noundef %262, ptr noundef @.str.8)
  %264 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 16), align 4, !tbaa !22
  %265 = add nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [0 x ptr], ptr @sofile, i64 0, i64 %266
  store ptr %263, ptr %267, align 8, !tbaa !5
  %268 = icmp eq ptr %263, null
  br i1 %268, label %269, label %273

269:                                              ; preds = %261
  %270 = load ptr, ptr @stderr, align 8, !tbaa !5
  %271 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.9, ptr noundef %271) #6
  call void @exit(i32 noundef 11) #8
  unreachable

273:                                              ; preds = %261
  %274 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 16), align 4, !tbaa !22
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 16), align 4, !tbaa !22
  br label %290

276:                                              ; preds = %33
  %277 = load i32, ptr %5, align 4, !tbaa !9
  %278 = load i8, ptr %8, align 1, !tbaa !13
  %279 = sext i8 %278 to i32
  call void @set(ptr noundef %6, i32 noundef %277, i32 noundef %279, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  %280 = load i32, ptr %6, align 4, !tbaa !9
  call void @space(i32 noundef %280)
  br label %290

281:                                              ; preds = %33
  call void @brek()
  %282 = load i32, ptr %5, align 4, !tbaa !9
  %283 = load i8, ptr %8, align 1, !tbaa !13
  %284 = sext i8 %283 to i32
  %285 = load i32, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 3), align 4, !tbaa !24
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 4), i32 noundef %282, i32 noundef %284, i32 noundef 0, i32 noundef 0, i32 noundef %285)
  br label %290

286:                                              ; preds = %33
  %287 = load i32, ptr %5, align 4, !tbaa !9
  %288 = load i8, ptr %8, align 1, !tbaa !13
  %289 = sext i8 %288 to i32
  call void @set(ptr noundef getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 6), i32 noundef %287, i32 noundef %289, i32 noundef 0, i32 noundef 1, i32 noundef 256)
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 9), align 4, !tbaa !21
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 7), align 4, !tbaa !15
  br label %290

290:                                              ; preds = %286, %281, %276, %273, %253, %236, %232, %215, %214, %201, %199, %198, %156, %155, %154, %141, %132, %123, %119, %115, %111, %110, %103, %100, %97, %96, %93, %91, %89, %83, %79, %75, %74, %55, %54, %47, %39, %33
  store i32 0, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %291

291:                                              ; preds = %290, %73, %29, %25
  call void @llvm.lifetime.end.p0(i64 180000, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 200000, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %292 = load i32, ptr %2, align 4
  ret i32 %292
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

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 = { nounwind willreturn memory(none) "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 = { noreturn 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 = { "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 "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 44}
!12 = !{!"docctl", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48, !7, i64 49, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64}
!13 = !{!7, !7, i64 0}
!14 = !{!12, !10, i64 24}
!15 = !{!12, !10, i64 28}
!16 = !{!17, !10, i64 8}
!17 = !{!"page", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 200080, !7, i64 400080, !7, i64 600080}
!18 = !{!17, !10, i64 0}
!19 = !{!17, !10, i64 4}
!20 = !{!12, !7, i64 49}
!21 = !{!12, !10, i64 36}
!22 = !{!12, !10, i64 60}
!23 = !{!12, !10, i64 0}
!24 = !{!12, !10, i64 12}
!25 = !{!12, !10, i64 8}
!26 = !{!12, !10, i64 16}
!27 = !{!12, !10, i64 32}
!28 = !{!17, !10, i64 12}
!29 = !{!17, !10, i64 28}
!30 = !{!17, !10, i64 24}
!31 = !{!17, !10, i64 32}
!32 = !{!12, !10, i64 4}
!33 = !{!34, !34, i64 0}
!34 = !{!"short", !7, i64 0}
!35 = !{!12, !7, i64 48}
!36 = !{!17, !10, i64 16}
!37 = !{!17, !10, i64 20}


; 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.page = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i32], [200000 x i8], [200000 x i8], [200000 x i8], [200000 x i8] }
%struct.docctl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, [26 x i32] }

@pg = external global %struct.page, align 4
@dc = external global %struct.docctl, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@sofile = external local_unnamed_addr global [0 x ptr], align 8
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @skipbl(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @brek() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @space(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @skipwd(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @set(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @expesc(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @maceval(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @gettl(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @defmac(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @getwrd(...) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @getval(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @comtyp(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @comand(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %4 = alloca [200000 x i8], align 16
  %5 = alloca [180000 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 200000, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 180000, ptr nonnull %5) #7
  %6 = call i32 @comtyp(ptr noundef %0, ptr noundef nonnull %5)
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 44), align 4
  %.fr = freeze i32 %7
  %.not60 = icmp eq i32 %.fr, 0
  br i1 %.not60, label %8, label %switch.early.test

switch.early.test:                                ; preds = %1
  switch i32 %6, label %184 [
    i32 24, label %13
    i32 31, label %13
  ]

8:                                                ; preds = %1
  %9 = icmp eq i32 %6, -1
  br i1 %9, label %10, label %13

10:                                               ; preds = %8
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.4, ptr noundef %0) #8
  br label %184

13:                                               ; preds = %switch.early.test, %switch.early.test, %8
  call void @expesc(ptr noundef %0, ptr noundef nonnull %4)
  %14 = call i32 @getval(ptr noundef %0, ptr noundef nonnull %3)
  switch i32 %6, label %183 [
    i32 26, label %15
    i32 1, label %18
    i32 2, label %28
    i32 21, label %29
    i32 24, label %32
    i32 3, label %37
    i32 32, label %40
    i32 33, label %43
    i32 29, label %48
    i32 27, label %49
    i32 34, label %50
    i32 4, label %53
    i32 5, label %54
    i32 6, label %55
    i32 7, label %56
    i32 15, label %62
    i32 8, label %63
    i32 17, label %66
    i32 18, label %69
    i32 19, label %72
    i32 20, label %80
    i32 0, label %88
    i32 22, label %89
    i32 9, label %98
    i32 16, label %99
    i32 35, label %100
    i32 30, label %125
    i32 28, label %126
    i32 23, label %127
    i32 10, label %131
    i32 25, label %141
    i32 11, label %144
    i32 31, label %150
    i32 12, label %172
    i32 13, label %176
    i32 14, label %180
  ]

15:                                               ; preds = %13
  %16 = load i8, ptr %3, align 1, !tbaa !9
  %17 = sext i8 %16 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 36), i32 noundef %14, i32 noundef %17, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 24), align 4, !tbaa !10
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 28), align 4, !tbaa !13
  br label %183

18:                                               ; preds = %13
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 8), align 4, !tbaa !14
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  call void @space(i32 noundef 256)
  br label %22

22:                                               ; preds = %21, %18
  %23 = load i8, ptr %3, align 1, !tbaa !9
  %24 = sext i8 %23 to i32
  %25 = load i32, ptr @pg, align 4, !tbaa !16
  %26 = add nsw i32 %25, 1
  call void @set(ptr noundef nonnull @pg, i32 noundef %14, i32 noundef %24, i32 noundef %26, i32 noundef -256, i32 noundef 256)
  %27 = load i32, ptr @pg, align 4, !tbaa !16
  store i32 %27, ptr getelementptr inbounds (i8, ptr @pg, i64 4), align 4, !tbaa !17
  br label %183

28:                                               ; preds = %13
  call void @brek()
  br label %183

29:                                               ; preds = %13
  %30 = load i8, ptr %3, align 1, !tbaa !9
  %31 = sext i8 %30 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 40), i32 noundef %14, i32 noundef %31, i32 noundef 1, i32 noundef 0, i32 noundef 1)
  br label %183

32:                                               ; preds = %13
  %33 = load i8, ptr %3, align 1
  switch i8 %33, label %34 [
    i8 13, label %35
    i8 10, label %35
  ]

34:                                               ; preds = %32
  br label %35

35:                                               ; preds = %32, %32, %34
  %storemerge = phi i8 [ %33, %34 ], [ 46, %32 ], [ 46, %32 ]
  store i8 %storemerge, ptr getelementptr inbounds (i8, ptr @dc, i64 49), align 1, !tbaa !18
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 44), align 4, !tbaa !19
  %.not59 = icmp eq i32 %36, 0
  br i1 %.not59, label %183, label %184

37:                                               ; preds = %13
  call void @brek()
  %38 = load i8, ptr %3, align 1, !tbaa !9
  %39 = sext i8 %38 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 20), i32 noundef %14, i32 noundef %39, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  br label %183

40:                                               ; preds = %13
  %41 = load i8, ptr %3, align 1, !tbaa !9
  %42 = sext i8 %41 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 28), i32 noundef %14, i32 noundef %42, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 36), align 4, !tbaa !20
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 24), align 4, !tbaa !10
  br label %183

43:                                               ; preds = %13
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 60), align 4, !tbaa !21
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [0 x ptr], ptr @sofile, i64 0, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  call void @defmac(ptr noundef %0, ptr noundef %47)
  br label %183

48:                                               ; preds = %13
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 400080), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 64))
  br label %183

49:                                               ; preds = %13
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 80), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 48))
  br label %183

50:                                               ; preds = %13
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.5) #8
  br label %183

53:                                               ; preds = %13
  call void @brek()
  store i32 1, ptr @dc, align 4, !tbaa !22
  br label %183

54:                                               ; preds = %13
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 400080), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 64))
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 600080), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 72))
  br label %183

55:                                               ; preds = %13
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 80), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 48))
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 200080), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 56))
  br label %183

56:                                               ; preds = %13
  %57 = load i8, ptr %3, align 1, !tbaa !9
  %58 = sext i8 %57 to i32
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 12), align 4, !tbaa !23
  %60 = add nsw i32 %59, -1
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 8), i32 noundef %14, i32 noundef %58, i32 noundef 0, i32 noundef 0, i32 noundef %60)
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 8), align 4, !tbaa !24
  store i32 %61, ptr getelementptr inbounds (i8, ptr @dc, i64 16), align 4, !tbaa !25
  br label %183

62:                                               ; preds = %13
  store i32 1, ptr getelementptr inbounds (i8, ptr @dc, i64 32), align 4, !tbaa !26
  br label %183

63:                                               ; preds = %13
  %64 = load i8, ptr %3, align 1, !tbaa !9
  %65 = sext i8 %64 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 4), i32 noundef %14, i32 noundef %65, i32 noundef 1, i32 noundef 1, i32 noundef 256)
  br label %183

66:                                               ; preds = %13
  %67 = load i8, ptr %3, align 1, !tbaa !9
  %68 = sext i8 %67 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 16), i32 noundef %14, i32 noundef %68, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  br label %183

69:                                               ; preds = %13
  %70 = load i8, ptr %3, align 1, !tbaa !9
  %71 = sext i8 %70 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 20), i32 noundef %14, i32 noundef %71, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  br label %183

72:                                               ; preds = %13
  %73 = load i8, ptr %3, align 1, !tbaa !9
  %74 = sext i8 %73 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 24), i32 noundef %14, i32 noundef %74, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 12), align 4, !tbaa !27
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 28), align 4, !tbaa !28
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 24), align 4, !tbaa !29
  %78 = add i32 %76, %77
  %79 = sub i32 %75, %78
  store i32 %79, ptr getelementptr inbounds (i8, ptr @pg, i64 32), align 4, !tbaa !30
  br label %183

80:                                               ; preds = %13
  %81 = load i8, ptr %3, align 1, !tbaa !9
  %82 = sext i8 %81 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 28), i32 noundef %14, i32 noundef %82, i32 noundef 2, i32 noundef 0, i32 noundef 256)
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 12), align 4, !tbaa !27
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 28), align 4, !tbaa !28
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 24), align 4, !tbaa !29
  %86 = add i32 %84, %85
  %87 = sub i32 %83, %86
  store i32 %87, ptr getelementptr inbounds (i8, ptr @pg, i64 32), align 4, !tbaa !30
  br label %183

88:                                               ; preds = %13
  call void @maceval(ptr noundef %0, ptr noundef nonnull %5)
  br label %183

89:                                               ; preds = %13
  call void @brek()
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 32), align 4, !tbaa !30
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 8), align 4, !tbaa !14
  %92 = add i32 %90, 1
  %93 = sub i32 %92, %91
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 4), align 4, !tbaa !31
  %95 = mul nsw i32 %94, %14
  %96 = icmp slt i32 %93, %95
  br i1 %96, label %97, label %183

97:                                               ; preds = %89
  call void @space(i32 noundef 256)
  br label %183

98:                                               ; preds = %13
  call void @brek()
  store i32 0, ptr @dc, align 4, !tbaa !22
  br label %183

99:                                               ; preds = %13
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 32), align 4, !tbaa !26
  br label %183

100:                                              ; preds = %13
  %101 = call ptr @skipwd(ptr noundef %0)
  %102 = call ptr @skipbl(ptr noundef %101)
  %103 = tail call ptr @__ctype_b_loc() #9
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i8, ptr %102, align 1, !tbaa !9
  %106 = sext i8 %105 to i64
  %107 = getelementptr inbounds i16, ptr %104, i64 %106
  %108 = load i16, ptr %107, align 2, !tbaa !32
  %109 = and i16 %108, 1024
  %.not = icmp eq i16 %109, 0
  br i1 %.not, label %110, label %113

110:                                              ; preds = %100
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.6) #8
  br label %183

113:                                              ; preds = %100
  %114 = tail call ptr @__ctype_tolower_loc() #9
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds i32, ptr %115, i64 %106
  %117 = load i32, ptr %116, align 4, !tbaa !34
  %118 = add nsw i32 %117, -97
  %119 = call ptr @skipwd(ptr noundef nonnull %102)
  %120 = call i32 @getval(ptr noundef %119, ptr noundef nonnull %3)
  %121 = sext i32 %118 to i64
  %122 = getelementptr inbounds [26 x i32], ptr getelementptr inbounds (i8, ptr @dc, i64 64), i64 0, i64 %121
  %123 = load i8, ptr %3, align 1, !tbaa !9
  %124 = sext i8 %123 to i32
  call void @set(ptr noundef nonnull %122, i32 noundef %120, i32 noundef %124, i32 noundef 0, i32 noundef -256, i32 noundef 256)
  br label %183

125:                                              ; preds = %13
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 600080), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 72))
  br label %183

126:                                              ; preds = %13
  call void @gettl(ptr noundef %0, ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 200080), ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 56))
  br label %183

127:                                              ; preds = %13
  %128 = load i8, ptr %3, align 1
  switch i8 %128, label %130 [
    i8 13, label %129
    i8 10, label %129
  ]

129:                                              ; preds = %127, %127
  store i8 0, ptr getelementptr inbounds (i8, ptr @dc, i64 48), align 4, !tbaa !35
  br label %183

130:                                              ; preds = %127
  store i8 %128, ptr getelementptr inbounds (i8, ptr @dc, i64 48), align 4, !tbaa !35
  br label %183

131:                                              ; preds = %13
  %132 = load i8, ptr %3, align 1, !tbaa !9
  %133 = sext i8 %132 to i32
  %134 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @pg, i64 16), align 4, !tbaa !34
  %135 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %134)
  %op.rdx = add i32 %135, 1
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 12), i32 noundef %14, i32 noundef %133, i32 noundef 66, i32 noundef %op.rdx, i32 noundef 256)
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 12), align 4, !tbaa !27
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 24), align 4, !tbaa !29
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 28), align 4, !tbaa !28
  %139 = add i32 %137, %138
  %140 = sub i32 %136, %139
  store i32 %140, ptr getelementptr inbounds (i8, ptr @pg, i64 32), align 4, !tbaa !30
  br label %183

141:                                              ; preds = %13
  %142 = load i8, ptr %3, align 1, !tbaa !9
  %143 = sext i8 %142 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 36), i32 noundef %14, i32 noundef %143, i32 noundef 0, i32 noundef 0, i32 noundef 256)
  br label %183

144:                                              ; preds = %13
  %145 = load i8, ptr %3, align 1, !tbaa !9
  %146 = sext i8 %145 to i32
  %147 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 16), align 4, !tbaa !25
  %148 = add nsw i32 %147, 1
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 12), i32 noundef %14, i32 noundef %146, i32 noundef 80, i32 noundef %148, i32 noundef 256)
  %149 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 12), align 4, !tbaa !23
  store i32 %149, ptr getelementptr inbounds (i8, ptr @pg, i64 60), align 4, !tbaa !34
  store i32 %149, ptr getelementptr inbounds (i8, ptr @pg, i64 52), align 4, !tbaa !34
  store i32 %149, ptr getelementptr inbounds (i8, ptr @pg, i64 76), align 4, !tbaa !34
  store i32 %149, ptr getelementptr inbounds (i8, ptr @pg, i64 68), align 4, !tbaa !34
  br label %183

150:                                              ; preds = %13
  %151 = call ptr @skipwd(ptr noundef %0)
  %152 = call ptr @skipbl(ptr noundef %151)
  %153 = call i32 (ptr, ptr, ...) @getwrd(ptr noundef %152, ptr noundef nonnull %4) #7
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %183, label %155

155:                                              ; preds = %150
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 60), align 4, !tbaa !21
  %157 = icmp sgt i32 %156, 2
  br i1 %157, label %158, label %161

158:                                              ; preds = %155
  %159 = load ptr, ptr @stderr, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef nonnull @.str.7) #8
  call void @exit(i32 noundef 10) #10
  unreachable

161:                                              ; preds = %155
  %162 = call noalias ptr @fopen(ptr noundef nonnull %4, ptr noundef nonnull @.str.8)
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 60), align 4, !tbaa !21
  %164 = add nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [0 x ptr], ptr @sofile, i64 0, i64 %165
  store ptr %162, ptr %166, align 8, !tbaa !5
  %167 = icmp eq ptr %162, null
  br i1 %167, label %168, label %171

168:                                              ; preds = %161
  %169 = load ptr, ptr @stderr, align 8, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.9, ptr noundef nonnull %4) #8
  call void @exit(i32 noundef 11) #10
  unreachable

171:                                              ; preds = %161
  store i32 %164, ptr getelementptr inbounds (i8, ptr @dc, i64 60), align 4, !tbaa !21
  br label %183

172:                                              ; preds = %13
  %173 = load i8, ptr %3, align 1, !tbaa !9
  %174 = sext i8 %173 to i32
  call void @set(ptr noundef nonnull %2, i32 noundef %14, i32 noundef %174, i32 noundef 1, i32 noundef 0, i32 noundef 256)
  %175 = load i32, ptr %2, align 4, !tbaa !34
  call void @space(i32 noundef %175)
  br label %183

176:                                              ; preds = %13
  call void @brek()
  %177 = load i8, ptr %3, align 1, !tbaa !9
  %178 = sext i8 %177 to i32
  %179 = load i32, ptr getelementptr inbounds (i8, ptr @dc, i64 12), align 4, !tbaa !23
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 16), i32 noundef %14, i32 noundef %178, i32 noundef 0, i32 noundef 0, i32 noundef %179)
  br label %183

180:                                              ; preds = %13
  %181 = load i8, ptr %3, align 1, !tbaa !9
  %182 = sext i8 %181 to i32
  call void @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @dc, i64 24), i32 noundef %14, i32 noundef %182, i32 noundef 0, i32 noundef 1, i32 noundef 256)
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 36), align 4, !tbaa !20
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 28), align 4, !tbaa !13
  br label %183

183:                                              ; preds = %150, %129, %130, %110, %113, %89, %97, %35, %180, %176, %172, %171, %144, %141, %131, %126, %125, %99, %98, %88, %80, %72, %69, %66, %63, %62, %56, %55, %54, %53, %50, %49, %48, %43, %40, %37, %29, %28, %22, %15, %13
  br label %184

184:                                              ; preds = %35, %switch.early.test, %183, %10
  %.0 = phi i32 [ 0, %10 ], [ 0, %183 ], [ 1, %switch.early.test ], [ 1, %35 ]
  call void @llvm.lifetime.end.p0(i64 180000, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 200000, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  ret i32 %.0
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { noreturn 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 = { "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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 24}
!11 = !{!"docctl", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48, !7, i64 49, !12, i64 52, !12, i64 56, !12, i64 60, !7, i64 64}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !12, i64 28}
!14 = !{!15, !12, i64 8}
!15 = !{!"page", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 200080, !7, i64 400080, !7, i64 600080}
!16 = !{!15, !12, i64 0}
!17 = !{!15, !12, i64 4}
!18 = !{!11, !7, i64 49}
!19 = !{!11, !12, i64 44}
!20 = !{!11, !12, i64 36}
!21 = !{!11, !12, i64 60}
!22 = !{!11, !12, i64 0}
!23 = !{!11, !12, i64 12}
!24 = !{!11, !12, i64 8}
!25 = !{!11, !12, i64 16}
!26 = !{!11, !12, i64 32}
!27 = !{!15, !12, i64 12}
!28 = !{!15, !12, i64 28}
!29 = !{!15, !12, i64 24}
!30 = !{!15, !12, i64 32}
!31 = !{!11, !12, i64 4}
!32 = !{!33, !33, i64 0}
!33 = !{!"short", !7, i64 0}
!34 = !{!12, !12, i64 0}
!35 = !{!11, !7, i64 48}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass