// File: /workspace/github_c_makefile_star2_O3/orangeduck[P]mpc/tests/grammar.c
// Function: test_doge
void test_doge(void) {
  
  mpc_ast_t *t0;  
  mpc_parser_t* Adjective = mpc_new("adjective");
  mpc_parser_t* Noun      = mpc_new("noun");
  mpc_parser_t* Phrase    = mpc_new("phrase");
  mpc_parser_t* Doge      = mpc_new("doge");

  mpca_lang(MPCA_LANG_DEFAULT,
    " adjective : \"wow\" | \"many\" | \"so\" | \"such\";                 "
    " noun      : \"lisp\" | \"language\" | \"c\" | \"book\" | \"build\"; "
    " phrase    : <adjective> <noun>;                                     "
    " doge      : /^/ <phrase>* /$/;                                      ",
    Adjective, Noun, Phrase, Doge, NULL);
  
  t0 = 
      mpc_ast_build(4, ">", 
          mpc_ast_new("regex", ""),
          mpc_ast_build(2, "phrase|>", 
            mpc_ast_new("adjective|string", "so"),
            mpc_ast_new("noun|string", "c")),
          mpc_ast_build(2, "phrase|>", 
            mpc_ast_new("adjective|string", "so"),
            mpc_ast_new("noun|string", "c")),
          mpc_ast_new("regex", "")
        );
            
  PT_ASSERT(mpc_test_pass(Doge, "so c so c", t0, (int(*)(const void*,const void*))mpc_ast_eq, (mpc_dtor_t)mpc_ast_delete, (void(*)(const void*))mpc_ast_print));
 
  PT_ASSERT(mpc_test_fail(Doge, "so a so c", t0, (int(*)(const void*,const void*))mpc_ast_eq, (mpc_dtor_t)mpc_ast_delete, (void(*)(const void*))mpc_ast_print));
  
  mpc_ast_delete(t0);
  
  mpc_cleanup(4, Adjective, Noun, Phrase, Doge);
  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0xd047(%rip), %rdi      # 0x10086
callq 0x71ca
movq %rax, %rbx
movq %rax, 0x20(%rsp)
leaq 0xd03d(%rip), %rdi      # 0x10090
callq 0x71ca
movq %rax, %r14
movq %rax, 0x18(%rsp)
leaq 0xd02e(%rip), %rdi      # 0x10095
callq 0x71ca
movq %rax, %r15
movq %rax, 0x10(%rsp)
leaq 0xd021(%rip), %rdi      # 0x1009c
callq 0x71ca
movq %rax, %r12
movq $0x0, (%rsp)
leaq 0xd00f(%rip), %rsi      # 0x100a1
xorl %edi, %edi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xccc2
leaq 0xd7ca(%rip), %rdi      # 0x10878
leaq 0xf3ed(%rip), %rsi      # 0x124a2
callq 0xaa70
movq %rax, 0x8(%rsp)
leaq 0xd0e7(%rip), %r15      # 0x101ad
leaq 0xd0f1(%rip), %rsi      # 0x101be
movq %r15, %rdi
callq 0xaa70
movq %rax, %r14
leaq 0xd0e2(%rip), %rbp      # 0x101c1
leaq 0xd18c(%rip), %r13      # 0x10272
movq %rbp, %rdi
movq %r13, %rsi
callq 0xaa70
leaq 0xd0ac(%rip), %rbx      # 0x101a4
movl $0x2, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xaaea
movq %rax, %r14
movq %r15, %rdi
leaq 0xd0a4(%rip), %rsi      # 0x101be
callq 0xaa70
movq %rax, %r15
movq %rbp, %rdi
movq %r13, %rsi
callq 0xaa70
movl $0x2, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xaaea
movq %rax, %rbx
leaq 0xd72c(%rip), %rdi      # 0x10878
leaq 0xf34f(%rip), %rsi      # 0x124a2
callq 0xaa70
leaq 0xf383(%rip), %rsi      # 0x124e2
movl $0x4, %edi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movq %rbx, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xaaea
movq %rax, %rbx
leaq 0xd04a(%rip), %rsi      # 0x101cd
leaq 0x7b10(%rip), %r14      # 0xac9a
leaq 0x7887(%rip), %r15      # 0xaa18
leaq 0x7cdf(%rip), %r13      # 0xae77
movq %r12, %rdi
movq %rax, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r13, %r9
callq 0xa93d
leaq 0xd024(%rip), %rsi      # 0x101d7
leaq 0xcb80(%rip), %rbp      # 0xfd3a
movl %eax, %edi
movq %rbp, %rdx
movl $0x79, %ecx
callq 0x4094
leaq 0xd09a(%rip), %rsi      # 0x1026a
movq %r12, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r13, %r9
callq 0xa8c1
leaq 0xd089(%rip), %rsi      # 0x10274
movl %eax, %edi
movq %rbp, %rdx
movl $0x7b, %ecx
callq 0x4094
movq %rbx, %rdi
callq 0xaa18
movl $0x4, %edi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %r12, %r8
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x75de