#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 /*<<< orphan*/ printf(char *, ...);
int strlen(char const *);
void print1opt(const char *shortflag, const char *longflag, const char *desc) {
  printf(" %s\t", shortflag);
  if (strlen(shortflag) < 8)
    printf("\t");
  printf("%s\t", longflag);
  if (strlen(longflag) < 8)
    printf("\t\t");
  else if (strlen(longflag) < 16)
    printf("\t");
  printf("%s\n", desc);
}


x86 assembly (clang, -O0):
<print1opt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x8,%eax
jge    1166 <print1opt+0x46>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x8,%eax
jge    119d <print1opt+0x7d>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c2 <print1opt+0xa2>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x10,%eax
jge    11bd <print1opt+0x9d>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c2 <print1opt+0xa2>
mov    -0x18(%rbp),%rsi
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print1opt>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xeab(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cmp    $0x7,%eax
jg     1176 <print1opt+0x36>
mov    $0x9,%edi
call   1030 <putchar@plt>
lea    0xe84(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
call   1050 <strlen@plt>
cmp    $0x7,%eax
jg     11a4 <print1opt+0x64>
lea    0xe6a(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11bb <print1opt+0x7b>
mov    %r15,%rdi
call   1050 <strlen@plt>
cmp    $0xf,%eax
jg     11bb <print1opt+0x7b>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [5 x i8] c" %s\09\00"
@.str.1 = [2 x i8] c"\09\00"
@.str.2 = [4 x i8] c"%s\09\00"
@.str.3 = [3 x i8] c"\09\09\00"
@.str.4 = [4 x i8] c"%s\0A\00"
define void @print1opt(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
%11 = icmp slt i32 %10, 8
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %3
%15 = load i8*, i8** %5
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = load i8*, i8** %5
%18 = call i32 @strlen(i8* %17)
%19 = icmp slt i32 %18, 8
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %29
22: ; preds = %14
%23 = load i8*, i8** %5
%24 = call i32 @strlen(i8* %23)
%25 = icmp slt i32 %24, 16
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %22
br label %29
29: ; preds = %28, %20
%30 = load i8*, i8** %6
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %30)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c" %s\09\00"
@.str.2 = [4 x i8] c"%s\09\00"
@.str.3 = [3 x i8] c"\09\09\00"
define void @print1opt(i8* %0, i8* %1, i8* nocapture %2) {
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i32 @strlen(i8* %0)
%6 = icmp slt i32 %5, 8
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 @putchar(i32 9)
br label %9
9: ; preds = %7, %3
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%11 = tail call i32 @strlen(i8* %1)
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %20
15: ; preds = %9
%16 = tail call i32 @strlen(i8* %1)
%17 = icmp slt i32 %16, 16
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i32 @putchar(i32 9)
br label %20
20: ; preds = %15, %18, %13
%21 = tail call i32 @puts(i8* dereferenceable(1) %2)
ret void
}