#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*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stdout;
void mcxIOlistParmodes(void) {
  fprintf(stdout, "%5d  vanilla mode, fetch next line\n", 0);
  fprintf(stdout, "%5d  chomp trailing newline\n", 1);
  fprintf(stdout, "%5d  skip empty lines\n", 2);
  fprintf(stdout, "%5d  paragraph mode\n", 4);
  fprintf(stdout, "%5d  backslash escapes newline\n", 8);
  fprintf(stdout, "%5d  section mode, ended by singly dot on a single line\n",
          16);
}


x86 assembly (clang, -O0):
<mcxIOlistParmodes>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
xor    %edx,%edx
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
mov    $0x1,%edx
call   1030 <fprintf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
lea    0xeec(%rip),%rsi
mov    $0x2,%edx
call   1030 <fprintf@plt>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
mov    $0x4,%edx
call   1030 <fprintf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
lea    0xee4(%rip),%rsi
mov    $0x8,%edx
call   1030 <fprintf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
lea    0xeea(%rip),%rsi
mov    $0x10,%edx
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mcxIOlistParmodes>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %edx,%edx
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef3(%rip),%rsi
mov    $0x1,%edx
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefd(%rip),%rsi
mov    $0x2,%edx
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf01(%rip),%rsi
mov    $0x4,%edx
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf03(%rip),%rsi
mov    $0x8,%edx
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf10(%rip),%rsi
mov    $0x10,%edx
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [36 x i8] c"%5d vanilla mode, fetch next line\0A\00"
@.str.1 = [29 x i8] c"%5d chomp trailing newline\0A\00"
@.str.2 = [23 x i8] c"%5d skip empty lines\0A\00"
@.str.3 = [21 x i8] c"%5d paragraph mode\0A\00"
@.str.4 = [32 x i8] c"%5d backslash escapes newline\0A\00"
@.str.5 = [57 x i8] c"%5d section mode, ended by singly dot on a single line\0A\00"
define void @mcxIOlistParmodes() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = load i32, i32* @stdout
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 1)
%5 = load i32, i32* @stdout
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 2)
%7 = load i32, i32* @stdout
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 4)
%9 = load i32, i32* @stdout
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 8)
%11 = load i32, i32* @stdout
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 16)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [36 x i8] c"%5d vanilla mode, fetch next line\0A\00"
@.str.1 = [29 x i8] c"%5d chomp trailing newline\0A\00"
@.str.2 = [23 x i8] c"%5d skip empty lines\0A\00"
@.str.3 = [21 x i8] c"%5d paragraph mode\0A\00"
@.str.4 = [32 x i8] c"%5d backslash escapes newline\0A\00"
@.str.5 = [57 x i8] c"%5d section mode, ended by singly dot on a single line\0A\00"
define void @mcxIOlistParmodes() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 1)
%5 = load i32, i32* @stdout
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 2)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 4)
%9 = load i32, i32* @stdout
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 8)
%11 = load i32, i32* @stdout
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 16)
ret void
}