// File: /workspace/github_cpp_makefile_star2_O1/yhirose[P]fizzbuzzlang/fzbz.cc
// Function: eval_for(peg::AstBase<peg::EmptyType> const&, std::shared_ptr<Environment>)
Value eval_for(const Ast& ast, shared_ptr<Environment> env) {
  auto ident = ast.nodes[0]->token;
  auto from = eval(*ast.nodes[1], env).get<long>();
  auto to = eval(*ast.nodes[2], env).get<long>();
  auto& expr = *ast.nodes[3];

  for (auto i = from; i <= to; i++) {
    auto call_env = make_shared<Environment>(env);
    call_env->set_value(ident, Value(i));
    eval(expr, call_env);
  }
  return Value();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movq 0xc0(%rsi), %rax
movq (%rax), %rcx
movq 0xb0(%rcx), %rsi
movq %rsi, -0xc8(%rbp)
movq 0xb8(%rcx), %rcx
movq %rcx, -0xc0(%rbp)
movq 0x10(%rax), %rsi
movq (%rdx), %rax
movq %rax, -0xa0(%rbp)
movq %rdx, -0x70(%rbp)
movq 0x8(%rdx), %rax
movq %rax, -0x98(%rbp)
testq %rax, %rax
je 0xa37e
movq 0x55c00(%rip), %rcx     # 0x5ff70
cmpb $0x0, (%rcx)
je 0xa37a
incl 0x8(%rax)
jmp 0xa37e
lock
incl 0x8(%rax)
leaq -0x68(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0x9c01
leaq -0x68(%rbp), %rdi
callq 0xeddc
movq %rax, %r15
leaq -0x68(%rbp), %rsi
movzbl 0x20(%rsi), %eax
leaq 0x55747(%rip), %rcx     # 0x5faf0
leaq -0xb0(%rbp), %rdi
callq *(%rcx,%rax,8)
movb $-0x1, -0x48(%rbp)
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xa3c8
callq 0x13612
movq 0xc0(%r13), %rax
movq 0x20(%rax), %rsi
movq -0x70(%rbp), %rcx
movq (%rcx), %rax
movq %rax, -0x90(%rbp)
movq 0x8(%rcx), %rax
movq %rax, -0x88(%rbp)
testq %rax, %rax
je 0xa406
movq 0x55b78(%rip), %rcx     # 0x5ff70
cmpb $0x0, (%rcx)
je 0xa402
incl 0x8(%rax)
jmp 0xa406
lock
incl 0x8(%rax)
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x9c01
leaq -0x68(%rbp), %rdi
callq 0xeddc
movq %rax, -0x30(%rbp)
movq %rbx, -0xb8(%rbp)
leaq -0x68(%rbp), %rsi
movzbl 0x20(%rsi), %eax
leaq -0xb0(%rbp), %rdi
leaq 0x556b0(%rip), %rcx     # 0x5faf0
callq *(%rcx,%rax,8)
movb $-0x1, -0x48(%rbp)
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0xa458
callq 0x13612
cmpq -0x30(%rbp), %r15
jg 0xa586
movq 0xc0(%r13), %rax
movq 0x30(%rax), %r13
incq -0x30(%rbp)
leaq -0x68(%rbp), %rbx
leaq -0xb0(%rbp), %r14
leaq -0xf8(%rbp), %r12
movq $0x0, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movq %rbx, %rdx
movq -0x70(%rbp), %rcx
callq 0x42ece
movq -0x40(%rbp), %rdi
movq %r15, -0x68(%rbp)
movb $0x2, -0x48(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xa8(%rbp)
addq $0x10, %rdi
movq %r14, %rsi
callq 0x3bf90
movq %rax, -0xd0(%rbp)
movzbl -0x48(%rbp), %eax
leaq -0xd0(%rbp), %rdi
movq %rbx, %rsi
leaq 0x55691(%rip), %rcx     # 0x5fb80
callq *(%rcx,%rax,8)
movzbl -0x48(%rbp), %eax
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x555ed(%rip), %rcx     # 0x5faf0
callq *(%rcx,%rax,8)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
testq %rax, %rax
je 0xa530
movq 0x55a4e(%rip), %rcx     # 0x5ff70
cmpb $0x0, (%rcx)
je 0xa52c
incl 0x8(%rax)
jmp 0xa530
lock
incl 0x8(%rax)
movq %r12, %rdi
movq %r13, %rsi
leaq -0x80(%rbp), %rdx
callq 0x9c01
movzbl -0xd8(%rbp), %eax
movq %rbx, %rdi
movq %r12, %rsi
leaq 0x5559d(%rip), %rcx     # 0x5faf0
callq *(%rcx,%rax,8)
movb $-0x1, -0xd8(%rbp)
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0xa56b
callq 0x13612
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xa579
callq 0x13612
incq %r15
cmpq %r15, -0x30(%rbp)
jne 0xa483
movq -0xb8(%rbp), %rax
movq $0x0, (%rax)
movb $0x0, 0x20(%rax)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa5f7
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xed08
jmp 0xa5bd
movq %rax, %rbx
movq -0x88(%rbp), %rdi
jmp 0xa60f
jmp 0xa5f7
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xed08
jmp 0xa5d9
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0xa60f
jmp 0xa5f7
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0xa60b
callq 0x13612
jmp 0xa60b
movq %rax, %rdi
callq 0xf084
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xed08
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xa619
callq 0x13612
movq %rbx, %rdi
callq 0x9420