#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 */
char **calloc(int, int);
char *strchr(char *, char);
char **get_special_char(char *string) {
  char **chars = calloc(6, sizeof(char *));
  chars[0] = strchr(string, '|');
  chars[1] = strchr(string, ';');
  chars[2] = strchr(string, '<');
  chars[3] = strchr(string, '>');
  chars[4] = strchr(string, '"');
  chars[5] = strchr(string, '\0');
  return chars;
}


x86 assembly (clang, -O0):
<get_special_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x6,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x7c,%esi
call   1030 <strchr@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rdi
mov    $0x3b,%esi
call   1030 <strchr@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x8(%rbp),%rdi
mov    $0x3c,%esi
call   1030 <strchr@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x10(%rax)
mov    -0x8(%rbp),%rdi
mov    $0x3e,%esi
call   1030 <strchr@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x8(%rbp),%rdi
mov    $0x22,%esi
call   1030 <strchr@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x20(%rax)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1030 <strchr@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x28(%rax)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_special_char>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    $0x6,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x7c,%esi
call   1040 <strchr@plt>
mov    %rax,(%rbx)
mov    %r14,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
mov    %rax,0x8(%rbx)
mov    %r14,%rdi
mov    $0x3c,%esi
call   1040 <strchr@plt>
mov    %rax,0x10(%rbx)
mov    %r14,%rdi
mov    $0x3e,%esi
call   1040 <strchr@plt>
mov    %rax,0x18(%rbx)
mov    %r14,%rdi
mov    $0x22,%esi
call   1040 <strchr@plt>
mov    %rax,0x20(%rbx)
mov    %r14,%rdi
call   1030 <strlen@plt>
add    %r14,%rax
mov    %rax,0x28(%rbx)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8** @get_special_char(i8* %0) {
%2 = alloca i8*
%3 = alloca i8**
store i8* %0, i8** %2
%4 = call i8** @calloc(i32 6, i32 8)
store i8** %4, i8*** %3
%5 = load i8*, i8** %2
%6 = call i8* @strchr(i8* %5, i8 signext 124)
%7 = load i8**, i8*** %3
%8 = getelementptr inbounds i8*, i8** %7, i64 0
store i8* %6, i8** %8
%9 = load i8*, i8** %2
%10 = call i8* @strchr(i8* %9, i8 signext 59)
%11 = load i8**, i8*** %3
%12 = getelementptr inbounds i8*, i8** %11, i64 1
store i8* %10, i8** %12
%13 = load i8*, i8** %2
%14 = call i8* @strchr(i8* %13, i8 signext 60)
%15 = load i8**, i8*** %3
%16 = getelementptr inbounds i8*, i8** %15, i64 2
store i8* %14, i8** %16
%17 = load i8*, i8** %2
%18 = call i8* @strchr(i8* %17, i8 signext 62)
%19 = load i8**, i8*** %3
%20 = getelementptr inbounds i8*, i8** %19, i64 3
store i8* %18, i8** %20
%21 = load i8*, i8** %2
%22 = call i8* @strchr(i8* %21, i8 signext 34)
%23 = load i8**, i8*** %3
%24 = getelementptr inbounds i8*, i8** %23, i64 4
store i8* %22, i8** %24
%25 = load i8*, i8** %2
%26 = call i8* @strchr(i8* %25, i8 signext 0)
%27 = load i8**, i8*** %3
%28 = getelementptr inbounds i8*, i8** %27, i64 5
store i8* %26, i8** %28
%29 = load i8**, i8*** %3
ret i8** %29
}

LLVM IR (-O2):
define noalias i8** @get_special_char(i8* %0) {
%2 = tail call i8** @calloc(i32 6, i32 8)
%3 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 124)
store i8* %3, i8** %2
%4 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 59)
%5 = getelementptr inbounds i8*, i8** %2, i64 1
store i8* %4, i8** %5
%6 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 60)
%7 = getelementptr inbounds i8*, i8** %2, i64 2
store i8* %6, i8** %7
%8 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 62)
%9 = getelementptr inbounds i8*, i8** %2, i64 3
store i8* %8, i8** %9
%10 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 34)
%11 = getelementptr inbounds i8*, i8** %2, i64 4
store i8* %10, i8** %11
%12 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%13 = getelementptr i8, i8* %0, i64 %12
%14 = getelementptr inbounds i8*, i8** %2, i64 5
store i8* %13, i8** %14
ret i8** %2
}