#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*/ printf(char *, int);
int main(void) {
  printf("Value:              num1 == 0x%02X\n", 0x0007);
  printf("Value:              num2 == 0x%02X\n", 0x001c);
  printf("Value:              num3 == 0x%08X\n", 0x00FF00FF);
  printf("numbers:            num1 == 0x%02X\n", 0x0007);
  printf("And:         num1 & num2 == 0x%02X\n", 0x0007 & 0x001c);
  printf("Or:          num1 | num2 == 0x%02X\n", 0x0007 | 0x001c);
  printf("Xor:         num1 ^ num2 == 0x%02X\n", 0x0007 ^ 0x001c);
  printf("Not:              ~ num3 == 0x%08X\n", ~0x00FF00FF);
  printf("Shift left:   num3 << 16 == 0x%08X\n", 0x00FF00FF << 16);
  printf("Shift right:  num3 >> 16 == 0x%08X\n", 0x00FF00FF >> 16);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x1c,%esi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0xff00ff,%esi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0x1f,%esi
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
mov    $0x1b,%esi
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
mov    $0xff00ff00,%esi
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
mov    $0xff0000,%esi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x1c,%esi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0xff00ff,%esi
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0x1f,%esi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    $0x1b,%esi
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
mov    $0xff00ff00,%esi
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
mov    $0xff0000,%esi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Value: num1 == 0x%02X\0A\00"
@.str.1 = [36 x i8] c"Value: num2 == 0x%02X\0A\00"
@.str.2 = [36 x i8] c"Value: num3 == 0x%08X\0A\00"
@.str.3 = [36 x i8] c"numbers: num1 == 0x%02X\0A\00"
@.str.4 = [36 x i8] c"And: num1 & num2 == 0x%02X\0A\00"
@.str.5 = [36 x i8] c"Or: num1 | num2 == 0x%02X\0A\00"
@.str.6 = [36 x i8] c"Xor: num1 ^ num2 == 0x%02X\0A\00"
@.str.7 = [36 x i8] c"Not: ~ num3 == 0x%08X\0A\00"
@.str.8 = [36 x i8] c"Shift left: num3 << 16 == 0x%08X\0A\00"
@.str.9 = [36 x i8] c"Shift right: num3 >> 16 == 0x%08X\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 7)
%3 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 28)
%4 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 16711935)
%5 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 7)
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 4)
%7 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 31)
%8 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 27)
%9 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i32 -16711936)
%10 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 16711680)
%11 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i32 255)
ret i32 0
}

LLVM IR (-O2):
@.str = [36 x i8] c"Value: num1 == 0x%02X\0A\00"
@.str.1 = [36 x i8] c"Value: num2 == 0x%02X\0A\00"
@.str.2 = [36 x i8] c"Value: num3 == 0x%08X\0A\00"
@.str.3 = [36 x i8] c"numbers: num1 == 0x%02X\0A\00"
@.str.4 = [36 x i8] c"And: num1 & num2 == 0x%02X\0A\00"
@.str.5 = [36 x i8] c"Or: num1 | num2 == 0x%02X\0A\00"
@.str.6 = [36 x i8] c"Xor: num1 ^ num2 == 0x%02X\0A\00"
@.str.7 = [36 x i8] c"Not: ~ num3 == 0x%08X\0A\00"
@.str.8 = [36 x i8] c"Shift left: num3 << 16 == 0x%08X\0A\00"
@.str.9 = [36 x i8] c"Shift right: num3 >> 16 == 0x%08X\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 7)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 28)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 16711935)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 7)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 31)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 27)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i32 -16711936)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 16711680)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i32 255)
ret i32 0
}