; LLVM IR from aap/pdp6 :: emu (emu)

; 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.Device = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Apr = type { %struct.Device, %struct.IOBus, %struct.Membus, i32, %struct.AprState, %struct.AprState, i32, i64, i64, i32, i32, i32, i8, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr, i32, i8, [20 x %struct.TPulse], ptr, ptr }
%struct.IOBus = type { i64, i64, i64, i64, i64, i64, i32, [128 x %struct.Busdev] }
%struct.Busdev = type { ptr, ptr, i8 }
%struct.Membus = type { i64, i64, i64, i64, i64, i64, ptr, [16 x ptr] }
%struct.AprState = type { i64, i64, i64 }
%struct.TPulse = type { ptr, ptr, i32 }
%struct.Mem = type { %struct.Device, ptr, [4 x ptr], ptr, ptr, ptr }

@devlist = external dso_local global ptr, align 8
@apr_ident = external global ptr, align 8
@.str.26 = external hidden unnamed_addr constant [11 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: noreturn nounwind
declare void @exit(i32 noundef) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @quit(i32 noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %6 = load ptr, ptr @devlist, align 8, !tbaa !9
  store ptr %6, ptr %4, align 8, !tbaa !9
  br label %7

7:                                                ; preds = %21, %1
  %8 = load ptr, ptr %4, align 8, !tbaa !9
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %25

10:                                               ; preds = %7
  %11 = load ptr, ptr %4, align 8, !tbaa !9
  %12 = getelementptr inbounds %struct.Device, ptr %11, i32 0, i32 4
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %20

15:                                               ; preds = %10
  %16 = load ptr, ptr %4, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.Device, ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = load ptr, ptr %4, align 8, !tbaa !9
  call void %18(ptr noundef %19)
  br label %20

20:                                               ; preds = %15, %10
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.Device, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  store ptr %24, ptr %4, align 8, !tbaa !9
  br label %7, !llvm.loop !14

25:                                               ; preds = %7
  %26 = load ptr, ptr @devlist, align 8, !tbaa !9
  store ptr %26, ptr %4, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %82, %25
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %86

30:                                               ; preds = %27
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.Device, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = load ptr, ptr @apr_ident, align 8, !tbaa !9
  %35 = call i32 @strcmp(ptr noundef %33, ptr noundef %34) #6
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %30
  br label %82

38:                                               ; preds = %30
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.Apr, ptr %39, i32 0, i32 2
  store ptr %40, ptr %5, align 8, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %78, %38
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 16
  br i1 %43, label %44, label %81

44:                                               ; preds = %41
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.Membus, ptr %45, i32 0, i32 7
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [16 x ptr], ptr %46, i64 0, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %77

52:                                               ; preds = %44
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.Membus, ptr %53, i32 0, i32 7
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [16 x ptr], ptr %54, i64 0, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.Mem, ptr %58, i32 0, i32 5
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %77

62:                                               ; preds = %52
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.Membus, ptr %63, i32 0, i32 7
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [16 x ptr], ptr %64, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.Mem, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.Membus, ptr %71, i32 0, i32 7
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [16 x ptr], ptr %72, i64 0, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  call void %70(ptr noundef %76)
  br label %77

77:                                               ; preds = %62, %52, %44
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %3, align 4, !tbaa !5
  br label %41, !llvm.loop !19

81:                                               ; preds = %41
  br label %82

82:                                               ; preds = %81, %37
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.Device, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  store ptr %85, ptr %4, align 8, !tbaa !9
  br label %27, !llvm.loop !20

86:                                               ; preds = %27
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %88 = load i32, ptr %2, align 4, !tbaa !5
  call void @exit(i32 noundef %88) #7
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 willreturn memory(read) }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"Device", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!13 = !{!12, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 8}
!17 = !{!18, !10, i64 120}
!18 = !{!"Mem", !12, i64 0, !10, i64 64, !7, i64 72, !10, i64 104, !10, i64 112, !10, i64 120}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


; 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"

@devlist = external dso_local local_unnamed_addr global ptr, align 8
@apr_ident = external local_unnamed_addr global ptr, align 8
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind uwtable
define dso_local void @quit(i32 noundef %0) local_unnamed_addr #3 {
  %.01929 = load ptr, ptr @devlist, align 8, !tbaa !5
  %.not30 = icmp eq ptr %.01929, null
  br i1 %.not30, label %._crit_edge, label %.lr.ph

.preheader28:                                     ; preds = %5
  %.133.pre = load ptr, ptr @devlist, align 8, !tbaa !5
  %.not2334 = icmp eq ptr %.133.pre, null
  br i1 %.not2334, label %._crit_edge, label %.lr.ph36

.lr.ph:                                           ; preds = %1, %5
  %.01931 = phi ptr [ %.019, %5 ], [ %.01929, %1 ]
  %2 = getelementptr inbounds i8, ptr %.01931, i64 32
  %3 = load ptr, ptr %2, align 8, !tbaa !9
  %.not27 = icmp eq ptr %3, null
  br i1 %.not27, label %5, label %4

4:                                                ; preds = %.lr.ph
  tail call void %3(ptr noundef nonnull %.01931) #4
  br label %5

5:                                                ; preds = %.lr.ph, %4
  %.019 = load ptr, ptr %.01931, align 8, !tbaa !5
  %.not = icmp eq ptr %.019, null
  br i1 %.not, label %.preheader28, label %.lr.ph, !llvm.loop !11

.lr.ph36:                                         ; preds = %.preheader28, %.loopexit
  %.135 = phi ptr [ %.1, %.loopexit ], [ %.133.pre, %.preheader28 ]
  %6 = getelementptr inbounds i8, ptr %.135, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = load ptr, ptr @apr_ident, align 8, !tbaa !5
  %9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %8) #5
  %.not24 = icmp eq i32 %9, 0
  br i1 %.not24, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.lr.ph36
  %10 = getelementptr inbounds i8, ptr %.135, i64 3248
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %.not25 = icmp eq ptr %11, null
  br i1 %.not25, label %16, label %12

12:                                               ; preds = %.preheader
  %13 = getelementptr inbounds i8, ptr %11, i64 120
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %.not26 = icmp eq ptr %14, null
  br i1 %.not26, label %16, label %15

15:                                               ; preds = %12
  tail call void %14(ptr noundef nonnull %11) #4
  br label %16

16:                                               ; preds = %.preheader, %12, %15
  %17 = getelementptr inbounds i8, ptr %.135, i64 3256
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %.not25.1 = icmp eq ptr %18, null
  br i1 %.not25.1, label %23, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %18, i64 120
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %.not26.1 = icmp eq ptr %21, null
  br i1 %.not26.1, label %23, label %22

22:                                               ; preds = %19
  tail call void %21(ptr noundef nonnull %18) #4
  br label %23

23:                                               ; preds = %22, %19, %16
  %24 = getelementptr inbounds i8, ptr %.135, i64 3264
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %.not25.2 = icmp eq ptr %25, null
  br i1 %.not25.2, label %30, label %26

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %25, i64 120
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %.not26.2 = icmp eq ptr %28, null
  br i1 %.not26.2, label %30, label %29

29:                                               ; preds = %26
  tail call void %28(ptr noundef nonnull %25) #4
  br label %30

30:                                               ; preds = %29, %26, %23
  %31 = getelementptr inbounds i8, ptr %.135, i64 3272
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %.not25.3 = icmp eq ptr %32, null
  br i1 %.not25.3, label %37, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %32, i64 120
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %.not26.3 = icmp eq ptr %35, null
  br i1 %.not26.3, label %37, label %36

36:                                               ; preds = %33
  tail call void %35(ptr noundef nonnull %32) #4
  br label %37

37:                                               ; preds = %36, %33, %30
  %38 = getelementptr inbounds i8, ptr %.135, i64 3280
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %.not25.4 = icmp eq ptr %39, null
  br i1 %.not25.4, label %44, label %40

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %39, i64 120
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %.not26.4 = icmp eq ptr %42, null
  br i1 %.not26.4, label %44, label %43

43:                                               ; preds = %40
  tail call void %42(ptr noundef nonnull %39) #4
  br label %44

44:                                               ; preds = %43, %40, %37
  %45 = getelementptr inbounds i8, ptr %.135, i64 3288
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %.not25.5 = icmp eq ptr %46, null
  br i1 %.not25.5, label %51, label %47

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %46, i64 120
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %.not26.5 = icmp eq ptr %49, null
  br i1 %.not26.5, label %51, label %50

50:                                               ; preds = %47
  tail call void %49(ptr noundef nonnull %46) #4
  br label %51

51:                                               ; preds = %50, %47, %44
  %52 = getelementptr inbounds i8, ptr %.135, i64 3296
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %.not25.6 = icmp eq ptr %53, null
  br i1 %.not25.6, label %58, label %54

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %53, i64 120
  %56 = load ptr, ptr %55, align 8, !tbaa !14
  %.not26.6 = icmp eq ptr %56, null
  br i1 %.not26.6, label %58, label %57

57:                                               ; preds = %54
  tail call void %56(ptr noundef nonnull %53) #4
  br label %58

58:                                               ; preds = %57, %54, %51
  %59 = getelementptr inbounds i8, ptr %.135, i64 3304
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %.not25.7 = icmp eq ptr %60, null
  br i1 %.not25.7, label %65, label %61

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %60, i64 120
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  %.not26.7 = icmp eq ptr %63, null
  br i1 %.not26.7, label %65, label %64

64:                                               ; preds = %61
  tail call void %63(ptr noundef nonnull %60) #4
  br label %65

65:                                               ; preds = %64, %61, %58
  %66 = getelementptr inbounds i8, ptr %.135, i64 3312
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %.not25.8 = icmp eq ptr %67, null
  br i1 %.not25.8, label %72, label %68

68:                                               ; preds = %65
  %69 = getelementptr inbounds i8, ptr %67, i64 120
  %70 = load ptr, ptr %69, align 8, !tbaa !14
  %.not26.8 = icmp eq ptr %70, null
  br i1 %.not26.8, label %72, label %71

71:                                               ; preds = %68
  tail call void %70(ptr noundef nonnull %67) #4
  br label %72

72:                                               ; preds = %71, %68, %65
  %73 = getelementptr inbounds i8, ptr %.135, i64 3320
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %.not25.9 = icmp eq ptr %74, null
  br i1 %.not25.9, label %79, label %75

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %74, i64 120
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %.not26.9 = icmp eq ptr %77, null
  br i1 %.not26.9, label %79, label %78

78:                                               ; preds = %75
  tail call void %77(ptr noundef nonnull %74) #4
  br label %79

79:                                               ; preds = %78, %75, %72
  %80 = getelementptr inbounds i8, ptr %.135, i64 3328
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %.not25.10 = icmp eq ptr %81, null
  br i1 %.not25.10, label %86, label %82

82:                                               ; preds = %79
  %83 = getelementptr inbounds i8, ptr %81, i64 120
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %.not26.10 = icmp eq ptr %84, null
  br i1 %.not26.10, label %86, label %85

85:                                               ; preds = %82
  tail call void %84(ptr noundef nonnull %81) #4
  br label %86

86:                                               ; preds = %85, %82, %79
  %87 = getelementptr inbounds i8, ptr %.135, i64 3336
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %.not25.11 = icmp eq ptr %88, null
  br i1 %.not25.11, label %93, label %89

89:                                               ; preds = %86
  %90 = getelementptr inbounds i8, ptr %88, i64 120
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %.not26.11 = icmp eq ptr %91, null
  br i1 %.not26.11, label %93, label %92

92:                                               ; preds = %89
  tail call void %91(ptr noundef nonnull %88) #4
  br label %93

93:                                               ; preds = %92, %89, %86
  %94 = getelementptr inbounds i8, ptr %.135, i64 3344
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %.not25.12 = icmp eq ptr %95, null
  br i1 %.not25.12, label %100, label %96

96:                                               ; preds = %93
  %97 = getelementptr inbounds i8, ptr %95, i64 120
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %.not26.12 = icmp eq ptr %98, null
  br i1 %.not26.12, label %100, label %99

99:                                               ; preds = %96
  tail call void %98(ptr noundef nonnull %95) #4
  br label %100

100:                                              ; preds = %99, %96, %93
  %101 = getelementptr inbounds i8, ptr %.135, i64 3352
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %.not25.13 = icmp eq ptr %102, null
  br i1 %.not25.13, label %107, label %103

103:                                              ; preds = %100
  %104 = getelementptr inbounds i8, ptr %102, i64 120
  %105 = load ptr, ptr %104, align 8, !tbaa !14
  %.not26.13 = icmp eq ptr %105, null
  br i1 %.not26.13, label %107, label %106

106:                                              ; preds = %103
  tail call void %105(ptr noundef nonnull %102) #4
  br label %107

107:                                              ; preds = %106, %103, %100
  %108 = getelementptr inbounds i8, ptr %.135, i64 3360
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %.not25.14 = icmp eq ptr %109, null
  br i1 %.not25.14, label %114, label %110

110:                                              ; preds = %107
  %111 = getelementptr inbounds i8, ptr %109, i64 120
  %112 = load ptr, ptr %111, align 8, !tbaa !14
  %.not26.14 = icmp eq ptr %112, null
  br i1 %.not26.14, label %114, label %113

113:                                              ; preds = %110
  tail call void %112(ptr noundef nonnull %109) #4
  br label %114

114:                                              ; preds = %113, %110, %107
  %115 = getelementptr inbounds i8, ptr %.135, i64 3368
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %.not25.15 = icmp eq ptr %116, null
  br i1 %.not25.15, label %.loopexit, label %117

117:                                              ; preds = %114
  %118 = getelementptr inbounds i8, ptr %116, i64 120
  %119 = load ptr, ptr %118, align 8, !tbaa !14
  %.not26.15 = icmp eq ptr %119, null
  br i1 %.not26.15, label %.loopexit, label %120

120:                                              ; preds = %117
  tail call void %119(ptr noundef nonnull %116) #4
  br label %.loopexit

.loopexit:                                        ; preds = %114, %117, %120, %.lr.ph36
  %.1 = load ptr, ptr %.135, align 8, !tbaa !5
  %.not23 = icmp eq ptr %.1, null
  br i1 %.not23, label %._crit_edge, label %.lr.ph36, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit, %1, %.preheader28
  %121 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  tail call void @exit(i32 noundef %0) #6
  unreachable
}

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { 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, !6, i64 32}
!10 = !{!"Device", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!10, !6, i64 8}
!14 = !{!15, !6, i64 120}
!15 = !{!"Mem", !10, i64 0, !6, i64 64, !7, i64 72, !6, i64 104, !6, i64 112, !6, i64 120}
!16 = distinct !{!16, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass