#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *FLine(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  FILE *fin = fopen("Valgrind_Test_Input.in", "r");
  char *myFLineInput = FLine(fin);
  printf("Your Input 1:\n%s\n", myFLineInput);
  myFLineInput = FLine(fin);
  printf("Your Input 2:\n%s\n", myFLineInput);
  myFLineInput = FLine(fin);
  printf("Your Input 3:\n%s\n", myFLineInput);
  myFLineInput = FLine(fin);
  printf("Your Input 4:\n%s\n", myFLineInput);
  myFLineInput = FLine(fin);
  printf("Your Input 5:\n%s\n", myFLineInput);
  myFLineInput = FLine(fin);
  printf("Your Input 6:\n%s\n", myFLineInput);
  myFLineInput = FLine(fin);
  printf("Your Input 7:\n%s\n", myFLineInput);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <FLine@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xed8(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <FLine@plt>
lea    0xec3(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <FLine@plt>
lea    0xebe(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <FLine@plt>
lea    0xeb9(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <FLine@plt>
lea    0xeb4(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <FLine@plt>
lea    0xeaf(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <FLine@plt>
lea    0xeaa(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <FLine@plt>
lea    0xea5(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Valgrind_Test_Input.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [18 x i8] c"Your Input 1:\0A%s\0A\00"
@.str.3 = [18 x i8] c"Your Input 2:\0A%s\0A\00"
@.str.4 = [18 x i8] c"Your Input 3:\0A%s\0A\00"
@.str.5 = [18 x i8] c"Your Input 4:\0A%s\0A\00"
@.str.6 = [18 x i8] c"Your Input 5:\0A%s\0A\00"
@.str.7 = [18 x i8] c"Your Input 6:\0A%s\0A\00"
@.str.8 = [18 x i8] c"Your Input 7:\0A%s\0A\00"
define i32 @main() {
%1 = alloca i32*
%2 = alloca i8*
%3 = call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %3, i32** %1
%4 = load i32*, i32** %1
%5 = call i8* @FLine(i32* %4)
store i8* %5, i8** %2
%6 = load i8*, i8** %2
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = load i32*, i32** %1
%9 = call i8* @FLine(i32* %8)
store i8* %9, i8** %2
%10 = load i8*, i8** %2
%11 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = load i32*, i32** %1
%13 = call i8* @FLine(i32* %12)
store i8* %13, i8** %2
%14 = load i8*, i8** %2
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %14)
%16 = load i32*, i32** %1
%17 = call i8* @FLine(i32* %16)
store i8* %17, i8** %2
%18 = load i8*, i8** %2
%19 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%20 = load i32*, i32** %1
%21 = call i8* @FLine(i32* %20)
store i8* %21, i8** %2
%22 = load i8*, i8** %2
%23 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %22)
%24 = load i32*, i32** %1
%25 = call i8* @FLine(i32* %24)
store i8* %25, i8** %2
%26 = load i8*, i8** %2
%27 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8* %26)
%28 = load i32*, i32** %1
%29 = call i8* @FLine(i32* %28)
store i8* %29, i8** %2
%30 = load i8*, i8** %2
%31 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Valgrind_Test_Input.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [18 x i8] c"Your Input 1:\0A%s\0A\00"
@.str.3 = [18 x i8] c"Your Input 2:\0A%s\0A\00"
@.str.4 = [18 x i8] c"Your Input 3:\0A%s\0A\00"
@.str.5 = [18 x i8] c"Your Input 4:\0A%s\0A\00"
@.str.6 = [18 x i8] c"Your Input 5:\0A%s\0A\00"
@.str.7 = [18 x i8] c"Your Input 6:\0A%s\0A\00"
@.str.8 = [18 x i8] c"Your Input 7:\0A%s\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i8* @FLine(i32* %1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%4 = tail call i8* @FLine(i32* %1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%6 = tail call i8* @FLine(i32* %1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%8 = tail call i8* @FLine(i32* %1)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i8* %8)
%10 = tail call i8* @FLine(i32* %1)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %10)
%12 = tail call i8* @FLine(i32* %1)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8* %12)
%14 = tail call i8* @FLine(i32* %1)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* %14)
ret i32 0
}