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

; 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.rliteContext = type { i32, [128 x i8], ptr, ptr, i32, i32, i32, ptr, i32, i32, i64, i64, i32, ptr, i16, i16, i64, i64, ptr, i64, i64, ptr }

@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @createStatusObject(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local i32 @rliteAppendCommandClient(ptr noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.rliteClient, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %1
  store i32 -1, ptr %2, align 4
  br label %560

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.rliteClient, ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  %21 = getelementptr inbounds ptr, ptr %20, i64 0
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.rliteClient, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = getelementptr inbounds i64, ptr %25, i64 0
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = call ptr @rliteLookupCommand(ptr noundef %22, i64 noundef %27)
  store ptr %28, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !16
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %71, label %31

31:                                               ; preds = %17
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.rliteClient, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds i64, ptr %34, i64 0
  %36 = load i64, ptr %35, align 8, !tbaa !14
  %37 = add i64 %36, 1
  %38 = mul i64 1, %37
  %39 = call noalias ptr @malloc(i64 noundef %38) #9
  store ptr %39, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.rliteClient, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !12
  %44 = getelementptr inbounds ptr, ptr %43, i64 0
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.rliteClient, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds i64, ptr %48, i64 0
  %50 = load i64, ptr %49, align 8, !tbaa !14
  %51 = mul i64 %50, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %40, ptr align 1 %45, i64 %51, i1 false)
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.rliteClient, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = getelementptr inbounds i64, ptr %55, i64 0
  %57 = load i64, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds i8, ptr %52, i64 %57
  store i8 0, ptr %58, align 1, !tbaa !17
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %68

61:                                               ; preds = %31
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.rliteClient, ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @addReplyErrorFormat(ptr noundef %64, ptr noundef @.str.5, ptr noundef %65)
  store i32 %66, ptr %11, align 4, !tbaa !16
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %67) #8
  br label %69

68:                                               ; preds = %31
  store i32 4, ptr %11, align 4, !tbaa !16
  br label %69

69:                                               ; preds = %68, %61
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  call void @flagTransactions(ptr noundef %70)
  br label %555

71:                                               ; preds = %17
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.rliteCommand, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !19
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %76, label %84

76:                                               ; preds = %71
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.rliteCommand, ptr %77, i32 0, i32 2
  %79 = load i32, ptr %78, align 8, !tbaa !19
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.rliteClient, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !9
  %83 = icmp ne i32 %79, %82
  br i1 %83, label %93, label %84

84:                                               ; preds = %76, %71
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.rliteClient, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !9
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.rliteCommand, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !19
  %91 = sub nsw i32 0, %90
  %92 = icmp slt i32 %87, %91
  br i1 %92, label %93, label %102

93:                                               ; preds = %84, %76
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.rliteClient, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.rliteCommand, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = call i32 (ptr, ptr, ...) @addReplyErrorFormat(ptr noundef %96, ptr noundef @.str.6, ptr noundef %99)
  store i32 %100, ptr %11, align 4, !tbaa !16
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  call void @flagTransactions(ptr noundef %101)
  br label %554

102:                                              ; preds = %84
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.rliteClient, ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = call i32 @refresh_rlite_fp(ptr noundef %105)
  store i32 %106, ptr %11, align 4, !tbaa !16
  %107 = load i32, ptr %11, align 4, !tbaa !16
  %108 = icmp ne i32 0, %107
  br i1 %108, label %109, label %110

109:                                              ; preds = %102
  br label %556

110:                                              ; preds = %102
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.rliteClient, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = getelementptr inbounds %struct.rliteContext, ptr %113, i32 0, i32 14
  %115 = load i16, ptr %114, align 8, !tbaa !23
  %116 = sext i16 %115 to i32
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %455

118:                                              ; preds = %110
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.rliteCommand, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !26
  %122 = icmp ne ptr %121, @execCommand
  br i1 %122, label %123, label %455

123:                                              ; preds = %118
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.rliteCommand, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = icmp ne ptr %126, @discardCommand
  br i1 %127, label %128, label %455

128:                                              ; preds = %123
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.rliteCommand, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  %132 = icmp ne ptr %131, @multiCommand
  br i1 %132, label %133, label %455

133:                                              ; preds = %128
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.rliteCommand, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !26
  %137 = icmp ne ptr %136, @watchCommand
  br i1 %137, label %138, label %455

138:                                              ; preds = %133
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.rliteClient, ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !18
  %142 = getelementptr inbounds %struct.rliteContext, ptr %141, i32 0, i32 20
  %143 = load i64, ptr %142, align 8, !tbaa !27
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.rliteClient, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !18
  %147 = getelementptr inbounds %struct.rliteContext, ptr %146, i32 0, i32 19
  %148 = load i64, ptr %147, align 8, !tbaa !28
  %149 = icmp eq i64 %143, %148
  br i1 %149, label %150, label %185

150:                                              ; preds = %138
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.rliteClient, ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !18
  %154 = getelementptr inbounds %struct.rliteContext, ptr %153, i32 0, i32 19
  %155 = load i64, ptr %154, align 8, !tbaa !28
  %156 = mul i64 %155, 2
  store i64 %156, ptr %8, align 8, !tbaa !14
  %157 = load i64, ptr %8, align 8, !tbaa !14
  %158 = icmp eq i64 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %150
  store i64 4, ptr %8, align 8, !tbaa !14
  br label %160

160:                                              ; preds = %159, %150
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.rliteClient, ptr %161, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !18
  %164 = getelementptr inbounds %struct.rliteContext, ptr %163, i32 0, i32 21
  %165 = load ptr, ptr %164, align 8, !tbaa !29
  %166 = load i64, ptr %8, align 8, !tbaa !14
  %167 = mul i64 8, %166
  %168 = call ptr @realloc(ptr noundef %165, i64 noundef %167) #10
  store ptr %168, ptr %7, align 8, !tbaa !5
  %169 = icmp ne ptr %168, null
  br i1 %169, label %174, label %170

170:                                              ; preds = %160
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.rliteClient, ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !18
  call void @__rliteSetError(ptr noundef %173, i32 noundef 5, ptr noundef @.str.7)
  store i32 4, ptr %11, align 4, !tbaa !16
  br label %556

174:                                              ; preds = %160
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.rliteClient, ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !18
  %179 = getelementptr inbounds %struct.rliteContext, ptr %178, i32 0, i32 21
  store ptr %175, ptr %179, align 8, !tbaa !29
  %180 = load i64, ptr %8, align 8, !tbaa !14
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.rliteClient, ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !18
  %184 = getelementptr inbounds %struct.rliteContext, ptr %183, i32 0, i32 19
  store i64 %180, ptr %184, align 8, !tbaa !28
  br label %185

185:                                              ; preds = %174, %138
  %186 = call noalias ptr @malloc(i64 noundef 48) #9
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.rliteClient, ptr %187, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !18
  %190 = getelementptr inbounds %struct.rliteContext, ptr %189, i32 0, i32 21
  %191 = load ptr, ptr %190, align 8, !tbaa !29
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.rliteClient, ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = getelementptr inbounds %struct.rliteContext, ptr %194, i32 0, i32 20
  %196 = load i64, ptr %195, align 8, !tbaa !27
  %197 = getelementptr inbounds ptr, ptr %191, i64 %196
  store ptr %186, ptr %197, align 8, !tbaa !5
  %198 = icmp ne ptr %186, null
  br i1 %198, label %203, label %199

199:                                              ; preds = %185
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.rliteClient, ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !18
  call void @__rliteSetError(ptr noundef %202, i32 noundef 5, ptr noundef @.str.7)
  store i32 4, ptr %11, align 4, !tbaa !16
  br label %556

203:                                              ; preds = %185
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.rliteClient, ptr %204, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !18
  %207 = getelementptr inbounds %struct.rliteContext, ptr %206, i32 0, i32 21
  %208 = load ptr, ptr %207, align 8, !tbaa !29
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.rliteClient, ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !18
  %212 = getelementptr inbounds %struct.rliteContext, ptr %211, i32 0, i32 20
  %213 = load i64, ptr %212, align 8, !tbaa !27
  %214 = getelementptr inbounds ptr, ptr %208, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.rliteClient, ptr %215, i32 0, i32 5
  store i32 0, ptr %216, align 8, !tbaa !30
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.rliteClient, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 8, !tbaa !9
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.rliteClient, ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !18
  %223 = getelementptr inbounds %struct.rliteContext, ptr %222, i32 0, i32 21
  %224 = load ptr, ptr %223, align 8, !tbaa !29
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.rliteClient, ptr %225, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !18
  %228 = getelementptr inbounds %struct.rliteContext, ptr %227, i32 0, i32 20
  %229 = load i64, ptr %228, align 8, !tbaa !27
  %230 = getelementptr inbounds ptr, ptr %224, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.rliteClient, ptr %231, i32 0, i32 0
  store i32 %219, ptr %232, align 8, !tbaa !9
  %233 = load ptr, ptr %3, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.rliteClient, ptr %233, i32 0, i32 0
  %235 = load i32, ptr %234, align 8, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = mul i64 8, %236
  %238 = call noalias ptr @malloc(i64 noundef %237) #9
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.rliteClient, ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = getelementptr inbounds %struct.rliteContext, ptr %241, i32 0, i32 21
  %243 = load ptr, ptr %242, align 8, !tbaa !29
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.rliteClient, ptr %244, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !18
  %247 = getelementptr inbounds %struct.rliteContext, ptr %246, i32 0, i32 20
  %248 = load i64, ptr %247, align 8, !tbaa !27
  %249 = getelementptr inbounds ptr, ptr %243, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.rliteClient, ptr %250, i32 0, i32 2
  store ptr %238, ptr %251, align 8, !tbaa !13
  %252 = icmp ne ptr %238, null
  br i1 %252, label %257, label %253

253:                                              ; preds = %203
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.rliteClient, ptr %254, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !18
  call void @__rliteSetError(ptr noundef %256, i32 noundef 5, ptr noundef @.str.7)
  store i32 4, ptr %11, align 4, !tbaa !16
  br label %556

257:                                              ; preds = %203
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.rliteClient, ptr %258, i32 0, i32 0
  %260 = load i32, ptr %259, align 8, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = mul i64 8, %261
  %263 = call noalias ptr @malloc(i64 noundef %262) #9
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.rliteClient, ptr %264, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !18
  %267 = getelementptr inbounds %struct.rliteContext, ptr %266, i32 0, i32 21
  %268 = load ptr, ptr %267, align 8, !tbaa !29
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.rliteClient, ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !18
  %272 = getelementptr inbounds %struct.rliteContext, ptr %271, i32 0, i32 20
  %273 = load i64, ptr %272, align 8, !tbaa !27
  %274 = getelementptr inbounds ptr, ptr %268, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.rliteClient, ptr %275, i32 0, i32 1
  store ptr %263, ptr %276, align 8, !tbaa !12
  %277 = icmp ne ptr %263, null
  br i1 %277, label %296, label %278

278:                                              ; preds = %257
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.rliteClient, ptr %279, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !18
  %282 = getelementptr inbounds %struct.rliteContext, ptr %281, i32 0, i32 21
  %283 = load ptr, ptr %282, align 8, !tbaa !29
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.rliteClient, ptr %284, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !18
  %287 = getelementptr inbounds %struct.rliteContext, ptr %286, i32 0, i32 20
  %288 = load i64, ptr %287, align 8, !tbaa !27
  %289 = getelementptr inbounds ptr, ptr %283, i64 %288
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.rliteClient, ptr %290, i32 0, i32 2
  %292 = load ptr, ptr %291, align 8, !tbaa !13
  call void @free(ptr noundef %292) #8
  %293 = load ptr, ptr %3, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.rliteClient, ptr %293, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !18
  call void @__rliteSetError(ptr noundef %295, i32 noundef 5, ptr noundef @.str.7)
  store i32 4, ptr %11, align 4, !tbaa !16
  br label %556

296:                                              ; preds = %257
  store i32 0, ptr %10, align 4, !tbaa !16
  br label %297

297:                                              ; preds = %419, %296
  %298 = load i32, ptr %10, align 4, !tbaa !16
  %299 = load ptr, ptr %3, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.rliteClient, ptr %299, i32 0, i32 0
  %301 = load i32, ptr %300, align 8, !tbaa !9
  %302 = icmp slt i32 %298, %301
  br i1 %302, label %303, label %422

303:                                              ; preds = %297
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.rliteClient, ptr %304, i32 0, i32 2
  %306 = load ptr, ptr %305, align 8, !tbaa !13
  %307 = load i32, ptr %10, align 4, !tbaa !16
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds i64, ptr %306, i64 %308
  %310 = load i64, ptr %309, align 8, !tbaa !14
  %311 = load ptr, ptr %3, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.rliteClient, ptr %311, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !18
  %314 = getelementptr inbounds %struct.rliteContext, ptr %313, i32 0, i32 21
  %315 = load ptr, ptr %314, align 8, !tbaa !29
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.rliteClient, ptr %316, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !18
  %319 = getelementptr inbounds %struct.rliteContext, ptr %318, i32 0, i32 20
  %320 = load i64, ptr %319, align 8, !tbaa !27
  %321 = getelementptr inbounds ptr, ptr %315, i64 %320
  %322 = load ptr, ptr %321, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.rliteClient, ptr %322, i32 0, i32 2
  %324 = load ptr, ptr %323, align 8, !tbaa !13
  %325 = load i32, ptr %10, align 4, !tbaa !16
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds i64, ptr %324, i64 %326
  store i64 %310, ptr %327, align 8, !tbaa !14
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.rliteClient, ptr %328, i32 0, i32 2
  %330 = load ptr, ptr %329, align 8, !tbaa !13
  %331 = load i32, ptr %10, align 4, !tbaa !16
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds i64, ptr %330, i64 %332
  %334 = load i64, ptr %333, align 8, !tbaa !14
  %335 = add i64 %334, 1
  %336 = mul i64 1, %335
  %337 = call noalias ptr @malloc(i64 noundef %336) #9
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.rliteClient, ptr %338, i32 0, i32 4
  %340 = load ptr, ptr %339, align 8, !tbaa !18
  %341 = getelementptr inbounds %struct.rliteContext, ptr %340, i32 0, i32 21
  %342 = load ptr, ptr %341, align 8, !tbaa !29
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.rliteClient, ptr %343, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !18
  %346 = getelementptr inbounds %struct.rliteContext, ptr %345, i32 0, i32 20
  %347 = load i64, ptr %346, align 8, !tbaa !27
  %348 = getelementptr inbounds ptr, ptr %342, i64 %347
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.rliteClient, ptr %349, i32 0, i32 1
  %351 = load ptr, ptr %350, align 8, !tbaa !12
  %352 = load i32, ptr %10, align 4, !tbaa !16
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds ptr, ptr %351, i64 %353
  store ptr %337, ptr %354, align 8, !tbaa !5
  %355 = icmp ne ptr %337, null
  br i1 %355, label %360, label %356

356:                                              ; preds = %303
  %357 = load ptr, ptr %3, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.rliteClient, ptr %357, i32 0, i32 4
  %359 = load ptr, ptr %358, align 8, !tbaa !18
  call void @__rliteSetError(ptr noundef %359, i32 noundef 5, ptr noundef @.str.7)
  store i32 4, ptr %11, align 4, !tbaa !16
  br label %556

360:                                              ; preds = %303
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.rliteClient, ptr %361, i32 0, i32 4
  %363 = load ptr, ptr %362, align 8, !tbaa !18
  %364 = getelementptr inbounds %struct.rliteContext, ptr %363, i32 0, i32 21
  %365 = load ptr, ptr %364, align 8, !tbaa !29
  %366 = load ptr, ptr %3, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.rliteClient, ptr %366, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !18
  %369 = getelementptr inbounds %struct.rliteContext, ptr %368, i32 0, i32 20
  %370 = load i64, ptr %369, align 8, !tbaa !27
  %371 = getelementptr inbounds ptr, ptr %365, i64 %370
  %372 = load ptr, ptr %371, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.rliteClient, ptr %372, i32 0, i32 1
  %374 = load ptr, ptr %373, align 8, !tbaa !12
  %375 = load i32, ptr %10, align 4, !tbaa !16
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds ptr, ptr %374, i64 %376
  %378 = load ptr, ptr %377, align 8, !tbaa !5
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.rliteClient, ptr %379, i32 0, i32 1
  %381 = load ptr, ptr %380, align 8, !tbaa !12
  %382 = load i32, ptr %10, align 4, !tbaa !16
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds ptr, ptr %381, i64 %383
  %385 = load ptr, ptr %384, align 8, !tbaa !5
  %386 = load ptr, ptr %3, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.rliteClient, ptr %386, i32 0, i32 2
  %388 = load ptr, ptr %387, align 8, !tbaa !13
  %389 = load i32, ptr %10, align 4, !tbaa !16
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds i64, ptr %388, i64 %390
  %392 = load i64, ptr %391, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %378, ptr align 1 %385, i64 %392, i1 false)
  %393 = load ptr, ptr %3, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.rliteClient, ptr %393, i32 0, i32 4
  %395 = load ptr, ptr %394, align 8, !tbaa !18
  %396 = getelementptr inbounds %struct.rliteContext, ptr %395, i32 0, i32 21
  %397 = load ptr, ptr %396, align 8, !tbaa !29
  %398 = load ptr, ptr %3, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.rliteClient, ptr %398, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !18
  %401 = getelementptr inbounds %struct.rliteContext, ptr %400, i32 0, i32 20
  %402 = load i64, ptr %401, align 8, !tbaa !27
  %403 = getelementptr inbounds ptr, ptr %397, i64 %402
  %404 = load ptr, ptr %403, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.rliteClient, ptr %404, i32 0, i32 1
  %406 = load ptr, ptr %405, align 8, !tbaa !12
  %407 = load i32, ptr %10, align 4, !tbaa !16
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds ptr, ptr %406, i64 %408
  %410 = load ptr, ptr %409, align 8, !tbaa !5
  %411 = load ptr, ptr %3, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.rliteClient, ptr %411, i32 0, i32 2
  %413 = load ptr, ptr %412, align 8, !tbaa !13
  %414 = load i32, ptr %10, align 4, !tbaa !16
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds i64, ptr %413, i64 %415
  %417 = load i64, ptr %416, align 8, !tbaa !14
  %418 = getelementptr inbounds i8, ptr %410, i64 %417
  store i8 0, ptr %418, align 1, !tbaa !17
  br label %419

419:                                              ; preds = %360
  %420 = load i32, ptr %10, align 4, !tbaa !16
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %10, align 4, !tbaa !16
  br label %297, !llvm.loop !31

422:                                              ; preds = %297
  %423 = load ptr, ptr %3, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.rliteClient, ptr %423, i32 0, i32 4
  %425 = load ptr, ptr %424, align 8, !tbaa !18
  %426 = load ptr, ptr %3, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.rliteClient, ptr %426, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !18
  %429 = getelementptr inbounds %struct.rliteContext, ptr %428, i32 0, i32 21
  %430 = load ptr, ptr %429, align 8, !tbaa !29
  %431 = load ptr, ptr %3, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.rliteClient, ptr %431, i32 0, i32 4
  %433 = load ptr, ptr %432, align 8, !tbaa !18
  %434 = getelementptr inbounds %struct.rliteContext, ptr %433, i32 0, i32 20
  %435 = load i64, ptr %434, align 8, !tbaa !27
  %436 = getelementptr inbounds ptr, ptr %430, i64 %435
  %437 = load ptr, ptr %436, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.rliteClient, ptr %437, i32 0, i32 4
  store ptr %425, ptr %438, align 8, !tbaa !18
  %439 = load ptr, ptr %3, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.rliteClient, ptr %439, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !18
  %442 = getelementptr inbounds %struct.rliteContext, ptr %441, i32 0, i32 20
  %443 = load i64, ptr %442, align 8, !tbaa !27
  %444 = add i64 %443, 1
  store i64 %444, ptr %442, align 8, !tbaa !27
  %445 = call ptr @createStatusObject(ptr noundef @.str.8)
  %446 = load ptr, ptr %3, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.rliteClient, ptr %446, i32 0, i32 3
  store ptr %445, ptr %447, align 8, !tbaa !33
  %448 = load ptr, ptr %3, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.rliteClient, ptr %448, i32 0, i32 4
  %450 = load ptr, ptr %449, align 8, !tbaa !18
  %451 = load ptr, ptr %3, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.rliteClient, ptr %451, i32 0, i32 3
  %453 = load ptr, ptr %452, align 8, !tbaa !33
  %454 = call i32 @addReply(ptr noundef %450, ptr noundef %453)
  store i32 %454, ptr %11, align 4, !tbaa !16
  br label %553

455:                                              ; preds = %133, %128, %123, %118, %110
  %456 = load ptr, ptr %3, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.rliteClient, ptr %456, i32 0, i32 3
  store ptr null, ptr %457, align 8, !tbaa !33
  %458 = load ptr, ptr %3, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.rliteClient, ptr %458, i32 0, i32 4
  %460 = load ptr, ptr %459, align 8, !tbaa !18
  %461 = getelementptr inbounds %struct.rliteContext, ptr %460, i32 0, i32 13
  %462 = load ptr, ptr %461, align 8, !tbaa !34
  %463 = icmp ne ptr %462, null
  br i1 %463, label %464, label %475

464:                                              ; preds = %455
  %465 = load ptr, ptr %3, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.rliteClient, ptr %465, i32 0, i32 4
  %467 = load ptr, ptr %466, align 8, !tbaa !18
  %468 = getelementptr inbounds %struct.rliteContext, ptr %467, i32 0, i32 7
  %469 = load ptr, ptr %468, align 8, !tbaa !35
  %470 = call i32 @rl_dirty_hash(ptr noundef %469, ptr noundef %4)
  store i32 %470, ptr %11, align 4, !tbaa !16
  %471 = load i32, ptr %11, align 4, !tbaa !16
  %472 = icmp ne i32 0, %471
  br i1 %472, label %473, label %474

473:                                              ; preds = %464
  br label %556

474:                                              ; preds = %464
  br label %475

475:                                              ; preds = %474, %455
  %476 = load ptr, ptr %9, align 8, !tbaa !5
  %477 = getelementptr inbounds %struct.rliteCommand, ptr %476, i32 0, i32 1
  %478 = load ptr, ptr %477, align 8, !tbaa !26
  %479 = load ptr, ptr %3, align 8, !tbaa !5
  call void %478(ptr noundef %479)
  %480 = load ptr, ptr %3, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct.rliteClient, ptr %480, i32 0, i32 3
  %482 = load ptr, ptr %481, align 8, !tbaa !33
  %483 = icmp ne ptr %482, null
  br i1 %483, label %484, label %492

484:                                              ; preds = %475
  %485 = load ptr, ptr %3, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.rliteClient, ptr %485, i32 0, i32 4
  %487 = load ptr, ptr %486, align 8, !tbaa !18
  %488 = load ptr, ptr %3, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.rliteClient, ptr %488, i32 0, i32 3
  %490 = load ptr, ptr %489, align 8, !tbaa !33
  %491 = call i32 @addReply(ptr noundef %487, ptr noundef %490)
  store i32 %491, ptr %11, align 4, !tbaa !16
  br label %492

492:                                              ; preds = %484, %475
  %493 = load ptr, ptr %3, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.rliteClient, ptr %493, i32 0, i32 4
  %495 = load ptr, ptr %494, align 8, !tbaa !18
  %496 = getelementptr inbounds %struct.rliteContext, ptr %495, i32 0, i32 13
  %497 = load ptr, ptr %496, align 8, !tbaa !34
  %498 = icmp ne ptr %497, null
  br i1 %498, label %499, label %542

499:                                              ; preds = %492
  %500 = load ptr, ptr %3, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.rliteClient, ptr %500, i32 0, i32 4
  %502 = load ptr, ptr %501, align 8, !tbaa !18
  %503 = getelementptr inbounds %struct.rliteContext, ptr %502, i32 0, i32 7
  %504 = load ptr, ptr %503, align 8, !tbaa !35
  %505 = call i32 @rl_dirty_hash(ptr noundef %504, ptr noundef %5)
  store i32 %505, ptr %11, align 4, !tbaa !16
  %506 = load i32, ptr %11, align 4, !tbaa !16
  %507 = icmp ne i32 0, %506
  br i1 %507, label %508, label %509

508:                                              ; preds = %499
  br label %556

509:                                              ; preds = %499
  %510 = load ptr, ptr %5, align 8, !tbaa !5
  %511 = icmp ne ptr %510, null
  br i1 %511, label %512, label %541

512:                                              ; preds = %509
  %513 = load ptr, ptr %4, align 8, !tbaa !5
  %514 = icmp ne ptr %513, null
  br i1 %514, label %515, label %520

515:                                              ; preds = %512
  %516 = load ptr, ptr %5, align 8, !tbaa !5
  %517 = load ptr, ptr %4, align 8, !tbaa !5
  %518 = call i32 @memcmp(ptr noundef %516, ptr noundef %517, i64 noundef 20) #11
  %519 = icmp ne i32 %518, 0
  br i1 %519, label %520, label %541

520:                                              ; preds = %515, %512
  %521 = load ptr, ptr %3, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.rliteClient, ptr %521, i32 0, i32 4
  %523 = load ptr, ptr %522, align 8, !tbaa !18
  %524 = getelementptr inbounds %struct.rliteContext, ptr %523, i32 0, i32 13
  %525 = load ptr, ptr %524, align 8, !tbaa !34
  %526 = load ptr, ptr %3, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.rliteClient, ptr %526, i32 0, i32 4
  %528 = load ptr, ptr %527, align 8, !tbaa !18
  %529 = getelementptr inbounds %struct.rliteContext, ptr %528, i32 0, i32 7
  %530 = load ptr, ptr %529, align 8, !tbaa !35
  %531 = call i32 @rl_get_selected_db(ptr noundef %530)
  %532 = load ptr, ptr %3, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.rliteClient, ptr %532, i32 0, i32 0
  %534 = load i32, ptr %533, align 8, !tbaa !9
  %535 = load ptr, ptr %3, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.rliteClient, ptr %535, i32 0, i32 1
  %537 = load ptr, ptr %536, align 8, !tbaa !12
  %538 = load ptr, ptr %3, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.rliteClient, ptr %538, i32 0, i32 2
  %540 = load ptr, ptr %539, align 8, !tbaa !13
  call void %525(i32 noundef %531, i32 noundef %534, ptr noundef %537, ptr noundef %540)
  br label %541

541:                                              ; preds = %520, %515, %509
  br label %542

542:                                              ; preds = %541, %492
  %543 = load ptr, ptr %3, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.rliteClient, ptr %543, i32 0, i32 4
  %545 = load ptr, ptr %544, align 8, !tbaa !18
  %546 = getelementptr inbounds %struct.rliteContext, ptr %545, i32 0, i32 7
  %547 = load ptr, ptr %546, align 8, !tbaa !35
  %548 = call i32 @rl_commit(ptr noundef %547)
  store i32 %548, ptr %11, align 4, !tbaa !16
  %549 = load i32, ptr %11, align 4, !tbaa !16
  %550 = icmp ne i32 0, %549
  br i1 %550, label %551, label %552

551:                                              ; preds = %542
  br label %556

552:                                              ; preds = %542
  br label %553

553:                                              ; preds = %552, %422
  br label %554

554:                                              ; preds = %553, %93
  br label %555

555:                                              ; preds = %554, %69
  br label %556

556:                                              ; preds = %555, %551, %508, %473, %356, %278, %253, %199, %170, %109
  %557 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %557) #8
  %558 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %558) #8
  %559 = load i32, ptr %11, align 4, !tbaa !16
  store i32 %559, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %560

560:                                              ; preds = %556, %16
  %561 = load i32, ptr %2, align 4
  ret i32 %561
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @rliteLookupCommand(ptr noundef, i64 noundef) #4

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

; Function Attrs: nounwind uwtable
declare hidden void @flagTransactions(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @refresh_rlite_fp(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @execCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @discardCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @multiCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @watchCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @__rliteSetError(ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @addReply(ptr noundef, ptr noundef) #4

declare i32 @rl_dirty_hash(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #7

declare i32 @rl_get_selected_db(ptr noundef) #6

declare i32 @rl_commit(ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { "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 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind allocsize(1) }
attributes #11 = { nounwind willreturn memory(read) }

!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, !11, i64 0}
!10 = !{!"rliteClient", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !6, i64 32}
!19 = !{!20, !11, i64 16}
!20 = !{!"rliteCommand", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !21, i64 48, !21, i64 56}
!21 = !{!"long long", !7, i64 0}
!22 = !{!20, !6, i64 0}
!23 = !{!24, !25, i64 216}
!24 = !{!"rliteContext", !11, i64 0, !7, i64 4, !6, i64 136, !6, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !15, i64 184, !15, i64 192, !11, i64 200, !6, i64 208, !25, i64 216, !25, i64 218, !15, i64 224, !15, i64 232, !6, i64 240, !15, i64 248, !15, i64 256, !6, i64 264}
!25 = !{!"short", !7, i64 0}
!26 = !{!20, !6, i64 8}
!27 = !{!24, !15, i64 256}
!28 = !{!24, !15, i64 248}
!29 = !{!24, !6, i64 264}
!30 = !{!10, !11, i64 40}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !6, i64 24}
!34 = !{!24, !6, i64 208}
!35 = !{!24, !6, i64 168}


; 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.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @createStatusObject(ptr noundef) local_unnamed_addr #4

; 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

; Function Attrs: nounwind uwtable
define dso_local i32 @rliteAppendCommandClient(ptr noundef %0) local_unnamed_addr #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = load i32, ptr %0, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %211, label %6

6:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store ptr null, ptr %2, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store ptr null, ptr %3, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = load i64, ptr %11, align 8, !tbaa !14
  %13 = tail call ptr @rliteLookupCommand(ptr noundef %9, i64 noundef %12)
  %.not = icmp eq ptr %13, null
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  br i1 %.not, label %15, label %25

15:                                               ; preds = %6
  %16 = load ptr, ptr %10, align 8, !tbaa !13
  %17 = load i64, ptr %16, align 8, !tbaa !14
  %18 = add i64 %17, 1
  %19 = tail call noalias ptr @malloc(i64 noundef %18) #9
  %20 = load ptr, ptr %7, align 8, !tbaa !12
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 %21, i64 %17, i1 false)
  %22 = getelementptr inbounds i8, ptr %19, i64 %17
  store i8 0, ptr %22, align 1, !tbaa !16
  %23 = load ptr, ptr %14, align 8, !tbaa !17
  %24 = tail call i32 (ptr, ptr, ...) @addReplyErrorFormat(ptr noundef %23, ptr noundef nonnull @.str.5, ptr noundef nonnull %19)
  tail call void @free(ptr noundef %19) #8
  tail call void @flagTransactions(ptr noundef nonnull %0)
  br label %208

25:                                               ; preds = %6
  %26 = getelementptr inbounds i8, ptr %13, i64 16
  %27 = load i32, ptr %26, align 8, !tbaa !18
  %28 = icmp sgt i32 %27, 0
  %.pre = load i32, ptr %0, align 8, !tbaa !5
  %.not126 = icmp ne i32 %27, %.pre
  %or.cond159.not163 = select i1 %28, i1 %.not126, i1 false
  %29 = sub nsw i32 0, %27
  %30 = icmp slt i32 %.pre, %29
  %or.cond161 = select i1 %or.cond159.not163, i1 true, i1 %30
  %31 = load ptr, ptr %14, align 8, !tbaa !17
  br i1 %or.cond161, label %32, label %35

32:                                               ; preds = %25
  %33 = load ptr, ptr %13, align 8, !tbaa !21
  %34 = tail call i32 (ptr, ptr, ...) @addReplyErrorFormat(ptr noundef %31, ptr noundef nonnull @.str.6, ptr noundef %33)
  tail call void @flagTransactions(ptr noundef nonnull %0)
  br label %208

35:                                               ; preds = %25
  %36 = tail call i32 @refresh_rlite_fp(ptr noundef %31)
  %.not127 = icmp eq i32 %36, 0
  br i1 %.not127, label %37, label %208

37:                                               ; preds = %35
  %38 = load ptr, ptr %14, align 8, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %38, i64 216
  %40 = load i16, ptr %39, align 8, !tbaa !22
  %.not128 = icmp eq i16 %40, 0
  br i1 %.not128, label %165, label %41

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %13, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !25
  %.not129 = icmp eq ptr %43, @execCommand
  %.not130 = icmp eq ptr %43, @discardCommand
  %or.cond = or i1 %.not129, %.not130
  %.not131 = icmp eq ptr %43, @multiCommand
  %or.cond146 = or i1 %.not131, %or.cond
  %.not132 = icmp eq ptr %43, @watchCommand
  %or.cond147 = or i1 %.not132, %or.cond146
  br i1 %or.cond147, label %165, label %44

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %38, i64 256
  %46 = load i64, ptr %45, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %38, i64 248
  %48 = load i64, ptr %47, align 8, !tbaa !27
  %49 = icmp eq i64 %46, %48
  br i1 %49, label %50, label %._crit_edge150

._crit_edge150:                                   ; preds = %44
  %.phi.trans.insert = getelementptr inbounds i8, ptr %38, i64 264
  %.pre151 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !28
  br label %62

50:                                               ; preds = %44
  %51 = shl i64 %46, 1
  %52 = icmp eq i64 %51, 0
  %spec.store.select = select i1 %52, i64 4, i64 %51
  %53 = getelementptr inbounds i8, ptr %38, i64 264
  %54 = load ptr, ptr %53, align 8, !tbaa !28
  %55 = shl i64 %spec.store.select, 3
  %56 = tail call ptr @realloc(ptr noundef %54, i64 noundef %55) #10
  %.not141 = icmp eq ptr %56, null
  %57 = load ptr, ptr %14, align 8, !tbaa !17
  br i1 %.not141, label %58, label %59

58:                                               ; preds = %50
  tail call void @__rliteSetError(ptr noundef %57, i32 noundef 5, ptr noundef nonnull @.str.7)
  br label %208

59:                                               ; preds = %50
  %60 = getelementptr inbounds i8, ptr %57, i64 264
  store ptr %56, ptr %60, align 8, !tbaa !28
  %61 = getelementptr inbounds i8, ptr %57, i64 248
  store i64 %spec.store.select, ptr %61, align 8, !tbaa !27
  %.phi.trans.insert152 = getelementptr inbounds i8, ptr %57, i64 256
  %.pre153 = load i64, ptr %.phi.trans.insert152, align 8, !tbaa !26
  br label %62

62:                                               ; preds = %._crit_edge150, %59
  %63 = phi i64 [ %.pre153, %59 ], [ %46, %._crit_edge150 ]
  %64 = phi ptr [ %56, %59 ], [ %.pre151, %._crit_edge150 ]
  %65 = tail call noalias dereferenceable_or_null(48) ptr @malloc(i64 noundef 48) #9
  %66 = getelementptr inbounds ptr, ptr %64, i64 %63
  store ptr %65, ptr %66, align 8, !tbaa !11
  %.not142 = icmp eq ptr %65, null
  %67 = load ptr, ptr %14, align 8, !tbaa !17
  br i1 %.not142, label %68, label %69

68:                                               ; preds = %62
  tail call void @__rliteSetError(ptr noundef %67, i32 noundef 5, ptr noundef nonnull @.str.7)
  br label %208

69:                                               ; preds = %62
  %70 = getelementptr inbounds i8, ptr %67, i64 264
  %71 = load ptr, ptr %70, align 8, !tbaa !28
  %72 = getelementptr inbounds i8, ptr %67, i64 256
  %73 = load i64, ptr %72, align 8, !tbaa !26
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = getelementptr inbounds i8, ptr %75, i64 40
  store i32 0, ptr %76, align 8, !tbaa !29
  %77 = load i32, ptr %0, align 8, !tbaa !5
  store i32 %77, ptr %75, align 8, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = shl nsw i64 %78, 3
  %80 = tail call noalias ptr @malloc(i64 noundef %79) #9
  %81 = getelementptr inbounds i8, ptr %75, i64 16
  store ptr %80, ptr %81, align 8, !tbaa !13
  %.not143 = icmp eq ptr %80, null
  br i1 %.not143, label %82, label %83

82:                                               ; preds = %69
  tail call void @__rliteSetError(ptr noundef nonnull %67, i32 noundef 5, ptr noundef nonnull @.str.7)
  br label %208

83:                                               ; preds = %69
  %84 = tail call noalias ptr @malloc(i64 noundef %79) #9
  %85 = load ptr, ptr %74, align 8, !tbaa !11
  %86 = getelementptr inbounds i8, ptr %85, i64 8
  store ptr %84, ptr %86, align 8, !tbaa !12
  %.not144 = icmp eq ptr %84, null
  br i1 %.not144, label %88, label %.preheader

.preheader:                                       ; preds = %83
  %87 = icmp sgt i32 %77, 0
  br i1 %87, label %.lr.ph, label %._crit_edge

88:                                               ; preds = %83
  %89 = load ptr, ptr %74, align 8, !tbaa !11
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %91 = load ptr, ptr %90, align 8, !tbaa !13
  tail call void @free(ptr noundef %91) #8
  %92 = load ptr, ptr %14, align 8, !tbaa !17
  tail call void @__rliteSetError(ptr noundef %92, i32 noundef 5, ptr noundef nonnull @.str.7)
  br label %208

.lr.ph:                                           ; preds = %.preheader, %116
  %indvars.iv = phi i64 [ %indvars.iv.next, %116 ], [ 0, %.preheader ]
  %93 = load ptr, ptr %10, align 8, !tbaa !13
  %94 = getelementptr inbounds i64, ptr %93, i64 %indvars.iv
  %95 = load i64, ptr %94, align 8, !tbaa !14
  %96 = load ptr, ptr %14, align 8, !tbaa !17
  %97 = getelementptr inbounds i8, ptr %96, i64 264
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = getelementptr inbounds i8, ptr %96, i64 256
  %100 = load i64, ptr %99, align 8, !tbaa !26
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !11
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = getelementptr inbounds i64, ptr %104, i64 %indvars.iv
  store i64 %95, ptr %105, align 8, !tbaa !14
  %106 = add i64 %95, 1
  %107 = tail call noalias ptr @malloc(i64 noundef %106) #9
  %108 = load i64, ptr %99, align 8, !tbaa !26
  %109 = getelementptr inbounds ptr, ptr %98, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  %112 = load ptr, ptr %111, align 8, !tbaa !12
  %113 = getelementptr inbounds ptr, ptr %112, i64 %indvars.iv
  store ptr %107, ptr %113, align 8, !tbaa !11
  %.not145 = icmp eq ptr %107, null
  %114 = load ptr, ptr %14, align 8, !tbaa !17
  br i1 %.not145, label %115, label %116

115:                                              ; preds = %.lr.ph
  tail call void @__rliteSetError(ptr noundef %114, i32 noundef 5, ptr noundef nonnull @.str.7)
  br label %208

116:                                              ; preds = %.lr.ph
  %117 = getelementptr inbounds i8, ptr %114, i64 264
  %118 = load ptr, ptr %117, align 8, !tbaa !28
  %119 = getelementptr inbounds i8, ptr %114, i64 256
  %120 = load i64, ptr %119, align 8, !tbaa !26
  %121 = getelementptr inbounds ptr, ptr %118, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds i8, ptr %122, i64 8
  %124 = load ptr, ptr %123, align 8, !tbaa !12
  %125 = getelementptr inbounds ptr, ptr %124, i64 %indvars.iv
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = load ptr, ptr %7, align 8, !tbaa !12
  %128 = getelementptr inbounds ptr, ptr %127, i64 %indvars.iv
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = load ptr, ptr %10, align 8, !tbaa !13
  %131 = getelementptr inbounds i64, ptr %130, i64 %indvars.iv
  %132 = load i64, ptr %131, align 8, !tbaa !14
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %126, ptr align 1 %129, i64 %132, i1 false)
  %133 = load ptr, ptr %14, align 8, !tbaa !17
  %134 = getelementptr inbounds i8, ptr %133, i64 264
  %135 = load ptr, ptr %134, align 8, !tbaa !28
  %136 = getelementptr inbounds i8, ptr %133, i64 256
  %137 = load i64, ptr %136, align 8, !tbaa !26
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = getelementptr inbounds i8, ptr %139, i64 8
  %141 = load ptr, ptr %140, align 8, !tbaa !12
  %142 = getelementptr inbounds ptr, ptr %141, i64 %indvars.iv
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = load ptr, ptr %10, align 8, !tbaa !13
  %145 = getelementptr inbounds i64, ptr %144, i64 %indvars.iv
  %146 = load i64, ptr %145, align 8, !tbaa !14
  %147 = getelementptr inbounds i8, ptr %143, i64 %146
  store i8 0, ptr %147, align 1, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %148 = load i32, ptr %0, align 8, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = icmp slt i64 %indvars.iv.next, %149
  br i1 %150, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !30

._crit_edge.loopexit:                             ; preds = %116
  %.pre154 = load ptr, ptr %14, align 8, !tbaa !17
  %.phi.trans.insert155 = getelementptr inbounds i8, ptr %.pre154, i64 264
  %.pre156 = load ptr, ptr %.phi.trans.insert155, align 8, !tbaa !28
  %.phi.trans.insert157 = getelementptr inbounds i8, ptr %.pre154, i64 256
  %.pre158 = load i64, ptr %.phi.trans.insert157, align 8, !tbaa !26
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %151 = phi i64 [ %.pre158, %._crit_edge.loopexit ], [ %73, %.preheader ]
  %152 = phi ptr [ %.pre156, %._crit_edge.loopexit ], [ %71, %.preheader ]
  %153 = phi ptr [ %.pre154, %._crit_edge.loopexit ], [ %67, %.preheader ]
  %154 = getelementptr inbounds ptr, ptr %152, i64 %151
  %155 = load ptr, ptr %154, align 8, !tbaa !11
  %156 = getelementptr inbounds i8, ptr %155, i64 32
  store ptr %153, ptr %156, align 8, !tbaa !17
  %157 = load ptr, ptr %14, align 8, !tbaa !17
  %158 = getelementptr inbounds i8, ptr %157, i64 256
  %159 = load i64, ptr %158, align 8, !tbaa !26
  %160 = add i64 %159, 1
  store i64 %160, ptr %158, align 8, !tbaa !26
  %161 = tail call ptr @createStatusObject(ptr noundef nonnull @.str.8)
  %162 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %161, ptr %162, align 8, !tbaa !32
  %163 = load ptr, ptr %14, align 8, !tbaa !17
  %164 = tail call i32 @addReply(ptr noundef %163, ptr noundef %161)
  br label %208

165:                                              ; preds = %41, %37
  %166 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr null, ptr %166, align 8, !tbaa !32
  %167 = getelementptr inbounds i8, ptr %38, i64 208
  %168 = load ptr, ptr %167, align 8, !tbaa !33
  %.not133 = icmp eq ptr %168, null
  br i1 %.not133, label %173, label %169

169:                                              ; preds = %165
  %170 = getelementptr inbounds i8, ptr %38, i64 168
  %171 = load ptr, ptr %170, align 8, !tbaa !34
  %172 = call i32 @rl_dirty_hash(ptr noundef %171, ptr noundef nonnull %2) #8
  %.not134 = icmp eq i32 %172, 0
  br i1 %.not134, label %173, label %208

173:                                              ; preds = %169, %165
  %174 = getelementptr inbounds i8, ptr %13, i64 8
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  call void %175(ptr noundef nonnull %0) #8
  %176 = load ptr, ptr %166, align 8, !tbaa !32
  %.not135 = icmp eq ptr %176, null
  br i1 %.not135, label %180, label %177

177:                                              ; preds = %173
  %178 = load ptr, ptr %14, align 8, !tbaa !17
  %179 = call i32 @addReply(ptr noundef %178, ptr noundef nonnull %176)
  br label %180

180:                                              ; preds = %177, %173
  %181 = load ptr, ptr %14, align 8, !tbaa !17
  %182 = getelementptr inbounds i8, ptr %181, i64 208
  %183 = load ptr, ptr %182, align 8, !tbaa !33
  %.not136 = icmp eq ptr %183, null
  br i1 %.not136, label %203, label %184

184:                                              ; preds = %180
  %185 = getelementptr inbounds i8, ptr %181, i64 168
  %186 = load ptr, ptr %185, align 8, !tbaa !34
  %187 = call i32 @rl_dirty_hash(ptr noundef %186, ptr noundef nonnull %3) #8
  %.not137 = icmp eq i32 %187, 0
  br i1 %.not137, label %188, label %208

188:                                              ; preds = %184
  %189 = load ptr, ptr %3, align 8, !tbaa !11
  %.not138 = icmp eq ptr %189, null
  br i1 %.not138, label %203, label %190

190:                                              ; preds = %188
  %191 = load ptr, ptr %2, align 8, !tbaa !11
  %.not139 = icmp eq ptr %191, null
  br i1 %.not139, label %193, label %192

192:                                              ; preds = %190
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(20) %189, ptr noundef nonnull dereferenceable(20) %191, i64 20)
  %.not140 = icmp eq i32 %bcmp, 0
  br i1 %.not140, label %203, label %193

193:                                              ; preds = %192, %190
  %194 = load ptr, ptr %14, align 8, !tbaa !17
  %195 = getelementptr inbounds i8, ptr %194, i64 208
  %196 = load ptr, ptr %195, align 8, !tbaa !33
  %197 = getelementptr inbounds i8, ptr %194, i64 168
  %198 = load ptr, ptr %197, align 8, !tbaa !34
  %199 = call i32 @rl_get_selected_db(ptr noundef %198) #8
  %200 = load i32, ptr %0, align 8, !tbaa !5
  %201 = load ptr, ptr %7, align 8, !tbaa !12
  %202 = load ptr, ptr %10, align 8, !tbaa !13
  call void %196(i32 noundef %199, i32 noundef %200, ptr noundef %201, ptr noundef %202) #8
  br label %203

203:                                              ; preds = %188, %192, %193, %180
  %204 = load ptr, ptr %14, align 8, !tbaa !17
  %205 = getelementptr inbounds i8, ptr %204, i64 168
  %206 = load ptr, ptr %205, align 8, !tbaa !34
  %207 = call i32 @rl_commit(ptr noundef %206) #8
  br label %208

208:                                              ; preds = %203, %15, %._crit_edge, %32, %184, %169, %35, %115, %88, %82, %68, %58
  %.1 = phi i32 [ %34, %32 ], [ %36, %35 ], [ 4, %115 ], [ %164, %._crit_edge ], [ 4, %88 ], [ 4, %82 ], [ 4, %68 ], [ 4, %58 ], [ %172, %169 ], [ %187, %184 ], [ %207, %203 ], [ %24, %15 ]
  %209 = load ptr, ptr %2, align 8, !tbaa !11
  call void @free(ptr noundef %209) #8
  %210 = load ptr, ptr %3, align 8, !tbaa !11
  call void @free(ptr noundef %210) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %211

211:                                              ; preds = %1, %208
  %.0112 = phi i32 [ %.1, %208 ], [ -1, %1 ]
  ret i32 %.0112
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @rliteLookupCommand(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @addReplyErrorFormat(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @flagTransactions(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @refresh_rlite_fp(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @execCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @discardCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @multiCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @watchCommand(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @__rliteSetError(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @rl_dirty_hash(ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @rl_get_selected_db(ptr noundef) local_unnamed_addr #6

declare i32 @rl_commit(ptr noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { "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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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, !7, i64 0}
!6 = !{!"rliteClient", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !10, i64 32}
!18 = !{!19, !7, i64 16}
!19 = !{!"rliteCommand", !10, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !20, i64 48, !20, i64 56}
!20 = !{!"long long", !8, i64 0}
!21 = !{!19, !10, i64 0}
!22 = !{!23, !24, i64 216}
!23 = !{!"rliteContext", !7, i64 0, !8, i64 4, !10, i64 136, !10, i64 144, !7, i64 152, !7, i64 156, !7, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !15, i64 184, !15, i64 192, !7, i64 200, !10, i64 208, !24, i64 216, !24, i64 218, !15, i64 224, !15, i64 232, !10, i64 240, !15, i64 248, !15, i64 256, !10, i64 264}
!24 = !{!"short", !8, i64 0}
!25 = !{!19, !10, i64 8}
!26 = !{!23, !15, i64 256}
!27 = !{!23, !15, i64 248}
!28 = !{!23, !10, i64 264}
!29 = !{!6, !7, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !10, i64 24}
!33 = !{!23, !10, i64 208}
!34 = !{!23, !10, i64 168}


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