#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 EXIT_SUCCESS;
int /*<<< orphan*/ printChars(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strRev(char *);
int main(void) {
  char strShaq[] = "MansNotHot";
  char strKurt[] = "KurtKlikGod";
  printf("First string: %s\n", strShaq);
  printf("Second string: %s\n", strKurt);
  printChars(strShaq);
  strRev(strShaq);
  printf("\n");
  printChars(strShaq);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xeb7(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xeaf(%rip),%al
mov    %al,-0x5(%rbp)
mov    0xea6(%rip),%rax
mov    %rax,-0x1b(%rbp)
mov    0xea4(%rip),%eax
mov    %eax,-0x13(%rbp)
lea    -0xf(%rbp),%rsi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1b(%rbp),%rsi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xf(%rbp),%rdi
call   1050 <printChars@plt>
lea    -0xf(%rbp),%rdi
call   1030 <strRev@plt>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xf(%rbp),%rdi
call   1050 <printChars@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
movabs $0x48746f4e736e614d,%rax
6f 74 48
mov    %rax,(%rsp)
movl   $0x746f48,0x7(%rsp)
movabs $0x6b696c4b7472754b,%rax
6c 69 6b
mov    %rax,0x10(%rsp)
movl   $0x646f47,0x18(%rsp)
lea    0xe9e(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe9c(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1060 <printChars@plt>
mov    %rbx,%rdi
call   1040 <strRev@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1060 <printChars@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.strShaq = [11 x i8] c"MansNotHot\00"
@__const.main.strKurt = [12 x i8] c"KurtKlikGod\00"
@.str = [18 x i8] c"First string: %s\0A\00"
@.str.1 = [19 x i8] c"Second string: %s\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
%3 = alloca [12 x i8]
store i32 0, i32* %1
%4 = bitcast [11 x i8]* %2 to i8*
%5 = bitcast [12 x i8]* %3 to i8*
%6 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%11 = call i32 @printChars(i8* %10)
%12 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%13 = call i32 @strRev(i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%16 = call i32 @printChars(i8* %15)
%17 = load i32, i32* @EXIT_SUCCESS
ret i32 %17
}

LLVM IR (-O2):
@__const.main.strShaq = [11 x i8] c"MansNotHot\00"
@__const.main.strKurt = [12 x i8] c"KurtKlikGod\00"
@.str = [18 x i8] c"First string: %s\0A\00"
@.str.1 = [19 x i8] c"Second string: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [11 x i8]
%2 = alloca [12 x i8]
%3 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %3)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%7 = call i32 @printChars(i8* %3)
%8 = call i32 @strRev(i8* %3)
%9 = call i32 @putchar(i32 10)
%10 = call i32 @printChars(i8* %3)
%11 = load i32, i32* @EXIT_SUCCESS
ret i32 %11
}