; LLVM IR from Montimage/mmt-security :: test (expression)

; 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.variable_t = type { i32, i32, ptr, ptr, i32, i32, i16 }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %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 i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  store i8 0, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 10, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %0
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call i64 @_parse_constant(ptr noundef %3, ptr noundef %13, i64 noundef 0)
  %15 = icmp eq i64 %14, 0
  %16 = xor i1 %15, true
  %17 = xor i1 %16, true
  %18 = xor i1 %17, true
  %19 = zext i1 %18 to i32
  %20 = sext i32 %19 to i64
  %21 = call i64 @llvm.expect.i64(i64 %20, i64 0)
  %22 = icmp ne i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %12
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str)
  call void @exit(i32 noundef 0) #8
  unreachable

24:                                               ; preds = %12
  %25 = call ptr @mmt_mem_alloc(i64 noundef 10)
  store ptr %25, ptr %4, align 8, !tbaa !5
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 1 %26, i8 0, i64 10, i1 false)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 0
  store i8 32, ptr %28, align 1, !tbaa !13
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 1
  store i8 121, ptr %30, align 1, !tbaa !13
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 2
  store i8 48, ptr %32, align 1, !tbaa !13
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 3
  store i8 32, ptr %34, align 1, !tbaa !13
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i64, ptr %9, align 8, !tbaa !11
  %37 = call i64 @_parse_a_name(ptr noundef %7, ptr noundef %35, i64 noundef %36)
  store i64 %37, ptr %10, align 8, !tbaa !11
  br label %38

38:                                               ; preds = %24
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 0
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %42, 121
  br i1 %43, label %44, label %47

44:                                               ; preds = %38
  %45 = load i64, ptr %10, align 8, !tbaa !11
  %46 = icmp eq i64 %45, 3
  br label %47

47:                                               ; preds = %44, %38
  %48 = phi i1 [ false, %38 ], [ %46, %44 ]
  %49 = xor i1 %48, true
  %50 = xor i1 %49, true
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i32
  %53 = sext i32 %52 to i64
  %54 = call i64 @llvm.expect.i64(i64 %53, i64 0)
  %55 = icmp ne i64 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %47
  %57 = load i64, ptr %10, align 8, !tbaa !11
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.1, i64 noundef %57, ptr noundef %58)
  call void @exit(i32 noundef 0) #8
  unreachable

59:                                               ; preds = %47
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = call i64 @mmt_mem_free(ptr noundef %60)
  store ptr null, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 0
  store i8 34, ptr %63, align 1, !tbaa !13
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  store i8 120, ptr %65, align 1, !tbaa !13
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 2
  store i8 120, ptr %67, align 1, !tbaa !13
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 3
  store i8 34, ptr %69, align 1, !tbaa !13
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i64, ptr %9, align 8, !tbaa !11
  %72 = call i64 @_parse_a_string(ptr noundef %7, ptr noundef %70, i64 noundef %71)
  store i64 %72, ptr %10, align 8, !tbaa !11
  br label %73

73:                                               ; preds = %59
  %74 = load i64, ptr %10, align 8, !tbaa !11
  %75 = icmp eq i64 %74, 4
  %76 = xor i1 %75, true
  %77 = xor i1 %76, true
  %78 = xor i1 %77, true
  %79 = zext i1 %78 to i32
  %80 = sext i32 %79 to i64
  %81 = call i64 @llvm.expect.i64(i64 %80, i64 0)
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %73
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.2)
  call void @exit(i32 noundef 0) #8
  unreachable

84:                                               ; preds = %73
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call i64 @mmt_mem_free(ptr noundef %85)
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 0
  store i8 120, ptr %88, align 1, !tbaa !13
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 1
  store i8 46, ptr %90, align 1, !tbaa !13
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 2
  store i8 121, ptr %92, align 1, !tbaa !13
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 3
  store i8 32, ptr %94, align 1, !tbaa !13
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i64, ptr %9, align 8, !tbaa !11
  %97 = call i64 @_parse_variable(ptr noundef %11, ptr noundef %95, i64 noundef %96)
  store i64 %97, ptr %10, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %84
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = load i64, ptr %10, align 8, !tbaa !11
  %103 = icmp eq i64 %102, 3
  br label %104

104:                                              ; preds = %101, %98
  %105 = phi i1 [ false, %98 ], [ %103, %101 ]
  %106 = xor i1 %105, true
  %107 = xor i1 %106, true
  %108 = xor i1 %107, true
  %109 = zext i1 %108 to i32
  %110 = sext i32 %109 to i64
  %111 = call i64 @llvm.expect.i64(i64 %110, i64 0)
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %104
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.3)
  call void @exit(i32 noundef 0) #8
  unreachable

114:                                              ; preds = %104
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.variable_t, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !14
  %118 = call i64 @mmt_mem_free(ptr noundef %117)
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.variable_t, ptr %119, i32 0, i32 3
  %121 = load ptr, ptr %120, align 8, !tbaa !18
  %122 = call i64 @mmt_mem_free(ptr noundef %121)
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = call i64 @mmt_mem_free(ptr noundef %123)
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 0
  store i8 120, ptr %126, align 1, !tbaa !13
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 1
  store i8 46, ptr %128, align 1, !tbaa !13
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 2
  store i8 121, ptr %130, align 1, !tbaa !13
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 3
  store i8 46, ptr %132, align 1, !tbaa !13
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 4
  store i8 49, ptr %134, align 1, !tbaa !13
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 5
  store i8 56, ptr %136, align 1, !tbaa !13
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = load i64, ptr %9, align 8, !tbaa !11
  %139 = call i64 @_parse_variable(ptr noundef %11, ptr noundef %137, i64 noundef %138)
  store i64 %139, ptr %10, align 8, !tbaa !11
  br label %140

140:                                              ; preds = %114
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %146

143:                                              ; preds = %140
  %144 = load i64, ptr %10, align 8, !tbaa !11
  %145 = icmp eq i64 %144, 6
  br label %146

146:                                              ; preds = %143, %140
  %147 = phi i1 [ false, %140 ], [ %145, %143 ]
  %148 = xor i1 %147, true
  %149 = xor i1 %148, true
  %150 = xor i1 %149, true
  %151 = zext i1 %150 to i32
  %152 = sext i32 %151 to i64
  %153 = call i64 @llvm.expect.i64(i64 %152, i64 0)
  %154 = icmp ne i64 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %146
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.4)
  call void @exit(i32 noundef 0) #8
  unreachable

156:                                              ; preds = %146
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = call i64 @expr_stringify_variable(ptr noundef %6, ptr noundef %158)
  %160 = icmp ugt i64 %159, 0
  %161 = xor i1 %160, true
  %162 = xor i1 %161, true
  %163 = xor i1 %162, true
  %164 = zext i1 %163 to i32
  %165 = sext i32 %164 to i64
  %166 = call i64 @llvm.expect.i64(i64 %165, i64 0)
  %167 = icmp ne i64 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %157
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.5)
  call void @exit(i32 noundef 0) #8
  unreachable

169:                                              ; preds = %157
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %170, i64 3
  store i8 122, ptr %171, align 1, !tbaa !13
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 4
  store i8 46, ptr %173, align 1, !tbaa !13
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %174, i64 5
  store i8 53, ptr %175, align 1, !tbaa !13
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %176, i64 6
  store i8 56, ptr %177, align 1, !tbaa !13
  br label %178

178:                                              ; preds = %169
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = load i64, ptr %9, align 8, !tbaa !11
  %181 = call i64 @_parse_variable(ptr noundef %11, ptr noundef %179, i64 noundef %180)
  %182 = icmp eq i64 %181, 1
  %183 = xor i1 %182, true
  %184 = xor i1 %183, true
  %185 = xor i1 %184, true
  %186 = zext i1 %185 to i32
  %187 = sext i32 %186 to i64
  %188 = call i64 @llvm.expect.i64(i64 %187, i64 0)
  %189 = icmp ne i64 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %178
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.3)
  call void @exit(i32 noundef 0) #8
  unreachable

191:                                              ; preds = %178
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = call i64 @expr_stringify_variable(ptr noundef %6, ptr noundef %193)
  %195 = icmp ugt i64 %194, 0
  %196 = xor i1 %195, true
  %197 = xor i1 %196, true
  %198 = xor i1 %197, true
  %199 = zext i1 %198 to i32
  %200 = sext i32 %199 to i64
  %201 = call i64 @llvm.expect.i64(i64 %200, i64 0)
  %202 = icmp ne i64 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %192
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.5)
  call void @exit(i32 noundef 0) #8
  unreachable

204:                                              ; preds = %192
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds i8, ptr %205, i64 3
  store i8 120, ptr %206, align 1, !tbaa !13
  br label %207

207:                                              ; preds = %204
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = load i64, ptr %9, align 8, !tbaa !11
  %210 = call i64 @_parse_constant(ptr noundef %3, ptr noundef %208, i64 noundef %209)
  %211 = icmp eq i64 %210, 0
  %212 = xor i1 %211, true
  %213 = xor i1 %212, true
  %214 = xor i1 %213, true
  %215 = zext i1 %214 to i32
  %216 = sext i32 %215 to i64
  %217 = call i64 @llvm.expect.i64(i64 %216, i64 0)
  %218 = icmp ne i64 %217, 0
  br i1 %218, label %219, label %220

219:                                              ; preds = %207
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef @.str.6)
  call void @exit(i32 noundef 0) #8
  unreachable

220:                                              ; preds = %207
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  ret i32 0
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

declare void @mmt_sec_log(i32 noundef, ptr noundef, ...) #2

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

declare ptr @mmt_mem_alloc(i64 noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @mmt_mem_free(ptr noundef) #6

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"", !16, i64 0, !16, i64 4, !6, i64 8, !6, i64 16, !16, i64 24, !16, i64 28, !17, i64 32}
!16 = !{!"int", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!15, !6, i64 16}


; 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 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  %5 = call i64 @_parse_constant(ptr noundef nonnull %1, ptr noundef null, i64 noundef 0) #7
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %7, label %6, !prof !9

6:                                                ; preds = %0
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str) #7
  call void @exit(i32 noundef 0) #8
  unreachable

7:                                                ; preds = %0
  %8 = call ptr @mmt_mem_alloc(i64 noundef 10) #7
  %9 = getelementptr inbounds i8, ptr %8, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %9, i8 0, i64 6, i1 false)
  %10 = getelementptr inbounds i8, ptr %8, i64 3
  store <4 x i8> <i8 32, i8 121, i8 48, i8 32>, ptr %8, align 1, !tbaa !10
  %11 = call i64 @_parse_a_name(ptr noundef nonnull %3, ptr noundef nonnull %8, i64 noundef 10) #7
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = load i8, ptr %12, align 1, !tbaa !10
  %14 = icmp ne i8 %13, 121
  %15 = icmp ne i64 %11, 3
  %.not43 = select i1 %14, i1 true, i1 %15
  br i1 %.not43, label %16, label %17, !prof !11

16:                                               ; preds = %7
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.1, i64 noundef %11, ptr noundef nonnull %12) #7
  call void @exit(i32 noundef 0) #8
  unreachable

17:                                               ; preds = %7
  %18 = call i64 @mmt_mem_free(ptr noundef nonnull %12)
  store ptr null, ptr %3, align 8, !tbaa !5
  store <4 x i8> <i8 34, i8 120, i8 120, i8 34>, ptr %8, align 1, !tbaa !10
  %19 = call i64 @_parse_a_string(ptr noundef nonnull %3, ptr noundef nonnull %8, i64 noundef 10) #7
  %.not44 = icmp eq i64 %19, 4
  br i1 %.not44, label %21, label %20, !prof !9

20:                                               ; preds = %17
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.2) #7
  call void @exit(i32 noundef 0) #8
  unreachable

21:                                               ; preds = %17
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call i64 @mmt_mem_free(ptr noundef %22)
  store <4 x i8> <i8 120, i8 46, i8 121, i8 32>, ptr %8, align 1, !tbaa !10
  %24 = call i64 @_parse_variable(ptr noundef nonnull %4, ptr noundef nonnull %8, i64 noundef 10) #7
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  %27 = icmp ne i64 %24, 3
  %.not47 = select i1 %26, i1 true, i1 %27
  br i1 %.not47, label %28, label %29, !prof !11

28:                                               ; preds = %21
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.3) #7
  call void @exit(i32 noundef 0) #8
  unreachable

29:                                               ; preds = %21
  %30 = getelementptr inbounds i8, ptr %25, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = call i64 @mmt_mem_free(ptr noundef %31)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !16
  %36 = call i64 @mmt_mem_free(ptr noundef %35)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call i64 @mmt_mem_free(ptr noundef %37)
  store <4 x i8> <i8 120, i8 46, i8 121, i8 46>, ptr %8, align 1, !tbaa !10
  %39 = getelementptr inbounds i8, ptr %8, i64 4
  store i8 49, ptr %39, align 1, !tbaa !10
  %40 = getelementptr inbounds i8, ptr %8, i64 5
  store i8 56, ptr %40, align 1, !tbaa !10
  %41 = call i64 @_parse_variable(ptr noundef nonnull %4, ptr noundef nonnull %8, i64 noundef 10) #7
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  %44 = icmp ne i64 %41, 6
  %.not50 = select i1 %43, i1 true, i1 %44
  br i1 %.not50, label %45, label %46, !prof !11

45:                                               ; preds = %29
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.4) #7
  call void @exit(i32 noundef 0) #8
  unreachable

46:                                               ; preds = %29
  %47 = call i64 @expr_stringify_variable(ptr noundef nonnull %2, ptr noundef nonnull %42) #7
  %.not51 = icmp eq i64 %47, 0
  br i1 %.not51, label %48, label %49, !prof !11

48:                                               ; preds = %46
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.5) #7
  call void @exit(i32 noundef 0) #8
  unreachable

49:                                               ; preds = %46
  store <4 x i8> <i8 122, i8 46, i8 53, i8 56>, ptr %10, align 1, !tbaa !10
  %50 = call i64 @_parse_variable(ptr noundef nonnull %4, ptr noundef nonnull %8, i64 noundef 10) #7
  %.not52 = icmp eq i64 %50, 1
  br i1 %.not52, label %52, label %51, !prof !9

51:                                               ; preds = %49
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.3) #7
  call void @exit(i32 noundef 0) #8
  unreachable

52:                                               ; preds = %49
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call i64 @expr_stringify_variable(ptr noundef nonnull %2, ptr noundef %53) #7
  %.not53 = icmp eq i64 %54, 0
  br i1 %.not53, label %55, label %56, !prof !11

55:                                               ; preds = %52
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.5) #7
  call void @exit(i32 noundef 0) #8
  unreachable

56:                                               ; preds = %52
  store i8 120, ptr %10, align 1, !tbaa !10
  %57 = call i64 @_parse_constant(ptr noundef nonnull %1, ptr noundef nonnull %8, i64 noundef 10) #7
  %.not54 = icmp eq i64 %57, 0
  br i1 %.not54, label %59, label %58, !prof !9

58:                                               ; preds = %56
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 4, ptr noundef nonnull @.str.6) #7
  call void @exit(i32 noundef 0) #8
  unreachable

59:                                               ; preds = %56
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

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

declare ptr @mmt_mem_alloc(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @mmt_mem_free(ptr noundef) local_unnamed_addr #5

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!10 = !{!7, !7, i64 0}
!11 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!12 = !{!13, !6, i64 8}
!13 = !{!"", !14, i64 0, !14, i64 4, !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 28, !15, i64 32}
!14 = !{!"int", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!13, !6, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass