#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int convbdf(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ getopts(int *, char ***);
int /*<<< orphan*/ usage();
int main(int ac, char **av) {
  int ret = 0;
  ++av;
  --ac;
  getopts(&ac, &av);
  if (ac < 1) {
    usage();
    exit(1);
  }
  while (ac > 0) {
    ret |= convbdf(av[0]);
    ++av;
    --ac;
  }
  exit(ret);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <getopts@plt>
cmpl   $0x1,-0x8(%rbp)
jge    119a <main+0x5a>
mov    $0x0,%al
call   1050 <usage@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    119f <main+0x5f>
cmpl   $0x0,-0x8(%rbp)
jle    11d5 <main+0x95>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <convbdf@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    119f <main+0x5f>
mov    -0x14(%rbp),%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
add    $0x8,%rsi
mov    %rsi,0x8(%rsp)
add    $0xffffffff,%edi
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1040 <getopts@plt>
cmpl   $0x0,0x4(%rsp)
jg     117c <main+0x3c>
xor    %eax,%eax
call   1050 <usage@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
xor    %ebx,%ebx
mov    0x8(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rax),%rdi
call   1030 <convbdf@plt>
or     %eax,%ebx
mov    0x8(%rsp),%rax
add    $0x8,%rax
mov    %rax,0x8(%rsp)
mov    0x4(%rsp),%ecx
lea    -0x1(%rcx),%edx
mov    %edx,0x4(%rsp)
cmp    $0x1,%ecx
jg     1190 <main+0x50>
mov    %ebx,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i32 1
store i8** %8, i8*** %5
%9 = load i32, i32* %4
%10 = add nsw i32 %9, -1
store i32 %10, i32* %4
%11 = call i32 @getopts(i32* %4, i8*** %5)
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (...) @usage()
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
br label %18
18: ; preds = %21, %17
%19 = load i32, i32* %4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %32
21: ; preds = %18
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 @convbdf(i8* %24)
%26 = load i32, i32* %6
%27 = or i32 %26, %25
store i32 %27, i32* %6
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i32 1
store i8** %29, i8*** %5
%30 = load i32, i32* %4
%31 = add nsw i32 %30, -1
store i32 %31, i32* %4
br label %18
32: ; preds = %18
%33 = load i32, i32* %6
%34 = call i32 @exit(i32 %33)
unreachable
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = getelementptr inbounds i8*, i8** %1, i64 1
store i8** %5, i8*** %4
%6 = add nsw i32 %0, -1
store i32 %6, i32* %3
%7 = call i32 @getopts(i32* %3, i8*** %4)
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 1
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = load i8**, i8*** %4
br label %15
12: ; preds = %2
%13 = call i32 (...) @usage()
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %10, %15
%16 = phi i8** [ %22, %15 ], [ %11, %10 ]
%17 = phi i32 [ %20, %15 ], [ 0, %10 ]
%18 = load i8*, i8** %16
%19 = call i32 @convbdf(i8* %18)
%20 = or i32 %19, %17
%21 = load i8**, i8*** %4
%22 = getelementptr inbounds i8*, i8** %21, i64 1
store i8** %22, i8*** %4
%23 = load i32, i32* %3
%24 = add nsw i32 %23, -1
store i32 %24, i32* %3
%25 = icmp sgt i32 %23, 1
br i1 %25, label %15, label %26
26: ; preds = %15
%27 = call i32 @exit(i32 %20)
unreachable
}