#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 */
int /*<<< orphan*/ display_bitrate(int /*<<< orphan*/ *const, char *, int, int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *const);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *const, char *);
int display_bitrates(FILE *const fp) {
  display_bitrate(fp, "1", 1, 1);
  display_bitrate(fp, "2", 2, 0);
  display_bitrate(fp, "2.5", 4, 0);
  fprintf(fp, "\n");
  fflush(fp);
  return 0;
}


x86 assembly (clang, -O0):
<display_bitrates>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1050 <display_bitrate@plt>
mov    -0x8(%rbp),%rdi
lea    0xea4(%rip),%rsi
mov    $0x2,%edx
xor    %ecx,%ecx
call   1050 <display_bitrate@plt>
mov    -0x8(%rbp),%rdi
lea    0xe8f(%rip),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1050 <display_bitrate@plt>
mov    -0x8(%rbp),%rdi
lea    0xe7c(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <fflush@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_bitrates>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1050 <display_bitrate@plt>
lea    0xeb1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
xor    %ecx,%ecx
call   1050 <display_bitrate@plt>
lea    0xe9d(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1050 <display_bitrate@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %rbx,%rdi
call   1040 <fflush@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [2 x i8] c"2\00"
@.str.2 = [4 x i8] c"2.5\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @display_bitrates(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @display_bitrate(i32* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%5 = load i32*, i32** %2
%6 = call i32 @display_bitrate(i32* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 0)
%7 = load i32*, i32** %2
%8 = call i32 @display_bitrate(i32* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 0)
%9 = load i32*, i32** %2
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 @fflush(i32* %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [2 x i8] c"2\00"
@.str.2 = [4 x i8] c"2.5\00"
define i32 @display_bitrates(i32* %0) {
%2 = tail call i32 @display_bitrate(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%3 = tail call i32 @display_bitrate(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 0)
%4 = tail call i32 @display_bitrate(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 0)
%5 = tail call i32 @fputc(i32 10, i32* %0)
%6 = tail call i32 @fflush(i32* %0)
ret i32 0
}