#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 /*<<< orphan*/ c;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ fexpect(char *, int, int, int);
void test_pointer() {
  int *a;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "type.c",
          57, 8, sizeof(a));
  ;
  int *b[5];
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "type.c",
          59, 40, sizeof(b));
  ;
  int(*c)[5];
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "type.c",
          61, 8, sizeof(c));
  ;
}


x86 assembly (clang, -O0):
<test_pointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xee1(%rip),%rdi
mov    $0x39,%esi
mov    $0x8,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xec9(%rip),%rdi
mov    $0x3b,%esi
mov    $0x28,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xeb1(%rip),%rdi
mov    $0x3d,%esi
mov    $0x8,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_pointer>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x39,%esi
mov    $0x8,%edx
mov    $0x8,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3b,%esi
mov    $0x28,%edx
mov    $0x28,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3d,%esi
mov    $0x8,%edx
mov    $0x8,%ecx
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
@.str = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/type.c\00"
define void @test_pointer() {
%1 = alloca i32*
%2 = alloca [5 x i32*]
%3 = alloca [5 x i32]*
%4 = call i32 @fexpect(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 57, i32 8, i32 8)
%5 = call i32 @fexpect(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 59, i32 40, i32 40)
%6 = call i32 @fexpect(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 61, i32 8, i32 8)
ret void
}

LLVM IR (-O2):
@.str = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/type.c\00"
define void @test_pointer() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 57, i32 8, i32 8)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 59, i32 40, i32 40)
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 61, i32 8, i32 8)
ret void
}