; LLVM IR from dynexcoin/Dynex :: external/miniupnpc (upnpcommands)

; 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.NameValueParserData = type { ptr, [64 x i8], ptr, i32, i32, ptr, i32 }
%struct.UPNParg = type { ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [28 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

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

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

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

declare ptr @GetValueFromNameValueList(ptr noundef, ptr noundef) #1

declare void @ClearNameValueList(ptr noundef) #1

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @UPNP_GetSpecificPortMappingEntry(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4 {
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %struct.NameValueParserData, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 104, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 -1, ptr %27, align 4, !tbaa !9
  %29 = load ptr, ptr %18, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %40

31:                                               ; preds = %10
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %40

34:                                               ; preds = %31
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %40

37:                                               ; preds = %34
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %41, label %40

40:                                               ; preds = %37, %34, %31, %10
  store i32 -2, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %153

41:                                               ; preds = %37
  %42 = call noalias ptr @calloc(i64 noundef 4, i64 noundef 16) #6
  store ptr %42, ptr %23, align 8, !tbaa !5
  %43 = load ptr, ptr %23, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  store i32 -5, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %153

46:                                               ; preds = %41
  %47 = load ptr, ptr %23, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.UPNParg, ptr %47, i64 0
  %49 = getelementptr inbounds %struct.UPNParg, ptr %48, i32 0, i32 0
  store ptr @.str.22, ptr %49, align 8, !tbaa !11
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = load ptr, ptr %23, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.UPNParg, ptr %51, i64 0
  %53 = getelementptr inbounds %struct.UPNParg, ptr %52, i32 0, i32 1
  store ptr %50, ptr %53, align 8, !tbaa !13
  %54 = load ptr, ptr %23, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.UPNParg, ptr %54, i64 1
  %56 = getelementptr inbounds %struct.UPNParg, ptr %55, i32 0, i32 0
  store ptr @.str.23, ptr %56, align 8, !tbaa !11
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = load ptr, ptr %23, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.UPNParg, ptr %58, i64 1
  %60 = getelementptr inbounds %struct.UPNParg, ptr %59, i32 0, i32 1
  store ptr %57, ptr %60, align 8, !tbaa !13
  %61 = load ptr, ptr %23, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.UPNParg, ptr %61, i64 2
  %63 = getelementptr inbounds %struct.UPNParg, ptr %62, i32 0, i32 0
  store ptr @.str.24, ptr %63, align 8, !tbaa !11
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = load ptr, ptr %23, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.UPNParg, ptr %65, i64 2
  %67 = getelementptr inbounds %struct.UPNParg, ptr %66, i32 0, i32 1
  store ptr %64, ptr %67, align 8, !tbaa !13
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load ptr, ptr %23, align 8, !tbaa !5
  %71 = call ptr @simpleUPnPcommand(i32 noundef -1, ptr noundef %68, ptr noundef %69, ptr noundef @.str.45, ptr noundef %70, ptr noundef %25)
  store ptr %71, ptr %24, align 8, !tbaa !5
  %72 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %72) #5
  %73 = load ptr, ptr %24, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %76, label %75

75:                                               ; preds = %46
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %153

76:                                               ; preds = %46
  %77 = load ptr, ptr %24, align 8, !tbaa !5
  %78 = load i32, ptr %25, align 4, !tbaa !9
  call void @ParseNameValue(ptr noundef %77, i32 noundef %78, ptr noundef %22)
  %79 = load ptr, ptr %24, align 8, !tbaa !5
  call void @free(ptr noundef %79) #5
  %80 = call ptr @GetValueFromNameValueList(ptr noundef %22, ptr noundef @.str.26)
  store ptr %80, ptr %26, align 8, !tbaa !5
  %81 = load ptr, ptr %26, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %89

83:                                               ; preds = %76
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = load ptr, ptr %26, align 8, !tbaa !5
  %86 = call ptr @strncpy(ptr noundef %84, ptr noundef %85, i64 noundef 16) #5
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 15
  store i8 0, ptr %88, align 1, !tbaa !14
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %92

89:                                               ; preds = %76
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 0
  store i8 0, ptr %91, align 1, !tbaa !14
  br label %92

92:                                               ; preds = %89, %83
  %93 = call ptr @GetValueFromNameValueList(ptr noundef %22, ptr noundef @.str.25)
  store ptr %93, ptr %26, align 8, !tbaa !5
  %94 = load ptr, ptr %26, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %102

96:                                               ; preds = %92
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = load ptr, ptr %26, align 8, !tbaa !5
  %99 = call ptr @strncpy(ptr noundef %97, ptr noundef %98, i64 noundef 6) #5
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 5
  store i8 0, ptr %101, align 1, !tbaa !14
  br label %105

102:                                              ; preds = %92
  %103 = load ptr, ptr %18, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 0
  store i8 0, ptr %104, align 1, !tbaa !14
  br label %105

105:                                              ; preds = %102, %96
  %106 = call ptr @GetValueFromNameValueList(ptr noundef %22, ptr noundef @.str.27)
  store ptr %106, ptr %26, align 8, !tbaa !5
  %107 = load ptr, ptr %26, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %118

109:                                              ; preds = %105
  %110 = load ptr, ptr %20, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %118

112:                                              ; preds = %109
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = load ptr, ptr %26, align 8, !tbaa !5
  %115 = call ptr @strncpy(ptr noundef %113, ptr noundef %114, i64 noundef 4) #5
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 3
  store i8 0, ptr %117, align 1, !tbaa !14
  br label %118

118:                                              ; preds = %112, %109, %105
  %119 = call ptr @GetValueFromNameValueList(ptr noundef %22, ptr noundef @.str.29)
  store ptr %119, ptr %26, align 8, !tbaa !5
  %120 = load ptr, ptr %26, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %131

122:                                              ; preds = %118
  %123 = load ptr, ptr %19, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %131

125:                                              ; preds = %122
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = load ptr, ptr %26, align 8, !tbaa !5
  %128 = call ptr @strncpy(ptr noundef %126, ptr noundef %127, i64 noundef 80) #5
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 79
  store i8 0, ptr %130, align 1, !tbaa !14
  br label %131

131:                                              ; preds = %125, %122, %118
  %132 = call ptr @GetValueFromNameValueList(ptr noundef %22, ptr noundef @.str.31)
  store ptr %132, ptr %26, align 8, !tbaa !5
  %133 = load ptr, ptr %26, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %144

135:                                              ; preds = %131
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %144

138:                                              ; preds = %135
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = load ptr, ptr %26, align 8, !tbaa !5
  %141 = call ptr @strncpy(ptr noundef %139, ptr noundef %140, i64 noundef 16) #5
  %142 = load ptr, ptr %21, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 15
  store i8 0, ptr %143, align 1, !tbaa !14
  br label %144

144:                                              ; preds = %138, %135, %131
  %145 = call ptr @GetValueFromNameValueList(ptr noundef %22, ptr noundef @.str.13)
  store ptr %145, ptr %26, align 8, !tbaa !5
  %146 = load ptr, ptr %26, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %151

148:                                              ; preds = %144
  store i32 -1, ptr %27, align 4, !tbaa !9
  %149 = load ptr, ptr %26, align 8, !tbaa !5
  %150 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %149, ptr noundef @.str.14, ptr noundef %27) #5
  br label %151

151:                                              ; preds = %148, %144
  call void @ClearNameValueList(ptr noundef %22)
  %152 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %152, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %153

153:                                              ; preds = %151, %75, %45, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %22) #5
  %154 = load i32, ptr %11, align 4
  ret i32 %154
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind allocsize(0,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 #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 }
attributes #6 = { nounwind allocsize(0,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, !6, i64 0}
!12 = !{!"UPNParg", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.NameValueParserData = type { ptr, [64 x i8], ptr, i32, i32, ptr, i32 }

@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [28 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

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

declare void @ParseNameValue(ptr noundef, i32 noundef, ptr 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

declare ptr @GetValueFromNameValueList(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @ClearNameValueList(ptr noundef) local_unnamed_addr #1

; 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 nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @UPNP_GetSpecificPortMappingEntry(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #6 {
  %11 = alloca %struct.NameValueParserData, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store i32 -1, ptr %13, align 4, !tbaa !5
  %14 = insertelement <4 x ptr> poison, ptr %5, i64 0
  %15 = insertelement <4 x ptr> %14, ptr %6, i64 1
  %16 = insertelement <4 x ptr> %15, ptr %2, i64 2
  %17 = insertelement <4 x ptr> %16, ptr %3, i64 3
  %18 = icmp eq <4 x ptr> %17, zeroinitializer
  %19 = bitcast <4 x i1> %18 to i4
  %20 = icmp eq i4 %19, 0
  br i1 %20, label %21, label %70

21:                                               ; preds = %10
  %22 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 4, i64 noundef 16) #8
  %23 = icmp eq ptr %22, null
  br i1 %23, label %70, label %24

24:                                               ; preds = %21
  store ptr @.str.22, ptr %22, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %4, ptr %25, align 8, !tbaa !12
  %26 = getelementptr inbounds i8, ptr %22, i64 16
  store ptr @.str.23, ptr %26, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %22, i64 24
  store ptr %2, ptr %27, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %22, i64 32
  store ptr @.str.24, ptr %28, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %22, i64 40
  store ptr %3, ptr %29, align 8, !tbaa !12
  %30 = call ptr @simpleUPnPcommand(i32 noundef -1, ptr noundef %0, ptr noundef %1, ptr noundef nonnull @.str.45, ptr noundef nonnull %22, ptr noundef nonnull %12) #7
  call void @free(ptr noundef nonnull %22) #7
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %70, label %31

31:                                               ; preds = %24
  %32 = load i32, ptr %12, align 4, !tbaa !5
  call void @ParseNameValue(ptr noundef nonnull %30, i32 noundef %32, ptr noundef nonnull %11) #7
  call void @free(ptr noundef nonnull %30) #7
  %33 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.26) #7
  %.not74 = icmp eq ptr %33, null
  br i1 %.not74, label %37, label %34

34:                                               ; preds = %31
  %35 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %33, i64 noundef 16) #7
  %36 = getelementptr inbounds i8, ptr %5, i64 15
  store i8 0, ptr %36, align 1, !tbaa !13
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %38

37:                                               ; preds = %31
  store i8 0, ptr %5, align 1, !tbaa !13
  br label %38

38:                                               ; preds = %37, %34
  %39 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.25) #7
  %.not75 = icmp eq ptr %39, null
  br i1 %.not75, label %43, label %40

40:                                               ; preds = %38
  %41 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %39, i64 noundef 6) #7
  %42 = getelementptr inbounds i8, ptr %6, i64 5
  br label %43

43:                                               ; preds = %38, %40
  %.sink = phi ptr [ %42, %40 ], [ %6, %38 ]
  store i8 0, ptr %.sink, align 1, !tbaa !13
  %44 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.27) #7
  %45 = icmp ne ptr %44, null
  %46 = icmp ne ptr %8, null
  %or.cond7 = and i1 %46, %45
  br i1 %or.cond7, label %47, label %50

47:                                               ; preds = %43
  %48 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) %44, i64 noundef 4) #7
  %49 = getelementptr inbounds i8, ptr %8, i64 3
  store i8 0, ptr %49, align 1, !tbaa !13
  br label %50

50:                                               ; preds = %47, %43
  %51 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.29) #7
  %52 = icmp ne ptr %51, null
  %53 = icmp ne ptr %7, null
  %or.cond9 = and i1 %53, %52
  br i1 %or.cond9, label %54, label %57

54:                                               ; preds = %50
  %55 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %51, i64 noundef 80) #7
  %56 = getelementptr inbounds i8, ptr %7, i64 79
  store i8 0, ptr %56, align 1, !tbaa !13
  br label %57

57:                                               ; preds = %54, %50
  %58 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.31) #7
  %59 = icmp ne ptr %58, null
  %60 = icmp ne ptr %9, null
  %or.cond11 = and i1 %60, %59
  br i1 %or.cond11, label %61, label %64

61:                                               ; preds = %57
  %62 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) %58, i64 noundef 16) #7
  %63 = getelementptr inbounds i8, ptr %9, i64 15
  store i8 0, ptr %63, align 1, !tbaa !13
  br label %64

64:                                               ; preds = %61, %57
  %65 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.13) #7
  %.not76 = icmp eq ptr %65, null
  br i1 %.not76, label %68, label %66

66:                                               ; preds = %64
  store i32 -1, ptr %13, align 4, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %65, ptr noundef nonnull @.str.14, ptr noundef nonnull %13) #7
  br label %68

68:                                               ; preds = %66, %64
  call void @ClearNameValueList(ptr noundef nonnull %11) #7
  %69 = load i32, ptr %13, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %24, %21, %10, %68
  %.0 = phi i32 [ %69, %68 ], [ -2, %10 ], [ -5, %21 ], [ -3, %24 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %11) #7
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #5 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"UPNParg", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass