// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/tests/./../src/dataframe/schema.h
// Function: Schema::Schema(char const*)
Schema(const char* types) {
        assert(types != nullptr);
        bool schemaValid = true;
        size_t types_len =  strlen(types);
        //loop through character by character to validate schema.
        for (size_t i = 0; i < types_len; i++)
        {
            char c = types[i];
            //todo: find a better way to do this.
            if (!this->valid_col_char_(c)) {
                // the schema is invalid, create an empty schema.
                schemaValid = false;
                break;
            }
        }

        if (schemaValid) {
            if (this->capacity_ - 1 < types_len) {
                this->capacity_ = 2 * types_len;
            }
            //allocate a buffer.
            this->val_ = new char[this->capacity_ + 1];
            for (size_t i=0; i < types_len; i++) {
			    this->val_[i] = types[i];
		    }
            //set the empty_index_ to the length of types.
            this->empty_index_ = types_len;
        } else {
            this->val_ = new char[this->capacity_ + 1];
        }
        //null terminate the string.
        this->val_[this->capacity_] = '\0';

        //initialize num_rows
        this->num_rows_ = 0;
        //initialize the row and col maps.
        this->col_name_idx = new Map();
        this->row_name_idx = new Map();
        this->col_idx_name = new Map();
        this->row_idx_name = new Map();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %eax, %eax
movq %rax, 0x8(%rdi)
leaq 0x1c4d7(%rip), %rcx     # 0x2c980
movq %rcx, (%rdi)
movq $0x64, 0x10(%rdi)
movq %rax, 0x20(%rdi)
testq %rsi, %rsi
je 0x105e6
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x70f0
movq %rax, %r15
testq %rax, %rax
je 0x10517
leaq -0x1(%r15), %rdx
movb $0x1, %al
xorl %esi, %esi
xorl %edi, %edi
movb (%r14,%rdi), %cl
addb $-0x42, %cl
cmpb $0x12, %cl
setb %r8b
movl $0x20095, %r9d          # imm = 0x20095
shrl %cl, %r9d
andb %r8b, %r9b
movzbl %al, %eax
cmovel %esi, %eax
cmpb $0x1, %r9b
jne 0x10513
leaq 0x1(%rdi), %rcx
cmpq %rdi, %rdx
movq %rcx, %rdi
jne 0x104e1
testb $0x1, %al
je 0x10555
cmpq $0x64, %r15
jb 0x10525
leaq (%r15,%r15), %rax
movq %rax, 0x10(%rbx)
movq 0x10(%rbx), %rdi
incq %rdi
callq 0x7030
movq %rax, 0x18(%rbx)
testq %r15, %r15
je 0x1054f
xorl %eax, %eax
movb (%r14,%rax), %cl
movq 0x18(%rbx), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq %rax, %r15
jne 0x1053c
movq %r15, 0x20(%rbx)
jmp 0x10563
movl $0x65, %edi
callq 0x7030
movq %rax, 0x18(%rbx)
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movq $0x0, 0x28(%rbx)
movl $0x30, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
callq 0x1adf8
movq %r14, 0x30(%rbx)
movl $0x30, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
callq 0x1adf8
movq %r14, 0x38(%rbx)
movl $0x30, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
callq 0x1adf8
movq %r14, 0x40(%rbx)
movl $0x30, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
callq 0x1adf8
movq %r14, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x104eb(%rip), %rdi     # 0x20ad8
leaq 0x104f5(%rip), %rsi     # 0x20ae9
leaq 0x1050a(%rip), %rcx     # 0x20b05
movl $0x56, %edx
callq 0x7130
jmp 0x1060b
jmp 0x1060b
jmp 0x1060b
movq %rax, %rbx
movq %r14, %rdi
callq 0x71d0
movq %rbx, %rdi
callq 0x7350