#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 *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
void pr_short_usage(char *progname, char *usage) {
  static char line1[80];
  static char linen[80];
  static char buf[120];
  static char next[100];
  int i, j, k;
  sprintf(line1, "usage:  %s", progname);
  for (i = 0; i < strlen(line1); i++)
    linen[i] = ' ';
  linen[i] = '\0';
  strcpy(buf, line1);
  for (i = 0; usage[i] != '\0'; i++) {
    if (usage[i] == '-') {
      k = 0;
      next[k++] = ' ';
      next[k++] = '[';
      for (j = 0; j < 80 && usage[i + j] != '\0' &&
                  (usage[i + j] != ' ' || usage[i + j + 1] == '<' ||
                   usage[i + j + 1] == '[');
           j++)
        next[k++] = usage[i + j];
      next[k++] = ']';
      next[k] = '\0';
      if (strlen(next) + strlen(buf) > 78) {
        printf("%s\n", buf);
        strcpy(buf, linen);
      }
      strcat(buf, next);
    }
    for (; usage[i] != '\n' && usage[i] != '\0'; i++)
      ;
    if (usage[i] == '\0')
      break;
  }
  printf("%s\n", buf);
}


x86 assembly (clang, -O0):
<pr_short_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdx
lea    0x2ef5(%rip),%rdi
lea    0xe8e(%rip),%rsi
call   1070 <sprintf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    0x2ed5(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
cmp    %ecx,%eax
jge    11ba <pr_short_usage+0x6a>
movslq -0x14(%rbp),%rcx
lea    0x2f08(%rip),%rax
movb   $0x20,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    117e <pr_short_usage+0x2e>
movslq -0x14(%rbp),%rcx
lea    0x2eeb(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
lea    0x2f30(%rip),%rdi
lea    0x2e89(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1435 <pr_short_usage+0x2e5>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2d,%eax
jne    13b1 <pr_short_usage+0x261>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
movslq %eax,%rcx
lea    0x2f57(%rip),%rax
movb   $0x20,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
movslq %eax,%rcx
lea    0x2f3e(%rip),%rax
movb   $0x5b,(%rax,%rcx,1)
movl   $0x0,-0x18(%rbp)
xor    %eax,%eax
cmpl   $0x50,-0x18(%rbp)
mov    %al,-0x21(%rbp)
jge    12df <pr_short_usage+0x18f>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x21(%rbp)
je     12df <pr_short_usage+0x18f>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x22(%rbp)
jne    12d9 <pr_short_usage+0x189>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0x3c,%ecx
mov    %al,-0x22(%rbp)
je     12d9 <pr_short_usage+0x189>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x5b,%eax
sete   %al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    12ef <pr_short_usage+0x19f>
jmp    1325 <pr_short_usage+0x1d5>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
movslq %eax,%rcx
lea    0x2e6c(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    124d <pr_short_usage+0xfd>
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
movslq %eax,%rcx
lea    0x2e46(%rip),%rax
movb   $0x5d,(%rax,%rcx,1)
movslq -0x1c(%rbp),%rcx
lea    0x2e37(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
lea    0x2e2c(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x28(%rbp)
lea    0x2d9d(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
add    %ecx,%eax
cmp    $0x4e,%eax
jle    139e <pr_short_usage+0x24e>
lea    0xc8c(%rip),%rdi
lea    0x2d7a(%rip),%rsi
call   1050 <printf@plt>
lea    0x2d6e(%rip),%rdi
lea    0x2d17(%rip),%rsi
call   1030 <strcpy@plt>
lea    0x2d5b(%rip),%rdi
lea    0x2dd4(%rip),%rsi
call   1060 <strcat@plt>
jmp    13b6 <pr_short_usage+0x266>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x29(%rbp)
je     13e5 <pr_short_usage+0x295>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
test   $0x1,%al
jne    13f5 <pr_short_usage+0x2a5>
jmp    1408 <pr_short_usage+0x2b8>
jmp    13fa <pr_short_usage+0x2aa>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13b6 <pr_short_usage+0x266>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    1422 <pr_short_usage+0x2d2>
jmp    1435 <pr_short_usage+0x2e5>
jmp    1427 <pr_short_usage+0x2d7>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e3 <pr_short_usage+0x93>
lea    0xbcf(%rip),%rdi
lea    0x2cbd(%rip),%rsi
call   1050 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pr_short_usage>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rdx
lea    0x2ef8(%rip),%rbx
lea    0xe91(%rip),%rsi
mov    %rbx,%rdi
call   1070 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
xor    %ebp,%ebp
test   %eax,%eax
jle    11b9 <pr_short_usage+0x69>
lea    0x2f24(%rip),%r15
lea    0x2ecd(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movb   $0x20,0x0(%rbp,%r15,1)
add    $0x1,%rbp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbp
jl     11a0 <pr_short_usage+0x50>
lea    0x2ef0(%rip),%rax
movb   $0x0,0x0(%rbp,%rax,1)
mov    %rax,%rbp
lea    0x2f31(%rip),%r15
lea    0x2e8a(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
xor    %r13d,%r13d
lea    0x2f98(%rip),%r12
movslq %r13d,%r13
mov    (%r14,%r13,1),%al
cmp    $0x2d,%al
je     1200 <pr_short_usage+0xb0>
test   %al,%al
jne    12e0 <pr_short_usage+0x190>
jmp    12f7 <pr_short_usage+0x1a7>
movw   $0x5b20,0x2f77(%rip)
20 5b
lea    (%r14,%r13,1),%rcx
mov    $0x3,%eax
jmp    1232 <pr_short_usage+0xe2>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   %dl,%dl
je     128b <pr_short_usage+0x13b>
mov    %dl,(%rax,%r12,1)
add    $0x2,%rax
cmp    $0x53,%rax
je     1280 <pr_short_usage+0x130>
movzbl -0x3(%rcx,%rax,1),%edx
cmp    $0x20,%dl
je     1250 <pr_short_usage+0x100>
test   %dl,%dl
jne    125f <pr_short_usage+0x10f>
jmp    1287 <pr_short_usage+0x137>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl -0x2(%rcx,%rax,1),%ebx
cmp    $0x5b,%bl
je     125f <pr_short_usage+0x10f>
cmp    $0x3c,%bl
jne    1287 <pr_short_usage+0x137>
mov    %dl,-0x1(%rax,%r12,1)
movzbl -0x2(%rcx,%rax,1),%edx
cmp    $0x20,%dl
jne    1220 <pr_short_usage+0xd0>
movzbl -0x1(%rcx,%rax,1),%ebx
cmp    $0x5b,%bl
je     1224 <pr_short_usage+0xd4>
cmp    $0x3c,%bl
je     1224 <pr_short_usage+0xd4>
jmp    128b <pr_short_usage+0x13b>
nop
mov    $0x52,%eax
jmp    128b <pr_short_usage+0x13b>
add    $0xffffffffffffffff,%rax
mov    %eax,%eax
movw   $0x5d,(%rax,%r12,1)
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1040 <strlen@plt>
add    %ebx,%eax
cmp    $0x4f,%eax
jl     12c7 <pr_short_usage+0x177>
lea    0xd57(%rip),%rdi
mov    %r15,%rsi
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <strcat@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r13
movzbl -0x1(%r14,%r13,1),%eax
test   %al,%al
je     12f7 <pr_short_usage+0x1a7>
cmp    $0xa,%al
jne    12e0 <pr_short_usage+0x190>
jmp    11e8 <pr_short_usage+0x98>
lea    0xd0d(%rip),%rdi
lea    0x2dfb(%rip),%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>

LLVM IR (-O0):
@pr_short_usage.line1 = internal global [80 x i8] zeroinitializer
@pr_short_usage.linen = internal global [80 x i8] zeroinitializer
@pr_short_usage.buf = internal global [120 x i8] zeroinitializer
@pr_short_usage.next = internal global [100 x i8] zeroinitializer
@.str = [11 x i8] c"usage: %s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @pr_short_usage(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%8 = load i8*, i8** %3
%9 = call i32 @sprintf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %8)
store i32 0, i32* %5
br label %10
10: ; preds = %18, %2
%11 = load i32, i32* %5
%12 = call i32 @strlen(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0))
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %21
14: ; preds = %10
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [80 x i8], [80 x i8]* @pr_short_usage.linen, i64 0, i64 %16
store i8 32, i8* %17
br label %18
18: ; preds = %14
%19 = load i32, i32* %5
%20 = add nsw i32 %19, 1
store i32 %20, i32* %5
br label %10
21: ; preds = %10
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [80 x i8], [80 x i8]* @pr_short_usage.linen, i64 0, i64 %23
store i8 0, i8* %24
%25 = call i32 @strcpy(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0))
store i32 0, i32* %5
br label %26
26: ; preds = %165, %21
%27 = load i8*, i8** %4
%28 = load i32, i32* %5
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %27, i64 %29
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %168
34: ; preds = %26
%35 = load i8*, i8** %4
%36 = load i32, i32* %5
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 45
br i1 %41, label %42, label %132
42: ; preds = %34
store i32 0, i32* %7
%43 = load i32, i32* %7
%44 = add nsw i32 %43, 1
store i32 %44, i32* %7
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %45
store i8 32, i8* %46
%47 = load i32, i32* %7
%48 = add nsw i32 %47, 1
store i32 %48, i32* %7
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %49
store i8 91, i8* %50
store i32 0, i32* %6
br label %51
51: ; preds = %112, %42
%52 = load i32, i32* %6
%53 = icmp slt i32 %52, 80
br i1 %53, label %54, label %98
54: ; preds = %51
%55 = load i8*, i8** %4
%56 = load i32, i32* %5
%57 = load i32, i32* %6
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %55, i64 %59
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %98
64: ; preds = %54
%65 = load i8*, i8** %4
%66 = load i32, i32* %5
%67 = load i32, i32* %6
%68 = add nsw i32 %66, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %65, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 32
br i1 %73, label %96, label %74
74: ; preds = %64
%75 = load i8*, i8** %4
%76 = load i32, i32* %5
%77 = load i32, i32* %6
%78 = add nsw i32 %76, %77
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, i8* %75, i64 %80
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 60
br i1 %84, label %96, label %85
85: ; preds = %74
%86 = load i8*, i8** %4
%87 = load i32, i32* %5
%88 = load i32, i32* %6
%89 = add nsw i32 %87, %88
%90 = add nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, i8* %86, i64 %91
%93 = load i8, i8* %92
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 91
br label %96
96: ; preds = %85, %74, %64
%97 = phi i1 [ true, %74 ], [ true, %64 ], [ %95, %85 ]
br label %98
98: ; preds = %96, %54, %51
%99 = phi i1 [ false, %54 ], [ false, %51 ], [ %97, %96 ]
br i1 %99, label %100, label %115
100: ; preds = %98
%101 = load i8*, i8** %4
%102 = load i32, i32* %5
%103 = load i32, i32* %6
%104 = add nsw i32 %102, %103
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, i8* %101, i64 %105
%107 = load i8, i8* %106
%108 = load i32, i32* %7
%109 = add nsw i32 %108, 1
store i32 %109, i32* %7
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %110
store i8 %107, i8* %111
br label %112
112: ; preds = %100
%113 = load i32, i32* %6
%114 = add nsw i32 %113, 1
store i32 %114, i32* %6
br label %51
115: ; preds = %98
%116 = load i32, i32* %7
%117 = add nsw i32 %116, 1
store i32 %117, i32* %7
%118 = sext i32 %116 to i64
%119 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %118
store i8 93, i8* %119
%120 = load i32, i32* %7
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %121
store i8 0, i8* %122
%123 = call i32 @strlen(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 0))
%124 = call i32 @strlen(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0))
%125 = add nsw i32 %123, %124
%126 = icmp sgt i32 %125, 78
br i1 %126, label %127, label %130
127: ; preds = %115
%128 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0))
%129 = call i32 @strcpy(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.linen, i64 0, i64 0))
br label %130
130: ; preds = %127, %115
%131 = call i32 @strcat(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0), i8* getelementptr inbounds ([100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 0))
br label %132
132: ; preds = %130, %34
br label %133
133: ; preds = %152, %132
%134 = load i8*, i8** %4
%135 = load i32, i32* %5
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i8, i8* %134, i64 %136
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = icmp ne i32 %139, 10
br i1 %140, label %141, label %149
141: ; preds = %133
%142 = load i8*, i8** %4
%143 = load i32, i32* %5
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8, i8* %142, i64 %144
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = icmp ne i32 %147, 0
br label %149
149: ; preds = %141, %133
%150 = phi i1 [ false, %133 ], [ %148, %141 ]
br i1 %150, label %151, label %155
151: ; preds = %149
br label %152
152: ; preds = %151
%153 = load i32, i32* %5
%154 = add nsw i32 %153, 1
store i32 %154, i32* %5
br label %133
155: ; preds = %149
%156 = load i8*, i8** %4
%157 = load i32, i32* %5
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i8, i8* %156, i64 %158
%160 = load i8, i8* %159
%161 = sext i8 %160 to i32
%162 = icmp eq i32 %161, 0
br i1 %162, label %163, label %164
163: ; preds = %155
br label %168
164: ; preds = %155
br label %165
165: ; preds = %164
%166 = load i32, i32* %5
%167 = add nsw i32 %166, 1
store i32 %167, i32* %5
br label %26
168: ; preds = %163, %26
%169 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@pr_short_usage.line1 = internal global [80 x i8] zeroinitializer
@pr_short_usage.linen = internal global [80 x i8] zeroinitializer
@pr_short_usage.buf = internal global [120 x i8] zeroinitializer
@pr_short_usage.next = internal global [100 x i8] zeroinitializer
@.str = [11 x i8] c"usage: %s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @pr_short_usage(i8* %0, i8* nocapture %1) {
%3 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @strlen(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0))
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %2, %6
%7 = phi i64 [ %9, %6 ], [ 0, %2 ]
%8 = getelementptr inbounds [80 x i8], [80 x i8]* @pr_short_usage.linen, i64 0, i64 %7
store i8 32, i8* %8
%9 = add nuw nsw i64 %7, 1
%10 = tail call i32 @strlen(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0))
%11 = sext i32 %10 to i64
%12 = icmp slt i64 %9, %11
br i1 %12, label %6, label %13
13: ; preds = %6
%14 = and i64 %9, 4294967295
br label %15
15: ; preds = %13, %2
%16 = phi i64 [ 0, %2 ], [ %14, %13 ]
%17 = getelementptr inbounds [80 x i8], [80 x i8]* @pr_short_usage.linen, i64 0, i64 %16
store i8 0, i8* %17
%18 = tail call i32 @strcpy(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.line1, i64 0, i64 0))
br label %19
19: ; preds = %81, %15
%20 = phi i64 [ 0, %15 ], [ %82, %81 ]
%21 = shl i64 %20, 32
%22 = ashr exact i64 %21, 32
%23 = getelementptr inbounds i8, i8* %1, i64 %22
%24 = load i8, i8* %23
switch i8 %24, label %74 [
i8 0, label %83
i8 45, label %25
]
25: ; preds = %19
store i8 32, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 0)
store i8 91, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 1)
br label %26
26: ; preds = %47, %25
%27 = phi i64 [ 0, %25 ], [ %50, %47 ]
%28 = phi i64 [ 2, %25 ], [ %48, %47 ]
%29 = add nsw i64 %27, %22
%30 = getelementptr inbounds i8, i8* %1, i64 %29
%31 = load i8, i8* %30
switch i8 %31, label %36 [
i8 0, label %55
i8 32, label %32
]
32: ; preds = %26
%33 = add nsw i64 %29, 1
%34 = getelementptr inbounds i8, i8* %1, i64 %33
%35 = load i8, i8* %34
switch i8 %35, label %52 [
i8 60, label %36
i8 91, label %36
]
36: ; preds = %32, %32, %26
%37 = or i64 %28, 1
%38 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %28
store i8 %31, i8* %38
%39 = or i64 %27, 1
%40 = add nsw i64 %39, %22
%41 = getelementptr inbounds i8, i8* %1, i64 %40
%42 = load i8, i8* %41
switch i8 %42, label %47 [
i8 0, label %55
i8 32, label %43
]
43: ; preds = %36
%44 = add nsw i64 %40, 1
%45 = getelementptr inbounds i8, i8* %1, i64 %44
%46 = load i8, i8* %45
switch i8 %46, label %52 [
i8 60, label %47
i8 91, label %47
]
47: ; preds = %43, %43, %36
%48 = add nuw nsw i64 %28, 2
%49 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %37
store i8 %42, i8* %49
%50 = add nuw nsw i64 %27, 2
%51 = icmp eq i64 %50, 80
br i1 %51, label %58, label %26
52: ; preds = %43, %32
%53 = phi i64 [ %28, %32 ], [ %37, %43 ]
%54 = trunc i64 %53 to i32
br label %58
55: ; preds = %36, %26
%56 = phi i64 [ %28, %26 ], [ %37, %36 ]
%57 = trunc i64 %56 to i32
br label %58
58: ; preds = %47, %55, %52
%59 = phi i32 [ %54, %52 ], [ %57, %55 ], [ 82, %47 ]
%60 = add nuw nsw i32 %59, 1
%61 = zext i32 %59 to i64
%62 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %61
store i8 93, i8* %62
%63 = zext i32 %60 to i64
%64 = getelementptr inbounds [100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 %63
store i8 0, i8* %64
%65 = tail call i32 @strlen(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 0))
%66 = tail call i32 @strlen(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0))
%67 = add nsw i32 %66, %65
%68 = icmp sgt i32 %67, 78
br i1 %68, label %69, label %72
69: ; preds = %58
%70 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0))
%71 = tail call i32 @strcpy(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @pr_short_usage.linen, i64 0, i64 0))
br label %72
72: ; preds = %69, %58
%73 = tail call i32 @strcat(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0), i8* getelementptr inbounds ([100 x i8], [100 x i8]* @pr_short_usage.next, i64 0, i64 0))
br label %74
74: ; preds = %19, %72
br label %75
75: ; preds = %74, %79
%76 = phi i64 [ %80, %79 ], [ %22, %74 ]
%77 = getelementptr inbounds i8, i8* %1, i64 %76
%78 = load i8, i8* %77
switch i8 %78, label %79 [
i8 0, label %83
i8 10, label %81
]
79: ; preds = %75
%80 = add i64 %76, 1
br label %75
81: ; preds = %75
%82 = add i64 %76, 1
br label %19
83: ; preds = %19, %75
%84 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([120 x i8], [120 x i8]* @pr_short_usage.buf, i64 0, i64 0))
ret void
}