#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 len(char *);
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ readline(char *);
int /*<<< orphan*/ rstrip(char *);
int main() {
  int length;
  char line[500];
  length = -1;
  while (readline(line) != 0) {
    rstrip(line);
    if (len(line) > 1)
      printf("%s", line);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
lea    -0x200(%rbp),%rdi
call   1060 <readline@plt>
cmp    $0x0,%rax
je     11a8 <main+0x68>
lea    -0x200(%rbp),%rdi
call   1030 <rstrip@plt>
lea    -0x200(%rbp),%rdi
call   1040 <len@plt>
cmp    $0x1,%eax
jle    11a3 <main+0x63>
lea    -0x200(%rbp),%rsi
lea    0xe62(%rip),%rdi
call   1050 <printf@plt>
jmp    1159 <main+0x19>
xor    %eax,%eax
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x1f8,%rsp
mov    %rsp,%rdi
call   1060 <readline@plt>
test   %rax,%rax
je     119f <main+0x5f>
mov    %rsp,%rbx
lea    0xe9f(%rip),%r14
jmp    117d <main+0x3d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
call   1060 <readline@plt>
test   %rax,%rax
je     119f <main+0x5f>
mov    %rbx,%rdi
call   1030 <rstrip@plt>
mov    %rbx,%rdi
call   1040 <len@plt>
cmp    $0x2,%eax
jl     1170 <main+0x30>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
jmp    1170 <main+0x30>
xor    %eax,%eax
add    $0x1f8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [500 x i8]
store i32 0, i32* %1
store i32 -1, i32* %2
br label %4
4: ; preds = %17, %0
%5 = getelementptr inbounds [500 x i8], [500 x i8]* %3, i64 0, i64 0
%6 = call i64 @readline(i8* %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %4
%9 = getelementptr inbounds [500 x i8], [500 x i8]* %3, i64 0, i64 0
%10 = call i32 @rstrip(i8* %9)
%11 = getelementptr inbounds [500 x i8], [500 x i8]* %3, i64 0, i64 0
%12 = call i32 @len(i8* %11)
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %8
%15 = getelementptr inbounds [500 x i8], [500 x i8]* %3, i64 0, i64 0
%16 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %15)
br label %17
17: ; preds = %14, %8
br label %4
18: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [500 x i8]
%2 = getelementptr inbounds [500 x i8], [500 x i8]* %1, i64 0, i64 0
%3 = call i64 @readline(i8* %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %0, %11
%6 = call i32 @rstrip(i8* %2)
%7 = call i32 @len(i8* %2)
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
br label %11
11: ; preds = %9, %5
%12 = call i64 @readline(i8* %2)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %5
14: ; preds = %11, %0
ret i32 0
}