#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*/ printChar(char);
void main() {
  int i, text_len = 0;
  char text[200] = "Mohannad Atiyah Mohammad Al-Harthi";
  char hex_digits[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
                         '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
  while (text[text_len] != 0)
    text_len++;
  for (i = 0; i < text_len + 1; i++) {
    char shift, lower, higher;
    lower = text[i] && 15;
    higher = text[i];
    for (shift = 0; shift < 4; shift++)
      higher = higher / 2;
    printChar(hex_digits[higher]);
    printChar(hex_digits[lower]);
    printChar(' ');
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x8(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0xc8,%edx
call   1030 <memcpy@plt>
mov    0xf7f(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xf79(%rip),%rax
mov    %rax,-0xd8(%rbp)
movslq -0x8(%rbp),%rax
movsbl -0xd0(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     1189 <main+0x69>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1166 <main+0x46>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    126e <main+0x14e>
movslq -0x4(%rbp),%rax
movsbl -0xd0(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xe4(%rbp)
je     11cb <main+0xab>
mov    $0x1,%al
mov    %al,-0xe4(%rbp)
jmp    11cb <main+0xab>
mov    -0xe4(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0xe2(%rbp)
movslq -0x4(%rbp),%rax
mov    -0xd0(%rbp,%rax,1),%al
mov    %al,-0xe3(%rbp)
movb   $0x0,-0xe1(%rbp)
movsbl -0xe1(%rbp),%eax
cmp    $0x4,%eax
jge    122c <main+0x10c>
movsbl -0xe3(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %al,-0xe3(%rbp)
mov    -0xe1(%rbp),%al
add    $0x1,%al
mov    %al,-0xe1(%rbp)
jmp    11f4 <main+0xd4>
movsbq -0xe3(%rbp),%rax
ff
movsbl -0xe0(%rbp,%rax,1),%edi
ff
call   1040 <printChar@plt>
movsbq -0xe2(%rbp),%rax
ff
movsbl -0xe0(%rbp,%rax,1),%edi
ff
call   1040 <printChar@plt>
mov    $0x20,%edi
call   1040 <printChar@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1190 <main+0x70>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %ebx,%ebx
lea    0xee2(%rip),%r14
lea    0xfab(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rbx,%r14,1),%eax
mov    %eax,%ecx
sar    $0x7,%cl
shr    $0x4,%cl
add    %al,%cl
sar    $0x4,%cl
movsbq %cl,%rax
movsbl (%rax,%r15,1),%edi
call   1030 <printChar@plt>
cmp    $0x22,%rbx
mov    %r15,%rax
adc    $0x0,%rax
movsbl (%rax),%edi
call   1030 <printChar@plt>
mov    $0x20,%edi
call   1030 <printChar@plt>
add    $0x1,%rbx
cmp    $0x23,%rbx
jne    1130 <main+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.text = [200 x i8] c"Mohannad Atiyah Mohammad Al-Harthi\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.hex_digits = [16 x i8] c"0123456789ABCDEF"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [200 x i8]
%4 = alloca [16 x i8]
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
store i32 0, i32* %2
%8 = bitcast [200 x i8]* %3 to i8*
%9 = bitcast [16 x i8]* %4 to i8*
br label %10
10: ; preds = %17, %0
%11 = load i32, i32* %2
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 %12
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %10
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %10
20: ; preds = %10
store i32 0, i32* %1
br label %21
21: ; preds = %66, %20
%22 = load i32, i32* %1
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %69
26: ; preds = %21
%27 = load i32, i32* %1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
br label %34
34: ; preds = %33, %26
%35 = phi i1 [ false, %26 ], [ true, %33 ]
%36 = zext i1 %35 to i32
%37 = trunc i32 %36 to i8
store i8 %37, i8* %6
%38 = load i32, i32* %1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 %39
%41 = load i8, i8* %40
store i8 %41, i8* %7
store i8 0, i8* %5
br label %42
42: ; preds = %51, %34
%43 = load i8, i8* %5
%44 = sext i8 %43 to i32
%45 = icmp slt i32 %44, 4
br i1 %45, label %46, label %54
46: ; preds = %42
%47 = load i8, i8* %7
%48 = sext i8 %47 to i32
%49 = sdiv i32 %48, 2
%50 = trunc i32 %49 to i8
store i8 %50, i8* %7
br label %51
51: ; preds = %46
%52 = load i8, i8* %5
%53 = add i8 %52, 1
store i8 %53, i8* %5
br label %42
54: ; preds = %42
%55 = load i8, i8* %7
%56 = sext i8 %55 to i64
%57 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = call i32 @printChar(i8 signext %58)
%60 = load i8, i8* %6
%61 = sext i8 %60 to i64
%62 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = call i32 @printChar(i8 signext %63)
%65 = call i32 @printChar(i8 signext 32)
br label %66
66: ; preds = %54
%67 = load i32, i32* %1
%68 = add nsw i32 %67, 1
store i32 %68, i32* %1
br label %21
69: ; preds = %21
ret void
}

LLVM IR (-O2):
@__const.main.text = [200 x i8] c"Mohannad Atiyah Mohammad Al-Harthi\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.hex_digits = [16 x i8] c"0123456789ABCDEF"
define void @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %16, %1 ]
%3 = getelementptr inbounds [200 x i8], [200 x i8]* @__const.main.text, i64 0, i64 %2
%4 = load i8, i8* %3
%5 = sdiv i8 %4, 16
%6 = icmp ult i64 %2, 34
%7 = sext i8 %5 to i64
%8 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.main.hex_digits, i64 0, i64 %7
%9 = load i8, i8* %8
%10 = tail call i32 @printChar(i8 signext %9)
%11 = zext i1 %6 to i64
%12 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.main.hex_digits, i64 0, i64 %11
%13 = load i8, i8* %12
%14 = tail call i32 @printChar(i8 signext %13)
%15 = tail call i32 @printChar(i8 signext 32)
%16 = add nuw nsw i64 %2, 1
%17 = icmp eq i64 %16, 35
br i1 %17, label %18, label %1
18: ; preds = %1
ret void
}