// File: /workspace/github_c_makefile_star2_O1/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 0xd08b(%rip), %rdi      # 0x10086
callq 0x7191
movq %rax, %rbx
movq %rax, 0x20(%rsp)
leaq 0xd081(%rip), %rdi      # 0x10090
callq 0x7191
movq %rax, %r14
movq %rax, 0x18(%rsp)
leaq 0xd072(%rip), %rdi      # 0x10095
callq 0x7191
movq %rax, %r15
movq %rax, 0x10(%rsp)
leaq 0xd065(%rip), %rdi      # 0x1009c
callq 0x7191
movq %rax, %r12
movq $0x0, (%rsp)
leaq 0xd053(%rip), %rsi      # 0x100a1
xorl %edi, %edi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xcd98
leaq 0xd80e(%rip), %rdi      # 0x10878
leaq 0xf401(%rip), %rsi      # 0x12472
callq 0xab6f
movq %rax, 0x8(%rsp)
leaq 0xd12b(%rip), %r15      # 0x101ad
leaq 0xd135(%rip), %rsi      # 0x101be
movq %r15, %rdi
callq 0xab6f
movq %rax, %r14
leaq 0xd126(%rip), %rbp      # 0x101c1
leaq 0xd1d0(%rip), %r13      # 0x10272
movq %rbp, %rdi
movq %r13, %rsi
callq 0xab6f
leaq 0xd0f0(%rip), %rbx      # 0x101a4
movl $0x2, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xabe9
movq %rax, %r14
movq %r15, %rdi
leaq 0xd0e8(%rip), %rsi      # 0x101be
callq 0xab6f
movq %rax, %r15
movq %rbp, %rdi
movq %r13, %rsi
callq 0xab6f
movl $0x2, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xabe9
movq %rax, %rbx
leaq 0xd770(%rip), %rdi      # 0x10878
leaq 0xf363(%rip), %rsi      # 0x12472
callq 0xab6f
leaq 0xf397(%rip), %rsi      # 0x124b2
movl $0x4, %edi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movq %rbx, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xabe9
movq %rax, %rbx
leaq 0xd08e(%rip), %rsi      # 0x101cd
leaq 0x7c53(%rip), %r14      # 0xad99
leaq 0x79ca(%rip), %r15      # 0xab17
leaq 0x7e2a(%rip), %r13      # 0xaf7e
movq %r12, %rdi
movq %rax, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r13, %r9
callq 0xaa3c
leaq 0xd068(%rip), %rsi      # 0x101d7
leaq 0xcbc4(%rip), %rbp      # 0xfd3a
movl %eax, %edi
movq %rbp, %rdx
movl $0x79, %ecx
callq 0x4050
leaq 0xd0de(%rip), %rsi      # 0x1026a
movq %r12, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r13, %r9
callq 0xa9c0
leaq 0xd0cd(%rip), %rsi      # 0x10274
movl %eax, %edi
movq %rbp, %rdx
movl $0x7b, %ecx
callq 0x4050
movq %rbx, %rdi
callq 0xab17
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 0x75e0