; LLVM IR from bqi343/cp-notebook :: Implementations/content/graphs (12)/Advanced (maxCliqueTesting)

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

%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [2 x i64] }
%"class.std::bitset<128>::reference" = type { ptr, i64 }

@_ZN7maximal3adjE = external dso_local global [128 x %"class.std::bitset"], align 16
@_ZN7maximal1NE = external dso_local global i32, align 4
@_ZN7maximal3ansE = external dso_local global i32, align 4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maximal7cliquesESt6bitsetILm128EES1_S1_(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5) #1 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::bitset", align 8
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca %"class.std::bitset", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::bitset", align 8
  %13 = alloca %"class.std::bitset", align 8
  %14 = alloca %"class.std::bitset", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::bitset<128>::reference", align 8
  %17 = alloca %"class.std::bitset<128>::reference", align 8
  %18 = alloca %"class.std::bitset", align 8
  %19 = alloca %"class.std::bitset", align 8
  %20 = alloca %"class.std::bitset", align 8
  %21 = alloca %"class.std::bitset<128>::reference", align 8
  %22 = alloca %"class.std::bitset<128>::reference", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::bitset<128>::reference", align 8
  %26 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  store i64 %0, ptr %26, align 8
  %27 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  store i64 %1, ptr %27, align 8
  %28 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  store i64 %2, ptr %28, align 8
  %29 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  store i64 %3, ptr %29, align 8
  %30 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  store i64 %4, ptr %30, align 8
  %31 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  store i64 %5, ptr %31, align 8
  %32 = call noundef zeroext i1 @_ZNKSt6bitsetILm128EE3anyEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br i1 %32, label %40, label %33

33:                                               ; preds = %6
  %34 = call noundef zeroext i1 @_ZNKSt6bitsetILm128EE3anyEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br i1 %34, label %39, label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %36 = call noundef i64 @_ZNKSt6bitsetILm128EE5countEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  %37 = trunc i64 %36 to i32
  store i32 %37, ptr %10, align 4, !tbaa !5
  %38 = call noundef zeroext i1 @_Z5ckmaxIiEbRT_RKS0_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7maximal3ansE, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %39

39:                                               ; preds = %35, %33
  br label %131

40:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %41 = call { i64, i64 } @_ZStorILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %42 = getelementptr inbounds %"class.std::bitset", ptr %12, i32 0, i32 0
  %43 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 0
  %45 = extractvalue { i64, i64 } %41, 0
  store i64 %45, ptr %44, align 8
  %46 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 1
  %47 = extractvalue { i64, i64 } %41, 1
  store i64 %47, ptr %46, align 8
  %48 = call noundef i64 @_ZNKSt6bitsetILm128EE11_Find_firstEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  %49 = trunc i64 %48 to i32
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  store i32 %49, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [128 x %"class.std::bitset"], ptr @_ZN7maximal3adjE, i64 0, i64 %51
  %53 = call { i64, i64 } @_ZNKSt6bitsetILm128EEcoEv(ptr noundef nonnull align 8 dereferenceable(16) %52) #5
  %54 = getelementptr inbounds %"class.std::bitset", ptr %14, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds { i64, i64 }, ptr %55, i32 0, i32 0
  %57 = extractvalue { i64, i64 } %53, 0
  store i64 %57, ptr %56, align 8
  %58 = getelementptr inbounds { i64, i64 }, ptr %55, i32 0, i32 1
  %59 = extractvalue { i64, i64 } %53, 1
  store i64 %59, ptr %58, align 8
  %60 = call { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  %61 = getelementptr inbounds %"class.std::bitset", ptr %13, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds { i64, i64 }, ptr %62, i32 0, i32 0
  %64 = extractvalue { i64, i64 } %60, 0
  store i64 %64, ptr %63, align 8
  %65 = getelementptr inbounds { i64, i64 }, ptr %62, i32 0, i32 1
  %66 = extractvalue { i64, i64 } %60, 1
  store i64 %66, ptr %65, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %127, %40
  %68 = load i32, ptr %15, align 4, !tbaa !5
  %69 = load i32, ptr @_ZN7maximal1NE, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %130

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %73 = load i32, ptr %15, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<128>::reference") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %74)
  %75 = call noundef zeroext i1 @_ZNKSt6bitsetILm128EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br i1 %75, label %76, label %126

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %77 = load i32, ptr %15, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<128>::reference") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %78)
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext true) #5
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [128 x %"class.std::bitset"], ptr @_ZN7maximal3adjE, i64 0, i64 %81
  %83 = call { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %82) #5
  %84 = getelementptr inbounds %"class.std::bitset", ptr %18, i32 0, i32 0
  %85 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds { i64, i64 }, ptr %85, i32 0, i32 0
  %87 = extractvalue { i64, i64 } %83, 0
  store i64 %87, ptr %86, align 8
  %88 = getelementptr inbounds { i64, i64 }, ptr %85, i32 0, i32 1
  %89 = extractvalue { i64, i64 } %83, 1
  store i64 %89, ptr %88, align 8
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [128 x %"class.std::bitset"], ptr @_ZN7maximal3adjE, i64 0, i64 %91
  %93 = call { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %92) #5
  %94 = getelementptr inbounds %"class.std::bitset", ptr %19, i32 0, i32 0
  %95 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds { i64, i64 }, ptr %95, i32 0, i32 0
  %97 = extractvalue { i64, i64 } %93, 0
  store i64 %97, ptr %96, align 8
  %98 = getelementptr inbounds { i64, i64 }, ptr %95, i32 0, i32 1
  %99 = extractvalue { i64, i64 } %93, 1
  store i64 %99, ptr %98, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %9, i64 16, i1 false)
  %100 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %101 = load i64, ptr %100, align 8
  %102 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %103 = load i64, ptr %102, align 8
  %104 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %105 = load i64, ptr %104, align 8
  %106 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %107 = load i64, ptr %106, align 8
  %108 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %109 = load i64, ptr %108, align 8
  %110 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %111 = load i64, ptr %110, align 8
  call void @_ZN7maximal7cliquesESt6bitsetILm128EES1_S1_(i64 %101, i64 %103, i64 %105, i64 %107, i64 %109, i64 %111)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<128>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %113)
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext false) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %115 = load i32, ptr %15, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  invoke void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<128>::reference") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %116)
          to label %117 unwind label %122

117:                                              ; preds = %76
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %114) #5
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %119 = load i32, ptr %15, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<128>::reference") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %120)
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %25, i1 noundef zeroext true) #5
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %126

122:                                              ; preds = %76
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %23, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %132

126:                                              ; preds = %117, %72
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !5
  br label %67, !llvm.loop !9

130:                                              ; preds = %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %131

131:                                              ; preds = %130, %39
  ret void

132:                                              ; preds = %122
  %133 = load ptr, ptr %23, align 8
  %134 = load i32, ptr %24, align 4
  %135 = insertvalue { ptr, i32 } poison, ptr %133, 0
  %136 = insertvalue { ptr, i32 } %135, i32 %134, 1
  resume { ptr, i32 } %136
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm128EE3anyEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm128EE5countEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZStorILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm128EE11_Find_firstEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZNKSt6bitsetILm128EEcoEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<128>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm128EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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


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

%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [2 x i64] }
%"class.std::bitset<128>::reference" = type { ptr, i64 }

@_ZN7maximal3adjE = external dso_local global [128 x %"class.std::bitset"], align 16
@_ZN7maximal1NE = external dso_local local_unnamed_addr global i32, align 4
@_ZN7maximal3ansE = external dso_local global i32, align 4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7maximal7cliquesESt6bitsetILm128EES1_S1_(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::bitset", align 8
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca %"class.std::bitset", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::bitset", align 8
  %12 = alloca %"class.std::bitset", align 8
  %13 = alloca %"class.std::bitset", align 8
  %14 = alloca %"class.std::bitset<128>::reference", align 8
  %15 = alloca %"class.std::bitset<128>::reference", align 8
  %16 = alloca %"class.std::bitset<128>::reference", align 8
  %17 = alloca %"class.std::bitset<128>::reference", align 8
  %18 = alloca %"class.std::bitset<128>::reference", align 8
  store i64 %0, ptr %7, align 8
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %1, ptr %19, align 8
  store i64 %2, ptr %8, align 8
  %20 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %3, ptr %20, align 8
  store i64 %4, ptr %9, align 8
  %21 = getelementptr inbounds i8, ptr %9, i64 8
  store i64 %5, ptr %21, align 8
  %22 = call noundef zeroext i1 @_ZNKSt6bitsetILm128EE3anyEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #3
  br i1 %22, label %29, label %23

23:                                               ; preds = %6
  %24 = call noundef zeroext i1 @_ZNKSt6bitsetILm128EE3anyEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #3
  br i1 %24, label %64, label %25

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  %26 = call noundef i64 @_ZNKSt6bitsetILm128EE5countEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #3
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %10, align 4, !tbaa !5
  %28 = call noundef zeroext i1 @_Z5ckmaxIiEbRT_RKS0_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7maximal3ansE, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  br label %64

29:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %30 = call { i64, i64 } @_ZStorILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #3
  %31 = extractvalue { i64, i64 } %30, 0
  store i64 %31, ptr %11, align 8
  %32 = getelementptr inbounds i8, ptr %11, i64 8
  %33 = extractvalue { i64, i64 } %30, 1
  store i64 %33, ptr %32, align 8
  %34 = call noundef i64 @_ZNKSt6bitsetILm128EE11_Find_firstEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  %sext = shl i64 %34, 32
  %35 = ashr exact i64 %sext, 32
  %36 = getelementptr inbounds [128 x %"class.std::bitset"], ptr @_ZN7maximal3adjE, i64 0, i64 %35
  %37 = call { i64, i64 } @_ZNKSt6bitsetILm128EEcoEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #3
  %38 = extractvalue { i64, i64 } %37, 0
  store i64 %38, ptr %13, align 8
  %39 = getelementptr inbounds i8, ptr %13, i64 8
  %40 = extractvalue { i64, i64 } %37, 1
  store i64 %40, ptr %39, align 8
  %41 = call { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %13) #3
  %42 = extractvalue { i64, i64 } %41, 0
  store i64 %42, ptr %12, align 8
  %43 = getelementptr inbounds i8, ptr %12, i64 8
  %44 = extractvalue { i64, i64 } %41, 1
  store i64 %44, ptr %43, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  %45 = load i32, ptr @_ZN7maximal1NE, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %60, %29
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  br label %64

.lr.ph:                                           ; preds = %29, %60
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ 0, %29 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<128>::reference") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %indvars.iv)
  %47 = call noundef zeroext i1 @_ZNKSt6bitsetILm128EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #3
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  br i1 %47, label %48, label %60

48:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #3
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<128>::reference") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext true) #3
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #3
  %50 = getelementptr inbounds [128 x %"class.std::bitset"], ptr @_ZN7maximal3adjE, i64 0, i64 %indvars.iv
  %51 = call { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %50) #3
  %52 = extractvalue { i64, i64 } %51, 0
  %53 = extractvalue { i64, i64 } %51, 1
  %54 = call { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %50) #3
  %55 = extractvalue { i64, i64 } %54, 0
  %56 = extractvalue { i64, i64 } %54, 1
  %.sroa.0.0.copyload = load i64, ptr %9, align 8
  %.sroa.2.0.copyload = load i64, ptr %21, align 8
  call void @_ZN7maximal7cliquesESt6bitsetILm128EES1_S1_(i64 %52, i64 %53, i64 %55, i64 %56, i64 %.sroa.0.0.copyload, i64 %.sroa.2.0.copyload)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #3
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<128>::reference") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %indvars.iv)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %16, i1 noundef zeroext false) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #3
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<128>::reference") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv)
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %57) #3
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #3
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #3
  call void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<128>::reference") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv)
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext true) #3
  call void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #3
  br label %60

60:                                               ; preds = %.lr.ph, %48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = load i32, ptr @_ZN7maximal1NE, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !9

64:                                               ; preds = %23, %25, %._crit_edge
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm128EE3anyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5ckmaxIiEbRT_RKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm128EE5countEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZStorILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm128EE11_Find_firstEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZStanILm128EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZNKSt6bitsetILm128EEcoEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm128EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<128>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm128EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm128EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm128EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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


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