#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 */
typedef int uint8_t;

/* Variables and functions */
int /*<<< orphan*/ assertTrue(char *, int);
void test_case1() {
  long x = 234342342L;
  long *px = &x;
  uint8_t *p = (uint8_t *)px;
  uint8_t b1 = p[0];
  assertTrue("p[0] == 198", p[0] == 198);
  ;
  assertTrue("p[1] == 199", p[1] == 199);
  ;
  assertTrue("p[2] == 247", p[2] == 247);
  ;
  assertTrue("p[3] == 13", p[3] == 13);
  ;
}


x86 assembly (clang, -O0):
<test_case1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0xdf7c7c6,-0x8(%rbp)
0d
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0xc6,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeae(%rip),%rdi
call   1030 <assertTrue@plt>
mov    -0x18(%rbp),%rax
cmpl   $0xc7,0x4(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe9b(%rip),%rdi
call   1030 <assertTrue@plt>
mov    -0x18(%rbp),%rax
cmpl   $0xf7,0x8(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe88(%rip),%rdi
call   1030 <assertTrue@plt>
mov    -0x18(%rbp),%rax
cmpl   $0xd,0xc(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe78(%rip),%rdi
call   1030 <assertTrue@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_case1>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <assertTrue@plt>
lea    0xee6(%rip),%rdi
xor    %esi,%esi
call   1030 <assertTrue@plt>
lea    0xee4(%rip),%rdi
call   1030 <assertTrue@plt>
lea    0xee4(%rip),%rdi
pop    %rax
jmp    1030 <assertTrue@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"p[0] == 198\00"
@.str.1 = [12 x i8] c"p[1] == 199\00"
@.str.2 = [12 x i8] c"p[2] == 247\00"
@.str.3 = [11 x i8] c"p[3] == 13\00"
define void @test_case1() {
%1 = alloca i64
%2 = alloca i64*
%3 = alloca i32*
%4 = alloca i32
store i64 234342342, i64* %1
store i64* %1, i64** %2
%5 = load i64*, i64** %2
%6 = bitcast i64* %5 to i32*
store i32* %6, i32** %3
%7 = load i32*, i32** %3
%8 = getelementptr inbounds i32, i32* %7, i64 0
%9 = load i32, i32* %8
store i32 %9, i32* %4
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i64 0
%12 = load i32, i32* %11
%13 = icmp eq i32 %12, 198
%14 = zext i1 %13 to i32
%15 = call i32 @assertTrue(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i64 1
%18 = load i32, i32* %17
%19 = icmp eq i32 %18, 199
%20 = zext i1 %19 to i32
%21 = call i32 @assertTrue(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = load i32*, i32** %3
%23 = getelementptr inbounds i32, i32* %22, i64 2
%24 = load i32, i32* %23
%25 = icmp eq i32 %24, 247
%26 = zext i1 %25 to i32
%27 = call i32 @assertTrue(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %26)
%28 = load i32*, i32** %3
%29 = getelementptr inbounds i32, i32* %28, i64 3
%30 = load i32, i32* %29
%31 = icmp eq i32 %30, 13
%32 = zext i1 %31 to i32
%33 = call i32 @assertTrue(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %32)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"p[0] == 198\00"
@.str.1 = [12 x i8] c"p[1] == 199\00"
@.str.2 = [12 x i8] c"p[2] == 247\00"
@.str.3 = [11 x i8] c"p[3] == 13\00"
define void @test_case1() {
%1 = tail call i32 @assertTrue(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @assertTrue(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 @assertTrue(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 poison)
%4 = tail call i32 @assertTrue(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 poison)
ret void
}