// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/common.cpp
// Function: Common_sp::exec(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void exec (const string &cmd,
           const string &logFName)
{
  ASSERT (! cmd. empty ());
  
//Chronometer_OnePass cop (cmd);  
  if (verbose ())
  	cout << cmd << endl;
  LOG (cmd);
  	
	const int status = system (cmd. c_str ());  // pipefail's are not caught
	LOG ("status = " + to_string (status));
	if (status)
	{
	  string err (cmd + "\nstatus = " + to_string (status));
	  if (! logFName. empty ())
	  {
	    const StringVector vec (logFName, (size_t) 10, false);  // PAR
	    err += "\n" + vec. toString ("\n");
	  }
		throw runtime_error (err);		
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %rbx
movq %rdi, %r14
callq 0xa070
movl $0x0, (%rax)
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x3fb9a
movb $0x1, %al
cmpq $0x1, 0x70c5e(%rip)     # 0xb05b8
je 0x3f96b
callq 0xa500
cmpq 0x71160(%rip), %rax     # 0xb0ac8
sete %al
testb %al, %al
je 0x3f9b4
cmpl $0x0, 0x71196(%rip)     # 0xb0b0c
jle 0x3f9b4
movq (%r14), %rsi
movq 0x70616(%rip), %rdi     # 0xaff98
movq %r15, %rdx
callq 0xa640
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xa570
movsbl %al, %esi
movq %r15, %rdi
callq 0xa040
movq %rax, %rdi
callq 0xa3f0
movq %rbx, 0x68(%rsp)
movq 0x710f8(%rip), %rdi     # 0xb0ab8
testq %rdi, %rdi
je 0x3f9fb
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0xa640
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xa570
movsbl %al, %esi
movq %r15, %rdi
callq 0xa040
movq %rax, %rdi
callq 0xa3f0
movq %r14, 0xb0(%rsp)
movq (%r14), %rdi
callq 0xa4c0
movl %eax, %ebp
movq 0x710a4(%rip), %r15     # 0xb0ab8
testq %r15, %r15
je 0x3fb80
movl %ebp, %r12d
negl %r12d
cmovsl %ebp, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x3fa7d
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x3fa74
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3fa7a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3fa7d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3fa41
addl $-0x3, %r13d
jmp 0x3fa7d
addl $-0x2, %r13d
jmp 0x3fa7d
decl %r13d
movl %ebp, %ebx
shrl $0x1f, %ebx
leal (%rbx,%r13), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x2d, %edx
callq 0xa670
addq (%r14), %rbx
movq %rbx, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x2f610
leaq 0x4d6be(%rip), %rcx     # 0x8d177
movl $0x9, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa620
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3faf2
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3faf9
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r15, %rdi
callq 0xa640
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xa570
movsbl %al, %esi
movq %r15, %rdi
callq 0xa040
movq %rax, %rdi
callq 0xa3f0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fb64
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3fb80
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
testl %ebp, %ebp
jne 0x3fc33
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa6b0
testl %eax, %eax
jne 0x3fcde
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4cd7c(%rip), %rsi     # 0x8c936
leaq 0x4cd88(%rip), %rdx     # 0x8c949
leaq 0x70(%rsp), %rdi
callq 0x2fa1a
leaq 0xf8(%rsp), %rdi
movl $0x6b1, %esi            # imm = 0x6B1
callq 0x2d1fa
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x2d152
leaq 0x4afe7(%rip), %rsi     # 0x8abe5
leaq 0x90(%rsp), %rdi
callq 0xaac0
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3fdc7
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3fdd4
leaq 0x4d53c(%rip), %rdx     # 0x8d176
leaq 0x8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x2cfa9
leaq 0x48(%rsp), %rdi
movl %ebp, %esi
callq 0x2d1fa
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x2d152
leaq 0x58(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x3fc87
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3fca2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x68(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3fce8
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0xa930
movq 0x70319(%rip), %rsi     # 0xaffe8
movq 0x7028a(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
movl $0x1, %edi
callq 0xa6c0
leaq 0x8(%rsp), %rdi
movl $0xa, %edx
movq 0x68(%rsp), %rsi
xorl %ecx, %ecx
callq 0x426a6
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4ebd8(%rip), %rsi     # 0x8e8e9
leaq 0x4ebd2(%rip), %rdx     # 0x8e8ea
leaq 0x70(%rsp), %rdi
callq 0x2fa1a
leaq 0x90(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x400fe
leaq 0x4eba9(%rip), %rsi     # 0x8e8e9
leaq 0x48(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x2bbf7
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0xa190
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fd7d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3fd9e
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fdb8
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x8(%rsp), %rdi
callq 0x327d2
jmp 0x3fcae
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x4d331(%rip), %rsi     # 0x8d131
leaq 0x4d35e(%rip), %rdx     # 0x8d165
leaq 0xd8(%rsp), %rdi
callq 0x2fa1a
leaq 0x4cb18(%rip), %rsi     # 0x8c933
leaq 0xd8(%rsp), %rdi
callq 0xaac0
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3fe4d
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3fe60
movq %rdx, 0xb8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc8(%rsp)
movq 0x8(%rax), %rsi
leaq 0xb8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2d152
leaq 0x4d2d1(%rip), %rsi     # 0x8d166
leaq 0x8(%rsp), %rdi
callq 0xaac0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3fec0
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3fecd
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3ff0d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ff0d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ff49
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ff49
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ff6b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ff6b
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3ff91
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ff91
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ffb3
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ffb3
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3ffd2
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ffd2
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x3ffee
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ffee
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fffd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3fffd
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x327d2
jmp 0x40058
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40025
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x40025
jmp 0x40048
movq %rax, %rbx
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40074
movq 0x108(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x40074
movq %rax, %rbx
jmp 0x40058
movq %rax, %rbx
movq %r14, %rdi
callq 0xa440
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x400f6
movq 0x38(%rsp), %rsi
jmp 0x400ee
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x400f6
movq 0x80(%rsp), %rsi
jmp 0x400ee
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x400b0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x400b0
movq %rax, %rbx
jmp 0x400f6
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x400e4
movq %rax, %rbx
jmp 0x400da
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x400da
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x400f6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10