#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*/ search_replace_string(char *, char *, char *);
void search_replace_special_characters(char *buffer) {
  search_replace_string(buffer, "`", "'");
  search_replace_string(buffer, "\\", "");
  search_replace_string(buffer, "\"", "'");
}


x86 assembly (clang, -O0):
<search_replace_special_characters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
lea    0xed4(%rip),%rdx
call   1030 <search_replace_string@plt>
mov    -0x8(%rbp),%rdi
lea    0xec6(%rip),%rsi
lea    0xec2(%rip),%rdx
call   1030 <search_replace_string@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb1(%rip),%rsi
lea    0xea6(%rip),%rdx
call   1030 <search_replace_string@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<search_replace_special_characters>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee2(%rip),%rsi
lea    0xedd(%rip),%r14
mov    %r14,%rdx
call   1030 <search_replace_string@plt>
lea    0xed0(%rip),%rsi
lea    0xecc(%rip),%rdx
mov    %rbx,%rdi
call   1030 <search_replace_string@plt>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <search_replace_string@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"`\00"
@.str.1 = [2 x i8] c"'\00"
@.str.2 = [2 x i8] c"\\\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [2 x i8] c"\22\00"
define void @search_replace_special_characters(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @search_replace_string(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 @search_replace_string(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%7 = load i8*, i8** %2
%8 = call i32 @search_replace_string(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"`\00"
@.str.1 = [2 x i8] c"'\00"
@.str.2 = [2 x i8] c"\\\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [2 x i8] c"\22\00"
define void @search_replace_special_characters(i8* %0) {
%2 = tail call i32 @search_replace_string(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @search_replace_string(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @search_replace_string(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}