#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*/ comparison(char *, int);
char getchar();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
int main() {
  char prop[1000];
  printf("\tStory says you must say something on more lines\nand I'll printf "
         "all the lines that are over %d characters.\n",
         20);
  puts("So let's get to it!\n");
  comparison(prop, 20);
  while (getchar() != '\n')
    continue;
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3f0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
mov    $0x14,%esi
call   1050 <printf@plt>
lea    0xf03(%rip),%rdi
call   1040 <puts@plt>
lea    -0x3f0(%rbp),%rdi
mov    $0x14,%esi
call   1030 <comparison@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     1198 <main+0x58>
jmp    1180 <main+0x40>
mov    $0x0,%al
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x3f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x3e8,%rsp
lea    0xeb2(%rip),%rdi
mov    $0x14,%esi
call   1050 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rdi
mov    $0x14,%esi
call   1030 <comparison@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    $0xa,%al
jne    1180 <main+0x40>
xor    %eax,%eax
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x3e8,%rsp
ret

LLVM IR (-O0):
@.str = [109 x i8] c"\09Story says you must say something on more lines\0Aand I'll printf all the lines that are over %d characters.\0A\00"
@.str.1 = [21 x i8] c"So let's get to it!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1000 x i8]
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str, i64 0, i64 0), i32 20)
%4 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%5 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%6 = call i32 @comparison(i8* %5, i32 20)
br label %7
7: ; preds = %11, %0
%8 = call signext i8 (...) @getchar()
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %12
11: ; preds = %7
br label %7
12: ; preds = %7
%13 = call signext i8 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [109 x i8] c"\09Story says you must say something on more lines\0Aand I'll printf all the lines that are over %d characters.\0A\00"
@.str.1 = [21 x i8] c"So let's get to it!\0A\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str, i64 0, i64 0), i32 20)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @comparison(i8* %2, i32 20)
br label %6
6: ; preds = %6, %0
%7 = call signext i8 (...) @getchar()
%8 = icmp eq i8 %7, 10
br i1 %8, label %9, label %6
9: ; preds = %6
%10 = call signext i8 (...) @getchar()
ret i32 0
}