; 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
@ptype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@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 [98 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 [82 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [84 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 0
  store i32 1, 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 1
  store i32 0, ptr %16, align 4, !tbaa !15
  %17 = load ptr, ptr %10, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.params_t, ptr %17, i32 0, i32 2
  store i32 1, ptr %18, align 8, !tbaa !16
  %19 = load ptr, ptr %10, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.params_t, ptr %19, i32 0, i32 3
  store i32 -1, ptr %20, align 4, !tbaa !17
  %21 = load ptr, ptr %10, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.params_t, ptr %21, i32 0, i32 4
  store i32 -1, ptr %22, align 8, !tbaa !18
  %23 = load ptr, ptr %10, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.params_t, ptr %23, i32 0, i32 5
  store i32 0, ptr %24, align 4, !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 15
  store i32 0, 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 9
  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 14
  store i32 -1, ptr %42, align 8, !tbaa !28
  %43 = load ptr, ptr %10, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.params_t, ptr %43, i32 0, i32 15
  store i32 0, ptr %44, align 4, !tbaa !26
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.params_t, ptr %45, i32 0, i32 25
  store ptr null, ptr %46, align 8, !tbaa !29
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.params_t, ptr %47, i32 0, i32 22
  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 16
  store i32 1, 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 18
  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 26
  store ptr null, 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 30
  store ptr null, 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 31
  store float 0.000000e+00, ptr %58, align 8, !tbaa !35
  %59 = load ptr, ptr %10, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.params_t, ptr %59, i32 0, i32 32
  store float 0.000000e+00, ptr %60, align 4, !tbaa !36
  %61 = load ptr, ptr %10, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.params_t, ptr %61, i32 0, i32 33
  store float 0.000000e+00, ptr %62, align 8, !tbaa !37
  br label %63

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

68:                                               ; preds = %63
  %69 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %69, label %239 [
    i32 0, label %70
    i32 1, label %88
    i32 2, label %106
    i32 3, label %124
    i32 9, label %142
    i32 11, label %145
    i32 10, label %148
    i32 21, label %151
    i32 22, label %154
    i32 19, label %157
    i32 24, label %166
    i32 7, label %175
    i32 6, label %184
    i32 16, label %193
    i32 8, label %202
    i32 5, label %211
    i32 18, label %220
    i32 63, label %238
  ]

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

73:                                               ; preds = %70
  %74 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %75 = call i32 @gk_GetStringID(ptr noundef @ptype_options, ptr noundef %74)
  %76 = load ptr, ptr %10, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.params_t, ptr %76, i32 0, i32 0
  store i32 %75, ptr %77, align 8, !tbaa !11
  %78 = icmp eq i32 %75, -1
  br i1 %78, label %79, label %86

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

86:                                               ; preds = %79, %73
  br label %87

87:                                               ; preds = %86, %70
  br label %243

88:                                               ; preds = %68
  %89 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %105

91:                                               ; preds = %88
  %92 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %93 = call i32 @gk_GetStringID(ptr noundef @objtype_options, ptr noundef %92)
  %94 = load ptr, ptr %10, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.params_t, ptr %94, i32 0, i32 1
  store i32 %93, ptr %95, align 4, !tbaa !15
  %96 = icmp eq i32 %93, -1
  br i1 %96, label %97, label %104

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

104:                                              ; preds = %97, %91
  br label %105

105:                                              ; preds = %104, %88
  br label %243

106:                                              ; preds = %68
  %107 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %123

109:                                              ; preds = %106
  %110 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %111 = call i32 @gk_GetStringID(ptr noundef @ctype_options, ptr noundef %110)
  %112 = load ptr, ptr %10, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.params_t, ptr %112, i32 0, i32 2
  store i32 %111, ptr %113, align 8, !tbaa !16
  %114 = icmp eq i32 %111, -1
  br i1 %114, label %115, label %122

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

122:                                              ; preds = %115, %109
  br label %123

123:                                              ; preds = %122, %106
  br label %243

124:                                              ; preds = %68
  %125 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %141

127:                                              ; preds = %124
  %128 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %129 = call i32 @gk_GetStringID(ptr noundef @iptype_options, ptr noundef %128)
  %130 = load ptr, ptr %10, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.params_t, ptr %130, i32 0, i32 3
  store i32 %129, ptr %131, align 4, !tbaa !17
  %132 = icmp eq i32 %129, -1
  br i1 %132, label %133, label %140

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

140:                                              ; preds = %133, %127
  br label %141

141:                                              ; preds = %140, %124
  br label %243

142:                                              ; preds = %68
  %143 = load ptr, ptr %10, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.params_t, ptr %143, i32 0, i32 5
  store i32 1, ptr %144, align 4, !tbaa !19
  br label %243

145:                                              ; preds = %68
  %146 = load ptr, ptr %10, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.params_t, ptr %146, i32 0, i32 7
  store i32 1, ptr %147, align 4, !tbaa !21
  br label %243

148:                                              ; preds = %68
  %149 = load ptr, ptr %10, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.params_t, ptr %149, i32 0, i32 6
  store i32 1, ptr %150, align 8, !tbaa !20
  br label %243

151:                                              ; preds = %68
  %152 = load ptr, ptr %10, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.params_t, ptr %152, i32 0, i32 8
  store i32 1, ptr %153, align 8, !tbaa !22
  br label %243

154:                                              ; preds = %68
  %155 = load ptr, ptr %10, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.params_t, ptr %155, i32 0, i32 9
  store i32 1, ptr %156, align 4, !tbaa !27
  br label %243

157:                                              ; preds = %68
  %158 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %165

160:                                              ; preds = %157
  %161 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %162 = call ptr @gk_strdup(ptr noundef %161)
  %163 = load ptr, ptr %10, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.params_t, ptr %163, i32 0, i32 25
  store ptr %162, ptr %164, align 8, !tbaa !29
  br label %165

165:                                              ; preds = %160, %157
  br label %243

166:                                              ; preds = %68
  %167 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %168 = icmp ne ptr %167, null
  br i1 %168, label %169, label %174

169:                                              ; preds = %166
  %170 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %171 = call ptr @gk_strdup(ptr noundef %170)
  %172 = load ptr, ptr %10, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.params_t, ptr %172, i32 0, i32 26
  store ptr %171, ptr %173, align 8, !tbaa !33
  br label %174

174:                                              ; preds = %169, %166
  br label %243

175:                                              ; preds = %68
  %176 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %177 = icmp ne ptr %176, null
  br i1 %177, label %178, label %183

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

183:                                              ; preds = %178, %175
  br label %243

184:                                              ; preds = %68
  %185 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %192

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

192:                                              ; preds = %187, %184
  br label %243

193:                                              ; preds = %68
  %194 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %201

196:                                              ; preds = %193
  %197 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %198 = call i32 @atoi(ptr noundef %197) #8
  %199 = load ptr, ptr %10, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.params_t, ptr %199, i32 0, i32 18
  store i32 %198, ptr %200, align 8, !tbaa !32
  br label %201

201:                                              ; preds = %196, %193
  br label %243

202:                                              ; preds = %68
  %203 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %210

205:                                              ; preds = %202
  %206 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %207 = call i32 @atoi(ptr noundef %206) #8
  %208 = load ptr, ptr %10, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.params_t, ptr %208, i32 0, i32 14
  store i32 %207, ptr %209, align 8, !tbaa !28
  br label %210

210:                                              ; preds = %205, %202
  br label %243

211:                                              ; preds = %68
  %212 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %213 = icmp ne ptr %212, null
  br i1 %213, label %214, label %219

214:                                              ; preds = %211
  %215 = load ptr, ptr @gk_optarg, align 8, !tbaa !9
  %216 = call i32 @atoi(ptr noundef %215) #8
  %217 = load ptr, ptr %10, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.params_t, ptr %217, i32 0, i32 15
  store i32 %216, ptr %218, align 4, !tbaa !26
  br label %219

219:                                              ; preds = %214, %211
  br label %243

220:                                              ; preds = %68
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %234, %220
  %222 = load i32, ptr %5, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [98 x [100 x i8]], ptr @helpstr, i64 0, i64 %223
  %225 = getelementptr inbounds [100 x i8], ptr %224, i64 0, i64 0
  %226 = call i64 @strlen(ptr noundef %225) #8
  %227 = icmp ugt i64 %226, 0
  br i1 %227, label %228, label %237

228:                                              ; preds = %221
  %229 = load i32, ptr %5, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [98 x [100 x i8]], ptr @helpstr, i64 0, i64 %230
  %232 = getelementptr inbounds [100 x i8], ptr %231, i64 0, i64 0
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %232)
  br label %234

234:                                              ; preds = %228
  %235 = load i32, ptr %5, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %5, align 4, !tbaa !5
  br label %221, !llvm.loop !40

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

238:                                              ; preds = %68
  br label %239

239:                                              ; preds = %238, %68
  %240 = load ptr, ptr %4, align 8, !tbaa !9
  %241 = getelementptr inbounds ptr, ptr %240, i64 0
  %242 = load ptr, ptr %241, align 8, !tbaa !9
  call void (ptr, ...) @errexit(ptr noundef @.str.4, ptr noundef %242)
  br label %243

243:                                              ; preds = %239, %219, %210, %201, %192, %183, %174, %165, %154, %151, %148, %145, %142, %141, %123, %105, %87
  br label %63, !llvm.loop !42

244:                                              ; preds = %63
  %245 = load i32, ptr %3, align 4, !tbaa !5
  %246 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %247 = sub nsw i32 %245, %246
  %248 = icmp ne i32 %247, 2
  br i1 %248, label %249, label %268

249:                                              ; preds = %244
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %264, %249
  %252 = load i32, ptr %5, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [4 x [100 x i8]], ptr @shorthelpstr, i64 0, i64 %253
  %255 = getelementptr inbounds [100 x i8], ptr %254, i64 0, i64 0
  %256 = call i64 @strlen(ptr noundef %255) #8
  %257 = icmp ugt i64 %256, 0
  br i1 %257, label %258, label %267

258:                                              ; preds = %251
  %259 = load i32, ptr %5, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [4 x [100 x i8]], ptr @shorthelpstr, i64 0, i64 %260
  %262 = getelementptr inbounds [100 x i8], ptr %261, i64 0, i64 0
  %263 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %262)
  br label %264

264:                                              ; preds = %258
  %265 = load i32, ptr %5, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %5, align 4, !tbaa !5
  br label %251, !llvm.loop !43

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

268:                                              ; preds = %244
  %269 = load ptr, ptr %4, align 8, !tbaa !9
  %270 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr @gk_optind, align 4, !tbaa !5
  %272 = sext i32 %270 to i64
  %273 = getelementptr inbounds ptr, ptr %269, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !9
  %275 = call ptr @gk_strdup(ptr noundef %274)
  %276 = load ptr, ptr %10, align 8, !tbaa !9
  %277 = getelementptr inbounds %struct.params_t, ptr %276, i32 0, i32 22
  store ptr %275, ptr %277, align 8, !tbaa !30
  %278 = load ptr, ptr %4, align 8, !tbaa !9
  %279 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr @gk_optind, align 4, !tbaa !5
  %281 = sext i32 %279 to i64
  %282 = getelementptr inbounds ptr, ptr %278, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !9
  %284 = call i32 @atoi(ptr noundef %283) #8
  %285 = load ptr, ptr %10, align 8, !tbaa !9
  %286 = getelementptr inbounds %struct.params_t, ptr %285, i32 0, i32 16
  store i32 %284, ptr %286, align 8, !tbaa !31
  %287 = load ptr, ptr %10, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.params_t, ptr %287, i32 0, i32 16
  %289 = load i32, ptr %288, align 8, !tbaa !31
  %290 = icmp slt i32 %289, 2
  br i1 %290, label %291, label %292

291:                                              ; preds = %268
  call void (ptr, ...) @errexit(ptr noundef @.str.6)
  br label %292

292:                                              ; preds = %291, %268
  %293 = load ptr, ptr %10, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.params_t, ptr %293, i32 0, i32 0
  %295 = load i32, ptr %294, align 8, !tbaa !11
  %296 = icmp eq i32 %295, 0
  br i1 %296, label %297, label %300

297:                                              ; preds = %292
  %298 = load ptr, ptr %10, align 8, !tbaa !9
  %299 = getelementptr inbounds %struct.params_t, ptr %298, i32 0, i32 4
  store i32 0, ptr %299, align 8, !tbaa !18
  br label %300

300:                                              ; preds = %297, %292
  %301 = load ptr, ptr %10, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.params_t, ptr %301, i32 0, i32 0
  %303 = load i32, ptr %302, align 8, !tbaa !11
  %304 = icmp eq i32 %303, 1
  br i1 %304, label %305, label %310

305:                                              ; preds = %300
  %306 = load ptr, ptr %10, align 8, !tbaa !9
  %307 = getelementptr inbounds %struct.params_t, ptr %306, i32 0, i32 3
  store i32 4, ptr %307, align 4, !tbaa !17
  %308 = load ptr, ptr %10, align 8, !tbaa !9
  %309 = getelementptr inbounds %struct.params_t, ptr %308, i32 0, i32 4
  store i32 1, ptr %309, align 8, !tbaa !18
  br label %310

310:                                              ; preds = %305, %300
  %311 = load ptr, ptr %10, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.params_t, ptr %311, i32 0, i32 0
  %313 = load i32, ptr %312, align 8, !tbaa !11
  %314 = icmp eq i32 %313, 0
  br i1 %314, label %315, label %334

315:                                              ; preds = %310
  %316 = load ptr, ptr %10, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.params_t, ptr %316, i32 0, i32 7
  %318 = load i32, ptr %317, align 4, !tbaa !21
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %321

320:                                              ; preds = %315
  call void (ptr, ...) @errexit(ptr noundef @.str.7)
  br label %321

321:                                              ; preds = %320, %315
  %322 = load ptr, ptr %10, align 8, !tbaa !9
  %323 = getelementptr inbounds %struct.params_t, ptr %322, i32 0, i32 6
  %324 = load i32, ptr %323, align 8, !tbaa !20
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %326, label %327

326:                                              ; preds = %321
  call void (ptr, ...) @errexit(ptr noundef @.str.8)
  br label %327

327:                                              ; preds = %326, %321
  %328 = load ptr, ptr %10, align 8, !tbaa !9
  %329 = getelementptr inbounds %struct.params_t, ptr %328, i32 0, i32 1
  %330 = load i32, ptr %329, align 4, !tbaa !15
  %331 = icmp eq i32 %330, 1
  br i1 %331, label %332, label %333

332:                                              ; preds = %327
  call void (ptr, ...) @errexit(ptr noundef @.str.9)
  br label %333

333:                                              ; preds = %332, %327
  br label %334

334:                                              ; preds = %333, %310
  %335 = 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 %335
}

; 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 0}
!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 4}
!16 = !{!12, !6, i64 8}
!17 = !{!12, !6, i64 12}
!18 = !{!12, !6, i64 16}
!19 = !{!12, !6, i64 20}
!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 60}
!27 = !{!12, !6, i64 36}
!28 = !{!12, !6, i64 56}
!29 = !{!12, !10, i64 112}
!30 = !{!12, !10, i64 88}
!31 = !{!12, !6, i64 64}
!32 = !{!12, !6, i64 72}
!33 = !{!12, !10, i64 120}
!34 = !{!12, !10, i64 144}
!35 = !{!12, !13, i64 152}
!36 = !{!12, !13, i64 156}
!37 = !{!12, !13, i64 160}
!38 = !{!39, !10, i64 0}
!39 = !{!"gk_option", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}


; 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
@ptype_options = external hidden global [3 x %struct.gk_StringMap_t], align 16
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@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 [98 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 [82 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [84 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
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(176) %5, i8 0, i64 128, i1 false)
  %6 = getelementptr inbounds i8, ptr %4, i64 4
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  %8 = getelementptr inbounds i8, ptr %4, i64 12
  store <4 x i32> <i32 1, i32 0, i32 1, i32 -1>, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 -1, ptr %9, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %4, i64 20
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  %12 = getelementptr inbounds i8, ptr %4, i64 28
  %13 = getelementptr inbounds i8, ptr %4, i64 32
  %14 = getelementptr inbounds i8, ptr %4, i64 128
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  store i32 3, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %4, i64 40
  store i32 1, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 10, ptr %16, align 4, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %4, i64 60
  %18 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 0, ptr %18, align 4, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %4, i64 56
  store i32 -1, ptr %19, align 8, !tbaa !18
  store i32 0, ptr %17, align 4, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %4, i64 112
  %21 = getelementptr inbounds i8, ptr %4, i64 88
  store ptr null, ptr %21, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %4, i64 64
  store i32 1, ptr %22, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %4, i64 72
  store i32 -1, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %4, i64 120
  %25 = getelementptr inbounds i8, ptr %4, i64 144
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %25, i8 0, i64 20, i1 false)
  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 %108 [
    i32 -1, label %110
    i32 0, label %28
    i32 1, label %39
    i32 2, label %50
    i32 3, label %61
    i32 9, label %72
    i32 11, label %73
    i32 10, label %74
    i32 21, label %75
    i32 22, label %76
    i32 19, label %77
    i32 24, label %81
    i32 7, label %85
    i32 6, label %89
    i32 16, label %93
    i32 8, label %97
    i32 5, label %101
    i32 18, label %.preheader
  ]

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

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

30:                                               ; preds = %28
  %31 = call i32 @gk_GetStringID(ptr noundef nonnull @ptype_options, ptr noundef nonnull %29) #7
  store i32 %31, ptr %4, align 8, !tbaa !24
  %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 !25
  %38 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  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 !23
  %.not94 = icmp eq ptr %40, null
  br i1 %.not94, label %.backedge, label %41

41:                                               ; preds = %39
  %42 = call i32 @gk_GetStringID(ptr noundef nonnull @objtype_options, ptr noundef nonnull %40) #7
  store i32 %42, ptr %6, align 4, !tbaa !27
  %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 !25
  %49 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  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 !23
  %.not93 = icmp eq ptr %51, null
  br i1 %.not93, label %.backedge, label %52

52:                                               ; preds = %50
  %53 = call i32 @gk_GetStringID(ptr noundef nonnull @ctype_options, ptr noundef nonnull %51) #7
  store i32 %53, ptr %7, align 8, !tbaa !28
  %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 !25
  %60 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  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 !23
  %.not92 = icmp eq ptr %62, null
  br i1 %.not92, label %.backedge, label %63

63:                                               ; preds = %61
  %64 = call i32 @gk_GetStringID(ptr noundef nonnull @iptype_options, ptr noundef nonnull %62) #7
  store i32 %64, ptr %8, align 4, !tbaa !29
  %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 !25
  %71 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.2, ptr noundef %70, ptr noundef %71) #7
  br label %.backedge

72:                                               ; preds = %26
  store i32 1, ptr %10, align 4, !tbaa !30
  br label %.backedge

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

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

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

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

77:                                               ; preds = %26
  %78 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not91 = icmp eq ptr %78, null
  br i1 %.not91, label %.backedge, label %79

79:                                               ; preds = %77
  %80 = call ptr @gk_strdup(ptr noundef nonnull %78) #7
  store ptr %80, ptr %20, align 8, !tbaa !34
  br label %.backedge

81:                                               ; preds = %26
  %82 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not90 = icmp eq ptr %82, null
  br i1 %.not90, label %.backedge, label %83

83:                                               ; preds = %81
  %84 = call ptr @gk_strdup(ptr noundef nonnull %82) #7
  store ptr %84, ptr %24, align 8, !tbaa !35
  br label %.backedge

85:                                               ; preds = %26
  %86 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not89 = icmp eq ptr %86, null
  br i1 %.not89, label %.backedge, label %87

87:                                               ; preds = %85
  %88 = call i32 @atoi(ptr nocapture noundef %86) #8
  store i32 %88, ptr %15, align 8, !tbaa !15
  br label %.backedge

89:                                               ; preds = %26
  %90 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not88 = icmp eq ptr %90, null
  br i1 %.not88, label %.backedge, label %91

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

93:                                               ; preds = %26
  %94 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not87 = icmp eq ptr %94, null
  br i1 %.not87, label %.backedge, label %95

95:                                               ; preds = %93
  %96 = call i32 @atoi(ptr nocapture noundef %94) #8
  store i32 %96, ptr %23, align 8, !tbaa !22
  br label %.backedge

97:                                               ; preds = %26
  %98 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not86 = icmp eq ptr %98, null
  br i1 %.not86, label %.backedge, label %99

99:                                               ; preds = %97
  %100 = call i32 @atoi(ptr nocapture noundef %98) #8
  store i32 %100, ptr %19, align 8, !tbaa !18
  br label %.backedge

101:                                              ; preds = %26
  %102 = load ptr, ptr @gk_optarg, align 8, !tbaa !23
  %.not85 = icmp eq ptr %102, null
  br i1 %.not85, label %.backedge, label %103

.backedge:                                        ; preds = %101, %103, %97, %99, %93, %95, %89, %91, %85, %87, %81, %83, %77, %79, %61, %66, %63, %50, %55, %52, %39, %44, %41, %28, %33, %30, %108, %76, %75, %74, %73, %72
  br label %26, !llvm.loop !36

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

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %105 = phi ptr [ %107, %.lr.ph ], [ @helpstr, %.preheader ]
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %105)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %107 = getelementptr inbounds [98 x [100 x i8]], ptr @helpstr, i64 0, i64 %indvars.iv.next
  %char083 = load i8, ptr %107, 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

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

110:                                              ; preds = %26
  %111 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %112 = sub nsw i32 %0, %111
  %.not79 = icmp eq i32 %112, 2
  br i1 %.not79, label %118, label %113

113:                                              ; preds = %110
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %char0100 = load i8, ptr @shorthelpstr, align 16
  %.not82101 = icmp eq i8 %char0100, 0
  br i1 %.not82101, label %._crit_edge105, label %.lr.ph104

.lr.ph104:                                        ; preds = %113, %.lr.ph104
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %.lr.ph104 ], [ 0, %113 ]
  %115 = phi ptr [ %117, %.lr.ph104 ], [ @shorthelpstr, %113 ]
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %115)
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %117 = getelementptr inbounds [4 x [100 x i8]], ptr @shorthelpstr, i64 0, i64 %indvars.iv.next108
  %char0 = load i8, ptr %117, align 4
  %.not82 = icmp eq i8 %char0, 0
  br i1 %.not82, label %._crit_edge105, label %.lr.ph104, !llvm.loop !39

._crit_edge105:                                   ; preds = %.lr.ph104, %113
  call void @exit(i32 noundef 0) #9
  unreachable

118:                                              ; preds = %110
  %119 = add nsw i32 %111, 1
  store i32 %119, ptr @gk_optind, align 4, !tbaa !5
  %120 = sext i32 %111 to i64
  %121 = getelementptr inbounds ptr, ptr %1, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !23
  %123 = call ptr @gk_strdup(ptr noundef %122) #7
  store ptr %123, ptr %21, align 8, !tbaa !20
  %124 = load i32, ptr @gk_optind, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr @gk_optind, align 4, !tbaa !5
  %126 = sext i32 %124 to i64
  %127 = getelementptr inbounds ptr, ptr %1, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !23
  %129 = call i32 @atoi(ptr nocapture noundef %128) #8
  store i32 %129, ptr %22, align 8, !tbaa !21
  %130 = icmp slt i32 %129, 2
  br i1 %130, label %131, label %132

131:                                              ; preds = %118
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.6) #7
  br label %132

132:                                              ; preds = %131, %118
  %133 = load i32, ptr %4, align 8, !tbaa !24
  switch i32 %133, label %.thread96 [
    i32 0, label %135
    i32 1, label %134
  ]

134:                                              ; preds = %132
  store i32 4, ptr %8, align 4, !tbaa !29
  store i32 1, ptr %9, align 8, !tbaa !9
  br label %.thread96

135:                                              ; preds = %132
  store i32 0, ptr %9, align 8, !tbaa !9
  %136 = load i32, ptr %12, align 4, !tbaa !31
  %.not80 = icmp eq i32 %136, 0
  br i1 %.not80, label %138, label %137

137:                                              ; preds = %135
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.7) #7
  br label %138

138:                                              ; preds = %137, %135
  %139 = load i32, ptr %11, align 8, !tbaa !32
  %.not81 = icmp eq i32 %139, 0
  br i1 %.not81, label %141, label %140

140:                                              ; preds = %138
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.8) #7
  br label %141

141:                                              ; preds = %140, %138
  %142 = load i32, ptr %6, align 4, !tbaa !27
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %144, label %.thread96

144:                                              ; preds = %141
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.9) #7
  br label %.thread96

.thread96:                                        ; preds = %132, %134, %141, %144
  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 128}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 44}
!17 = !{!10, !6, i64 36}
!18 = !{!10, !6, i64 56}
!19 = !{!10, !6, i64 60}
!20 = !{!10, !11, i64 88}
!21 = !{!10, !6, i64 64}
!22 = !{!10, !6, i64 72}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 0}
!25 = !{!26, !11, i64 0}
!26 = !{!"gk_option", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!27 = !{!10, !6, i64 4}
!28 = !{!10, !6, i64 8}
!29 = !{!10, !6, i64 12}
!30 = !{!10, !6, i64 20}
!31 = !{!10, !6, i64 28}
!32 = !{!10, !6, i64 24}
!33 = !{!10, !6, i64 32}
!34 = !{!10, !11, i64 112}
!35 = !{!10, !11, i64 120}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}


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