// File: /workspace/github_cpp_makefile_star2_O1/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 0x3ffdc
movb $0x1, %al
cmpq $0x1, 0x7081c(%rip)     # 0xb05b8
je 0x3fdad
callq 0xa500
cmpq 0x70d1e(%rip), %rax     # 0xb0ac8
sete %al
testb %al, %al
je 0x3fdf6
cmpl $0x0, 0x70d54(%rip)     # 0xb0b0c
jle 0x3fdf6
movq (%r14), %rsi
movq 0x701d4(%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 0x70cb6(%rip), %rdi     # 0xb0ab8
testq %rdi, %rdi
je 0x3fe3d
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 0x70c62(%rip), %r15     # 0xb0ab8
testq %r15, %r15
je 0x3ffc2
movl %ebp, %r12d
negl %r12d
cmovsl %ebp, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x3febf
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x3feb6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3febc
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3febf
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3fe83
addl $-0x3, %r13d
jmp 0x3febf
addl $-0x2, %r13d
jmp 0x3febf
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 0x2f9ce
leaq 0x4d292(%rip), %rcx     # 0x8d18d
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 0x3ff34
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3ff3b
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 0x3ffa6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3ffc2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
testl %ebp, %ebp
jne 0x40075
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa6b0
testl %eax, %eax
jne 0x40120
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4c93a(%rip), %rsi     # 0x8c936
leaq 0x4c946(%rip), %rdx     # 0x8c949
leaq 0x70(%rsp), %rdi
callq 0x2fdd8
leaq 0xf8(%rsp), %rdi
movl $0x6b1, %esi            # imm = 0x6B1
callq 0x2d60a
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x2d562
leaq 0x4aba5(%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 0x40209
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x40216
leaq 0x4d110(%rip), %rdx     # 0x8d18c
leaq 0x8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x2d3ba
leaq 0x48(%rsp), %rdi
movl %ebp, %esi
callq 0x2d60a
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x2d562
leaq 0x58(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x400c9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x400e4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x68(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x4012a
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0xa930
movq 0x6fed7(%rip), %rsi     # 0xaffe8
movq 0x6fe48(%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 0x42b16
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4e7ac(%rip), %rsi     # 0x8e8ff
leaq 0x4e7a6(%rip), %rdx     # 0x8e900
leaq 0x70(%rsp), %rdi
callq 0x2fdd8
leaq 0x90(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x40540
leaq 0x4e77d(%rip), %rsi     # 0x8e8ff
leaq 0x48(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x2c037
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0xa190
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x401bf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x401e0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x401fa
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x8(%rsp), %rdi
callq 0x32c12
jmp 0x400f0
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 0x4cf05(%rip), %rsi     # 0x8d147
leaq 0x4cf32(%rip), %rdx     # 0x8d17b
leaq 0xd8(%rsp), %rdi
callq 0x2fdd8
leaq 0x4c6d6(%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 0x4028f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x402a2
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 0x2d562
leaq 0x4cea5(%rip), %rsi     # 0x8d17c
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 0x40302
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x4030f
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 0x3523b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4034f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4034f
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4038b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4038b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x403ad
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x403ad
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x403d3
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x403d3
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x403f5
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x403f5
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x40414
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x40414
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x40430
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x40430
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x4043f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4043f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x32c12
jmp 0x4049a
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40467
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x40467
jmp 0x4048a
movq %rax, %rbx
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x404b6
movq 0x108(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x404b6
movq %rax, %rbx
jmp 0x4049a
movq %rax, %rbx
movq %r14, %rdi
callq 0xa440
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40538
movq 0x38(%rsp), %rsi
jmp 0x40530
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x40538
movq 0x80(%rsp), %rsi
jmp 0x40530
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x404f2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x404f2
movq %rax, %rbx
jmp 0x40538
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x40526
movq %rax, %rbx
jmp 0x4051c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x4051c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x40538
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10