; LLVM IR from aap/pdp6 :: tools (as6)

; 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.Token = type { i32, %union.anon.0 }
%union.anon.0 = type { i64 }
%struct.Value = type { i64, i32 }
%struct.Sym = type { i64, i32, %union.anon, ptr }
%union.anon = type { %struct.Value }

@pass2 = external dso_local global i32, align 4
@dot = external dso_local global ptr, align 8
@lp = external dso_local global ptr, align 8
@peekt = external dso_local global %struct.Token, align 8
@.str.52 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

; 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) #2

; Function Attrs: nounwind uwtable
declare dso_local void @putv(i64 noundef, i32 noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local { i32, i64 } @token() #0

declare void @unsixbit(i64 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @statement() #0 {
  %1 = alloca %struct.Token, align 8
  %2 = alloca %struct.Value, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [8 x i8], align 1
  %7 = alloca %struct.Token, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.Value, align 8
  %10 = alloca %struct.Value, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  br label %11

11:                                               ; preds = %195, %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  %12 = call { i32, i64 } @token()
  %13 = getelementptr inbounds { i32, i64 }, ptr %7, i32 0, i32 0
  %14 = extractvalue { i32, i64 } %12, 0
  store i32 %14, ptr %13, align 8
  %15 = getelementptr inbounds { i32, i64 }, ptr %7, i32 0, i32 1
  %16 = extractvalue { i32, i64 } %12, 1
  store i64 %16, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  %17 = getelementptr inbounds %struct.Token, ptr %1, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp ne i32 %18, 13
  br i1 %19, label %20, label %196

20:                                               ; preds = %11
  %21 = getelementptr inbounds %struct.Token, ptr %1, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !11
  switch i32 %22, label %190 [
    i32 1, label %23
    i32 44, label %177
    i32 2, label %178
    i32 10, label %178
    i32 11, label %178
    i32 12, label %178
    i32 4, label %178
    i32 93, label %189
  ]

23:                                               ; preds = %20
  %24 = getelementptr inbounds %struct.Token, ptr %1, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !10
  store ptr %25, ptr %4, align 8, !tbaa !13
  %26 = load ptr, ptr %4, align 8, !tbaa !13
  %27 = getelementptr inbounds %struct.Sym, ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !15
  %29 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void @unsixbit(i64 noundef %28, ptr noundef %29)
  %30 = load ptr, ptr @lp, align 8, !tbaa !13
  %31 = load i8, ptr %30, align 1, !tbaa !10
  %32 = sext i8 %31 to i32
  %33 = icmp eq i32 %32, 58
  br i1 %33, label %34, label %81

34:                                               ; preds = %23
  %35 = load ptr, ptr @lp, align 8, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %35, i32 1
  store ptr %36, ptr @lp, align 8, !tbaa !13
  store i32 41, ptr %3, align 4, !tbaa !6
  %37 = load ptr, ptr @lp, align 8, !tbaa !13
  %38 = load i8, ptr %37, align 1, !tbaa !10
  %39 = sext i8 %38 to i32
  %40 = icmp eq i32 %39, 58
  br i1 %40, label %41, label %46

41:                                               ; preds = %34
  %42 = load ptr, ptr @lp, align 8, !tbaa !13
  %43 = getelementptr inbounds i8, ptr %42, i32 1
  store ptr %43, ptr @lp, align 8, !tbaa !13
  %44 = load i32, ptr %3, align 4, !tbaa !6
  %45 = or i32 %44, 2
  store i32 %45, ptr %3, align 4, !tbaa !6
  br label %46

46:                                               ; preds = %41, %34
  %47 = load ptr, ptr @lp, align 8, !tbaa !13
  %48 = load i8, ptr %47, align 1, !tbaa !10
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 33
  br i1 %50, label %51, label %56

51:                                               ; preds = %46
  %52 = load ptr, ptr @lp, align 8, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %52, i32 1
  store ptr %53, ptr @lp, align 8, !tbaa !13
  %54 = load i32, ptr %3, align 4, !tbaa !6
  %55 = or i32 %54, 16
  store i32 %55, ptr %3, align 4, !tbaa !6
  br label %56

56:                                               ; preds = %51, %46
  %57 = load i32, ptr @pass2, align 4, !tbaa !6
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %80, label %59

59:                                               ; preds = %56
  %60 = load ptr, ptr %4, align 8, !tbaa !13
  %61 = getelementptr inbounds %struct.Sym, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !18
  %63 = and i32 %62, 8
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %59
  %66 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.52, ptr noundef %66)
  store i32 1, ptr %8, align 4
  br label %197

67:                                               ; preds = %59
  %68 = load ptr, ptr %4, align 8, !tbaa !13
  %69 = getelementptr inbounds %struct.Sym, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !18
  %71 = and i32 %70, 22
  %72 = load i32, ptr %3, align 4, !tbaa !6
  %73 = or i32 %71, %72
  %74 = load ptr, ptr %4, align 8, !tbaa !13
  %75 = getelementptr inbounds %struct.Sym, ptr %74, i32 0, i32 1
  store i32 %73, ptr %75, align 8, !tbaa !18
  %76 = load ptr, ptr %4, align 8, !tbaa !13
  %77 = getelementptr inbounds %struct.Sym, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr @dot, align 8, !tbaa !13
  %79 = getelementptr inbounds %struct.Sym, ptr %78, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %77, ptr align 8 %79, i64 16, i1 false), !tbaa.struct !19
  br label %80

80:                                               ; preds = %67, %56
  br label %176

81:                                               ; preds = %23
  %82 = load ptr, ptr @lp, align 8, !tbaa !13
  %83 = load i8, ptr %82, align 1, !tbaa !10
  %84 = sext i8 %83 to i32
  %85 = icmp eq i32 %84, 61
  br i1 %85, label %86, label %136

86:                                               ; preds = %81
  %87 = load ptr, ptr @lp, align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %87, i32 1
  store ptr %88, ptr @lp, align 8, !tbaa !13
  store i32 9, ptr %3, align 4, !tbaa !6
  %89 = load ptr, ptr @lp, align 8, !tbaa !13
  %90 = load i8, ptr %89, align 1, !tbaa !10
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 61
  br i1 %92, label %93, label %98

93:                                               ; preds = %86
  %94 = load ptr, ptr @lp, align 8, !tbaa !13
  %95 = getelementptr inbounds i8, ptr %94, i32 1
  store ptr %95, ptr @lp, align 8, !tbaa !13
  %96 = load i32, ptr %3, align 4, !tbaa !6
  %97 = or i32 %96, 16
  store i32 %97, ptr %3, align 4, !tbaa !6
  br label %98

98:                                               ; preds = %93, %86
  %99 = load ptr, ptr @lp, align 8, !tbaa !13
  %100 = load i8, ptr %99, align 1, !tbaa !10
  %101 = sext i8 %100 to i32
  %102 = icmp eq i32 %101, 58
  br i1 %102, label %103, label %108

103:                                              ; preds = %98
  %104 = load ptr, ptr @lp, align 8, !tbaa !13
  %105 = getelementptr inbounds i8, ptr %104, i32 1
  store ptr %105, ptr @lp, align 8, !tbaa !13
  %106 = load i32, ptr %3, align 4, !tbaa !6
  %107 = or i32 %106, 2
  store i32 %107, ptr %3, align 4, !tbaa !6
  br label %108

108:                                              ; preds = %103, %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %109 = call { i64, i32 } @expr(i32 noundef 1, ptr noundef null)
  %110 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 0
  %111 = extractvalue { i64, i32 } %109, 0
  store i64 %111, ptr %110, align 8
  %112 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 1
  %113 = extractvalue { i64, i32 } %109, 1
  store i32 %113, ptr %112, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  %114 = load i32, ptr @pass2, align 4, !tbaa !6
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %135, label %116

116:                                              ; preds = %108
  %117 = load ptr, ptr %4, align 8, !tbaa !13
  %118 = getelementptr inbounds %struct.Sym, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !18
  %120 = and i32 %119, 32
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %116
  %123 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.52, ptr noundef %123)
  store i32 1, ptr %8, align 4
  br label %197

124:                                              ; preds = %116
  %125 = load ptr, ptr %4, align 8, !tbaa !13
  %126 = getelementptr inbounds %struct.Sym, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !18
  %128 = and i32 %127, 22
  %129 = load i32, ptr %3, align 4, !tbaa !6
  %130 = or i32 %128, %129
  %131 = load ptr, ptr %4, align 8, !tbaa !13
  %132 = getelementptr inbounds %struct.Sym, ptr %131, i32 0, i32 1
  store i32 %130, ptr %132, align 8, !tbaa !18
  %133 = load ptr, ptr %4, align 8, !tbaa !13
  %134 = getelementptr inbounds %struct.Sym, ptr %133, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %134, ptr align 8 %2, i64 16, i1 false), !tbaa.struct !19
  br label %135

135:                                              ; preds = %124, %108
  br label %175

136:                                              ; preds = %81
  %137 = load ptr, ptr %4, align 8, !tbaa !13
  %138 = getelementptr inbounds %struct.Sym, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !18
  %140 = icmp eq i32 %139, 64
  br i1 %140, label %141, label %150

141:                                              ; preds = %136
  %142 = load ptr, ptr %4, align 8, !tbaa !13
  %143 = getelementptr inbounds %struct.Sym, ptr %142, i32 0, i32 0
  %144 = load i64, ptr %143, align 8, !tbaa !15
  %145 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void @unsixbit(i64 noundef %144, ptr noundef %145)
  %146 = load ptr, ptr %4, align 8, !tbaa !13
  %147 = getelementptr inbounds %struct.Sym, ptr %146, i32 0, i32 2
  %148 = getelementptr inbounds %struct.Value, ptr %147, i32 0, i32 0
  %149 = load i64, ptr %148, align 8, !tbaa !10
  call void @opline(i64 noundef %149, i32 noundef 0)
  store i32 1, ptr %8, align 4
  br label %197

150:                                              ; preds = %136
  %151 = load ptr, ptr %4, align 8, !tbaa !13
  %152 = getelementptr inbounds %struct.Sym, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 8, !tbaa !18
  %154 = icmp eq i32 %153, 65
  br i1 %154, label %155, label %164

155:                                              ; preds = %150
  %156 = load ptr, ptr %4, align 8, !tbaa !13
  %157 = getelementptr inbounds %struct.Sym, ptr %156, i32 0, i32 0
  %158 = load i64, ptr %157, align 8, !tbaa !15
  %159 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void @unsixbit(i64 noundef %158, ptr noundef %159)
  %160 = load ptr, ptr %4, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct.Sym, ptr %160, i32 0, i32 2
  %162 = getelementptr inbounds %struct.Value, ptr %161, i32 0, i32 0
  %163 = load i64, ptr %162, align 8, !tbaa !10
  call void @opline(i64 noundef %163, i32 noundef 1)
  store i32 1, ptr %8, align 4
  br label %197

164:                                              ; preds = %150
  %165 = load ptr, ptr %4, align 8, !tbaa !13
  %166 = getelementptr inbounds %struct.Sym, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !18
  %168 = icmp eq i32 %167, 66
  br i1 %168, label %169, label %173

169:                                              ; preds = %164
  %170 = load ptr, ptr %4, align 8, !tbaa !13
  %171 = getelementptr inbounds %struct.Sym, ptr %170, i32 0, i32 2
  %172 = load ptr, ptr %171, align 8, !tbaa !10
  call void %172()
  store i32 1, ptr %8, align 4
  br label %197

173:                                              ; preds = %164
  %174 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.53, ptr noundef %174)
  store i32 1, ptr %8, align 4
  br label %197

175:                                              ; preds = %135
  br label %176

176:                                              ; preds = %175, %80
  br label %195

177:                                              ; preds = %20
  store i32 1, ptr %8, align 4
  br label %197

178:                                              ; preds = %20, %20, %20, %20, %20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @peekt, ptr align 8 %1, i64 16, i1 false), !tbaa.struct !5
  store ptr null, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %179 = call { i64, i32 } @expr(i32 noundef 0, ptr noundef %5)
  %180 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 0
  %181 = extractvalue { i64, i32 } %179, 0
  store i64 %181, ptr %180, align 8
  %182 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 1
  %183 = extractvalue { i64, i32 } %179, 1
  store i32 %183, ptr %182, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  %184 = load ptr, ptr %5, align 8, !tbaa !13
  call void @updateext(ptr noundef %184, ptr noundef %2, i32 noundef 0)
  %185 = getelementptr inbounds %struct.Value, ptr %2, i32 0, i32 0
  %186 = load i64, ptr %185, align 8, !tbaa !21
  %187 = getelementptr inbounds %struct.Value, ptr %2, i32 0, i32 1
  %188 = load i32, ptr %187, align 8, !tbaa !23
  call void @putv(i64 noundef %186, i32 noundef %188)
  br label %195

189:                                              ; preds = %20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @peekt, ptr align 8 %1, i64 16, i1 false), !tbaa.struct !5
  store i32 1, ptr %8, align 4
  br label %197

190:                                              ; preds = %20
  %191 = getelementptr inbounds %struct.Token, ptr %1, i32 0, i32 0
  %192 = load i32, ptr %191, align 8, !tbaa !11
  %193 = getelementptr inbounds %struct.Token, ptr %1, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !11
  call void (i32, ptr, ...) @err(i32 noundef 0, ptr noundef @.str.54, i32 noundef %192, i32 noundef %194)
  br label %195

195:                                              ; preds = %190, %178, %176
  br label %11, !llvm.loop !24

196:                                              ; preds = %11
  store i32 0, ptr %8, align 4
  br label %197

197:                                              ; preds = %196, %189, %177, %173, %169, %155, %141, %122, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #4
  %198 = load i32, ptr %8, align 4
  switch i32 %198, label %200 [
    i32 0, label %199
    i32 1, label %199
  ]

199:                                              ; preds = %197, %197
  ret void

200:                                              ; preds = %197
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @expr(i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @opline(i64 noundef, i32 noundef) #0

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

!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 = !{i64 0, i64 4, !6, i64 8, i64 8, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"Token", !7, i64 0, !8, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"Sym", !17, i64 0, !7, i64 8, !8, i64 16, !14, i64 32}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !7, i64 8}
!19 = !{i64 0, i64 8, !20, i64 8, i64 4, !6}
!20 = !{!17, !17, i64 0}
!21 = !{!22, !17, i64 0}
!22 = !{!"Value", !17, i64 0, !7, i64 8}
!23 = !{!22, !7, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.Token = type { i32, %union.anon.0 }
%union.anon.0 = type { i64 }
%struct.Value = type { i64, i32 }

@pass2 = external dso_local local_unnamed_addr global i32, align 4
@dot = external dso_local local_unnamed_addr global ptr, align 8
@lp = external dso_local local_unnamed_addr global ptr, align 8
@peekt = external dso_local local_unnamed_addr global %struct.Token, align 8
@.str.52 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

; 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) #2

; Function Attrs: nounwind uwtable
declare dso_local void @putv(i64 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local { i32, i64 } @token() local_unnamed_addr #0

declare void @unsixbit(i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @statement() local_unnamed_addr #0 {
  %1 = alloca %struct.Value, align 8
  %2 = alloca ptr, align 8
  %3 = alloca [8 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  br label %4

4:                                                ; preds = %.backedge, %0
  %5 = call { i32, i64 } @token()
  %6 = extractvalue { i32, i64 } %5, 0
  %7 = extractvalue { i32, i64 } %5, 1
  switch i32 %6, label %91 [
    i32 13, label %.loopexit
    i32 1, label %8
    i32 44, label %.loopexit
    i32 2, label %83
    i32 10, label %83
    i32 11, label %83
    i32 12, label %83
    i32 4, label %83
    i32 93, label %90
  ]

8:                                                ; preds = %4
  %9 = inttoptr i64 %7 to ptr
  %10 = load i64, ptr %9, align 8, !tbaa !5
  call void @unsixbit(i64 noundef %10, ptr noundef nonnull %3) #4
  %11 = load ptr, ptr @lp, align 8, !tbaa !12
  %12 = load i8, ptr %11, align 1, !tbaa !13
  switch i8 %12, label %68 [
    i8 58, label %13
    i8 61, label %40
  ]

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %11, i64 1
  store ptr %14, ptr @lp, align 8, !tbaa !12
  %15 = load i8, ptr %14, align 1, !tbaa !13
  %16 = icmp eq i8 %15, 58
  br i1 %16, label %17, label %19

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %11, i64 2
  store ptr %18, ptr @lp, align 8, !tbaa !12
  %.pre66 = load i8, ptr %18, align 1, !tbaa !13
  br label %19

19:                                               ; preds = %17, %13
  %20 = phi i8 [ %.pre66, %17 ], [ %15, %13 ]
  %21 = phi i64 [ 2, %17 ], [ 1, %13 ]
  %.0 = phi i32 [ 43, %17 ], [ 41, %13 ]
  %22 = icmp eq i8 %20, 33
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %11, i64 %21
  %25 = getelementptr inbounds i8, ptr %24, i64 1
  store ptr %25, ptr @lp, align 8, !tbaa !12
  %26 = or disjoint i32 %.0, 16
  br label %27

27:                                               ; preds = %23, %19
  %.1 = phi i32 [ %26, %23 ], [ %.0, %19 ]
  %28 = load i32, ptr @pass2, align 4, !tbaa !14
  %.not40 = icmp eq i32 %28, 0
  br i1 %.not40, label %29, label %.backedge

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %9, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !15
  %32 = and i32 %31, 8
  %.not41 = icmp eq i32 %32, 0
  br i1 %.not41, label %34, label %33

33:                                               ; preds = %29
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.52, ptr noundef nonnull %3)
  br label %.loopexit

34:                                               ; preds = %29
  %35 = and i32 %31, 22
  %36 = or i32 %35, %.1
  store i32 %36, ptr %30, align 8, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %9, i64 16
  %38 = load ptr, ptr @dot, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %39, i64 16, i1 false), !tbaa.struct !16
  br label %.backedge

.backedge:                                        ; preds = %34, %27, %54, %64, %91, %83
  br label %4, !llvm.loop !18

40:                                               ; preds = %8
  %41 = getelementptr inbounds i8, ptr %11, i64 1
  store ptr %41, ptr @lp, align 8, !tbaa !12
  %42 = load i8, ptr %41, align 1, !tbaa !13
  %43 = icmp eq i8 %42, 61
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %11, i64 2
  store ptr %45, ptr @lp, align 8, !tbaa !12
  %.pre = load i8, ptr %45, align 1, !tbaa !13
  br label %46

46:                                               ; preds = %44, %40
  %47 = phi i8 [ %.pre, %44 ], [ %42, %40 ]
  %48 = phi i64 [ 2, %44 ], [ 1, %40 ]
  %.2 = phi i32 [ 25, %44 ], [ 9, %40 ]
  %49 = icmp eq i8 %47, 58
  br i1 %49, label %50, label %54

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %11, i64 %48
  %52 = getelementptr inbounds i8, ptr %51, i64 1
  store ptr %52, ptr @lp, align 8, !tbaa !12
  %53 = or disjoint i32 %.2, 2
  br label %54

54:                                               ; preds = %50, %46
  %.3 = phi i32 [ %53, %50 ], [ %.2, %46 ]
  %55 = call { i64, i32 } @expr(i32 noundef 1, ptr noundef null)
  %56 = extractvalue { i64, i32 } %55, 0
  %57 = extractvalue { i64, i32 } %55, 1
  store i64 %56, ptr %1, align 8, !tbaa !17
  store i32 %57, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  %58 = load i32, ptr @pass2, align 4, !tbaa !14
  %.not38 = icmp eq i32 %58, 0
  br i1 %.not38, label %59, label %.backedge

59:                                               ; preds = %54
  %60 = getelementptr inbounds i8, ptr %9, i64 8
  %61 = load i32, ptr %60, align 8, !tbaa !15
  %62 = and i32 %61, 32
  %.not39 = icmp eq i32 %62, 0
  br i1 %.not39, label %64, label %63

63:                                               ; preds = %59
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.52, ptr noundef nonnull %3)
  br label %.loopexit

64:                                               ; preds = %59
  %65 = and i32 %61, 22
  %66 = or i32 %65, %.3
  store i32 %66, ptr %60, align 8, !tbaa !15
  %67 = getelementptr inbounds i8, ptr %9, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !16
  br label %.backedge

68:                                               ; preds = %8
  %69 = getelementptr inbounds i8, ptr %9, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !15
  switch i32 %70, label %82 [
    i32 64, label %71
    i32 65, label %75
    i32 66, label %79
  ]

71:                                               ; preds = %68
  %72 = load i64, ptr %9, align 8, !tbaa !5
  call void @unsixbit(i64 noundef %72, ptr noundef nonnull %3) #4
  %73 = getelementptr inbounds i8, ptr %9, i64 16
  %74 = load i64, ptr %73, align 8, !tbaa !13
  call void @opline(i64 noundef %74, i32 noundef 0)
  br label %.loopexit

75:                                               ; preds = %68
  %76 = load i64, ptr %9, align 8, !tbaa !5
  call void @unsixbit(i64 noundef %76, ptr noundef nonnull %3) #4
  %77 = getelementptr inbounds i8, ptr %9, i64 16
  %78 = load i64, ptr %77, align 8, !tbaa !13
  call void @opline(i64 noundef %78, i32 noundef 1)
  br label %.loopexit

79:                                               ; preds = %68
  %80 = getelementptr inbounds i8, ptr %9, i64 16
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  call void %81() #4
  br label %.loopexit

82:                                               ; preds = %68
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.53, ptr noundef nonnull %3)
  br label %.loopexit

83:                                               ; preds = %4, %4, %4, %4, %4
  store i32 %6, ptr @peekt, align 8, !tbaa !14
  store i64 %7, ptr getelementptr inbounds (i8, ptr @peekt, i64 8), align 8, !tbaa !13
  store ptr null, ptr %2, align 8, !tbaa !12
  %84 = call { i64, i32 } @expr(i32 noundef 0, ptr noundef nonnull %2)
  %85 = extractvalue { i64, i32 } %84, 0
  %86 = extractvalue { i64, i32 } %84, 1
  store i64 %85, ptr %1, align 8, !tbaa !17
  store i32 %86, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  %87 = load ptr, ptr %2, align 8, !tbaa !12
  call void @updateext(ptr noundef %87, ptr noundef nonnull %1, i32 noundef 0)
  %88 = load i64, ptr %1, align 8, !tbaa !20
  %89 = load i32, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !22
  call void @putv(i64 noundef %88, i32 noundef %89)
  br label %.backedge

90:                                               ; preds = %4
  store i32 93, ptr @peekt, align 8, !tbaa !14
  store i64 %7, ptr getelementptr inbounds (i8, ptr @peekt, i64 8), align 8, !tbaa !13
  br label %.loopexit

91:                                               ; preds = %4
  call void (i32, ptr, ...) @err(i32 noundef 0, ptr noundef nonnull @.str.54, i32 noundef %6, i32 noundef %6)
  br label %.backedge

.loopexit:                                        ; preds = %4, %4, %90, %82, %79, %75, %71, %63, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @expr(i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @opline(i64 noundef, i32 noundef) local_unnamed_addr #0

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 }

!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 = !{!"Sym", !7, i64 0, !10, i64 8, !8, i64 16, !11, i64 32}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !10, i64 8}
!16 = !{i64 0, i64 8, !17, i64 8, i64 4, !14}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !7, i64 0}
!21 = !{!"Value", !7, i64 0, !10, i64 8}
!22 = !{!21, !10, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass