#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
struct AlignFlags {
uint8_t bits;
constexpr explicit operator bool() const {
return !!bits;
}
constexpr AlignFlags operator~() const {
return AlignFlags { static_cast<decltype(bits)>(~bits) };
}
constexpr AlignFlags operator|(const AlignFlags& other) const {
return AlignFlags { static_cast<decltype(bits)>(this->bits | other.bits) };
}
AlignFlags& operator|=(const AlignFlags& other) {
*this = (*this | other);
return *this;
}
constexpr AlignFlags operator&(const AlignFlags& other) const {
return AlignFlags { static_cast<decltype(bits)>(this->bits & other.bits) };
}
AlignFlags& operator&=(const AlignFlags& other) {
*this = (*this & other);
return *this;
}
constexpr AlignFlags operator^(const AlignFlags& other) const {
return AlignFlags { static_cast<decltype(bits)>(this->bits ^ other.bits) };
}
AlignFlags& operator^=(const AlignFlags& other) {
*this = (*this ^ other);
return *this;
}
};
constexpr static const AlignFlags AlignFlags_AUTO = AlignFlags{
(uint8_t)0
};
constexpr static const AlignFlags AlignFlags_NORMAL = AlignFlags{
(uint8_t)1
};
constexpr static const AlignFlags AlignFlags_START = AlignFlags{
(uint8_t)(1 << 1)
};
constexpr static const AlignFlags AlignFlags_END = AlignFlags{
(uint8_t)(1 << 2)
};
constexpr static const AlignFlags AlignFlags_ALIAS = AlignFlags{
(uint8_t)(AlignFlags_END).bits
};
constexpr static const AlignFlags AlignFlags_FLEX_START = AlignFlags{
(uint8_t)(1 << 3)
};
constexpr static const AlignFlags AlignFlags_MIXED = AlignFlags{
(uint8_t)(((1 << 4) | (AlignFlags_FLEX_START).bits) | (AlignFlags_END).bits)
};
constexpr static const AlignFlags AlignFlags_MIXED_SELF = AlignFlags{
(uint8_t)(((1 << 5) | (AlignFlags_FLEX_START).bits) | (AlignFlags_END).bits)
};
struct DebugFlags {
uint32_t bits;
constexpr explicit operator bool() const {
return !!bits;
}
constexpr DebugFlags operator~() const {
return DebugFlags { static_cast<decltype(bits)>(~bits) };
}
constexpr DebugFlags operator|(const DebugFlags& other) const {
return DebugFlags { static_cast<decltype(bits)>(this->bits | other.bits) };
}
DebugFlags& operator|=(const DebugFlags& other) {
*this = (*this | other);
return *this;
}
constexpr DebugFlags operator&(const DebugFlags& other) const {
return DebugFlags { static_cast<decltype(bits)>(this->bits & other.bits) };
}
DebugFlags& operator&=(const DebugFlags& other) {
*this = (*this & other);
return *this;
}
constexpr DebugFlags operator^(const DebugFlags& other) const {
return DebugFlags { static_cast<decltype(bits)>(this->bits ^ other.bits) };
}
DebugFlags& operator^=(const DebugFlags& other) {
*this = (*this ^ other);
return *this;
}
};
constexpr static const DebugFlags DebugFlags_BIGGEST_ALLOWED = DebugFlags{
(uint32_t)(1 << 31)
};
struct LargeFlags {
uint64_t bits;
constexpr explicit operator bool() const {
return !!bits;
}
constexpr LargeFlags operator~() const {
return LargeFlags { static_cast<decltype(bits)>(~bits) };
}
constexpr LargeFlags operator|(const LargeFlags& other) const {
return LargeFlags { static_cast<decltype(bits)>(this->bits | other.bits) };
}
LargeFlags& operator|=(const LargeFlags& other) {
*this = (*this | other);
return *this;
}
constexpr LargeFlags operator&(const LargeFlags& other) const {
return LargeFlags { static_cast<decltype(bits)>(this->bits & other.bits) };
}
LargeFlags& operator&=(const LargeFlags& other) {
*this = (*this & other);
return *this;
}
constexpr LargeFlags operator^(const LargeFlags& other) const {
return LargeFlags { static_cast<decltype(bits)>(this->bits ^ other.bits) };
}
LargeFlags& operator^=(const LargeFlags& other) {
*this = (*this ^ other);
return *this;
}
};
constexpr static const LargeFlags LargeFlags_LARGE_SHIFT = LargeFlags{
(uint64_t)(1ull << 44)
};
constexpr static const LargeFlags LargeFlags_INVERTED = LargeFlags{
(uint64_t)~(LargeFlags_LARGE_SHIFT).bits
};
struct OutOfLine {
uint32_t _0;
constexpr explicit operator bool() const {
return !!_0;
}
constexpr OutOfLine operator~() const {
return OutOfLine { static_cast<decltype(_0)>(~_0) };
}
constexpr OutOfLine operator|(const OutOfLine& other) const {
return OutOfLine { static_cast<decltype(_0)>(this->_0 | other._0) };
}
OutOfLine& operator|=(const OutOfLine& other) {
*this = (*this | other);
return *this;
}
constexpr OutOfLine operator&(const OutOfLine& other) const {
return OutOfLine { static_cast<decltype(_0)>(this->_0 & other._0) };
}
OutOfLine& operator&=(const OutOfLine& other) {
*this = (*this & other);
return *this;
}
constexpr OutOfLine operator^(const OutOfLine& other) const {
return OutOfLine { static_cast<decltype(_0)>(this->_0 ^ other._0) };
}
OutOfLine& operator^=(const OutOfLine& other) {
*this = (*this ^ other);
return *this;
}
};
constexpr static const OutOfLine OutOfLine_A = OutOfLine{
(uint32_t)1
};
constexpr static const OutOfLine OutOfLine_B = OutOfLine{
(uint32_t)2
};
constexpr static const OutOfLine OutOfLine_AB = OutOfLine{
(uint32_t)((OutOfLine_A)._0 | (OutOfLine_B)._0)
};
extern "C" {
void root(AlignFlags flags,
DebugFlags bigger_flags,
LargeFlags largest_flags,
OutOfLine out_of_line);
}