// File: /workspace/github_cpp_makefile_star2_O2/eryxcc[P]lois/tests/tutorial.cpp
// Function: lois::lsetof<lois::lpair<lois::term, lois::term>> reach<lois::lpair<lois::term, lois::term>>(lois::lsetof<lois::lpair<lois::lpair<lois::term, lois::term>, lois::lpair<lois::term, lois::term>>>, lois::lsetof<lois::lpair<lois::term, lois::term>>)
lsetof<T> reach 
  (lsetof<lpair<T,T>> E, 
     lsetof<T> S) {
  lsetof<T> R = S;
  lsetof<T> P;
  While (P!=R) {
    P = R;
    for (auto& e: E) 
      If (memberof(e.first, R))
        R += e.second;
  }
  return R;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x234c8
leaq 0x90(%rsp), %rdi
callq 0xdaac
leaq 0x46b97(%rip), %rdi     # 0x552d8
callq 0x26345
movl %eax, 0x4(%rsp)
movq %r14, 0x8(%rsp)
leaq 0x46b82(%rip), %rdi     # 0x552d8
callq 0x26348
movb %al, 0x3(%rsp)
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r15
leaq 0x178(%rsp), %r14
leaq 0x148(%rsp), %r13
movb 0x3(%rsp), %al
cmpb %al, 0x4(%rsp)
je 0xe94c
movq %r12, %rdi
leaq 0x90(%rsp), %rsi
movq %rbx, %rdx
callq 0x23616
leaq 0x78(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x23601
leaq 0x18(%rsp), %rdi
callq 0xedd8
leaq 0xb8(%rsp), %rdi
movq %rbp, %rsi
callq 0x262e8
leaq 0x118(%rsp), %rdi
movq %rbp, %rsi
callq 0x26330
movl 0xe0(%rsp), %eax
cmpl 0x140(%rsp), %eax
je 0xe91b
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0xe7fd
movl $0x0, 0x4(%rsp)
jmp 0xe909
leaq 0x90(%rsp), %rdi
movq %rbx, %rsi
callq 0x23662
leaq 0x48(%rsp), %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x23830
leaq 0xe8(%rsp), %rdi
movq %r12, %rsi
callq 0x23840
leaq 0x48(%rsp), %r12
movq %r12, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x23854
testb %al, %al
je 0xe8f2
movq %r13, %rbp
movq 0x58(%rsp), %r12
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x23e30
movq %r15, %rdi
movq %r13, %rsi
callq 0xd7f6
leaq 0x28(%rsp), %rdi
callq 0xedd8
movq %r14, %rdi
movq %r15, %rsi
callq 0x262e8
movq %rbp, %r13
movq %rbp, %rdi
movq %r15, %rsi
callq 0x26330
addq $0x20, %r12
movl 0x1a0(%rsp), %eax
cmpl 0x170(%rsp), %eax
je 0xe8c6
addl $-0x4, %eax
cmpl $-0x3, %eax
ja 0xe8bc
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdb26
movq %r14, %rdi
callq 0x262d4
jmp 0xe899
movq %r13, %rdi
callq 0xd8ae
movq %r14, %rdi
callq 0xd8ae
leaq 0x38(%rsp), %rdi
callq 0xedd8
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x2389a
jmp 0xe834
leaq 0xe8(%rsp), %rdi
callq 0x238b0
leaq 0x48(%rsp), %rdi
callq 0x238b0
leaq 0xb8(%rsp), %rdi
callq 0x262d4
jmp 0xe7d4
leaq 0x118(%rsp), %rdi
callq 0xd8ae
leaq 0xb8(%rsp), %rdi
callq 0xd8ae
leaq 0x80(%rsp), %rdi
callq 0xedd8
leaq 0x10(%rsp), %r12
jmp 0xe779
leaq 0x90(%rsp), %rdi
callq 0xec22
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe97f
jmp 0xe97f
movq %rax, %r14
jmp 0xea00
movq %rax, %r14
jmp 0xe9f3
movq %rax, %r14
jmp 0xea0d
jmp 0xe990
jmp 0xe990
movq %rax, %r14
jmp 0xe9dc
movq %rax, %r14
jmp 0xe9e6
jmp 0xe9a1
movq %rax, %r14
jmp 0xe9b8
movq %rax, %r14
jmp 0xe9c5
movq %rax, %r14
jmp 0xe9cf
jmp 0xe9a8
movq %rax, %r14
leaq 0x148(%rsp), %rdi
callq 0xd8ae
leaq 0x178(%rsp), %rdi
callq 0xd8ae
leaq 0x38(%rsp), %rdi
callq 0xedd8
leaq 0xe8(%rsp), %rdi
callq 0x238b0
leaq 0x48(%rsp), %rdi
callq 0x238b0
leaq 0x118(%rsp), %rdi
callq 0xd8ae
leaq 0xb8(%rsp), %rdi
callq 0xd8ae
leaq 0x80(%rsp), %rdi
callq 0xedd8
leaq 0x90(%rsp), %rdi
callq 0xec22
movq %rbx, %rdi
callq 0xec22
movq %r14, %rdi
callq 0x7400