#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 */
struct hc {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ hc_add_req_header(struct hc *, char *, char *);
int add_httpfs_headers(struct hc *hc) {
  hc_add_req_header(hc, "Authorization", "Basic Uk5TQmFzaWM6QTd4KjgtUXQ=");
  hc_add_req_header(hc, "User-Agent", "Replay-HTTPFS/1");
  hc_add_req_header(hc, "Accept-Encoding", "text/plain");
  return 0;
}


x86 assembly (clang, -O0):
<add_httpfs_headers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
lea    0xee0(%rip),%rdx
call   1030 <hc_add_req_header@plt>
mov    -0x8(%rbp),%rdi
lea    0xeef(%rip),%rsi
lea    0xef3(%rip),%rdx
call   1030 <hc_add_req_header@plt>
mov    -0x8(%rbp),%rdi
lea    0xef3(%rip),%rsi
lea    0xefc(%rip),%rdx
call   1030 <hc_add_req_header@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_httpfs_headers>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
lea    0xeec(%rip),%rdx
call   1030 <hc_add_req_header@plt>
lea    0xeff(%rip),%rsi
lea    0xf03(%rip),%rdx
mov    %rbx,%rdi
call   1030 <hc_add_req_header@plt>
lea    0xf04(%rip),%rsi
lea    0xf0d(%rip),%rdx
mov    %rbx,%rdi
call   1030 <hc_add_req_header@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.hc = type { i32 }
@.str = [14 x i8] c"Authorization\00"
@.str.1 = [31 x i8] c"Basic Uk5TQmFzaWM6QTd4KjgtUXQ=\00"
@.str.2 = [11 x i8] c"User-Agent\00"
@.str.3 = [16 x i8] c"Replay-HTTPFS/1\00"
@.str.4 = [16 x i8] c"Accept-Encoding\00"
@.str.5 = [11 x i8] c"text/plain\00"
define i32 @add_httpfs_headers(%struct.hc* %0) {
%2 = alloca %struct.hc*
store %struct.hc* %0, %struct.hc** %2
%3 = load %struct.hc*, %struct.hc** %2
%4 = call i32 @hc_add_req_header(%struct.hc* %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%5 = load %struct.hc*, %struct.hc** %2
%6 = call i32 @hc_add_req_header(%struct.hc* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%7 = load %struct.hc*, %struct.hc** %2
%8 = call i32 @hc_add_req_header(%struct.hc* %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.hc = type { i32 }
@.str = [14 x i8] c"Authorization\00"
@.str.1 = [31 x i8] c"Basic Uk5TQmFzaWM6QTd4KjgtUXQ=\00"
@.str.2 = [11 x i8] c"User-Agent\00"
@.str.3 = [16 x i8] c"Replay-HTTPFS/1\00"
@.str.4 = [16 x i8] c"Accept-Encoding\00"
@.str.5 = [11 x i8] c"text/plain\00"
define i32 @add_httpfs_headers(%struct.hc* %0) {
%2 = tail call i32 @hc_add_req_header(%struct.hc* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @hc_add_req_header(%struct.hc* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @hc_add_req_header(%struct.hc* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}