#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__ pCh;

/* Variables and functions */
int /*<<< orphan*/ __assert_fail(char *, char *, unsigned int, char *);
void r(void) {
  char pCh[1];
  int *pInt;
  unsigned int __cil_tmp3;
  unsigned int __cil_tmp4;
  unsigned int __cil_tmp5;
  unsigned int __cil_tmp6;
  char *__cil_tmp7;
  unsigned int __cil_tmp8;
  unsigned int __cil_tmp9;
  char __cil_tmp10;
  int __cil_tmp11;
  {
    __cil_tmp3 = 0 * 1U;
    __cil_tmp4 = (unsigned int)(pCh) + __cil_tmp3;
    *((char *)__cil_tmp4) = (char)0;
    __cil_tmp5 = 0 * 1U;
    __cil_tmp6 = (unsigned int)(pCh) + __cil_tmp5;
    __cil_tmp7 = (char *)__cil_tmp6;
    pInt = (int *)__cil_tmp7;
    *pInt = -1;
    {
      __cil_tmp8 = 0 * 1U;
      __cil_tmp9 = (unsigned int)(pCh) + __cil_tmp8;
      __cil_tmp10 = *((char *)__cil_tmp9);
      __cil_tmp11 = (int)__cil_tmp10;
      if (__cil_tmp11 == 0) {
      } else {
        __assert_fail("pCh[0]==0", "blast_array_1.c", 28U, "r");
      }
    }
    return;
  }
}


x86 assembly (clang, -O0):
<r>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x14(%rbp)
lea    -0x1(%rbp),%rax
add    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
movb   $0x0,(%rax)
movl   $0x0,-0x1c(%rbp)
lea    -0x1(%rbp),%rax
add    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movl   $0xffffffff,(%rax)
movl   $0x0,-0x2c(%rbp)
lea    -0x1(%rbp),%rax
add    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movsbl -0x31(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jne    1188 <r+0x78>
jmp    11a7 <r+0x97>
lea    0xe71(%rip),%rdi
lea    0xe74(%rip),%rsi
mov    $0x1c,%edx
lea    0xe78(%rip),%rcx
call   1030 <__assert_fail@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<r>:
push   %rax
lea    0x7(%rsp),%rax
mov    %eax,%eax
movl   $0xffffffff,(%rax)
xor    %eax,%eax
test   %al,%al
jne    1143 <r+0x33>
lea    0xed5(%rip),%rdi
lea    0xed8(%rip),%rsi
lea    0xee1(%rip),%rcx
mov    $0x1c,%edx
call   1030 <__assert_fail@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [10 x i8] c"pCh[0]==0\00"
@.str.1 = [16 x i8] c"blast_array_1.c\00"
@.str.2 = [2 x i8] c"r\00"
define void @r() {
%1 = alloca [1 x i8]
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca i32
store i32 0, i32* %3
%12 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%13 = ptrtoint i8* %12 to i32
%14 = load i32, i32* %3
%15 = add i32 %13, %14
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = zext i32 %16 to i64
%18 = inttoptr i64 %17 to i8*
store i8 0, i8* %18
store i32 0, i32* %5
%19 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%20 = ptrtoint i8* %19 to i32
%21 = load i32, i32* %5
%22 = add i32 %20, %21
store i32 %22, i32* %6
%23 = load i32, i32* %6
%24 = zext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %7
%26 = load i8*, i8** %7
%27 = bitcast i8* %26 to i32*
store i32* %27, i32** %2
%28 = load i32*, i32** %2
store i32 -1, i32* %28
store i32 0, i32* %8
%29 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%30 = ptrtoint i8* %29 to i32
%31 = load i32, i32* %8
%32 = add i32 %30, %31
store i32 %32, i32* %9
%33 = load i32, i32* %9
%34 = zext i32 %33 to i64
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35
store i8 %36, i8* %10
%37 = load i8, i8* %10
%38 = sext i8 %37 to i32
store i32 %38, i32* %11
%39 = load i32, i32* %11
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %0
br label %44
42: ; preds = %0
%43 = call i32 @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %44
44: ; preds = %42, %41
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"pCh[0]==0\00"
@.str.1 = [16 x i8] c"blast_array_1.c\00"
@.str.2 = [2 x i8] c"r\00"
define void @r() {
%1 = alloca [1 x i8]
%2 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
%3 = ptrtoint [1 x i8]* %1 to i64
%4 = and i64 %3, 4294967295
%5 = inttoptr i64 %4 to i8*
store i8 0, i8* %5
%6 = inttoptr i64 %4 to i32*
store i32 -1, i32* %6
%7 = load i8, i8* %5
%8 = icmp eq i8 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %0
%10 = call i32 @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %0, %9
ret void
}