// File: /workspace/github_cpp_makefile_star2_O3/eryxcc[P]lois/tests/../include/lois.h
// Function: lois::lsetof<lois::term> lois::substitute<lois::term>(lois::lsetof<lois::term> const&, std::vector<std::pair<std::shared_ptr<lois::Variable>, lois::term>, std::allocator<std::pair<std::shared_ptr<lois::Variable>, lois::term>>> const&)
lsetof<T> substitute(const lsetof<T>& where, const varsubstlist& l) {
  lsetof<T> res;

    autoindenter i3;
    if(debuglois) std::cout << ido << "set substitution" << std::endl;

  for(auto elt: where.elts) {
    autoindenter i4;
    if(debuglois) std::cout << ido << "substituting in: " << elt->a << "/" << "VAR" << "/" <<elt->phi << std::endl;
    res.elts.emplace_back(std::make_shared<SimpleSetOf<T>> (
      elt->var,
      substitute(elt->phi, l),
      substitute(elt->a, l))
      );
    }

    if(debuglois) std::cout << ido << "set substitution done" << std::endl;
  return res;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %rcx
addq $0x8, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rcx)
movups %xmm0, 0x8(%rcx)
leaq 0x3d038(%rip), %rsi     # 0x632c8
movq (%rsi), %rax
movq %rcx, 0x10(%rsp)
movq %rax, (%rcx)
addq $0x8, %rsi
callq 0x14586
leaq 0x3d19d(%rip), %rax     # 0x63448
addl $0x2, (%rax)
leaq 0x3d443(%rip), %rax     # 0x636f8
cmpb $0x1, (%rax)
jne 0x2630e
leaq 0x3cf97(%rip), %rax     # 0x63258
movq (%rax), %rsi
movq 0x3cd05(%rip), %rdi     # 0x62fd0
callq 0x47548
movq %rax, %r15
leaq 0x270f0(%rip), %rsi     # 0x4d3ca
movl $0x10, %edx
movq %rax, %rdi
callq 0x72b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7240
movsbl %al, %esi
movq %r15, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7180
movq 0x10(%rbx), %r13
movq 0x18(%rbx), %rax
movq %rax, 0x40(%rsp)
cmpq %rax, %r13
je 0x2652b
movq 0x10(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x38(%rsp)
movq (%r13), %r12
movq 0x8(%r13), %r15
testq %r15, %r15
je 0x26356
movq 0x3cc82(%rip), %rax     # 0x62fc8
cmpb $0x0, (%rax)
je 0x26351
incl 0x8(%r15)
jmp 0x26356
lock
incl 0x8(%r15)
leaq 0x3d0eb(%rip), %rax     # 0x63448
addl $0x2, (%rax)
leaq 0x3d391(%rip), %rax     # 0x636f8
cmpb $0x1, (%rax)
jne 0x26476
leaq 0x3cee1(%rip), %rax     # 0x63258
movq (%rax), %rsi
movq 0x3cc4f(%rip), %rdi     # 0x62fd0
callq 0x47548
movq %rax, %rbx
movl $0x11, %edx
movq %rax, %rdi
leaq 0x27043(%rip), %rsi     # 0x4d3db
callq 0x72b0
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x263b2
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x10(%rax)
jmp 0x263c6
movl $0xb, %edx
movq %rbx, %rdi
leaq 0x26f21(%rip), %rsi     # 0x4d2e2
callq 0x72b0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x27018(%rip), %rsi     # 0x4d3ed
callq 0x72b0
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x27006(%rip), %rsi     # 0x4d3ef
callq 0x72b0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x26ff0(%rip), %rsi     # 0x4d3ed
callq 0x72b0
movq 0x18(%r12), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%r12), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x26430
movq 0x3cba6(%rip), %rcx     # 0x62fc8
cmpb $0x0, (%rcx)
je 0x2642c
incl 0x8(%rax)
jmp 0x26430
lock
incl 0x8(%rax)
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x36010
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7180
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x26476
callq 0x13d46
leaq 0x18(%r12), %rsi
leaq 0x48(%rsp), %rdi
movq %rbp, %r14
movq %rbp, %rdx
callq 0x39a3f
leaq 0x28(%r12), %rsi
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3995c
movq $0x0, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
leaq 0xf(%rsp), %rdx
movq %r12, %rcx
leaq 0x48(%rsp), %r8
movq %rbx, %r9
callq 0x2662c
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x2029e
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x264e7
callq 0x13d46
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x264f6
callq 0x13d46
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x26505
callq 0x13d46
leaq 0x3cf3c(%rip), %rax     # 0x63448
addl $-0x2, (%rax)
testq %r15, %r15
je 0x2651c
movq %r15, %rdi
callq 0x13d46
addq $0x10, %r13
cmpq 0x40(%rsp), %r13
jne 0x26332
leaq 0x3d1c6(%rip), %rax     # 0x636f8
cmpb $0x0, (%rax)
je 0x2658b
leaq 0x3cd1a(%rip), %rax     # 0x63258
movq (%rax), %rsi
movq 0x3ca88(%rip), %rdi     # 0x62fd0
callq 0x47548
movq %rax, %rbx
leaq 0x26e9c(%rip), %rsi     # 0x4d3f3
movl $0x15, %edx
movq %rax, %rdi
callq 0x72b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7180
leaq 0x3ceb6(%rip), %rax     # 0x63448
addl $-0x2, (%rax)
movq 0x10(%rsp), %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x26610
jmp 0x265f6
movq %rax, %rbx
jmp 0x265db
movq %rax, %rbx
jmp 0x265cc
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x265cc
callq 0x13d46
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x265db
callq 0x13d46
movq 0x50(%rsp), %rdi
jmp 0x265ea
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x265f9
callq 0x13d46
jmp 0x265f9
movq %rax, %rbx
leaq 0x3ce48(%rip), %rax     # 0x63448
addl $-0x2, (%rax)
testq %r15, %r15
je 0x26610
movq %r15, %rdi
callq 0x13d46
leaq 0x3ce31(%rip), %rax     # 0x63448
addl $-0x2, (%rax)
movq 0x10(%rsp), %rdi
callq 0x11d68
movq %rbx, %rdi
callq 0x7420