// File: harry830622[P]floorplanner/src/././json.hpp
// Function: nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::basic_json(std::initializer_list<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>, bool, nlohmann::detail::value_t)
basic_json(std::initializer_list<basic_json> init,
               bool type_deduction = true,
               value_t manual_type = value_t::array)
    {
        // check if each element is an array with two elements whose first
        // element is a string
        bool is_an_object = std::all_of(init.begin(), init.end(),
                                        [](const basic_json & element)
        {
            return element.is_array() and element.size() == 2 and element[0].is_string();
        });

        // adjust type if type deduction is not wanted
        if (not type_deduction)
        {
            // if array is wanted, do not create an object though possible
            if (manual_type == value_t::array)
            {
                is_an_object = false;
            }

            // if object is wanted but impossible, throw an exception
            if (manual_type == value_t::object and not is_an_object)
            {
                JSON_THROW(std::domain_error("cannot create object from initializer list"));
            }
        }

        if (is_an_object)
        {
            // the initializer list is a list of pairs -> create object
            m_type = value_t::object;
            m_value = value_t::object;

            std::for_each(init.begin(), init.end(), [this](const basic_json & element)
            {
                m_value.object->emplace(*(element[0].m_value.string), element[1]);
            });
        }
        else
        {
            // the initializer list describes an array -> create array
            m_type = value_t::array;
            m_value.array = create<array_t>(init);
        }

        assert_invariant();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %r8b, %al
movq %rsi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
andb $0x1, %cl
movb %cl, -0x19(%rbp)
movb %al, -0x1a(%rbp)
movq -0x18(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movb $0x0, (%rdi)
addq $0x8, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x9290
leaq -0x10(%rbp), %rdi
callq 0x222a0
movq %rax, -0x50(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x222c0
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0x22260
andb $0x1, %al
movb %al, -0x1b(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x1c253
cmpb $0x2, -0x1a(%rbp)
jne 0x1c1f2
movb $0x0, -0x1b(%rbp)
cmpb $0x1, -0x1a(%rbp)
jne 0x1c251
testb $0x1, -0x1b(%rbp)
jne 0x1c251
movl $0x10, %edi
callq 0x9240
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x60(%rbp)
leaq 0x2ea73(%rip), %rsi     # 0x4ac8c
callq 0x9300
jmp 0x1c220
movq -0x60(%rbp), %rdi
movq 0x4fd15(%rip), %rsi     # 0x6bf40
movq 0x4fd4e(%rip), %rdx     # 0x6bf80
callq 0x9890
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x93a0
jmp 0x1c2d8
jmp 0x1c253
testb $0x1, -0x1b(%rbp)
je 0x1c2ae
movq -0x58(%rbp), %rax
movb $0x1, (%rax)
leaq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x1efb0
movq -0x58(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq -0x10(%rbp), %rdi
callq 0x222a0
movq %rax, -0x68(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x222c0
movq -0x68(%rbp), %rdi
movq %rax, %rsi
movq -0x58(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdx
callq 0x22300
movq %rax, -0x48(%rbp)
jmp 0x1c2c9
movq -0x58(%rbp), %rax
movb $0x2, (%rax)
leaq -0x10(%rbp), %rdi
callq 0x22350
movq %rax, %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rdi
callq 0x1d260
addq $0x70, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x98f0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)