; LLVM IR from seppo0010/rlite :: src (scripting)

; 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.rliteClient = type { i32, ptr, ptr, ptr, ptr, i32 }
%struct.rliteCommand = type { ptr, ptr, i32, ptr, i32, i32, i32, i32, i64, i64 }
%struct.rliteReply = type { i32, i64, i32, ptr, i64, ptr }

@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@lua_client = external hidden global ptr, align 8
@luaRedisGenericCommand.argv = external hidden global ptr, align 8
@luaRedisGenericCommand.argvlen = external hidden global ptr, align 8
@luaRedisGenericCommand.argv_size = external hidden global i32, align 4
@luaRedisGenericCommand.inuse = external hidden global i32, align 4
@.str.7 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [47 x i8], align 1
@lua_random_dirty = external hidden global i32, align 4
@.str.15 = external hidden unnamed_addr constant [60 x i8], align 1
@lua_write_dirty = external hidden global i32, align 4

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

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

declare void @lua_pushstring(ptr noundef, ptr noundef) #1

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

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

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #3

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

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

declare void @lua_gettable(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @luaRedisGenericCommand(ptr noundef %0, i32 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 ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca [64 x i8], align 16
  %16 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call i32 @lua_gettop(ptr noundef %17)
  store i32 %18, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %19 = load ptr, ptr @lua_client, align 8, !tbaa !5
  store ptr %19, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %20 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %26

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr @.str.7, ptr %11, align 8, !tbaa !5
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  call void (i32, ptr, ...) @rliteLog(i32 noundef 3, ptr noundef @.str.8, ptr noundef %23)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %24, ptr noundef %25)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %259

26:                                               ; preds = %2
  %27 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %32, ptr noundef @.str.9)
  %33 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %34 = add nsw i32 %33, -1
  store i32 %34, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %259

35:                                               ; preds = %26
  %36 = load i32, ptr @luaRedisGenericCommand.argv_size, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %51

39:                                               ; preds = %35
  %40 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = mul i64 8, %42
  %44 = call ptr @realloc(ptr noundef %40, i64 noundef %43) #6
  store ptr %44, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %45 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = mul i64 8, %47
  %49 = call ptr @realloc(ptr noundef %45, i64 noundef %48) #6
  store ptr %49, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr @luaRedisGenericCommand.argv_size, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %39, %35
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %95, %51
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %98

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  %60 = call i32 @lua_type(ptr noundef %57, i32 noundef %59)
  %61 = icmp eq i32 %60, 3
  br i1 %61, label %62, label %72

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  %66 = call double @lua_tonumber(ptr noundef %63, i32 noundef %65)
  store double %66, ptr %16, align 8, !tbaa !11
  %67 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  %68 = load double, ptr %16, align 8, !tbaa !11
  %69 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %67, i64 noundef 64, ptr noundef @.str.10, double noundef %68) #5
  %70 = sext i32 %69 to i64
  store i64 %70, ptr %14, align 8, !tbaa !13
  %71 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  store ptr %71, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %81

72:                                               ; preds = %56
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  %76 = call ptr @lua_tolstring(ptr noundef %73, i32 noundef %75, ptr noundef %14)
  store ptr %76, ptr %13, align 8, !tbaa !5
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %80

79:                                               ; preds = %72
  store i32 2, ptr %12, align 4
  br label %92

80:                                               ; preds = %72
  br label %81

81:                                               ; preds = %80, %62
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  store ptr %82, ptr %86, align 8, !tbaa !5
  %87 = load i64, ptr %14, align 8, !tbaa !13
  %88 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i64, ptr %88, i64 %90
  store i64 %87, ptr %91, align 8, !tbaa !13
  store i32 0, ptr %12, align 4
  br label %92

92:                                               ; preds = %81, %79
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %93 = load i32, ptr %12, align 4
  switch i32 %93, label %261 [
    i32 0, label %94
    i32 2, label %98
  ]

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %6, align 4, !tbaa !9
  br label %52, !llvm.loop !15

98:                                               ; preds = %92, %52
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = icmp ne i32 %99, %100
  br i1 %101, label %102, label %120

102:                                              ; preds = %98
  %103 = load i32, ptr %6, align 4, !tbaa !9
  %104 = add nsw i32 %103, -1
  store i32 %104, ptr %6, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %108, %102
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = icmp sge i32 %106, 0
  br i1 %107, label %108, label %116

108:                                              ; preds = %105
  %109 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  call void @free(ptr noundef %113) #5
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = add nsw i32 %114, -1
  store i32 %115, ptr %6, align 4, !tbaa !9
  br label %105, !llvm.loop !17

116:                                              ; preds = %105
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %117, ptr noundef @.str.11)
  %118 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %259

120:                                              ; preds = %98
  %121 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.rliteClient, ptr %122, i32 0, i32 2
  store ptr %121, ptr %123, align 8, !tbaa !18
  %124 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.rliteClient, ptr %125, i32 0, i32 1
  store ptr %124, ptr %126, align 8, !tbaa !20
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.rliteClient, ptr %128, i32 0, i32 0
  store i32 %127, ptr %129, align 8, !tbaa !21
  %130 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %131 = getelementptr inbounds ptr, ptr %130, i64 0
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %134 = getelementptr inbounds i64, ptr %133, i64 0
  %135 = load i64, ptr %134, align 8, !tbaa !13
  %136 = call ptr @rliteLookupCommand(ptr noundef %132, i64 noundef %135)
  store ptr %136, ptr %8, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %157

139:                                              ; preds = %120
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.rliteCommand, ptr %140, i32 0, i32 2
  %142 = load i32, ptr %141, align 8, !tbaa !22
  %143 = icmp sgt i32 %142, 0
  br i1 %143, label %144, label %150

144:                                              ; preds = %139
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.rliteCommand, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 8, !tbaa !22
  %148 = load i32, ptr %7, align 4, !tbaa !9
  %149 = icmp ne i32 %147, %148
  br i1 %149, label %157, label %150

150:                                              ; preds = %144, %139
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.rliteCommand, ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 8, !tbaa !22
  %155 = sub nsw i32 0, %154
  %156 = icmp slt i32 %151, %155
  br i1 %156, label %157, label %165

157:                                              ; preds = %150, %144, %120
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %162

160:                                              ; preds = %157
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %161, ptr noundef @.str.12)
  br label %164

162:                                              ; preds = %157
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %163, ptr noundef @.str.13)
  br label %164

164:                                              ; preds = %162, %160
  br label %236

165:                                              ; preds = %150
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.rliteCommand, ptr %166, i32 0, i32 4
  %168 = load i32, ptr %167, align 8, !tbaa !25
  %169 = and i32 %168, 64
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %173

171:                                              ; preds = %165
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %172, ptr noundef @.str.14)
  br label %236

173:                                              ; preds = %165
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.rliteCommand, ptr %174, i32 0, i32 4
  %176 = load i32, ptr %175, align 8, !tbaa !25
  %177 = and i32 %176, 1
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %185

179:                                              ; preds = %173
  %180 = load i32, ptr @lua_random_dirty, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %184

182:                                              ; preds = %179
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaPushError(ptr noundef %183, ptr noundef @.str.15)
  br label %236

184:                                              ; preds = %179
  br label %185

185:                                              ; preds = %184, %173
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.rliteCommand, ptr %186, i32 0, i32 4
  %188 = load i32, ptr %187, align 8, !tbaa !25
  %189 = and i32 %188, 128
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %192

191:                                              ; preds = %185
  store i32 1, ptr @lua_random_dirty, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %191, %185
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.rliteCommand, ptr %193, i32 0, i32 4
  %195 = load i32, ptr %194, align 8, !tbaa !25
  %196 = and i32 %195, 1
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %192
  store i32 1, ptr @lua_write_dirty, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %198, %192
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = call i32 @rliteAppendCommandClient(ptr noundef %200)
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.rliteClient, ptr %202, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !26
  %205 = call i32 @rliteGetReply(ptr noundef %204, ptr noundef %10)
  %206 = load i32, ptr %5, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %214

208:                                              ; preds = %199
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.rliteReply, ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 8, !tbaa !27
  %212 = icmp ne i32 %211, 6
  br i1 %212, label %213, label %214

213:                                              ; preds = %208
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %213, %208, %199
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  call void @rliteToLuaType(ptr noundef %215, ptr noundef %216)
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.rliteCommand, ptr %217, i32 0, i32 4
  %219 = load i32, ptr %218, align 8, !tbaa !25
  %220 = and i32 %219, 256
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %234

222:                                              ; preds = %214
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.rliteReply, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !27
  %226 = icmp eq i32 %225, 2
  br i1 %226, label %227, label %234

227:                                              ; preds = %222
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.rliteReply, ptr %228, i32 0, i32 4
  %230 = load i64, ptr %229, align 8, !tbaa !29
  %231 = icmp ugt i64 %230, 0
  br i1 %231, label %232, label %234

232:                                              ; preds = %227
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaSortArray(ptr noundef %233)
  br label %234

234:                                              ; preds = %232, %227, %222, %214
  %235 = load ptr, ptr %10, align 8, !tbaa !5
  call void @rliteFreeReplyObject(ptr noundef %235)
  br label %236

236:                                              ; preds = %234, %182, %171, %164
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.rliteClient, ptr %237, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !20
  %240 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %241 = icmp ne ptr %239, %240
  br i1 %241, label %242, label %246

242:                                              ; preds = %236
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.rliteClient, ptr %243, i32 0, i32 1
  %245 = load ptr, ptr %244, align 8, !tbaa !20
  call void @free(ptr noundef %245) #5
  store ptr null, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  store i32 0, ptr @luaRedisGenericCommand.argv_size, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %242, %236
  %247 = load i32, ptr %5, align 4, !tbaa !9
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %256

249:                                              ; preds = %246
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  call void @lua_pushstring(ptr noundef %250, ptr noundef @.str.1)
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  call void @lua_gettable(ptr noundef %251, i32 noundef -2)
  %252 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %253 = add nsw i32 %252, -1
  store i32 %253, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = call i32 @lua_error(ptr noundef %254)
  store i32 %255, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %259

256:                                              ; preds = %246
  %257 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %258 = add nsw i32 %257, -1
  store i32 %258, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %259

259:                                              ; preds = %256, %249, %116, %31, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %260 = load i32, ptr %3, align 4
  ret i32 %260

261:                                              ; preds = %92
  unreachable
}

declare i32 @lua_gettop(ptr noundef) #1

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

declare i32 @lua_type(ptr noundef, i32 noundef) #1

declare double @lua_tonumber(ptr noundef, i32 noundef) #1

declare ptr @lua_tolstring(ptr noundef, i32 noundef, ptr noundef) #1

declare ptr @rliteLookupCommand(ptr noundef, i64 noundef) #1

declare i32 @rliteAppendCommandClient(ptr noundef) #1

declare i32 @rliteGetReply(ptr noundef, ptr noundef) #1

declare void @rliteFreeReplyObject(ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !6, i64 16}
!19 = !{!"rliteClient", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!20 = !{!19, !6, i64 8}
!21 = !{!19, !10, i64 0}
!22 = !{!23, !10, i64 16}
!23 = !{!"rliteCommand", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !24, i64 48, !24, i64 56}
!24 = !{!"long long", !7, i64 0}
!25 = !{!23, !10, i64 32}
!26 = !{!19, !6, i64 32}
!27 = !{!28, !10, i64 0}
!28 = !{!"rliteReply", !10, i64 0, !24, i64 8, !10, i64 16, !6, i64 24, !14, i64 32, !6, i64 40}
!29 = !{!28, !14, i64 32}


; 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"

@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@lua_client = external hidden local_unnamed_addr global ptr, align 8
@luaRedisGenericCommand.argv = external hidden local_unnamed_addr global ptr, align 8
@luaRedisGenericCommand.argvlen = external hidden local_unnamed_addr global ptr, align 8
@luaRedisGenericCommand.argv_size = external hidden local_unnamed_addr global i32, align 4
@luaRedisGenericCommand.inuse = external hidden local_unnamed_addr global i32, align 4
@.str.7 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [47 x i8], align 1
@lua_random_dirty = external hidden local_unnamed_addr global i32, align 4
@.str.15 = external hidden unnamed_addr constant [60 x i8], align 1
@lua_write_dirty = external hidden local_unnamed_addr global i32, align 4

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

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

declare void @lua_pushstring(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

declare void @lua_gettable(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @luaRedisGenericCommand(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca [64 x i8], align 16
  %6 = tail call i32 @lua_gettop(ptr noundef %0) #6
  %7 = load ptr, ptr @lua_client, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %8 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %10, label %9

9:                                                ; preds = %2
  tail call void (i32, ptr, ...) @rliteLog(i32 noundef 3, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7)
  tail call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.7)
  br label %112

10:                                               ; preds = %2
  store i32 1, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %11 = icmp eq i32 %6, 0
  br i1 %11, label %12, label %15

12:                                               ; preds = %10
  tail call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.9)
  %13 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  br label %112

15:                                               ; preds = %10
  %16 = load i32, ptr @luaRedisGenericCommand.argv_size, align 4, !tbaa !9
  %17 = icmp slt i32 %16, %6
  br i1 %17, label %18, label %25

18:                                               ; preds = %15
  %19 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %20 = sext i32 %6 to i64
  %21 = shl nsw i64 %20, 3
  %22 = tail call ptr @realloc(ptr noundef %19, i64 noundef %21) #7
  store ptr %22, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %23 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %24 = tail call ptr @realloc(ptr noundef %23, i64 noundef %21) #7
  store ptr %24, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  store i32 %6, ptr @luaRedisGenericCommand.argv_size, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %18, %15
  %26 = icmp sgt i32 %6, 0
  br i1 %26, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %25
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %37
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %37 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = trunc nuw nsw i64 %indvars.iv.next to i32
  %28 = call i32 @lua_type(ptr noundef %0, i32 noundef %27) #6
  %29 = icmp eq i32 %28, 3
  br i1 %29, label %30, label %34

30:                                               ; preds = %.lr.ph
  %31 = call double @lua_tonumber(ptr noundef %0, i32 noundef %27) #6
  %32 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 64, ptr noundef nonnull @.str.10, double noundef %31) #6
  %33 = sext i32 %32 to i64
  br label %37

34:                                               ; preds = %.lr.ph
  %35 = call ptr @lua_tolstring(ptr noundef %0, i32 noundef %27, ptr noundef nonnull %4) #6
  %36 = icmp eq ptr %35, null
  br i1 %36, label %.loopexit, label %._crit_edge107

._crit_edge107:                                   ; preds = %34
  %.pre = load i64, ptr %4, align 8, !tbaa !11
  br label %37

37:                                               ; preds = %._crit_edge107, %30
  %38 = phi i64 [ %33, %30 ], [ %.pre, %._crit_edge107 ]
  %.064 = phi ptr [ %5, %30 ], [ %35, %._crit_edge107 ]
  %39 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv
  store ptr %.064, ptr %40, align 8, !tbaa !5
  %41 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %42 = getelementptr inbounds i64, ptr %41, i64 %indvars.iv
  store i64 %38, ptr %42, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit.thread, label %.lr.ph, !llvm.loop !13

.loopexit:                                        ; preds = %34
  %43 = trunc nuw nsw i64 %indvars.iv to i32
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %.not77 = icmp eq i32 %6, %43
  br i1 %.not77, label %.loopexit.thread, label %.preheader

.preheader:                                       ; preds = %.loopexit
  %.not119 = icmp eq i64 %indvars.iv, 0
  br i1 %.not119, label %._crit_edge, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %.preheader
  %44 = and i64 %indvars.iv, 4294967295
  br label %.lr.ph100

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.lr.ph100
  %indvars.iv104 = phi i64 [ %44, %.lr.ph100.preheader ], [ %indvars.iv.next105, %.lr.ph100 ]
  %indvars.iv.next105 = add nsw i64 %indvars.iv104, -1
  %45 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv.next105
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  call void @free(ptr noundef %47) #6
  %48 = icmp ugt i64 %indvars.iv104, 1
  br i1 %48, label %.lr.ph100, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph100, %25, %.preheader
  call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.11)
  %49 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %50 = add nsw i32 %49, -1
  store i32 %50, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  br label %112

.loopexit.thread:                                 ; preds = %37, %.loopexit
  %51 = load ptr, ptr @luaRedisGenericCommand.argvlen, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %51, ptr %52, align 8, !tbaa !16
  %53 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %53, ptr %54, align 8, !tbaa !18
  store i32 %6, ptr %7, align 8, !tbaa !19
  %55 = load ptr, ptr %53, align 8, !tbaa !5
  %56 = load i64, ptr %51, align 8, !tbaa !11
  %57 = call ptr @rliteLookupCommand(ptr noundef %55, i64 noundef %56) #6
  %.not78 = icmp eq ptr %57, null
  br i1 %.not78, label %.critedge, label %58

58:                                               ; preds = %.loopexit.thread
  %59 = getelementptr inbounds i8, ptr %57, i64 16
  %60 = load i32, ptr %59, align 8, !tbaa !20
  %61 = icmp sgt i32 %60, 0
  %.not79 = icmp ne i32 %60, %6
  %or.cond89.not95 = select i1 %61, i1 %.not79, i1 false
  %62 = sub nsw i32 0, %60
  %63 = icmp slt i32 %6, %62
  %or.cond93 = select i1 %or.cond89.not95, i1 true, i1 %63
  br i1 %or.cond93, label %64, label %65

64:                                               ; preds = %58
  call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.12)
  br label %100

.critedge:                                        ; preds = %.loopexit.thread
  call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.13)
  br label %100

65:                                               ; preds = %58
  %66 = getelementptr inbounds i8, ptr %57, i64 32
  %67 = load i32, ptr %66, align 8, !tbaa !23
  %68 = and i32 %67, 64
  %.not80 = icmp eq i32 %68, 0
  br i1 %.not80, label %70, label %69

69:                                               ; preds = %65
  call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.14)
  br label %100

70:                                               ; preds = %65
  %71 = and i32 %67, 1
  %72 = icmp ne i32 %71, 0
  %73 = load i32, ptr @lua_random_dirty, align 4
  %74 = icmp ne i32 %73, 0
  %or.cond = select i1 %72, i1 %74, i1 false
  br i1 %or.cond, label %75, label %76

75:                                               ; preds = %70
  call void @luaPushError(ptr noundef %0, ptr noundef nonnull @.str.15)
  br label %100

76:                                               ; preds = %70
  %77 = and i32 %67, 128
  %.not81 = icmp eq i32 %77, 0
  br i1 %.not81, label %79, label %78

78:                                               ; preds = %76
  store i32 1, ptr @lua_random_dirty, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %78, %76
  %.not82 = icmp eq i32 %71, 0
  br i1 %.not82, label %81, label %80

80:                                               ; preds = %79
  store i32 1, ptr @lua_write_dirty, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %80, %79
  %82 = call i32 @rliteAppendCommandClient(ptr noundef nonnull %7) #6
  %83 = getelementptr inbounds i8, ptr %7, i64 32
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = call i32 @rliteGetReply(ptr noundef %84, ptr noundef nonnull %3) #6
  %.not83 = icmp eq i32 %1, 0
  %.pre108 = load ptr, ptr %3, align 8, !tbaa !5
  br i1 %.not83, label %88, label %86

86:                                               ; preds = %81
  %87 = load i32, ptr %.pre108, align 8, !tbaa !25
  %.not84 = icmp eq i32 %87, 6
  %spec.select = select i1 %.not84, i32 %1, i32 0
  br label %88

88:                                               ; preds = %86, %81
  %.066 = phi i32 [ 0, %81 ], [ %spec.select, %86 ]
  call void @rliteToLuaType(ptr noundef %0, ptr noundef %.pre108)
  %89 = load i32, ptr %66, align 8, !tbaa !23
  %90 = and i32 %89, 256
  %.not85 = icmp eq i32 %90, 0
  %.pre110 = load ptr, ptr %3, align 8, !tbaa !5
  br i1 %.not85, label %98, label %91

91:                                               ; preds = %88
  %92 = load i32, ptr %.pre110, align 8, !tbaa !25
  %93 = icmp eq i32 %92, 2
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = getelementptr inbounds i8, ptr %.pre110, i64 32
  %96 = load i64, ptr %95, align 8, !tbaa !27
  %.not86 = icmp eq i64 %96, 0
  br i1 %.not86, label %98, label %97

97:                                               ; preds = %94
  call void @luaSortArray(ptr noundef %0)
  %.pre109 = load ptr, ptr %3, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %97, %94, %91, %88
  %99 = phi ptr [ %.pre109, %97 ], [ %.pre110, %94 ], [ %.pre110, %91 ], [ %.pre110, %88 ]
  call void @rliteFreeReplyObject(ptr noundef %99) #6
  br label %100

100:                                              ; preds = %64, %.critedge, %98, %75, %69
  %.1 = phi i32 [ %1, %64 ], [ %1, %.critedge ], [ %1, %69 ], [ %1, %75 ], [ %.066, %98 ]
  %101 = load ptr, ptr %54, align 8, !tbaa !18
  %102 = load ptr, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  %.not87 = icmp eq ptr %101, %102
  br i1 %.not87, label %104, label %103

103:                                              ; preds = %100
  call void @free(ptr noundef %101) #6
  store ptr null, ptr @luaRedisGenericCommand.argv, align 8, !tbaa !5
  store i32 0, ptr @luaRedisGenericCommand.argv_size, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %103, %100
  %.not88 = icmp eq i32 %.1, 0
  br i1 %.not88, label %109, label %105

105:                                              ; preds = %104
  call void @lua_pushstring(ptr noundef %0, ptr noundef nonnull @.str.1) #6
  call void @lua_gettable(ptr noundef %0, i32 noundef -2) #6
  %106 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %107 = add nsw i32 %106, -1
  store i32 %107, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %108 = call i32 @lua_error(ptr noundef %0) #6
  br label %112

109:                                              ; preds = %104
  %110 = load i32, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  %111 = add nsw i32 %110, -1
  store i32 %111, ptr @luaRedisGenericCommand.inuse, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %109, %105, %._crit_edge, %12, %9
  %.0 = phi i32 [ 1, %9 ], [ 1, %12 ], [ 1, %._crit_edge ], [ %108, %105 ], [ 1, %109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 %.0
}

declare i32 @lua_gettop(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #5

declare i32 @lua_type(ptr noundef, i32 noundef) local_unnamed_addr #1

declare double @lua_tonumber(ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @lua_tolstring(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @rliteLookupCommand(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @rliteAppendCommandClient(ptr noundef) local_unnamed_addr #1

declare i32 @rliteGetReply(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @rliteFreeReplyObject(ptr noundef) local_unnamed_addr #1

declare i32 @lua_error(ptr noundef) local_unnamed_addr #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 = { "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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(1) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 16}
!17 = !{!"rliteClient", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!18 = !{!17, !6, i64 8}
!19 = !{!17, !10, i64 0}
!20 = !{!21, !10, i64 16}
!21 = !{!"rliteCommand", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !22, i64 48, !22, i64 56}
!22 = !{!"long long", !7, i64 0}
!23 = !{!21, !10, i64 32}
!24 = !{!17, !6, i64 32}
!25 = !{!26, !10, i64 0}
!26 = !{!"rliteReply", !10, i64 0, !22, i64 8, !10, i64 16, !6, i64 24, !12, i64 32, !6, i64 40}
!27 = !{!26, !12, i64 32}


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