#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 scalar_t__ array;

/* Variables and functions */
int /*<<< orphan*/ __assert_fail(char *, char *, unsigned int, char *);
void f(void) {
  int array[1];
  int *p;
  unsigned int __cil_tmp3;
  unsigned int __cil_tmp4;
  int *__cil_tmp5;
  unsigned int __cil_tmp6;
  unsigned int __cil_tmp7;
  {
    __cil_tmp3 = 0 * 4U;
    __cil_tmp4 = (unsigned int)(array) + __cil_tmp3;
    p = (int *)__cil_tmp4;
    {
      __cil_tmp5 = (int *)0;
      __cil_tmp6 = (unsigned int)__cil_tmp5;
      __cil_tmp7 = (unsigned int)p;
      if (__cil_tmp7 != __cil_tmp6) {
      } else {
        __assert_fail("p != 0", "blast_array_1.c", 15U, "f");
      }
    }
    return;
  }
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x14(%rbp)
lea    -0x4(%rbp),%rax
add    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1157 <f+0x47>
jmp    1176 <f+0x66>
lea    0xea2(%rip),%rdi
lea    0xea2(%rip),%rsi
mov    $0xf,%edx
lea    0xea6(%rip),%rcx
call   1030 <__assert_fail@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rax
lea    0x4(%rsp),%rax
test   %eax,%eax
je     111c <f+0xc>
pop    %rax
ret
lea    0xedd(%rip),%rdi
lea    0xedd(%rip),%rsi
lea    0xee6(%rip),%rcx
mov    $0xf,%edx
call   1030 <__assert_fail@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"p != 0\00"
@.str.1 = [16 x i8] c"blast_array_1.c\00"
@.str.2 = [2 x i8] c"f\00"
define void @f() {
%1 = alloca [1 x i32]
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
%8 = getelementptr inbounds [1 x i32], [1 x i32]* %1, i64 0, i64 0
%9 = ptrtoint i32* %8 to i32
%10 = load i32, i32* %3
%11 = add i32 %9, %10
store i32 %11, i32* %4
%12 = load i32, i32* %4
%13 = zext i32 %12 to i64
%14 = inttoptr i64 %13 to i32*
store i32* %14, i32** %2
store i32* null, i32** %5
%15 = load i32*, i32** %5
%16 = ptrtoint i32* %15 to i32
store i32 %16, i32* %6
%17 = load i32*, i32** %2
%18 = ptrtoint i32* %17 to i32
store i32 %18, i32* %7
%19 = load i32, i32* %7
%20 = load i32, i32* %6
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %0
br label %25
23: ; preds = %0
%24 = call i32 @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %23, %22
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"p != 0\00"
@.str.1 = [16 x i8] c"blast_array_1.c\00"
@.str.2 = [2 x i8] c"f\00"
define void @f() {
%1 = alloca [1 x i32]
%2 = bitcast [1 x i32]* %1 to i8*
%3 = ptrtoint [1 x i32]* %1 to i64
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %8
8: ; preds = %0, %6
ret void
}