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

/* Variables and functions */
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printarr(int *);
int main(int argc, char **argv) {
  static uint8_t arr[(20 % 8 == 0 ? 20 / 8 : 20 / 8 + 1)];
  memset(&arr[0], 0,
         sizeof(arr[0]) * sizeof((20 % 8 == 0 ? 20 / 8 : 20 / 8 + 1)));
  printarr(&arr[0]);
  arr[((3) / 8)] |= (1 << ((3) & (8 - 1)));
  arr[((9) / 8)] |= (1 << ((9) & (8 - 1)));
  arr[((19) / 8)] |= (1 << ((19) & (8 - 1)));
  printarr(&arr[0]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0x2ef7(%rip),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1030 <memset@plt>
lea    0x2ee4(%rip),%rdi
call   1040 <printarr@plt>
mov    0x2ed9(%rip),%eax
or     $0x8,%eax
mov    %eax,0x2ed0(%rip)
mov    0x2ece(%rip),%eax
or     $0x2,%eax
mov    %eax,0x2ec5(%rip)
mov    0x2ec3(%rip),%eax
or     $0x8,%eax
mov    %eax,0x2eba(%rip)
lea    0x2eab(%rip),%rdi
call   1040 <printarr@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0x2f0c(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1030 <memset@plt>
mov    %rbx,%rdi
call   1040 <printarr@plt>
orb    $0x8,0x2eee(%rip)
orb    $0x2,0x2eeb(%rip)
orb    $0x8,0x2ee8(%rip)
mov    %rbx,%rdi
call   1040 <printarr@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@main.arr = internal global [3 x i32] zeroinitializer
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @memset(i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0), i32 0, i32 16)
%7 = call i32 @printarr(i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0))
%8 = load i32, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0)
%9 = or i32 %8, 8
store i32 %9, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0)
%10 = load i32, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 1)
%11 = or i32 %10, 2
store i32 %11, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 1)
%12 = load i32, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 2)
%13 = or i32 %12, 8
store i32 %13, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 2)
%14 = call i32 @printarr(i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@main.arr = internal global [3 x i32] zeroinitializer
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @memset(i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0), i32 0, i32 16)
%4 = tail call i32 @printarr(i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0))
%5 = load i32, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0)
%6 = or i32 %5, 8
store i32 %6, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0)
%7 = load i32, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 1)
%8 = or i32 %7, 2
store i32 %8, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 1)
%9 = load i32, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 2)
%10 = or i32 %9, 8
store i32 %10, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 2)
%11 = tail call i32 @printarr(i32* getelementptr inbounds ([3 x i32], [3 x i32]* @main.arr, i64 0, i64 0))
ret i32 0
}