; LLVM IR from brpapa/algorithms :: solutions/uri/1368.ll (Z9saoIguais5TcuboS_)

; 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.Tcubo = type { [6 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9saoIguais5TcuboS_(ptr noundef byval(%struct.Tcubo) align 8 %0, ptr noundef byval(%struct.Tcubo) align 8 %1) #0 {
  %3 = alloca i1, align 1
  %4 = alloca [6 x %struct.Tcubo], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 144, ptr %4) #3
  %8 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 0
  %9 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %10 = getelementptr inbounds [6 x i32], ptr %9, i64 0, i64 3
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %13 = getelementptr inbounds [6 x i32], ptr %12, i64 0, i64 0
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %16 = getelementptr inbounds [6 x i32], ptr %15, i64 0, i64 2
  %17 = load i32, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %19 = getelementptr inbounds [6 x i32], ptr %18, i64 0, i64 5
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %22 = getelementptr inbounds [6 x i32], ptr %21, i64 0, i64 4
  %23 = load i32, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %25 = getelementptr inbounds [6 x i32], ptr %24, i64 0, i64 1
  %26 = load i32, ptr %25, align 4, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %8, i32 noundef %11, i32 noundef %14, i32 noundef %17, i32 noundef %20, i32 noundef %23, i32 noundef %26)
  %27 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 1
  %28 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %29 = getelementptr inbounds [6 x i32], ptr %28, i64 0, i64 0
  %30 = load i32, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %32 = getelementptr inbounds [6 x i32], ptr %31, i64 0, i64 1
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %35 = getelementptr inbounds [6 x i32], ptr %34, i64 0, i64 2
  %36 = load i32, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %38 = getelementptr inbounds [6 x i32], ptr %37, i64 0, i64 3
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %41 = getelementptr inbounds [6 x i32], ptr %40, i64 0, i64 4
  %42 = load i32, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %44 = getelementptr inbounds [6 x i32], ptr %43, i64 0, i64 5
  %45 = load i32, ptr %44, align 4, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %27, i32 noundef %30, i32 noundef %33, i32 noundef %36, i32 noundef %39, i32 noundef %42, i32 noundef %45)
  %46 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 2
  %47 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %48 = getelementptr inbounds [6 x i32], ptr %47, i64 0, i64 0
  %49 = load i32, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %51 = getelementptr inbounds [6 x i32], ptr %50, i64 0, i64 2
  %52 = load i32, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %54 = getelementptr inbounds [6 x i32], ptr %53, i64 0, i64 3
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %57 = getelementptr inbounds [6 x i32], ptr %56, i64 0, i64 4
  %58 = load i32, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %60 = getelementptr inbounds [6 x i32], ptr %59, i64 0, i64 1
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %63 = getelementptr inbounds [6 x i32], ptr %62, i64 0, i64 5
  %64 = load i32, ptr %63, align 4, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %46, i32 noundef %49, i32 noundef %52, i32 noundef %55, i32 noundef %58, i32 noundef %61, i32 noundef %64)
  %65 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 3
  %66 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %67 = getelementptr inbounds [6 x i32], ptr %66, i64 0, i64 5
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %70 = getelementptr inbounds [6 x i32], ptr %69, i64 0, i64 3
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %73 = getelementptr inbounds [6 x i32], ptr %72, i64 0, i64 2
  %74 = load i32, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %76 = getelementptr inbounds [6 x i32], ptr %75, i64 0, i64 1
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %79 = getelementptr inbounds [6 x i32], ptr %78, i64 0, i64 4
  %80 = load i32, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %82 = getelementptr inbounds [6 x i32], ptr %81, i64 0, i64 0
  %83 = load i32, ptr %82, align 8, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %65, i32 noundef %68, i32 noundef %71, i32 noundef %74, i32 noundef %77, i32 noundef %80, i32 noundef %83)
  %84 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 4
  %85 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %86 = getelementptr inbounds [6 x i32], ptr %85, i64 0, i64 0
  %87 = load i32, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %89 = getelementptr inbounds [6 x i32], ptr %88, i64 0, i64 4
  %90 = load i32, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %92 = getelementptr inbounds [6 x i32], ptr %91, i64 0, i64 1
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %95 = getelementptr inbounds [6 x i32], ptr %94, i64 0, i64 2
  %96 = load i32, ptr %95, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %98 = getelementptr inbounds [6 x i32], ptr %97, i64 0, i64 3
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %101 = getelementptr inbounds [6 x i32], ptr %100, i64 0, i64 5
  %102 = load i32, ptr %101, align 4, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %84, i32 noundef %87, i32 noundef %90, i32 noundef %93, i32 noundef %96, i32 noundef %99, i32 noundef %102)
  %103 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 5
  %104 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %105 = getelementptr inbounds [6 x i32], ptr %104, i64 0, i64 1
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %108 = getelementptr inbounds [6 x i32], ptr %107, i64 0, i64 5
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %111 = getelementptr inbounds [6 x i32], ptr %110, i64 0, i64 2
  %112 = load i32, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %114 = getelementptr inbounds [6 x i32], ptr %113, i64 0, i64 0
  %115 = load i32, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %117 = getelementptr inbounds [6 x i32], ptr %116, i64 0, i64 4
  %118 = load i32, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Tcubo, ptr %0, i32 0, i32 0
  %120 = getelementptr inbounds [6 x i32], ptr %119, i64 0, i64 3
  %121 = load i32, ptr %120, align 4, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %103, i32 noundef %106, i32 noundef %109, i32 noundef %112, i32 noundef %115, i32 noundef %118, i32 noundef %121)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %147, %2
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = icmp slt i32 %123, 6
  br i1 %124, label %126, label %125

125:                                              ; preds = %122
  store i32 2, ptr %6, align 4
  br label %150

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %141, %126
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = icmp slt i32 %128, 4
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  store i32 5, ptr %6, align 4
  br label %144

131:                                              ; preds = %127
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 %133
  %135 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %134, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %135, label %136, label %137

136:                                              ; preds = %131
  store i1 true, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %144

137:                                              ; preds = %131
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [6 x %struct.Tcubo], ptr %4, i64 0, i64 %139
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %140)
  br label %141

141:                                              ; preds = %137
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %7, align 4, !tbaa !5
  br label %127, !llvm.loop !9

144:                                              ; preds = %136, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %145 = load i32, ptr %6, align 4
  switch i32 %145, label %150 [
    i32 5, label %146
  ]

146:                                              ; preds = %144
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %5, align 4, !tbaa !5
  br label %122, !llvm.loop !11

150:                                              ; preds = %144, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  %151 = load i32, ptr %6, align 4
  switch i32 %151, label %153 [
    i32 2, label %152
  ]

152:                                              ; preds = %150
  store i1 false, ptr %3, align 1
  store i32 1, ptr %6, align 4
  br label %153

153:                                              ; preds = %152, %150
  call void @llvm.lifetime.end.p0(i64 144, ptr %4) #3
  %154 = load i1, ptr %3, align 1
  ret i1 %154
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24)) #2 align 2

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

attributes #0 = { mustprogress 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 = { mustprogress 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; 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.Tcubo = type { [6 x i32] }

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z9saoIguais5TcuboS_(ptr nocapture noundef readonly byval(%struct.Tcubo) align 8 %0, ptr noundef byval(%struct.Tcubo) align 8 %1) local_unnamed_addr #0 {
.preheader:
  %2 = alloca [6 x %struct.Tcubo], align 16
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %2) #2
  %3 = getelementptr inbounds i8, ptr %0, i64 12
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = load i32, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 20
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !5
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %2, i32 noundef %4, i32 noundef %5, i32 noundef %7, i32 noundef %9, i32 noundef %11, i32 noundef %13)
  %14 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %14, i32 noundef %5, i32 noundef %13, i32 noundef %7, i32 noundef %4, i32 noundef %11, i32 noundef %9)
  %15 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %15, i32 noundef %5, i32 noundef %7, i32 noundef %4, i32 noundef %11, i32 noundef %13, i32 noundef %9)
  %16 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %16, i32 noundef %9, i32 noundef %4, i32 noundef %7, i32 noundef %13, i32 noundef %11, i32 noundef %5)
  %17 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %17, i32 noundef %5, i32 noundef %11, i32 noundef %13, i32 noundef %7, i32 noundef %4, i32 noundef %9)
  %18 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24) %18, i32 noundef %13, i32 noundef %9, i32 noundef %7, i32 noundef %5, i32 noundef %11, i32 noundef %4)
  %19 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %19, label %.critedge14, label %20

20:                                               ; preds = %.preheader
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %2)
  %21 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %21, label %.critedge14, label %22

22:                                               ; preds = %20
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %2)
  %23 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %23, label %.critedge14, label %24

24:                                               ; preds = %22
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %2)
  %25 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %25, label %.critedge14, label %.critedge

.critedge:                                        ; preds = %24
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %2)
  %26 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %26, label %.critedge14, label %27

27:                                               ; preds = %.critedge
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %14)
  %28 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %28, label %.critedge14, label %29

29:                                               ; preds = %27
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %14)
  %30 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %30, label %.critedge14, label %31

31:                                               ; preds = %29
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %14)
  %32 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %32, label %.critedge14, label %.critedge.1

.critedge.1:                                      ; preds = %31
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %14)
  %33 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %33, label %.critedge14, label %34

34:                                               ; preds = %.critedge.1
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %15)
  %35 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %35, label %.critedge14, label %36

36:                                               ; preds = %34
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %15)
  %37 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %37, label %.critedge14, label %38

38:                                               ; preds = %36
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %15)
  %39 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %39, label %.critedge14, label %.critedge.2

.critedge.2:                                      ; preds = %38
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %15)
  %40 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %40, label %.critedge14, label %41

41:                                               ; preds = %.critedge.2
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %16)
  %42 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %42, label %.critedge14, label %43

43:                                               ; preds = %41
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %16)
  %44 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %44, label %.critedge14, label %45

45:                                               ; preds = %43
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %16)
  %46 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %46, label %.critedge14, label %.critedge.3

.critedge.3:                                      ; preds = %45
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %16)
  %47 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %47, label %.critedge14, label %48

48:                                               ; preds = %.critedge.3
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  %49 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %49, label %.critedge14, label %50

50:                                               ; preds = %48
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  %51 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %51, label %.critedge14, label %52

52:                                               ; preds = %50
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  %53 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %53, label %.critedge14, label %.critedge.4

.critedge.4:                                      ; preds = %52
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  %54 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %54, label %.critedge14, label %55

55:                                               ; preds = %.critedge.4
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %18)
  %56 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %56, label %.critedge14, label %57

57:                                               ; preds = %55
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %18)
  %58 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %58, label %.critedge14, label %59

59:                                               ; preds = %57
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %18)
  %60 = call noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(24) %1)
  br i1 %60, label %.critedge14, label %.critedge.5

.critedge.5:                                      ; preds = %59
  call void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24) %18)
  br label %.critedge14

.critedge14:                                      ; preds = %.preheader, %20, %22, %24, %.critedge, %27, %29, %31, %.critedge.1, %34, %36, %38, %.critedge.2, %41, %43, %45, %.critedge.3, %48, %50, %52, %.critedge.4, %55, %57, %59, %.critedge.5
  %61 = phi i1 [ false, %.critedge.5 ], [ true, %59 ], [ true, %57 ], [ true, %55 ], [ true, %.critedge.4 ], [ true, %52 ], [ true, %50 ], [ true, %48 ], [ true, %.critedge.3 ], [ true, %45 ], [ true, %43 ], [ true, %41 ], [ true, %.critedge.2 ], [ true, %38 ], [ true, %36 ], [ true, %34 ], [ true, %.critedge.1 ], [ true, %31 ], [ true, %29 ], [ true, %27 ], [ true, %.critedge ], [ true, %24 ], [ true, %22 ], [ true, %20 ], [ true, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #2
  ret i1 %61
}

; 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 nounwind uwtable
declare dso_local void @_ZN5Tcubo9rotacionaEiiiiii(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5TcuboeqERS_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Tcubo18giraSentidoHorarioEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

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

attributes #0 = { mustprogress 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 = { 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++ TBAA"}


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