; LLVM IR from GGiecold-zz/Cluster_Ensembles :: src/Cluster_Ensembles/Hypergraph_Partitioning/metis-5.1.0/programs (cmdline)

; 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.gk_option = type { ptr, i32, ptr, i32 }
%struct.gk_StringMap_t = type { ptr, i32 }
%struct.params_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, float, float, float, i64 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@long_options = external hidden global [17 x %struct.gk_option], align 16
@gk_optarg = external global ptr, align 8
@gtype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@ptype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@objtype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@ctype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@iptype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@helpstr = external hidden global [94 x [100 x i8]], align 16
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [75 x i8], align 1
@gk_optind = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@shorthelpstr = external hidden global [4 x [100 x i8]], align 16
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [67 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @parse_cmdline(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %11 = call ptr @gk_malloc(i64 noundef 176, ptr noundef @.str)
  store ptr %11, ptr %10, align 8, !tbaa !9
  %12 = load ptr, ptr %10, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %12, i8 0, i64 176, i1 false)
  %13 = load ptr, ptr %10, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.params_t, ptr %13, i32 0, i32 12
  store i32 0, ptr %14, align 8, !tbaa !11
  %15 = load ptr, ptr %10, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.params_t, ptr %15, i32 0, i32 0
  store i32 1, ptr %16, align 8, !tbaa !15
  %17 = load ptr, ptr %10, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.params_t, ptr %17, i32 0, i32 1
  store i32 0, ptr %18, align 4, !tbaa !16
  %19 = load ptr, ptr %10, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.params_t, ptr %19, i32 0, i32 2
  store i32 1, ptr %20, align 8, !tbaa !17
  %21 = load ptr, ptr %10, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.params_t, ptr %21, i32 0, i32 3
  store i32 0, ptr %22, align 4, !tbaa !18
  %23 = load ptr, ptr %10, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.params_t, ptr %23, i32 0, i32 4
  store i32 -1, ptr %24, align 8, !tbaa !19
  %25 = load ptr, ptr %10, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.params_t, ptr %25, i32 0, i32 6
  store i32 0, ptr %26, align 8, !tbaa !20
  %27 = load ptr, ptr %10, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.params_t, ptr %27, i32 0, i32 7
  store i32 0, ptr %28, align 4, !tbaa !21
  %29 = load ptr, ptr %10, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.params_t, ptr %29, i32 0, i32 8
  store i32 0, ptr %30, align 8, !tbaa !22
  %31 = load ptr, ptr %10, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.params_t, ptr %31, i32 0, i32 27
  store i32 3, ptr %32, align 8, !tbaa !23
  %33 = load ptr, ptr %10, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.params_t, ptr %33, i32 0, i32 10
  store i32 1, ptr %34, align 8, !tbaa !24
  %35 = load ptr, ptr %10, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.params_t, ptr %35, i32 0, i32 11
  store i32 10, ptr %36, align 4, !tbaa !25
  %37 = load ptr, ptr %10, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.params_t, ptr %37, i32 0, i32 13
  store i32 1, ptr %38, align 4, !tbaa !26
  %39 = load ptr, ptr %10, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.params_t, ptr %39, i32 0, i32 15
  store i32 0, ptr %40, align 4, !tbaa !27
  %41 = load ptr, ptr %10, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.params_t, ptr %41, i32 0, i32 9
  store i32 0, ptr %42, align 4, !tbaa !28
  %43 = load ptr, ptr %10, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.params_t, ptr %43, i32 0, i32 14
  store i32 -1, ptr %44, align 8, !tbaa !29
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.params_t, ptr %45, i32 0, i32 15
  store i32 0, ptr %46, align 4, !tbaa !27
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.params_t, ptr %47, i32 0, i32 25
  store ptr null, ptr %48, align 8, !tbaa !30
  %49 = load ptr, ptr %10, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.params_t, ptr %49, i32 0, i32 22
  store ptr null, ptr %50, align 8, !tbaa !31
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.params_t, ptr %51, i32 0, i32 16
  store i32 1, ptr %52, align 8, !tbaa !32
  %53 = load ptr, ptr %10, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.params_t, ptr %53, i32 0, i32 18
  store i32 -1, ptr %54, align 8, !tbaa !33
  %55 = load ptr, ptr %10, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.params_t, ptr %55, i32 0, i32 31
  store float 0.000000e+00, ptr %56, align 8, !tbaa !34
  %57 = load ptr, ptr %10, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.params_t, ptr %57, i32 0, i32 32
  store float 0.000000e+00, ptr %58, align 4, !tbaa !35
  %59 = load ptr, ptr %10, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.params_t, ptr %59, i32 0, i32 33
  store float 0.000000e+00, ptr %60, align 8, !tbaa !36
  br label %61

61:                                               ; preds = %256, %2
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = call i32 @gk_getopt_long_only(i32 noundef %62, ptr noundef %63, ptr noundef @.str.1, ptr noundef @long_options, ptr noundef %9)
  store i32 %64, ptr %8, align 4, !tbaa !5
  %65 = icmp ne i32 %64, -1
  br i1 %65, label %66, label %257

66:                                               ; preds = %61
  %67 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %67, label %252 [
    i32 23, label %68
    i32 0, label %86
    i32 1, label %104
    i32 2, label %122
    i32 3, label %140
    i32 11, label %158
    i32 10, label %161
    i32 21, label %164
    i32 22, label %167
    i32 19, label %170
    i32 7, label %179
    i32 6, label %188
    i32 20, label %197
    i32 16, label %206
    i32 8, label %215
    i32 5, label %224
    i32 18, label %233
    i32 63, label %251
  ]

68:                                               ; preds = %66
  %69 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %85

71:                                               ; preds = %68
  %72 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %73 = call i32 @gk_GetStringID(ptr noundef @gtype_options, ptr noundef %72)
  %74 = load ptr, ptr %10, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.params_t, ptr %74, i32 0, i32 12
  store i32 %73, ptr %75, align 8, !tbaa !11
  %76 = icmp eq i32 %73, -1
  br i1 %76, label %77, label %84

77:                                               ; preds = %71
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.gk_option, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 16, !tbaa !37
  %83 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.2, ptr noundef %82, ptr noundef %83)
  br label %84

84:                                               ; preds = %77, %71
  br label %85

85:                                               ; preds = %84, %68
  br label %256

86:                                               ; preds = %66
  %87 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %103

89:                                               ; preds = %86
  %90 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %91 = call i32 @gk_GetStringID(ptr noundef @ptype_options, ptr noundef %90)
  %92 = load ptr, ptr %10, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.params_t, ptr %92, i32 0, i32 0
  store i32 %91, ptr %93, align 8, !tbaa !15
  %94 = icmp eq i32 %91, -1
  br i1 %94, label %95, label %102

95:                                               ; preds = %89
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.gk_option, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 16, !tbaa !37
  %101 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.2, ptr noundef %100, ptr noundef %101)
  br label %102

102:                                              ; preds = %95, %89
  br label %103

103:                                              ; preds = %102, %86
  br label %256

104:                                              ; preds = %66
  %105 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %121

107:                                              ; preds = %104
  %108 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %109 = call i32 @gk_GetStringID(ptr noundef @objtype_options, ptr noundef %108)
  %110 = load ptr, ptr %10, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.params_t, ptr %110, i32 0, i32 1
  store i32 %109, ptr %111, align 4, !tbaa !16
  %112 = icmp eq i32 %109, -1
  br i1 %112, label %113, label %120

113:                                              ; preds = %107
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %115
  %117 = getelementptr inbounds %struct.gk_option, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 16, !tbaa !37
  %119 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.2, ptr noundef %118, ptr noundef %119)
  br label %120

120:                                              ; preds = %113, %107
  br label %121

121:                                              ; preds = %120, %104
  br label %256

122:                                              ; preds = %66
  %123 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %139

125:                                              ; preds = %122
  %126 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %127 = call i32 @gk_GetStringID(ptr noundef @ctype_options, ptr noundef %126)
  %128 = load ptr, ptr %10, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.params_t, ptr %128, i32 0, i32 2
  store i32 %127, ptr %129, align 8, !tbaa !17
  %130 = icmp eq i32 %127, -1
  br i1 %130, label %131, label %138

131:                                              ; preds = %125
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %133
  %135 = getelementptr inbounds %struct.gk_option, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 16, !tbaa !37
  %137 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.2, ptr noundef %136, ptr noundef %137)
  br label %138

138:                                              ; preds = %131, %125
  br label %139

139:                                              ; preds = %138, %122
  br label %256

140:                                              ; preds = %66
  %141 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %157

143:                                              ; preds = %140
  %144 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %145 = call i32 @gk_GetStringID(ptr noundef @iptype_options, ptr noundef %144)
  %146 = load ptr, ptr %10, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.params_t, ptr %146, i32 0, i32 3
  store i32 %145, ptr %147, align 4, !tbaa !18
  %148 = icmp eq i32 %145, -1
  br i1 %148, label %149, label %156

149:                                              ; preds = %143
  %150 = load i32, ptr %9, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %151
  %153 = getelementptr inbounds %struct.gk_option, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 16, !tbaa !37
  %155 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.2, ptr noundef %154, ptr noundef %155)
  br label %156

156:                                              ; preds = %149, %143
  br label %157

157:                                              ; preds = %156, %140
  br label %256

158:                                              ; preds = %66
  %159 = load ptr, ptr %10, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.params_t, ptr %159, i32 0, i32 7
  store i32 1, ptr %160, align 4, !tbaa !21
  br label %256

161:                                              ; preds = %66
  %162 = load ptr, ptr %10, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.params_t, ptr %162, i32 0, i32 6
  store i32 1, ptr %163, align 8, !tbaa !20
  br label %256

164:                                              ; preds = %66
  %165 = load ptr, ptr %10, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.params_t, ptr %165, i32 0, i32 8
  store i32 1, ptr %166, align 8, !tbaa !22
  br label %256

167:                                              ; preds = %66
  %168 = load ptr, ptr %10, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.params_t, ptr %168, i32 0, i32 9
  store i32 1, ptr %169, align 4, !tbaa !28
  br label %256

170:                                              ; preds = %66
  %171 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %178

173:                                              ; preds = %170
  %174 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %175 = call ptr @gk_strdup(ptr noundef %174)
  %176 = load ptr, ptr %10, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.params_t, ptr %176, i32 0, i32 25
  store ptr %175, ptr %177, align 8, !tbaa !30
  br label %178

178:                                              ; preds = %173, %170
  br label %256

179:                                              ; preds = %66
  %180 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %187

182:                                              ; preds = %179
  %183 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %184 = call i32 @atoi(ptr noundef %183) #8
  %185 = load ptr, ptr %10, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.params_t, ptr %185, i32 0, i32 10
  store i32 %184, ptr %186, align 8, !tbaa !24
  br label %187

187:                                              ; preds = %182, %179
  br label %256

188:                                              ; preds = %66
  %189 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %196

191:                                              ; preds = %188
  %192 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %193 = call i32 @atoi(ptr noundef %192) #8
  %194 = load ptr, ptr %10, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.params_t, ptr %194, i32 0, i32 11
  store i32 %193, ptr %195, align 4, !tbaa !25
  br label %196

196:                                              ; preds = %191, %188
  br label %256

197:                                              ; preds = %66
  %198 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %205

200:                                              ; preds = %197
  %201 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %202 = call i32 @atoi(ptr noundef %201) #8
  %203 = load ptr, ptr %10, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.params_t, ptr %203, i32 0, i32 13
  store i32 %202, ptr %204, align 4, !tbaa !26
  br label %205

205:                                              ; preds = %200, %197
  br label %256

206:                                              ; preds = %66
  %207 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %214

209:                                              ; preds = %206
  %210 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %211 = call i32 @atoi(ptr noundef %210) #8
  %212 = load ptr, ptr %10, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.params_t, ptr %212, i32 0, i32 18
  store i32 %211, ptr %213, align 8, !tbaa !33
  br label %214

214:                                              ; preds = %209, %206
  br label %256

215:                                              ; preds = %66
  %216 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %223

218:                                              ; preds = %215
  %219 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %220 = call i32 @atoi(ptr noundef %219) #8
  %221 = load ptr, ptr %10, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.params_t, ptr %221, i32 0, i32 14
  store i32 %220, ptr %222, align 8, !tbaa !29
  br label %223

223:                                              ; preds = %218, %215
  br label %256

224:                                              ; preds = %66
  %225 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %232

227:                                              ; preds = %224
  %228 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %229 = call i32 @atoi(ptr noundef %228) #8
  %230 = load ptr, ptr %10, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct.params_t, ptr %230, i32 0, i32 15
  store i32 %229, ptr %231, align 4, !tbaa !27
  br label %232

232:                                              ; preds = %227, %224
  br label %256

233:                                              ; preds = %66
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %247, %233
  %235 = load i32, ptr %5, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [94 x [100 x i8]], ptr @helpstr, i64 0, i64 %236
  %238 = getelementptr inbounds [100 x i8], ptr %237, i64 0, i64 0
  %239 = call i64 @strlen(ptr noundef %238) #8
  %240 = icmp ugt i64 %239, 0
  br i1 %240, label %241, label %250

241:                                              ; preds = %234
  %242 = load i32, ptr %5, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [94 x [100 x i8]], ptr @helpstr, i64 0, i64 %243
  %245 = getelementptr inbounds [100 x i8], ptr %244, i64 0, i64 0
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %245)
  br label %247

247:                                              ; preds = %241
  %248 = load i32, ptr %5, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %5, align 4, !tbaa !5
  br label %234, !llvm.loop !39

250:                                              ; preds = %234
  call void @exit(i32 noundef 0) #9
  unreachable

251:                                              ; preds = %66
  br label %252

252:                                              ; preds = %251, %66
  %253 = load ptr, ptr %4, align 8, !tbaa !9
  %254 = getelementptr inbounds ptr, ptr %253, i64 0
  %255 = load ptr, ptr %254, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.4, ptr noundef %255)
  br label %256

256:                                              ; preds = %252, %232, %223, %214, %205, %196, %187, %178, %167, %164, %161, %158, %157, %139, %121, %103, %85
  br label %61, !llvm.loop !41

257:                                              ; preds = %61
  %258 = load i32, ptr %3, align 4, !tbaa !5
  %259 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %260 = sub nsw i32 %258, %259
  %261 = icmp ne i32 %260, 2
  br i1 %261, label %262, label %281

262:                                              ; preds = %257
  %263 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %277, %262
  %265 = load i32, ptr %5, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [4 x [100 x i8]], ptr @shorthelpstr, i64 0, i64 %266
  %268 = getelementptr inbounds [100 x i8], ptr %267, i64 0, i64 0
  %269 = call i64 @strlen(ptr noundef %268) #8
  %270 = icmp ugt i64 %269, 0
  br i1 %270, label %271, label %280

271:                                              ; preds = %264
  %272 = load i32, ptr %5, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [4 x [100 x i8]], ptr @shorthelpstr, i64 0, i64 %273
  %275 = getelementptr inbounds [100 x i8], ptr %274, i64 0, i64 0
  %276 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %275)
  br label %277

277:                                              ; preds = %271
  %278 = load i32, ptr %5, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %5, align 4, !tbaa !5
  br label %264, !llvm.loop !42

280:                                              ; preds = %264
  call void @exit(i32 noundef 0) #9
  unreachable

281:                                              ; preds = %257
  %282 = load ptr, ptr %4, align 8, !tbaa !9
  %283 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr @gk_optind, align 4, !tbaa !5
  %285 = sext i32 %283 to i64
  %286 = getelementptr inbounds ptr, ptr %282, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !9
  %288 = call ptr @gk_strdup(ptr noundef %287)
  %289 = load ptr, ptr %10, align 8, !tbaa !9
  %290 = getelementptr inbounds %struct.params_t, ptr %289, i32 0, i32 22
  store ptr %288, ptr %290, align 8, !tbaa !31
  %291 = load ptr, ptr %4, align 8, !tbaa !9
  %292 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr @gk_optind, align 4, !tbaa !5
  %294 = sext i32 %292 to i64
  %295 = getelementptr inbounds ptr, ptr %291, i64 %294
  %296 = load ptr, ptr %295, align 8, !tbaa !9
  %297 = call i32 @atoi(ptr noundef %296) #8
  %298 = load ptr, ptr %10, align 8, !tbaa !9
  %299 = getelementptr inbounds %struct.params_t, ptr %298, i32 0, i32 16
  store i32 %297, ptr %299, align 8, !tbaa !32
  %300 = load ptr, ptr %10, align 8, !tbaa !9
  %301 = getelementptr inbounds %struct.params_t, ptr %300, i32 0, i32 16
  %302 = load i32, ptr %301, align 8, !tbaa !32
  %303 = icmp slt i32 %302, 2
  br i1 %303, label %304, label %305

304:                                              ; preds = %281
  call void (ptr, ...) @errexit(ptr noundef @.str.6)
  br label %305

305:                                              ; preds = %304, %281
  %306 = load ptr, ptr %10, align 8, !tbaa !9
  %307 = getelementptr inbounds %struct.params_t, ptr %306, i32 0, i32 0
  %308 = load i32, ptr %307, align 8, !tbaa !15
  %309 = icmp eq i32 %308, 0
  br i1 %309, label %310, label %313

310:                                              ; preds = %305
  %311 = load ptr, ptr %10, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.params_t, ptr %311, i32 0, i32 4
  store i32 0, ptr %312, align 8, !tbaa !19
  br label %313

313:                                              ; preds = %310, %305
  %314 = load ptr, ptr %10, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.params_t, ptr %314, i32 0, i32 0
  %316 = load i32, ptr %315, align 8, !tbaa !15
  %317 = icmp eq i32 %316, 1
  br i1 %317, label %318, label %323

318:                                              ; preds = %313
  %319 = load ptr, ptr %10, align 8, !tbaa !9
  %320 = getelementptr inbounds %struct.params_t, ptr %319, i32 0, i32 3
  store i32 4, ptr %320, align 4, !tbaa !18
  %321 = load ptr, ptr %10, align 8, !tbaa !9
  %322 = getelementptr inbounds %struct.params_t, ptr %321, i32 0, i32 4
  store i32 1, ptr %322, align 8, !tbaa !19
  br label %323

323:                                              ; preds = %318, %313
  %324 = load ptr, ptr %10, align 8, !tbaa !9
  %325 = getelementptr inbounds %struct.params_t, ptr %324, i32 0, i32 0
  %326 = load i32, ptr %325, align 8, !tbaa !15
  %327 = icmp eq i32 %326, 0
  br i1 %327, label %328, label %347

328:                                              ; preds = %323
  %329 = load ptr, ptr %10, align 8, !tbaa !9
  %330 = getelementptr inbounds %struct.params_t, ptr %329, i32 0, i32 7
  %331 = load i32, ptr %330, align 4, !tbaa !21
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %334

333:                                              ; preds = %328
  call void (ptr, ...) @errexit(ptr noundef @.str.7)
  br label %334

334:                                              ; preds = %333, %328
  %335 = load ptr, ptr %10, align 8, !tbaa !9
  %336 = getelementptr inbounds %struct.params_t, ptr %335, i32 0, i32 6
  %337 = load i32, ptr %336, align 8, !tbaa !20
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %340

339:                                              ; preds = %334
  call void (ptr, ...) @errexit(ptr noundef @.str.8)
  br label %340

340:                                              ; preds = %339, %334
  %341 = load ptr, ptr %10, align 8, !tbaa !9
  %342 = getelementptr inbounds %struct.params_t, ptr %341, i32 0, i32 1
  %343 = load i32, ptr %342, align 4, !tbaa !16
  %344 = icmp eq i32 %343, 1
  br i1 %344, label %345, label %346

345:                                              ; preds = %340
  call void (ptr, ...) @errexit(ptr noundef @.str.9)
  br label %346

346:                                              ; preds = %345, %340
  br label %347

347:                                              ; preds = %346, %323
  %348 = load ptr, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret ptr %348
}

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

declare ptr @gk_malloc(i64 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @gk_getopt_long_only(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @gk_GetStringID(ptr noundef, ptr noundef) #2

declare void @errexit(ptr noundef, ...) #2

declare ptr @gk_strdup(ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(read) "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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = !{!"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 = !{!12, !6, i64 48}
!12 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !6, i64 132, !10, i64 136, !10, i64 144, !13, i64 152, !13, i64 156, !13, i64 160, !14, i64 168}
!13 = !{!"float", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !6, i64 4}
!17 = !{!12, !6, i64 8}
!18 = !{!12, !6, i64 12}
!19 = !{!12, !6, i64 16}
!20 = !{!12, !6, i64 24}
!21 = !{!12, !6, i64 28}
!22 = !{!12, !6, i64 32}
!23 = !{!12, !6, i64 128}
!24 = !{!12, !6, i64 40}
!25 = !{!12, !6, i64 44}
!26 = !{!12, !6, i64 52}
!27 = !{!12, !6, i64 60}
!28 = !{!12, !6, i64 36}
!29 = !{!12, !6, i64 56}
!30 = !{!12, !10, i64 112}
!31 = !{!12, !10, i64 88}
!32 = !{!12, !6, i64 64}
!33 = !{!12, !6, i64 72}
!34 = !{!12, !13, i64 152}
!35 = !{!12, !13, i64 156}
!36 = !{!12, !13, i64 160}
!37 = !{!38, !10, i64 0}
!38 = !{!"gk_option", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = distinct !{!42, !40}


; 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.gk_option = type { ptr, i32, ptr, i32 }
%struct.gk_StringMap_t = type { ptr, i32 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@long_options = external hidden global [17 x %struct.gk_option], align 16
@gk_optarg = external local_unnamed_addr global ptr, align 8
@gtype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@ptype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@objtype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@ctype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@iptype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@helpstr = external hidden global [94 x [100 x i8]], align 16
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [75 x i8], align 1
@gk_optind = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@shorthelpstr = external hidden global [4 x [100 x i8]], align 16
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [67 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @parse_cmdline(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %4 = tail call ptr @gk_malloc(i64 noundef 176, ptr noundef nonnull @.str) #7
  %5 = getelementptr inbounds i8, ptr %4, i64 48
  %6 = getelementptr inbounds i8, ptr %4, i64 20
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(156) %6, i8 0, i64 156, i1 false)
  %7 = getelementptr inbounds i8, ptr %4, i64 4
  %8 = getelementptr inbounds i8, ptr %4, i64 8
  %9 = getelementptr inbounds i8, ptr %4, i64 12
  store <4 x i32> <i32 1, i32 0, i32 1, i32 0>, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 -1, ptr %10, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  %12 = getelementptr inbounds i8, ptr %4, i64 28
  store i32 0, ptr %12, align 4, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %4, i64 32
  %14 = getelementptr inbounds i8, ptr %4, i64 128
  store i32 3, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %4, i64 40
  store i32 1, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 10, ptr %16, align 4, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %4, i64 52
  %18 = getelementptr inbounds i8, ptr %4, i64 60
  %19 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 0, ptr %19, align 4, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %4, i64 56
  %21 = getelementptr inbounds i8, ptr %4, i64 112
  %22 = getelementptr inbounds i8, ptr %4, i64 88
  store ptr null, ptr %22, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %4, i64 64
  store <4 x i32> <i32 1, i32 -1, i32 0, i32 1>, ptr %17, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %4, i64 72
  store i32 -1, ptr %24, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %4, i64 156
  store float 0.000000e+00, ptr %25, align 4, !tbaa !21
  br label %26

26:                                               ; preds = %.backedge, %2
  %27 = call i32 @gk_getopt_long_only(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1, ptr noundef nonnull @long_options, ptr noundef nonnull %3) #7
  switch i32 %27, label %118 [
    i32 -1, label %120
    i32 23, label %28
    i32 0, label %39
    i32 1, label %50
    i32 2, label %61
    i32 3, label %72
    i32 11, label %83
    i32 10, label %84
    i32 21, label %85
    i32 22, label %86
    i32 19, label %87
    i32 7, label %91
    i32 6, label %95
    i32 20, label %99
    i32 16, label %103
    i32 8, label %107
    i32 5, label %111
    i32 18, label %.preheader
  ]

.preheader:                                       ; preds = %26
  %char08398 = load i8, ptr @helpstr, align 16
  %.not8499 = icmp eq i8 %char08398, 0
  br i1 %.not8499, label %._crit_edge, label %.lr.ph

28:                                               ; preds = %26
  %29 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not96 = icmp eq ptr %29, null
  br i1 %.not96, label %.backedge, label %30

30:                                               ; preds = %28
  %31 = call i32 @gk_GetStringID(ptr noundef nonnull @gtype_options, ptr noundef nonnull %29) #7
  store i32 %31, ptr %5, align 8, !tbaa !23
  %32 = icmp eq i32 %31, -1
  br i1 %32, label %33, label %.backedge

33:                                               ; preds = %30
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %35
  %37 = load ptr, ptr %36, align 16, !tbaa !24
  %38 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.2, ptr noundef %37, ptr noundef %38) #7
  br label %.backedge

39:                                               ; preds = %26
  %40 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not95 = icmp eq ptr %40, null
  br i1 %.not95, label %.backedge, label %41

41:                                               ; preds = %39
  %42 = call i32 @gk_GetStringID(ptr noundef nonnull @ptype_options, ptr noundef nonnull %40) #7
  store i32 %42, ptr %4, align 8, !tbaa !26
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %44, label %.backedge

44:                                               ; preds = %41
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %46
  %48 = load ptr, ptr %47, align 16, !tbaa !24
  %49 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.2, ptr noundef %48, ptr noundef %49) #7
  br label %.backedge

50:                                               ; preds = %26
  %51 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not94 = icmp eq ptr %51, null
  br i1 %.not94, label %.backedge, label %52

52:                                               ; preds = %50
  %53 = call i32 @gk_GetStringID(ptr noundef nonnull @objtype_options, ptr noundef nonnull %51) #7
  store i32 %53, ptr %7, align 4, !tbaa !27
  %54 = icmp eq i32 %53, -1
  br i1 %54, label %55, label %.backedge

55:                                               ; preds = %52
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %57
  %59 = load ptr, ptr %58, align 16, !tbaa !24
  %60 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.2, ptr noundef %59, ptr noundef %60) #7
  br label %.backedge

61:                                               ; preds = %26
  %62 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not93 = icmp eq ptr %62, null
  br i1 %.not93, label %.backedge, label %63

63:                                               ; preds = %61
  %64 = call i32 @gk_GetStringID(ptr noundef nonnull @ctype_options, ptr noundef nonnull %62) #7
  store i32 %64, ptr %8, align 8, !tbaa !28
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %66, label %.backedge

66:                                               ; preds = %63
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %68
  %70 = load ptr, ptr %69, align 16, !tbaa !24
  %71 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.2, ptr noundef %70, ptr noundef %71) #7
  br label %.backedge

72:                                               ; preds = %26
  %73 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not92 = icmp eq ptr %73, null
  br i1 %.not92, label %.backedge, label %74

74:                                               ; preds = %72
  %75 = call i32 @gk_GetStringID(ptr noundef nonnull @iptype_options, ptr noundef nonnull %73) #7
  store i32 %75, ptr %9, align 4, !tbaa !29
  %76 = icmp eq i32 %75, -1
  br i1 %76, label %77, label %.backedge

77:                                               ; preds = %74
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [17 x %struct.gk_option], ptr @long_options, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 16, !tbaa !24
  %82 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.2, ptr noundef %81, ptr noundef %82) #7
  br label %.backedge

83:                                               ; preds = %26
  store i32 1, ptr %12, align 4, !tbaa !14
  br label %.backedge

84:                                               ; preds = %26
  store i32 1, ptr %11, align 8, !tbaa !30
  br label %.backedge

85:                                               ; preds = %26
  store i32 1, ptr %13, align 8, !tbaa !31
  br label %.backedge

86:                                               ; preds = %26
  store i32 1, ptr %19, align 4, !tbaa !18
  br label %.backedge

87:                                               ; preds = %26
  %88 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not91 = icmp eq ptr %88, null
  br i1 %.not91, label %.backedge, label %89

89:                                               ; preds = %87
  %90 = call ptr @gk_strdup(ptr noundef nonnull %88) #7
  store ptr %90, ptr %21, align 8, !tbaa !32
  br label %.backedge

91:                                               ; preds = %26
  %92 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not90 = icmp eq ptr %92, null
  br i1 %.not90, label %.backedge, label %93

93:                                               ; preds = %91
  %94 = call i32 @atoi(ptr nocapture noundef %92) #8
  store i32 %94, ptr %15, align 8, !tbaa !16
  br label %.backedge

95:                                               ; preds = %26
  %96 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not89 = icmp eq ptr %96, null
  br i1 %.not89, label %.backedge, label %97

97:                                               ; preds = %95
  %98 = call i32 @atoi(ptr nocapture noundef %96) #8
  store i32 %98, ptr %16, align 4, !tbaa !17
  br label %.backedge

99:                                               ; preds = %26
  %100 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not88 = icmp eq ptr %100, null
  br i1 %.not88, label %.backedge, label %101

101:                                              ; preds = %99
  %102 = call i32 @atoi(ptr nocapture noundef %100) #8
  store i32 %102, ptr %17, align 4, !tbaa !33
  br label %.backedge

103:                                              ; preds = %26
  %104 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not87 = icmp eq ptr %104, null
  br i1 %.not87, label %.backedge, label %105

105:                                              ; preds = %103
  %106 = call i32 @atoi(ptr nocapture noundef %104) #8
  store i32 %106, ptr %24, align 8, !tbaa !20
  br label %.backedge

107:                                              ; preds = %26
  %108 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not86 = icmp eq ptr %108, null
  br i1 %.not86, label %.backedge, label %109

109:                                              ; preds = %107
  %110 = call i32 @atoi(ptr nocapture noundef %108) #8
  store i32 %110, ptr %20, align 8, !tbaa !34
  br label %.backedge

111:                                              ; preds = %26
  %112 = load ptr, ptr @gk_optarg, align 8, !tbaa !22
  %.not85 = icmp eq ptr %112, null
  br i1 %.not85, label %.backedge, label %113

.backedge:                                        ; preds = %111, %113, %107, %109, %103, %105, %99, %101, %95, %97, %91, %93, %87, %89, %72, %77, %74, %61, %66, %63, %50, %55, %52, %39, %44, %41, %28, %33, %30, %118, %86, %85, %84, %83
  br label %26, !llvm.loop !35

113:                                              ; preds = %111
  %114 = call i32 @atoi(ptr nocapture noundef %112) #8
  store i32 %114, ptr %18, align 4, !tbaa !37
  br label %.backedge

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %115 = phi ptr [ %117, %.lr.ph ], [ @helpstr, %.preheader ]
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %115)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %117 = getelementptr inbounds [94 x [100 x i8]], ptr @helpstr, i64 0, i64 %indvars.iv.next
  %char083 = load i8, ptr %117, align 4
  %.not84 = icmp eq i8 %char083, 0
  br i1 %.not84, label %._crit_edge, label %.lr.ph, !llvm.loop !38

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  call void @exit(i32 noundef 0) #9
  unreachable

118:                                              ; preds = %26
  %119 = load ptr, ptr %1, align 8, !tbaa !22
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.4, ptr noundef %119) #7
  br label %.backedge

120:                                              ; preds = %26
  %121 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %122 = sub nsw i32 %0, %121
  %.not79 = icmp eq i32 %122, 2
  br i1 %.not79, label %128, label %123

123:                                              ; preds = %120
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %char0101 = load i8, ptr @shorthelpstr, align 16
  %.not82102 = icmp eq i8 %char0101, 0
  br i1 %.not82102, label %._crit_edge106, label %.lr.ph105

.lr.ph105:                                        ; preds = %123, %.lr.ph105
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph105 ], [ 0, %123 ]
  %125 = phi ptr [ %127, %.lr.ph105 ], [ @shorthelpstr, %123 ]
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %125)
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %127 = getelementptr inbounds [4 x [100 x i8]], ptr @shorthelpstr, i64 0, i64 %indvars.iv.next109
  %char0 = load i8, ptr %127, align 4
  %.not82 = icmp eq i8 %char0, 0
  br i1 %.not82, label %._crit_edge106, label %.lr.ph105, !llvm.loop !39

._crit_edge106:                                   ; preds = %.lr.ph105, %123
  call void @exit(i32 noundef 0) #9
  unreachable

128:                                              ; preds = %120
  %129 = add nsw i32 %121, 1
  store i32 %129, ptr @gk_optind, align 4, !tbaa !5
  %130 = sext i32 %121 to i64
  %131 = getelementptr inbounds ptr, ptr %1, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !22
  %133 = call ptr @gk_strdup(ptr noundef %132) #7
  store ptr %133, ptr %22, align 8, !tbaa !19
  %134 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr @gk_optind, align 4, !tbaa !5
  %136 = sext i32 %134 to i64
  %137 = getelementptr inbounds ptr, ptr %1, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !22
  %139 = call i32 @atoi(ptr nocapture noundef %138) #8
  store i32 %139, ptr %23, align 8, !tbaa !40
  %140 = icmp slt i32 %139, 2
  br i1 %140, label %141, label %142

141:                                              ; preds = %128
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.6) #7
  br label %142

142:                                              ; preds = %141, %128
  %143 = load i32, ptr %4, align 8, !tbaa !26
  switch i32 %143, label %.thread97 [
    i32 0, label %145
    i32 1, label %144
  ]

144:                                              ; preds = %142
  store i32 4, ptr %9, align 4, !tbaa !29
  store i32 1, ptr %10, align 8, !tbaa !9
  br label %.thread97

145:                                              ; preds = %142
  store i32 0, ptr %10, align 8, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !14
  %.not80 = icmp eq i32 %146, 0
  br i1 %.not80, label %148, label %147

147:                                              ; preds = %145
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.7) #7
  br label %148

148:                                              ; preds = %147, %145
  %149 = load i32, ptr %11, align 8, !tbaa !30
  %.not81 = icmp eq i32 %149, 0
  br i1 %.not81, label %151, label %150

150:                                              ; preds = %148
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.8) #7
  br label %151

151:                                              ; preds = %150, %148
  %152 = load i32, ptr %7, align 4, !tbaa !27
  %153 = icmp eq i32 %152, 1
  br i1 %153, label %154, label %.thread97

154:                                              ; preds = %151
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.9) #7
  br label %.thread97

.thread97:                                        ; preds = %142, %144, %151, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret ptr %4
}

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

declare ptr @gk_malloc(i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @gk_getopt_long_only(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @gk_GetStringID(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @errexit(ptr noundef, ...) local_unnamed_addr #2

declare ptr @gk_strdup(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !6, i64 128, !6, i64 132, !11, i64 136, !11, i64 144, !12, i64 152, !12, i64 156, !12, i64 160, !13, i64 168}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 28}
!15 = !{!10, !6, i64 128}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 44}
!18 = !{!10, !6, i64 36}
!19 = !{!10, !11, i64 88}
!20 = !{!10, !6, i64 72}
!21 = !{!10, !12, i64 156}
!22 = !{!11, !11, i64 0}
!23 = !{!10, !6, i64 48}
!24 = !{!25, !11, i64 0}
!25 = !{!"gk_option", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!26 = !{!10, !6, i64 0}
!27 = !{!10, !6, i64 4}
!28 = !{!10, !6, i64 8}
!29 = !{!10, !6, i64 12}
!30 = !{!10, !6, i64 24}
!31 = !{!10, !6, i64 32}
!32 = !{!10, !11, i64 112}
!33 = !{!10, !6, i64 52}
!34 = !{!10, !6, i64 56}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!10, !6, i64 60}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !36}
!40 = !{!10, !6, i64 64}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass