// File: /workspace/github_cpp_makefile_star2_O3/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 0x937c
movq 0x54c02(%rip), %rcx     # 0x5df70
cmpb $0x0, (%rcx)
je 0x9378
incl 0x8(%rax)
jmp 0x937c
lock
incl 0x8(%rax)
leaq -0x68(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0x8bff
leaq -0x68(%rbp), %rdi
callq 0xdd86
movq %rax, %r15
leaq -0x68(%rbp), %rsi
movzbl 0x20(%rsi), %eax
leaq 0x54749(%rip), %rcx     # 0x5daf0
leaq -0xb0(%rbp), %rdi
callq *(%rcx,%rax,8)
movb $-0x1, -0x48(%rbp)
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0x93c6
callq 0x123fc
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 0x9404
movq 0x54b7a(%rip), %rcx     # 0x5df70
cmpb $0x0, (%rcx)
je 0x9400
incl 0x8(%rax)
jmp 0x9404
lock
incl 0x8(%rax)
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x8bff
leaq -0x68(%rbp), %rdi
callq 0xdd86
movq %rax, -0x30(%rbp)
movq %rbx, -0xb8(%rbp)
leaq -0x68(%rbp), %rsi
movzbl 0x20(%rsi), %eax
leaq -0xb0(%rbp), %rdi
leaq 0x546b2(%rip), %rcx     # 0x5daf0
callq *(%rcx,%rax,8)
movb $-0x1, -0x48(%rbp)
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x9456
callq 0x123fc
cmpq -0x30(%rbp), %r15
jg 0x9584
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 0x40d6a
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 0x39eec
movq %rax, -0xd0(%rbp)
movzbl -0x48(%rbp), %eax
leaq -0xd0(%rbp), %rdi
movq %rbx, %rsi
leaq 0x54693(%rip), %rcx     # 0x5db80
callq *(%rcx,%rax,8)
movzbl -0x48(%rbp), %eax
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x545ef(%rip), %rcx     # 0x5daf0
callq *(%rcx,%rax,8)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
testq %rax, %rax
je 0x952e
movq 0x54a50(%rip), %rcx     # 0x5df70
cmpb $0x0, (%rcx)
je 0x952a
incl 0x8(%rax)
jmp 0x952e
lock
incl 0x8(%rax)
movq %r12, %rdi
movq %r13, %rsi
leaq -0x80(%rbp), %rdx
callq 0x8bff
movzbl -0xd8(%rbp), %eax
movq %rbx, %rdi
movq %r12, %rsi
leaq 0x5459f(%rip), %rcx     # 0x5daf0
callq *(%rcx,%rax,8)
movb $-0x1, -0xd8(%rbp)
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x9569
callq 0x123fc
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x9577
callq 0x123fc
incq %r15
cmpq %r15, -0x30(%rbp)
jne 0x9481
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 0x95f5
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xdcb2
jmp 0x95bb
movq %rax, %rbx
movq -0x88(%rbp), %rdi
jmp 0x960d
jmp 0x95f5
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xdcb2
jmp 0x95d7
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0x960d
jmp 0x95f5
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x9609
callq 0x123fc
jmp 0x9609
movq %rax, %rdi
callq 0xe032
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xdcb2
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x9617
callq 0x123fc
movq %rbx, %rdi
callq 0x8420