// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
movq %rdi, 0x8(%rsp)
movq %rdx, %rsi
callq 0x32286
xorps %xmm0, %xmm0
leaq 0x158(%rsp), %rdi
movaps %xmm0, -0x8(%rdi)
movaps %xmm0, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
leaq 0x501ae(%rip), %rsi     # 0x642c0
movq (%rsi), %rax
movq %rax, -0x8(%rdi)
addq $0x8, %rsi
callq 0x15478
leaq 0x501a7(%rip), %rdi     # 0x642d0
callq 0x36b52
movl %eax, 0x4(%rsp)
leaq 0x50197(%rip), %rdi     # 0x642d0
callq 0x36b55
movb %al, 0x3(%rsp)
cmpb %al, 0x4(%rsp)
je 0x1447e
leaq 0x48(%rsp), %r12
leaq 0x120(%rsp), %rbx
leaq 0xf0(%rsp), %rbp
leaq 0x20(%rsp), %r14
leaq 0x38(%rsp), %rdi
leaq 0x150(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x32454
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x48(%rsp)
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x141ab
movq 0x4fe2b(%rip), %rcx     # 0x63fc8
cmpb $0x0, (%rcx)
je 0x141a7
incl 0x8(%rax)
jmp 0x141ab
lock
incl 0x8(%rax)
movl $0x2, 0x58(%rsp)
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x141c2
callq 0x14c44
leaq 0x60(%rsp), %rdi
movq %r12, %rsi
callq 0x36a7a
leaq 0xc0(%rsp), %rdi
movq %r12, %rsi
callq 0x36b05
movl 0x88(%rsp), %eax
cmpl 0xe8(%rsp), %eax
je 0x1440b
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x14208
movl $0x0, 0x4(%rsp)
jmp 0x143fc
leaq 0x150(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x324aa
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x33c02
leaq 0x178(%rsp), %rdi
movq %r13, %rsi
movl $0x77359400, %edx       # imm = 0x77359400
callq 0x33c02
movslq 0x128(%rsp), %rax
testq %rax, %rax
js 0x1426e
movq 0x120(%rsp), %rcx
movq 0x18(%rcx), %rdx
subq 0x10(%rcx), %rdx
sarq $0x4, %rdx
cmpq %rax, %rdx
jbe 0x1426e
cmpl 0x180(%rsp), %eax
setne %al
jmp 0x14299
movslq 0x180(%rsp), %rax
testq %rax, %rax
js 0x143e7
movq 0x178(%rsp), %rcx
movq 0x18(%rcx), %rdx
subq 0x10(%rcx), %rdx
sarq $0x4, %rdx
cmpq %rax, %rdx
seta %al
testb %al, %al
je 0x143e7
movq %r12, %rbx
movq %r13, %r12
movq 0x130(%rsp), %r13
leaq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
callq 0x32e40
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x142ef
movq 0x4fce7(%rip), %rcx     # 0x63fc8
cmpb $0x0, (%rcx)
je 0x142eb
incl 0x8(%rax)
jmp 0x142ef
lock
incl 0x8(%rax)
movl $0x0, 0x30(%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x14306
callq 0x14c44
movq %rbp, %rdi
movq %r14, %r15
movq %r14, %rsi
callq 0x36a7a
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x36b05
addq $0x20, %r13
movl 0x118(%rsp), %eax
cmpl 0xb8(%rsp), %eax
je 0x14357
addl $-0x4, %eax
cmpl $-0x3, %eax
ja 0x1434d
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x12f48
movq %rbp, %rdi
callq 0x36a66
jmp 0x14328
leaq 0x4dc7a(%rip), %rax     # 0x61fd8
movq %rax, 0x90(%rsp)
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x14378
callq 0x14c44
leaq 0x90(%rsp), %rdi
callq 0x14b94
leaq 0x4dc4c(%rip), %rax     # 0x61fd8
movq %rax, 0xf0(%rsp)
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
movq %r12, %r13
je 0x143a9
callq 0x14c44
movq %rbp, %rdi
callq 0x14b94
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movq %rbx, %r12
je 0x143c3
callq 0x14c44
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
callq 0x34ba2
incl 0x128(%rsp)
movq %rbx, %rdi
callq 0x33c4e
jmp 0x1423c
leaq 0x178(%rsp), %rdi
callq 0x3275e
movq %rbx, %rdi
callq 0x3275e
leaq 0x60(%rsp), %rdi
callq 0x36a66
jmp 0x141df
leaq 0x4dbc6(%rip), %rax     # 0x61fd8
movq %rax, 0xc0(%rsp)
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x1442c
callq 0x14c44
leaq 0xc0(%rsp), %rdi
callq 0x14b94
leaq 0x4db98(%rip), %rax     # 0x61fd8
movq %rax, 0x60(%rsp)
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x14457
callq 0x14c44
leaq 0x60(%rsp), %rdi
callq 0x14b94
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x14470
callq 0x14c44
movb 0x3(%rsp), %al
cmpb %al, 0x4(%rsp)
jne 0x14166
leaq 0x160(%rsp), %r14
movq %r14, %rdi
callq 0x15854
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x1449c
callq 0x14c44
movq 0x8(%rsp), %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x144bf
jmp 0x144bf
movq %rax, %r14
jmp 0x145d4
movq %rax, %r14
jmp 0x145e3
movq %rax, %r14
jmp 0x145ac
jmp 0x144db
movq %rax, %r14
jmp 0x14571
jmp 0x144db
movq %rax, %r14
jmp 0x1457e
movq %rax, %r14
jmp 0x14555
movq %rax, %r14
jmp 0x14527
jmp 0x144ef
movq %rax, %r14
jmp 0x14564
jmp 0x144f6
movq %rax, %r14
leaq 0x4dad8(%rip), %rax     # 0x61fd8
movq %rax, 0x90(%rsp)
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x1451a
callq 0x14c44
leaq 0x90(%rsp), %rdi
callq 0x14b94
leaq 0x4daaa(%rip), %rax     # 0x61fd8
movq %rax, 0xf0(%rsp)
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x14548
callq 0x14c44
leaq 0xf0(%rsp), %rdi
callq 0x14b94
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x14564
callq 0x14c44
leaq 0x178(%rsp), %rdi
callq 0x3275e
leaq 0x120(%rsp), %rdi
callq 0x3275e
leaq 0x4da53(%rip), %rax     # 0x61fd8
movq %rax, 0xc0(%rsp)
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x1459f
callq 0x14c44
leaq 0xc0(%rsp), %rdi
callq 0x14b94
leaq 0x4da25(%rip), %rax     # 0x61fd8
movq %rax, 0x60(%rsp)
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x145ca
callq 0x14c44
leaq 0x60(%rsp), %rdi
callq 0x14b94
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x145e3
callq 0x14c44
leaq 0x160(%rsp), %r15
movq %r15, %rdi
callq 0x15854
movq -0x8(%r15), %rdi
testq %rdi, %rdi
je 0x14601
callq 0x14c44
movq 0x8(%rsp), %rbx
leaq 0x10(%rbx), %rdi
callq 0x15854
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x1461d
callq 0x14c44
movq %r14, %rdi
callq 0x8420
nop