#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*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *ucs_symbol(unsigned int);
const char *ucs_symbol_range(unsigned int low, unsigned int high) {
  static char buf[24 + 1];
  strcpy(buf, ucs_symbol(low));
  strcat(buf, "..");
  strcat(buf, ucs_symbol(high));
  return buf;
}


x86 assembly (clang, -O0):
<ucs_symbol_range>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <ucs_symbol@plt>
mov    %rax,%rsi
lea    0x2f00(%rip),%rdi
call   1030 <strcpy@plt>
lea    0x2ef4(%rip),%rdi
lea    0xe9d(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%edi
call   1040 <ucs_symbol@plt>
mov    %rax,%rsi
lea    0x2ed6(%rip),%rdi
call   1050 <strcat@plt>
lea    0x2eca(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ucs_symbol_range>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
call   1040 <ucs_symbol@plt>
lea    0x2f0f(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
mov    %ebp,%edi
call   1040 <ucs_symbol@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@ucs_symbol_range.buf = internal global [25 x i8] zeroinitializer
@.str = [3 x i8] c"..\00"
define i8* @ucs_symbol_range(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = call i8* @ucs_symbol(i32 %5)
%7 = call i32 @strcpy(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0), i8* %6)
%8 = call i32 @strcat(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %4
%10 = call i8* @ucs_symbol(i32 %9)
%11 = call i32 @strcat(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0), i8* %10)
ret i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0)
}

LLVM IR (-O2):
@ucs_symbol_range.buf = internal global [25 x i8] zeroinitializer
@.str = [3 x i8] c"..\00"
define i8* @ucs_symbol_range(i32 %0, i32 %1) {
%3 = tail call i8* @ucs_symbol(i32 %0)
%4 = tail call i32 @strcpy(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0), i8* %3)
%5 = tail call i32 @strcat(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = tail call i8* @ucs_symbol(i32 %1)
%7 = tail call i32 @strcat(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0), i8* %6)
ret i8* getelementptr inbounds ([25 x i8], [25 x i8]* @ucs_symbol_range.buf, i64 0, i64 0)
}