#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 atoi(char *);
int /*<<< orphan*/ feof(int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main(int argc, char *argv[]) {
  int Spaces = atoi(argv[1]);
  char Line[512];
  int i;
  short Meaningful;
  while (!feof(stdin)) {
    Meaningful = 0;
    fgets(Line, 512, stdin);
    for (i = 0; i < strlen(Line); i++) {
      if (Line[i] > 0x21 && Line[i] < 0x7e) {
        Meaningful = 1;
        break;
      }
    }
    if (!feof(stdin) && Meaningful) {
      for (i = 0; i < Spaces; i++)
        printf(" ");
      printf("%s", Line);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x230,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1060 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    119c <main+0x4c>
jmp    12c4 <main+0x174>
movw   $0x0,-0x226(%rbp)
lea    -0x220(%rbp),%rdi
mov    0x2e35(%rip),%rax
mov    (%rax),%edx
mov    $0x200,%esi
call   1050 <fgets@plt>
movl   $0x0,-0x224(%rbp)
mov    -0x224(%rbp),%eax
mov    %eax,-0x22c(%rbp)
lea    -0x220(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x22c(%rbp),%eax
cmp    %ecx,%eax
jge    1248 <main+0xf8>
movslq -0x224(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x21,%eax
jle    122f <main+0xdf>
movslq -0x224(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x7e,%eax
jge    122f <main+0xdf>
movw   $0x1,-0x226(%rbp)
jmp    1248 <main+0xf8>
jmp    1234 <main+0xe4>
mov    -0x224(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x224(%rbp)
jmp    11c9 <main+0x79>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
call   1060 <feof@plt>
cmp    $0x0,%eax
jne    12bf <main+0x16f>
movswl -0x226(%rbp),%eax
cmp    $0x0,%eax
je     12bf <main+0x16f>
movl   $0x0,-0x224(%rbp)
mov    -0x224(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12aa <main+0x15a>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x224(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x224(%rbp)
jmp    1279 <main+0x129>
lea    -0x220(%rbp),%rsi
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1179 <main+0x29>
mov    -0x4(%rbp),%eax
add    $0x230,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    0x8(%rsi),%rdi
call   1080 <atoi@plt>
mov    %eax,%r15d
mov    0x2e64(%rip),%r12
mov    (%r12),%edi
call   1070 <feof@plt>
test   %eax,%eax
je     11a5 <main+0x45>
xor    %eax,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rsp,%r13
lea    0xe51(%rip),%r14
jmp    11da <main+0x7a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%edi
call   1070 <feof@plt>
test   %eax,%eax
jne    1191 <main+0x31>
mov    (%r12),%edx
mov    %r13,%rdi
mov    $0x200,%esi
call   1060 <fgets@plt>
mov    %r13,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1230 <main+0xd0>
xor    %ebx,%ebx
nopl   0x0(%rax)
movzbl (%rsp,%rbx,1),%eax
add    $0xde,%al
cmp    $0x5c,%al
setb   %bpl
jb     1232 <main+0xd2>
add    $0x1,%rbx
mov    %r13,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1200 <main+0xa0>
jmp    1232 <main+0xd2>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %ebp,%ebp
mov    (%r12),%edi
call   1070 <feof@plt>
test   %eax,%eax
jne    11cd <main+0x6d>
test   %bpl,%bpl
je     11cd <main+0x6d>
test   %r15d,%r15d
jle    11c0 <main+0x60>
mov    %r15d,%ebx
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1250 <main+0xf0>
jmp    11c0 <main+0x60>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [2 x i8] c" \00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [512 x i8]
%8 = alloca i32
%9 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @atoi(i8* %12)
store i32 %13, i32* %6
br label %14
14: ; preds = %68, %2
%15 = load i32, i32* @stdin
%16 = call i32 @feof(i32 %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %69
19: ; preds = %14
store i16 0, i16* %9
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%21 = load i32, i32* @stdin
%22 = call i32 @fgets(i8* %20, i32 512, i32 %21)
store i32 0, i32* %8
br label %23
23: ; preds = %44, %19
%24 = load i32, i32* %8
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%26 = call i32 @strlen(i8* %25)
%27 = icmp slt i32 %24, %26
br i1 %27, label %28, label %47
28: ; preds = %23
%29 = load i32, i32* %8
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp sgt i32 %33, 33
br i1 %34, label %35, label %43
35: ; preds = %28
%36 = load i32, i32* %8
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp slt i32 %40, 126
br i1 %41, label %42, label %43
42: ; preds = %35
store i16 1, i16* %9
br label %47
43: ; preds = %35, %28
br label %44
44: ; preds = %43
%45 = load i32, i32* %8
%46 = add nsw i32 %45, 1
store i32 %46, i32* %8
br label %23
47: ; preds = %42, %23
%48 = load i32, i32* @stdin
%49 = call i32 @feof(i32 %48)
%50 = icmp ne i32 %49, 0
br i1 %50, label %68, label %51
51: ; preds = %47
%52 = load i16, i16* %9
%53 = sext i16 %52 to i32
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %68
55: ; preds = %51
store i32 0, i32* %8
br label %56
56: ; preds = %62, %55
%57 = load i32, i32* %8
%58 = load i32, i32* %6
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %65
60: ; preds = %56
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %62
62: ; preds = %60
%63 = load i32, i32* %8
%64 = add nsw i32 %63, 1
store i32 %64, i32* %8
br label %56
65: ; preds = %56
%66 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %66)
br label %68
68: ; preds = %65, %51, %47
br label %14
69: ; preds = %14
%70 = load i32, i32* %3
ret i32 %70
}

LLVM IR (-O2):
@stdin = global i32 0
@.str.1 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = tail call i32 @atoi(i8* %5)
%7 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%8 = load i32, i32* @stdin
%9 = call i32 @feof(i32 %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %47
11: ; preds = %2
%12 = icmp sgt i32 %6, 0
br label %13
13: ; preds = %11, %43
%14 = load i32, i32* @stdin
%15 = call i32 @fgets(i8* %7, i32 512, i32 %14)
%16 = call i32 @strlen(i8* %7)
%17 = icmp sgt i32 %16, 0
br i1 %17, label %22, label %29
18: ; preds = %22
%19 = call i32 @strlen(i8* %7)
%20 = sext i32 %19 to i64
%21 = icmp slt i64 %28, %20
br i1 %21, label %22, label %29
22: ; preds = %13, %18
%23 = phi i64 [ %28, %18 ], [ 0, %13 ]
%24 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = add i8 %25, -34
%27 = icmp ult i8 %26, 92
%28 = add nuw nsw i64 %23, 1
br i1 %27, label %29, label %18
29: ; preds = %18, %22, %13
%30 = phi i1 [ false, %13 ], [ %27, %22 ], [ %27, %18 ]
%31 = load i32, i32* @stdin
%32 = call i32 @feof(i32 %31)
%33 = icmp eq i32 %32, 0
%34 = and i1 %33, %30
br i1 %34, label %35, label %43
35: ; preds = %29
br i1 %12, label %36, label %41
36: ; preds = %35, %36
%37 = phi i32 [ %39, %36 ], [ 0, %35 ]
%38 = call i32 @putchar(i32 32)
%39 = add nuw nsw i32 %37, 1
%40 = icmp eq i32 %39, %6
br i1 %40, label %41, label %36
41: ; preds = %36, %35
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %43
43: ; preds = %41, %29
%44 = load i32, i32* @stdin
%45 = call i32 @feof(i32 %44)
%46 = icmp eq i32 %45, 0
br i1 %46, label %13, label %47
47: ; preds = %43, %2
ret i32 0
}