; LLVM IR from vul337/PrIntFuzz :: config/linux/firmware/carl9170fw/config (expr)

; 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.expr = type { i32, %union.expr_data, %union.expr_data }
%union.expr_data = type { ptr }
%struct.symbol = type { ptr, ptr, i32, %struct.symbol_value, [4 x %struct.symbol_value], i32, i32, ptr, %struct.expr_value, %struct.expr_value }
%struct.symbol_value = type { ptr, i32 }
%struct.expr_value = type { ptr, i32 }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @expr_compare_type(i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @expr_print(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [32 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %15, label %12

12:                                               ; preds = %4
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  call void %13(ptr noundef %14, ptr noundef null, ptr noundef @.str.5)
  br label %223

15:                                               ; preds = %4
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.expr, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = call i32 @expr_compare_type(i32 noundef %16, i32 noundef %19)
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %15
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  call void %23(ptr noundef %24, ptr noundef null, ptr noundef @.str.6)
  br label %25

25:                                               ; preds = %22, %15
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.expr, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !11
  switch i32 %28, label %204 [
    i32 7, label %29
    i32 3, label %51
    i32 4, label %59
    i32 5, label %93
    i32 1, label %127
    i32 2, label %140
    i32 6, label %153
    i32 8, label %177
  ]

29:                                               ; preds = %25
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.expr, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds %struct.symbol, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %47

36:                                               ; preds = %29
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.expr, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.expr, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct.symbol, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  call void %37(ptr noundef %38, ptr noundef %41, ptr noundef %46)
  br label %50

47:                                               ; preds = %29
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  call void %48(ptr noundef %49, ptr noundef null, ptr noundef @.str.7)
  br label %50

50:                                               ; preds = %47, %36
  br label %213

51:                                               ; preds = %25
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  call void %52(ptr noundef %53, ptr noundef null, ptr noundef @.str.8)
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.expr, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  call void @expr_print(ptr noundef %56, ptr noundef %57, ptr noundef %58, i32 noundef 3)
  br label %213

59:                                               ; preds = %25
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.expr, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = getelementptr inbounds %struct.symbol, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !14
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %77

66:                                               ; preds = %59
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.expr, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.expr, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = getelementptr inbounds %struct.symbol, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  call void %67(ptr noundef %68, ptr noundef %71, ptr noundef %76)
  br label %80

77:                                               ; preds = %59
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  call void %78(ptr noundef %79, ptr noundef null, ptr noundef @.str.7)
  br label %80

80:                                               ; preds = %77, %66
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  call void %81(ptr noundef %82, ptr noundef null, ptr noundef @.str.9)
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.expr, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.expr, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  %91 = getelementptr inbounds %struct.symbol, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !14
  call void %83(ptr noundef %84, ptr noundef %87, ptr noundef %92)
  br label %213

93:                                               ; preds = %25
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.expr, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds %struct.symbol, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %111

100:                                              ; preds = %93
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.expr, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !13
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.expr, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = getelementptr inbounds %struct.symbol, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !14
  call void %101(ptr noundef %102, ptr noundef %105, ptr noundef %110)
  br label %114

111:                                              ; preds = %93
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  call void %112(ptr noundef %113, ptr noundef null, ptr noundef @.str.7)
  br label %114

114:                                              ; preds = %111, %100
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  call void %115(ptr noundef %116, ptr noundef null, ptr noundef @.str.10)
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.expr, ptr %119, i32 0, i32 2
  %121 = load ptr, ptr %120, align 8, !tbaa !13
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.expr, ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = getelementptr inbounds %struct.symbol, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !14
  call void %117(ptr noundef %118, ptr noundef %121, ptr noundef %126)
  br label %213

127:                                              ; preds = %25
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.expr, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  call void @expr_print(ptr noundef %130, ptr noundef %131, ptr noundef %132, i32 noundef 1)
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  call void %133(ptr noundef %134, ptr noundef null, ptr noundef @.str.11)
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.expr, ptr %135, i32 0, i32 2
  %137 = load ptr, ptr %136, align 8, !tbaa !13
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  call void @expr_print(ptr noundef %137, ptr noundef %138, ptr noundef %139, i32 noundef 1)
  br label %213

140:                                              ; preds = %25
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.expr, ptr %141, i32 0, i32 1
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  call void @expr_print(ptr noundef %143, ptr noundef %144, ptr noundef %145, i32 noundef 2)
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  call void %146(ptr noundef %147, ptr noundef null, ptr noundef @.str.12)
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.expr, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !13
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  call void @expr_print(ptr noundef %150, ptr noundef %151, ptr noundef %152, i32 noundef 2)
  br label %213

153:                                              ; preds = %25
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.expr, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !13
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.expr, ptr %159, i32 0, i32 2
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = getelementptr inbounds %struct.symbol, ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !14
  call void %154(ptr noundef %155, ptr noundef %158, ptr noundef %163)
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.expr, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !13
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %176

168:                                              ; preds = %153
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  call void %169(ptr noundef %170, ptr noundef null, ptr noundef @.str.13)
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.expr, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  call void @expr_print(ptr noundef %173, ptr noundef %174, ptr noundef %175, i32 noundef 6)
  br label %176

176:                                              ; preds = %168, %153
  br label %213

177:                                              ; preds = %25
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  call void %178(ptr noundef %179, ptr noundef null, ptr noundef @.str.14)
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.expr, ptr %182, i32 0, i32 1
  %184 = load ptr, ptr %183, align 8, !tbaa !13
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.expr, ptr %185, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  %188 = getelementptr inbounds %struct.symbol, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8, !tbaa !14
  call void %180(ptr noundef %181, ptr noundef %184, ptr noundef %189)
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  call void %190(ptr noundef %191, ptr noundef null, ptr noundef @.str.15)
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.expr, ptr %194, i32 0, i32 2
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.expr, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds %struct.symbol, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !14
  call void %192(ptr noundef %193, ptr noundef %196, ptr noundef %201)
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  call void %202(ptr noundef %203, ptr noundef null, ptr noundef @.str.16)
  br label %213

204:                                              ; preds = %25
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #3
  %205 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.expr, ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 8, !tbaa !11
  %209 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %205, ptr noundef @.str.17, i32 noundef %208) #3
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  call void %210(ptr noundef %211, ptr noundef null, ptr noundef %212)
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #3
  br label %213

213:                                              ; preds = %204, %177, %176, %140, %127, %114, %80, %51, %50
  %214 = load i32, ptr %8, align 4, !tbaa !9
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.expr, ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 8, !tbaa !11
  %218 = call i32 @expr_compare_type(i32 noundef %214, i32 noundef %217)
  %219 = icmp sgt i32 %218, 0
  br i1 %219, label %220, label %223

220:                                              ; preds = %213
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  call void %221(ptr noundef %222, ptr noundef null, ptr noundef @.str.18)
  br label %223

223:                                              ; preds = %220, %213, %12
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 }

!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, !10, i64 0}
!12 = !{!"expr", !10, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"symbol", !6, i64 0, !6, i64 8, !10, i64 16, !16, i64 24, !7, i64 40, !10, i64 104, !10, i64 108, !6, i64 112, !17, i64 120, !17, i64 136}
!16 = !{!"symbol_value", !6, i64 0, !10, i64 8}
!17 = !{!"expr_value", !6, i64 0, !10, i64 8}


; 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 [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @expr_compare_type(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @expr_print(ptr noundef readonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = alloca [32 x i8], align 16
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %4
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.5) #3
  br label %83

7:                                                ; preds = %4
  %8 = load i32, ptr %0, align 8, !tbaa !5
  %9 = tail call i32 @expr_compare_type(i32 noundef %3, i32 noundef %8)
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %12

11:                                               ; preds = %7
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.6) #3
  br label %12

12:                                               ; preds = %11, %7
  %13 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %13, label %76 [
    i32 7, label %14
    i32 3, label %21
    i32 4, label %24
    i32 5, label %36
    i32 1, label %48
    i32 2, label %53
    i32 6, label %58
    i32 8, label %67
  ]

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !10
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %.not98 = icmp eq ptr %18, null
  br i1 %.not98, label %20, label %19

19:                                               ; preds = %14
  tail call void %1(ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull %18) #3
  br label %78

20:                                               ; preds = %14
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.7) #3
  br label %78

21:                                               ; preds = %12
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.8) #3
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !10
  tail call void @expr_print(ptr noundef %23, ptr noundef %1, ptr noundef %2, i32 noundef 3)
  br label %78

24:                                               ; preds = %12
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !10
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %.not97 = icmp eq ptr %28, null
  br i1 %.not97, label %30, label %29

29:                                               ; preds = %24
  tail call void %1(ptr noundef %2, ptr noundef nonnull %26, ptr noundef nonnull %28) #3
  br label %31

30:                                               ; preds = %24
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.7) #3
  br label %31

31:                                               ; preds = %30, %29
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.9) #3
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = load ptr, ptr %32, align 8, !tbaa !10
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  tail call void %1(ptr noundef %2, ptr noundef %33, ptr noundef %35) #3
  br label %78

36:                                               ; preds = %12
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !10
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %.not96 = icmp eq ptr %40, null
  br i1 %.not96, label %42, label %41

41:                                               ; preds = %36
  tail call void %1(ptr noundef %2, ptr noundef nonnull %38, ptr noundef nonnull %40) #3
  br label %43

42:                                               ; preds = %36
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.7) #3
  br label %43

43:                                               ; preds = %42, %41
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.10) #3
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !10
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  tail call void %1(ptr noundef %2, ptr noundef %45, ptr noundef %47) #3
  br label %78

48:                                               ; preds = %12
  %49 = getelementptr inbounds i8, ptr %0, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !10
  tail call void @expr_print(ptr noundef %50, ptr noundef %1, ptr noundef %2, i32 noundef 1)
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.11) #3
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !10
  tail call void @expr_print(ptr noundef %52, ptr noundef %1, ptr noundef %2, i32 noundef 1)
  br label %78

53:                                               ; preds = %12
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !10
  tail call void @expr_print(ptr noundef %55, ptr noundef %1, ptr noundef %2, i32 noundef 2)
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.12) #3
  %56 = getelementptr inbounds i8, ptr %0, i64 16
  %57 = load ptr, ptr %56, align 8, !tbaa !10
  tail call void @expr_print(ptr noundef %57, ptr noundef %1, ptr noundef %2, i32 noundef 2)
  br label %78

58:                                               ; preds = %12
  %59 = getelementptr inbounds i8, ptr %0, i64 16
  %60 = load ptr, ptr %59, align 8, !tbaa !10
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  tail call void %1(ptr noundef %2, ptr noundef %60, ptr noundef %62) #3
  %63 = getelementptr inbounds i8, ptr %0, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !10
  %.not95 = icmp eq ptr %64, null
  br i1 %.not95, label %78, label %65

65:                                               ; preds = %58
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.13) #3
  %66 = load ptr, ptr %63, align 8, !tbaa !10
  tail call void @expr_print(ptr noundef %66, ptr noundef %1, ptr noundef %2, i32 noundef 6)
  br label %78

67:                                               ; preds = %12
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.14) #3
  %68 = getelementptr inbounds i8, ptr %0, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !10
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  tail call void %1(ptr noundef %2, ptr noundef %69, ptr noundef %71) #3
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.15) #3
  %72 = getelementptr inbounds i8, ptr %0, i64 16
  %73 = load ptr, ptr %72, align 8, !tbaa !10
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  tail call void %1(ptr noundef %2, ptr noundef %73, ptr noundef %75) #3
  tail call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.16) #3
  br label %78

76:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
  %77 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %13) #3
  call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  br label %78

78:                                               ; preds = %58, %65, %19, %20, %76, %67, %53, %48, %43, %31, %21
  %79 = load i32, ptr %0, align 8, !tbaa !5
  %80 = call i32 @expr_compare_type(i32 noundef %3, i32 noundef %79)
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  call void %1(ptr noundef %2, ptr noundef null, ptr noundef nonnull @.str.18) #3
  br label %83

83:                                               ; preds = %82, %78, %6
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !7, i64 0}
!6 = !{!"expr", !7, i64 0, !8, i64 8, !8, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"symbol", !13, i64 0, !13, i64 8, !7, i64 16, !14, i64 24, !8, i64 40, !7, i64 104, !7, i64 108, !13, i64 112, !15, i64 120, !15, i64 136}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"symbol_value", !13, i64 0, !7, i64 8}
!15 = !{!"expr_value", !13, i64 0, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass