; LLVM IR from rolinh/dfc :: src (dfc)

; 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.conf = type { i32, i32, i32, i32, i32, i32, i32, [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], i8, i8 }
%struct.list = type { ptr, ptr }
%struct.display = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@__const.main.color_opts = external hidden unnamed_addr constant [4 x ptr], align 16
@__const.main.export_opts = external hidden unnamed_addr constant [6 x ptr], align 16
@__const.main.sort_opts = external hidden unnamed_addr constant [4 x ptr], align 16
@__const.main.unit_opts = external hidden unnamed_addr constant [11 x ptr], align 16
@cflag = external dso_local global i32, align 4
@unitflag = external dso_local global i8, align 1
@cnf = external dso_local global %struct.conf, align 4
@.str = external hidden unnamed_addr constant [29 x i8], align 1
@aflag = external dso_local global i32, align 4
@bflag = external dso_local global i32, align 4
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@dflag = external dso_local global i32, align 4
@eflag = external dso_local global i32, align 4
@Wflag = external dso_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@fflag = external dso_local global i32, align 4
@hflag = external dso_local global i32, align 4
@iflag = external dso_local global i32, align 4
@lflag = external dso_local global i32, align 4
@mflag = external dso_local global i32, align 4
@Mflag = external dso_local global i32, align 4
@nflag = external dso_local global i32, align 4
@oflag = external dso_local global i32, align 4
@pflag = external dso_local global i32, align 4
@qflag = external dso_local global i32, align 4
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@sflag = external dso_local global i32, align 4
@tflag = external dso_local global i32, align 4
@Tflag = external dso_local global i32, align 4
@uflag = external dso_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@vflag = external dso_local global i32, align 4
@wflag = external dso_local global i32, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.list, align 8
  %7 = alloca %struct.display, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [4 x ptr], align 16
  %17 = alloca [6 x ptr], align 16
  %18 = alloca [4 x ptr], align 16
  %19 = alloca [11 x ptr], align 16
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 120, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.main.color_opts, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.export_opts, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.sort_opts, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 88, ptr %19) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.main.unit_opts, i64 88, i1 false)
  store i32 1, ptr @cflag, align 4, !tbaa !5
  store i8 104, ptr @unitflag, align 1, !tbaa !11
  call void @init_conf(ptr noundef @cnf)
  br label %20

20:                                               ; preds = %136, %2
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str) #5
  store i32 %23, ptr %8, align 4, !tbaa !5
  %24 = icmp ne i32 %23, -1
  br i1 %24, label %25, label %137

25:                                               ; preds = %20
  %26 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %26, label %135 [
    i32 97, label %27
    i32 98, label %28
    i32 99, label %29
    i32 100, label %48
    i32 101, label %49
    i32 102, label %70
    i32 104, label %71
    i32 105, label %72
    i32 108, label %73
    i32 109, label %74
    i32 77, label %75
    i32 110, label %76
    i32 111, label %77
    i32 112, label %78
    i32 113, label %81
    i32 115, label %100
    i32 116, label %101
    i32 84, label %104
    i32 117, label %105
    i32 118, label %131
    i32 119, label %132
    i32 87, label %133
    i32 63, label %134
  ]

27:                                               ; preds = %25
  store i32 1, ptr @aflag, align 4, !tbaa !5
  br label %136

28:                                               ; preds = %25
  store i32 1, ptr @bflag, align 4, !tbaa !5
  br label %136

29:                                               ; preds = %25
  %30 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %30, ptr %13, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %46, %29
  %32 = load ptr, ptr %13, align 8, !tbaa !9
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %35, label %47

35:                                               ; preds = %31
  %36 = getelementptr inbounds [4 x ptr], ptr %16, i64 0, i64 0
  %37 = call i32 @getsubopt(ptr noundef %13, ptr noundef %36, ptr noundef %14) #5
  switch i32 %37, label %42 [
    i32 0, label %38
    i32 1, label %39
    i32 2, label %40
    i32 -1, label %41
  ]

38:                                               ; preds = %35
  store i32 2, ptr @cflag, align 4, !tbaa !5
  br label %46

39:                                               ; preds = %35
  store i32 0, ptr @cflag, align 4, !tbaa !5
  br label %46

40:                                               ; preds = %35
  store i32 1, ptr @cflag, align 4, !tbaa !5
  br label %46

41:                                               ; preds = %35
  br label %42

42:                                               ; preds = %41, %35
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = load ptr, ptr %13, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.1, ptr noundef %44) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %185

46:                                               ; preds = %40, %39, %38
  br label %31, !llvm.loop !12

47:                                               ; preds = %31
  br label %136

48:                                               ; preds = %25
  store i32 1, ptr @dflag, align 4, !tbaa !5
  br label %136

49:                                               ; preds = %25
  store i32 1, ptr @eflag, align 4, !tbaa !5
  %50 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %50, ptr %13, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %68, %49
  %52 = load ptr, ptr %13, align 8, !tbaa !9
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = icmp ne i8 %53, 0
  br i1 %54, label %55, label %69

55:                                               ; preds = %51
  %56 = getelementptr inbounds [6 x ptr], ptr %17, i64 0, i64 0
  %57 = call i32 @getsubopt(ptr noundef %13, ptr noundef %56, ptr noundef %14) #5
  switch i32 %57, label %64 [
    i32 0, label %58
    i32 1, label %59
    i32 2, label %60
    i32 3, label %61
    i32 4, label %62
    i32 -1, label %63
  ]

58:                                               ; preds = %55
  store i32 0, ptr @eflag, align 4, !tbaa !5
  br label %68

59:                                               ; preds = %55
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_csv(ptr noundef %7)
  br label %68

60:                                               ; preds = %55
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_html(ptr noundef %7)
  br label %68

61:                                               ; preds = %55
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_tex(ptr noundef %7)
  br label %68

62:                                               ; preds = %55
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_json(ptr noundef %7)
  br label %68

63:                                               ; preds = %55
  br label %64

64:                                               ; preds = %63, %55
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = load ptr, ptr %13, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.2, ptr noundef %66) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %185

68:                                               ; preds = %62, %61, %60, %59, %58
  br label %51, !llvm.loop !14

69:                                               ; preds = %51
  br label %136

70:                                               ; preds = %25
  store i32 1, ptr @fflag, align 4, !tbaa !5
  br label %136

71:                                               ; preds = %25
  store i32 1, ptr @hflag, align 4, !tbaa !5
  br label %136

72:                                               ; preds = %25
  store i32 1, ptr @iflag, align 4, !tbaa !5
  br label %136

73:                                               ; preds = %25
  store i32 1, ptr @lflag, align 4, !tbaa !5
  br label %136

74:                                               ; preds = %25
  store i32 1, ptr @mflag, align 4, !tbaa !5
  br label %136

75:                                               ; preds = %25
  store i32 1, ptr @Mflag, align 4, !tbaa !5
  br label %136

76:                                               ; preds = %25
  store i32 1, ptr @nflag, align 4, !tbaa !5
  br label %136

77:                                               ; preds = %25
  store i32 1, ptr @oflag, align 4, !tbaa !5
  br label %136

78:                                               ; preds = %25
  store i32 1, ptr @pflag, align 4, !tbaa !5
  %79 = load ptr, ptr @optarg, align 8, !tbaa !9
  %80 = call noalias ptr @strdup(ptr noundef %79) #5
  store ptr %80, ptr %11, align 8, !tbaa !9
  br label %136

81:                                               ; preds = %25
  %82 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %82, ptr %13, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %98, %81
  %84 = load ptr, ptr %13, align 8, !tbaa !9
  %85 = load i8, ptr %84, align 1, !tbaa !11
  %86 = icmp ne i8 %85, 0
  br i1 %86, label %87, label %99

87:                                               ; preds = %83
  %88 = getelementptr inbounds [4 x ptr], ptr %18, i64 0, i64 0
  %89 = call i32 @getsubopt(ptr noundef %13, ptr noundef %88, ptr noundef %14) #5
  switch i32 %89, label %94 [
    i32 0, label %90
    i32 1, label %91
    i32 2, label %92
    i32 -1, label %93
  ]

90:                                               ; preds = %87
  store i32 1, ptr @qflag, align 4, !tbaa !5
  br label %98

91:                                               ; preds = %87
  store i32 2, ptr @qflag, align 4, !tbaa !5
  br label %98

92:                                               ; preds = %87
  store i32 3, ptr @qflag, align 4, !tbaa !5
  br label %98

93:                                               ; preds = %87
  br label %94

94:                                               ; preds = %93, %87
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = load ptr, ptr %13, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.3, ptr noundef %96) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %185

98:                                               ; preds = %92, %91, %90
  br label %83, !llvm.loop !15

99:                                               ; preds = %83
  br label %136

100:                                              ; preds = %25
  store i32 1, ptr @sflag, align 4, !tbaa !5
  br label %136

101:                                              ; preds = %25
  store i32 1, ptr @tflag, align 4, !tbaa !5
  %102 = load ptr, ptr @optarg, align 8, !tbaa !9
  %103 = call noalias ptr @strdup(ptr noundef %102) #5
  store ptr %103, ptr %12, align 8, !tbaa !9
  br label %136

104:                                              ; preds = %25
  store i32 1, ptr @Tflag, align 4, !tbaa !5
  br label %136

105:                                              ; preds = %25
  store i32 1, ptr @uflag, align 4, !tbaa !5
  %106 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %106, ptr %13, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %129, %105
  %108 = load ptr, ptr %13, align 8, !tbaa !9
  %109 = load i8, ptr %108, align 1, !tbaa !11
  %110 = icmp ne i8 %109, 0
  br i1 %110, label %111, label %130

111:                                              ; preds = %107
  %112 = getelementptr inbounds [11 x ptr], ptr %19, i64 0, i64 0
  %113 = call i32 @getsubopt(ptr noundef %13, ptr noundef %112, ptr noundef %14) #5
  switch i32 %113, label %125 [
    i32 0, label %114
    i32 1, label %115
    i32 2, label %116
    i32 3, label %117
    i32 4, label %118
    i32 5, label %119
    i32 6, label %120
    i32 7, label %121
    i32 8, label %122
    i32 9, label %123
    i32 -1, label %124
  ]

114:                                              ; preds = %111
  store i32 0, ptr @uflag, align 4, !tbaa !5
  store i8 104, ptr @unitflag, align 1, !tbaa !11
  br label %129

115:                                              ; preds = %111
  store i8 98, ptr @unitflag, align 1, !tbaa !11
  br label %129

116:                                              ; preds = %111
  store i8 107, ptr @unitflag, align 1, !tbaa !11
  br label %129

117:                                              ; preds = %111
  store i8 109, ptr @unitflag, align 1, !tbaa !11
  br label %129

118:                                              ; preds = %111
  store i8 103, ptr @unitflag, align 1, !tbaa !11
  br label %129

119:                                              ; preds = %111
  store i8 116, ptr @unitflag, align 1, !tbaa !11
  br label %129

120:                                              ; preds = %111
  store i8 112, ptr @unitflag, align 1, !tbaa !11
  br label %129

121:                                              ; preds = %111
  store i8 101, ptr @unitflag, align 1, !tbaa !11
  br label %129

122:                                              ; preds = %111
  store i8 122, ptr @unitflag, align 1, !tbaa !11
  br label %129

123:                                              ; preds = %111
  store i8 121, ptr @unitflag, align 1, !tbaa !11
  br label %129

124:                                              ; preds = %111
  br label %125

125:                                              ; preds = %124, %111
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = load ptr, ptr %13, align 8, !tbaa !9
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.4, ptr noundef %127) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %185

129:                                              ; preds = %123, %122, %121, %120, %119, %118, %117, %116, %115, %114
  br label %107, !llvm.loop !16

130:                                              ; preds = %107
  br label %136

131:                                              ; preds = %25
  store i32 1, ptr @vflag, align 4, !tbaa !5
  br label %136

132:                                              ; preds = %25
  store i32 1, ptr @wflag, align 4, !tbaa !5
  br label %136

133:                                              ; preds = %25
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  br label %136

134:                                              ; preds = %25
  br label %135

135:                                              ; preds = %134, %25
  call void @usage(i32 noundef 1)
  br label %136

136:                                              ; preds = %135, %133, %132, %131, %130, %104, %101, %100, %99, %78, %77, %76, %75, %74, %73, %72, %71, %70, %69, %48, %47, %28, %27
  br label %20, !llvm.loop !17

137:                                              ; preds = %20
  %138 = load i32, ptr @hflag, align 4, !tbaa !5
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %137
  call void @usage(i32 noundef 0)
  br label %141

141:                                              ; preds = %140, %137
  %142 = load i32, ptr @vflag, align 4, !tbaa !5
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %141
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7)
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %185

146:                                              ; preds = %141
  call void @init_maxwidths()
  %147 = call i32 @getttywidth()
  store i32 %147, ptr %9, align 4, !tbaa !5
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %154

150:                                              ; preds = %146
  %151 = load i32, ptr @cflag, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 2
  br i1 %152, label %153, label %154

153:                                              ; preds = %150
  store i32 0, ptr @cflag, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %153, %150, %146
  %155 = call ptr @config_file()
  store ptr %155, ptr %15, align 8, !tbaa !9
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %167

157:                                              ; preds = %154
  %158 = load ptr, ptr %15, align 8, !tbaa !9
  %159 = call i32 @update_conf(ptr noundef %158)
  %160 = icmp eq i32 %159, -1
  br i1 %160, label %161, label %165

161:                                              ; preds = %157
  %162 = load ptr, ptr @stderr, align 8, !tbaa !9
  %163 = load ptr, ptr %15, align 8, !tbaa !9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.8, ptr noundef %163) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %161, %157
  %166 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %166) #5
  br label %167

167:                                              ; preds = %165, %154
  %168 = load i32, ptr @eflag, align 4, !tbaa !5
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %171, label %170

170:                                              ; preds = %167
  call void @init_disp_text(ptr noundef %7)
  br label %171

171:                                              ; preds = %170, %167
  call void @init_queue(ptr noundef %6)
  call void @fetch_info(ptr noundef %6)
  %172 = load i32, ptr @fflag, align 4, !tbaa !5
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %182, label %174

174:                                              ; preds = %171
  %175 = load i32, ptr %9, align 4, !tbaa !5
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %177, label %182

177:                                              ; preds = %174
  %178 = load i32, ptr @eflag, align 4, !tbaa !5
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %182, label %180

180:                                              ; preds = %177
  %181 = load i32, ptr %9, align 4, !tbaa !5
  call void @auto_adjust(i32 noundef %181)
  br label %182

182:                                              ; preds = %180, %177, %174, %171
  %183 = load ptr, ptr %12, align 8, !tbaa !9
  %184 = load ptr, ptr %11, align 8, !tbaa !9
  call void @disp(ptr noundef %6, ptr noundef %183, ptr noundef %184, ptr noundef %7)
  br label %185

185:                                              ; preds = %182, %144, %125, %94, %64, %42
  %186 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %186) #5
  %187 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %187) #5
  %188 = load i32, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 88, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  ret i32 %188
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @init_conf(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @getsubopt(ptr noundef, ptr noundef, ptr noundef) #4

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

declare void @init_disp_csv(ptr noundef) #3

declare void @init_disp_html(ptr noundef) #3

declare void @init_disp_tex(ptr noundef) #3

declare void @init_disp_json(ptr noundef) #3

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

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

declare i32 @printf(ptr noundef, ...) #3

declare void @init_maxwidths() #3

declare i32 @getttywidth() #3

declare ptr @config_file() #3

declare i32 @update_conf(ptr noundef) #3

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

declare void @init_disp_text(ptr noundef) #3

declare void @init_queue(ptr noundef) #3

declare void @fetch_info(ptr noundef) #3

declare void @auto_adjust(i32 noundef) #3

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

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; 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.conf = type { i32, i32, i32, i32, i32, i32, i32, [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], [7 x i8], i8, i8 }
%struct.list = type { ptr, ptr }
%struct.display = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@__const.main.color_opts = external hidden unnamed_addr constant [4 x ptr], align 16
@__const.main.export_opts = external hidden unnamed_addr constant [6 x ptr], align 16
@__const.main.sort_opts = external hidden unnamed_addr constant [4 x ptr], align 16
@__const.main.unit_opts = external hidden unnamed_addr constant [11 x ptr], align 16
@cflag = external dso_local local_unnamed_addr global i32, align 4
@unitflag = external dso_local local_unnamed_addr global i8, align 1
@cnf = external dso_local global %struct.conf, align 4
@.str = external hidden unnamed_addr constant [29 x i8], align 1
@aflag = external dso_local local_unnamed_addr global i32, align 4
@bflag = external dso_local local_unnamed_addr global i32, align 4
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@dflag = external dso_local local_unnamed_addr global i32, align 4
@eflag = external dso_local local_unnamed_addr global i32, align 4
@Wflag = external dso_local local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@fflag = external dso_local local_unnamed_addr global i32, align 4
@hflag = external dso_local local_unnamed_addr global i32, align 4
@iflag = external dso_local local_unnamed_addr global i32, align 4
@lflag = external dso_local local_unnamed_addr global i32, align 4
@mflag = external dso_local local_unnamed_addr global i32, align 4
@Mflag = external dso_local local_unnamed_addr global i32, align 4
@nflag = external dso_local local_unnamed_addr global i32, align 4
@oflag = external dso_local local_unnamed_addr global i32, align 4
@pflag = external dso_local local_unnamed_addr global i32, align 4
@qflag = external dso_local local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@sflag = external dso_local local_unnamed_addr global i32, align 4
@tflag = external dso_local local_unnamed_addr global i32, align 4
@Tflag = external dso_local local_unnamed_addr global i32, align 4
@uflag = external dso_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@vflag = external dso_local local_unnamed_addr global i32, align 4
@wflag = external dso_local local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@switch.table.main = private unnamed_addr constant [3 x i32] [i32 2, i32 0, i32 1], align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.list, align 8
  %4 = alloca %struct.display, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [4 x ptr], align 16
  %8 = alloca [6 x ptr], align 16
  %9 = alloca [4 x ptr], align 16
  %10 = alloca [11 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.color_opts, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %8, ptr noundef nonnull align 16 dereferenceable(48) @__const.main.export_opts, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.sort_opts, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(88) %10, ptr noundef nonnull align 16 dereferenceable(88) @__const.main.unit_opts, i64 88, i1 false)
  store i32 1, ptr @cflag, align 4, !tbaa !5
  store i8 104, ptr @unitflag, align 1, !tbaa !9
  tail call void @init_conf(ptr noundef nonnull @cnf) #8
  br label %11

11:                                               ; preds = %.loopexit, %2
  %.020 = phi ptr [ null, %2 ], [ %.121, %.loopexit ]
  %.018 = phi ptr [ null, %2 ], [ %.119, %.loopexit ]
  %12 = call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #8
  switch i32 %12, label %94 [
    i32 -1, label %95
    i32 97, label %13
    i32 98, label %14
    i32 99, label %15
    i32 100, label %27
    i32 101, label %28
    i32 102, label %44
    i32 104, label %45
    i32 105, label %46
    i32 108, label %47
    i32 109, label %48
    i32 77, label %49
    i32 110, label %50
    i32 111, label %51
    i32 112, label %52
    i32 113, label %55
    i32 115, label %66
    i32 116, label %67
    i32 84, label %70
    i32 117, label %71
    i32 118, label %91
    i32 119, label %92
    i32 87, label %93
  ]

13:                                               ; preds = %11
  store i32 1, ptr @aflag, align 4, !tbaa !5
  br label %.loopexit

14:                                               ; preds = %11
  store i32 1, ptr @bflag, align 4, !tbaa !5
  br label %.loopexit

15:                                               ; preds = %11
  %16 = load ptr, ptr @optarg, align 8, !tbaa !10
  store ptr %16, ptr %5, align 8, !tbaa !10
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %.not3453 = icmp eq i8 %17, 0
  br i1 %.not3453, label %.loopexit, label %.lr.ph54

.lr.ph54:                                         ; preds = %15, %switch.lookup
  %18 = call i32 @getsubopt(ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %6) #8
  %19 = icmp ult i32 %18, 3
  br i1 %19, label %switch.lookup, label %20

20:                                               ; preds = %.lr.ph54
  %21 = load ptr, ptr @stderr, align 8, !tbaa !10
  %22 = load ptr, ptr %5, align 8, !tbaa !10
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.1, ptr noundef %22) #9
  br label %128

switch.lookup:                                    ; preds = %.lr.ph54
  %24 = zext nneg i32 %18 to i64
  %switch.gep = getelementptr inbounds [3 x i32], ptr @switch.table.main, i64 0, i64 %24
  %switch.load = load i32, ptr %switch.gep, align 4
  store i32 %switch.load, ptr @cflag, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !10
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %.not34 = icmp eq i8 %26, 0
  br i1 %.not34, label %.loopexit, label %.lr.ph54, !llvm.loop !12

27:                                               ; preds = %11
  store i32 1, ptr @dflag, align 4, !tbaa !5
  br label %.loopexit

28:                                               ; preds = %11
  store i32 1, ptr @eflag, align 4, !tbaa !5
  %29 = load ptr, ptr @optarg, align 8, !tbaa !10
  store ptr %29, ptr %5, align 8, !tbaa !10
  %30 = load i8, ptr %29, align 1, !tbaa !9
  %.not3351 = icmp eq i8 %30, 0
  br i1 %.not3351, label %.loopexit, label %.lr.ph52

.lr.ph52:                                         ; preds = %28, %41
  %31 = call i32 @getsubopt(ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %6) #8
  switch i32 %31, label %37 [
    i32 0, label %32
    i32 1, label %33
    i32 2, label %34
    i32 3, label %35
    i32 4, label %36
  ]

32:                                               ; preds = %.lr.ph52
  store i32 0, ptr @eflag, align 4, !tbaa !5
  br label %41

33:                                               ; preds = %.lr.ph52
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_csv(ptr noundef nonnull %4) #8
  br label %41

34:                                               ; preds = %.lr.ph52
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_html(ptr noundef nonnull %4) #8
  br label %41

35:                                               ; preds = %.lr.ph52
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_tex(ptr noundef nonnull %4) #8
  br label %41

36:                                               ; preds = %.lr.ph52
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  call void @init_disp_json(ptr noundef nonnull %4) #8
  br label %41

37:                                               ; preds = %.lr.ph52
  %38 = load ptr, ptr @stderr, align 8, !tbaa !10
  %39 = load ptr, ptr %5, align 8, !tbaa !10
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.2, ptr noundef %39) #9
  br label %128

41:                                               ; preds = %36, %35, %34, %33, %32
  %42 = load ptr, ptr %5, align 8, !tbaa !10
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %.not33 = icmp eq i8 %43, 0
  br i1 %.not33, label %.loopexit, label %.lr.ph52, !llvm.loop !14

44:                                               ; preds = %11
  store i32 1, ptr @fflag, align 4, !tbaa !5
  br label %.loopexit

45:                                               ; preds = %11
  store i32 1, ptr @hflag, align 4, !tbaa !5
  br label %.loopexit

46:                                               ; preds = %11
  store i32 1, ptr @iflag, align 4, !tbaa !5
  br label %.loopexit

47:                                               ; preds = %11
  store i32 1, ptr @lflag, align 4, !tbaa !5
  br label %.loopexit

48:                                               ; preds = %11
  store i32 1, ptr @mflag, align 4, !tbaa !5
  br label %.loopexit

49:                                               ; preds = %11
  store i32 1, ptr @Mflag, align 4, !tbaa !5
  br label %.loopexit

50:                                               ; preds = %11
  store i32 1, ptr @nflag, align 4, !tbaa !5
  br label %.loopexit

51:                                               ; preds = %11
  store i32 1, ptr @oflag, align 4, !tbaa !5
  br label %.loopexit

52:                                               ; preds = %11
  store i32 1, ptr @pflag, align 4, !tbaa !5
  %53 = load ptr, ptr @optarg, align 8, !tbaa !10
  %54 = call noalias ptr @strdup(ptr noundef %53) #8
  br label %.loopexit

55:                                               ; preds = %11
  %56 = load ptr, ptr @optarg, align 8, !tbaa !10
  store ptr %56, ptr %5, align 8, !tbaa !10
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %.not3249 = icmp eq i8 %57, 0
  br i1 %.not3249, label %.loopexit, label %.lr.ph50

.lr.ph50:                                         ; preds = %55, %switch.lookup96
  %58 = call i32 @getsubopt(ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %6) #8
  %59 = icmp ult i32 %58, 3
  br i1 %59, label %switch.lookup96, label %60

60:                                               ; preds = %.lr.ph50
  %61 = load ptr, ptr @stderr, align 8, !tbaa !10
  %62 = load ptr, ptr %5, align 8, !tbaa !10
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.3, ptr noundef %62) #9
  br label %128

switch.lookup96:                                  ; preds = %.lr.ph50
  %switch.offset = add nuw nsw i32 %58, 1
  store i32 %switch.offset, ptr @qflag, align 4, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !10
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %.not32 = icmp eq i8 %65, 0
  br i1 %.not32, label %.loopexit, label %.lr.ph50, !llvm.loop !15

66:                                               ; preds = %11
  store i32 1, ptr @sflag, align 4, !tbaa !5
  br label %.loopexit

67:                                               ; preds = %11
  store i32 1, ptr @tflag, align 4, !tbaa !5
  %68 = load ptr, ptr @optarg, align 8, !tbaa !10
  %69 = call noalias ptr @strdup(ptr noundef %68) #8
  br label %.loopexit

70:                                               ; preds = %11
  store i32 1, ptr @Tflag, align 4, !tbaa !5
  br label %.loopexit

71:                                               ; preds = %11
  store i32 1, ptr @uflag, align 4, !tbaa !5
  %72 = load ptr, ptr @optarg, align 8, !tbaa !10
  store ptr %72, ptr %5, align 8, !tbaa !10
  %73 = load i8, ptr %72, align 1, !tbaa !9
  %.not3148 = icmp eq i8 %73, 0
  br i1 %.not3148, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %71, %88
  %74 = call i32 @getsubopt(ptr noundef nonnull %5, ptr noundef nonnull %10, ptr noundef nonnull %6) #8
  switch i32 %74, label %84 [
    i32 0, label %75
    i32 1, label %88
    i32 2, label %76
    i32 3, label %77
    i32 4, label %78
    i32 5, label %79
    i32 6, label %80
    i32 7, label %81
    i32 8, label %82
    i32 9, label %83
  ]

75:                                               ; preds = %.lr.ph
  store i32 0, ptr @uflag, align 4, !tbaa !5
  br label %88

76:                                               ; preds = %.lr.ph
  br label %88

77:                                               ; preds = %.lr.ph
  br label %88

78:                                               ; preds = %.lr.ph
  br label %88

79:                                               ; preds = %.lr.ph
  br label %88

80:                                               ; preds = %.lr.ph
  br label %88

81:                                               ; preds = %.lr.ph
  br label %88

82:                                               ; preds = %.lr.ph
  br label %88

83:                                               ; preds = %.lr.ph
  br label %88

84:                                               ; preds = %.lr.ph
  %85 = load ptr, ptr @stderr, align 8, !tbaa !10
  %86 = load ptr, ptr %5, align 8, !tbaa !10
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.4, ptr noundef %86) #9
  br label %128

88:                                               ; preds = %.lr.ph, %83, %82, %81, %80, %79, %78, %77, %76, %75
  %.sink82 = phi i8 [ 121, %83 ], [ 122, %82 ], [ 101, %81 ], [ 112, %80 ], [ 116, %79 ], [ 103, %78 ], [ 109, %77 ], [ 107, %76 ], [ 104, %75 ], [ 98, %.lr.ph ]
  store i8 %.sink82, ptr @unitflag, align 1, !tbaa !9
  %89 = load ptr, ptr %5, align 8, !tbaa !10
  %90 = load i8, ptr %89, align 1, !tbaa !9
  %.not31 = icmp eq i8 %90, 0
  br i1 %.not31, label %.loopexit, label %.lr.ph, !llvm.loop !16

91:                                               ; preds = %11
  store i32 1, ptr @vflag, align 4, !tbaa !5
  br label %.loopexit

92:                                               ; preds = %11
  store i32 1, ptr @wflag, align 4, !tbaa !5
  br label %.loopexit

93:                                               ; preds = %11
  store i32 1, ptr @Wflag, align 4, !tbaa !5
  br label %.loopexit

94:                                               ; preds = %11
  call void @usage(i32 noundef 1)
  br label %.loopexit

.loopexit:                                        ; preds = %88, %switch.lookup96, %41, %switch.lookup, %71, %55, %28, %15, %94, %93, %92, %91, %70, %67, %66, %52, %51, %50, %49, %48, %47, %46, %45, %44, %27, %14, %13
  %.121 = phi ptr [ %.020, %94 ], [ %.020, %93 ], [ %.020, %92 ], [ %.020, %91 ], [ %.020, %70 ], [ %.020, %67 ], [ %.020, %66 ], [ %54, %52 ], [ %.020, %51 ], [ %.020, %50 ], [ %.020, %49 ], [ %.020, %48 ], [ %.020, %47 ], [ %.020, %46 ], [ %.020, %45 ], [ %.020, %44 ], [ %.020, %27 ], [ %.020, %14 ], [ %.020, %13 ], [ %.020, %15 ], [ %.020, %28 ], [ %.020, %55 ], [ %.020, %71 ], [ %.020, %switch.lookup ], [ %.020, %41 ], [ %.020, %switch.lookup96 ], [ %.020, %88 ]
  %.119 = phi ptr [ %.018, %94 ], [ %.018, %93 ], [ %.018, %92 ], [ %.018, %91 ], [ %.018, %70 ], [ %69, %67 ], [ %.018, %66 ], [ %.018, %52 ], [ %.018, %51 ], [ %.018, %50 ], [ %.018, %49 ], [ %.018, %48 ], [ %.018, %47 ], [ %.018, %46 ], [ %.018, %45 ], [ %.018, %44 ], [ %.018, %27 ], [ %.018, %14 ], [ %.018, %13 ], [ %.018, %15 ], [ %.018, %28 ], [ %.018, %55 ], [ %.018, %71 ], [ %.018, %switch.lookup ], [ %.018, %41 ], [ %.018, %switch.lookup96 ], [ %.018, %88 ]
  br label %11, !llvm.loop !17

95:                                               ; preds = %11
  %96 = load i32, ptr @hflag, align 4, !tbaa !5
  %.not24 = icmp eq i32 %96, 0
  br i1 %.not24, label %98, label %97

97:                                               ; preds = %95
  call void @usage(i32 noundef 0)
  br label %98

98:                                               ; preds = %97, %95
  %99 = load i32, ptr @vflag, align 4, !tbaa !5
  %.not25 = icmp eq i32 %99, 0
  br i1 %.not25, label %102, label %100

100:                                              ; preds = %98
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7)
  br label %128

102:                                              ; preds = %98
  call void @init_maxwidths() #8
  %103 = call i32 @getttywidth() #8
  %104 = icmp eq i32 %103, 0
  %105 = load i32, ptr @cflag, align 4
  %106 = icmp ne i32 %105, 2
  %or.cond = select i1 %104, i1 %106, i1 false
  br i1 %or.cond, label %107, label %108

107:                                              ; preds = %102
  store i32 0, ptr @cflag, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %107, %102
  %109 = call ptr @config_file() #8
  %.not26 = icmp eq ptr %109, null
  br i1 %.not26, label %117, label %110

110:                                              ; preds = %108
  %111 = call i32 @update_conf(ptr noundef nonnull %109) #8
  %112 = icmp eq i32 %111, -1
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = load ptr, ptr @stderr, align 8, !tbaa !10
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.8, ptr noundef nonnull %109) #9
  br label %116

116:                                              ; preds = %113, %110
  %.0 = phi i32 [ 1, %113 ], [ 0, %110 ]
  call void @free(ptr noundef nonnull %109) #8
  br label %117

117:                                              ; preds = %116, %108
  %.1 = phi i32 [ %.0, %116 ], [ 0, %108 ]
  %118 = load i32, ptr @eflag, align 4, !tbaa !5
  %.not27 = icmp eq i32 %118, 0
  br i1 %.not27, label %119, label %120

119:                                              ; preds = %117
  call void @init_disp_text(ptr noundef nonnull %4) #8
  br label %120

120:                                              ; preds = %119, %117
  call void @init_queue(ptr noundef nonnull %3) #8
  call void @fetch_info(ptr noundef nonnull %3) #8
  %121 = load i32, ptr @fflag, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  %123 = icmp slt i32 %103, 1
  %or.cond3.not30 = or i1 %123, %122
  %124 = load i32, ptr @eflag, align 4
  %125 = icmp ne i32 %124, 0
  %or.cond5 = select i1 %or.cond3.not30, i1 true, i1 %125
  br i1 %or.cond5, label %127, label %126

126:                                              ; preds = %120
  call void @auto_adjust(i32 noundef %103) #8
  br label %127

127:                                              ; preds = %126, %120
  call void @disp(ptr noundef nonnull %3, ptr noundef %.018, ptr noundef %.020, ptr noundef nonnull %4)
  br label %128

128:                                              ; preds = %127, %100, %84, %60, %37, %20
  %.2 = phi i32 [ 1, %84 ], [ 1, %60 ], [ 1, %37 ], [ 1, %20 ], [ 0, %100 ], [ %.1, %127 ]
  call void @free(ptr noundef %.018) #8
  call void @free(ptr noundef %.020) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret i32 %.2
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @init_conf(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @getsubopt(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare void @init_disp_csv(ptr noundef) local_unnamed_addr #3

declare void @init_disp_html(ptr noundef) local_unnamed_addr #3

declare void @init_disp_tex(ptr noundef) local_unnamed_addr #3

declare void @init_disp_json(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #6

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

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

declare void @init_maxwidths() local_unnamed_addr #3

declare i32 @getttywidth() local_unnamed_addr #3

declare ptr @config_file() local_unnamed_addr #3

declare i32 @update_conf(ptr noundef) local_unnamed_addr #3

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

declare void @init_disp_text(ptr noundef) local_unnamed_addr #3

declare void @init_queue(ptr noundef) local_unnamed_addr #3

declare void @fetch_info(ptr noundef) local_unnamed_addr #3

declare void @auto_adjust(i32 noundef) local_unnamed_addr #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass