// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
leaq 0xb0e3(%rip), %rdi      # 0xe086
callq 0x6a1e
movq %rax, %rbx
movq %rax, 0x30(%rsp)
leaq 0xb0d9(%rip), %rdi      # 0xe090
callq 0x6a1e
movq %rax, %r14
movq %rax, 0x28(%rsp)
leaq 0xb0ca(%rip), %rdi      # 0xe095
callq 0x6a1e
movq %rax, %r15
movq %rax, 0x20(%rsp)
leaq 0xb0bd(%rip), %rdi      # 0xe09c
callq 0x6a1e
movq %rax, 0x18(%rsp)
andq $0x0, (%rsp)
leaq 0xb0ac(%rip), %rsi      # 0xe0a1
xorl %edi, %edi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xafa2
leaq 0xb867(%rip), %rdi      # 0xe878
leaq 0xd47a(%rip), %rsi      # 0x10492
callq 0x9743
movq %rax, 0x10(%rsp)
leaq 0xb184(%rip), %r12      # 0xe1ad
leaq 0xb18e(%rip), %rsi      # 0xe1be
movq %r12, %rdi
callq 0x9743
movq %rax, %r14
leaq 0xb17f(%rip), %rbp      # 0xe1c1
leaq 0xb229(%rip), %r13      # 0xe272
movq %rbp, %rdi
movq %r13, %rsi
callq 0x9743
leaq 0xb149(%rip), %rbx      # 0xe1a4
pushq $0x2
popq %r15
movl %r15d, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x97b5
movq %rax, %r14
movq %r12, %rdi
leaq 0xb13f(%rip), %rsi      # 0xe1be
callq 0x9743
movq %rax, %r12
movq %rbp, %rdi
movq %r13, %rsi
callq 0x9743
movl %r15d, %edi
movq %rbx, %rsi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x97b5
movq %rax, %rbx
leaq 0xb7c9(%rip), %rdi      # 0xe878
leaq 0xd3dc(%rip), %rsi      # 0x10492
callq 0x9743
leaq 0xd410(%rip), %rsi      # 0x104d2
pushq $0x4
popq %rdi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movq %rbx, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x97b5
movq %rax, %rbx
leaq 0xb0e9(%rip), %rsi      # 0xe1cd
leaq 0x6831(%rip), %r14      # 0x991c
leaq 0x6601(%rip), %r15      # 0x96f3
leaq 0x69fc(%rip), %r12      # 0x9af5
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
movq %rax, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r12, %r9
callq 0x9642
leaq 0xb0be(%rip), %rsi      # 0xe1d7
leaq 0xac1a(%rip), %r13      # 0xdd3a
pushq $0x79
popq %rcx
movl %eax, %edi
movq %r13, %rdx
callq 0x4040
leaq 0xb136(%rip), %rsi      # 0xe26a
movq %rbp, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r12, %r9
callq 0x95e0
leaq 0xb125(%rip), %rsi      # 0xe274
pushq $0x7b
popq %rcx
movl %eax, %edi
movq %r13, %rdx
callq 0x4040
movq %rbx, %rdi
callq 0x96f3
pushq $0x4
popq %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %rbp, %r8
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e12