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

/* Variables and functions */
int /*<<< orphan*/ fexpect(char *, int, int, int);
void test_vars() {
  char a[] = {1, 2, 3};
  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/"
          "sizeof.c",
          49, 3, sizeof(a));
  ;
  char b[] = "abc";
  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/"
          "sizeof.c",
          51, 4, sizeof(b));
  ;
  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/"
          "sizeof.c",
          52, 1, sizeof(b[0]));
  ;
  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/"
          "sizeof.c",
          53, 1, sizeof((b[0])));
  ;
  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/"
          "sizeof.c",
          54, 1, sizeof((b)[0]));
  ;
  char *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/"
          "sizeof.c",
          56, 40, sizeof(c));
  ;
  char *(*d)[3];
  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/"
          "sizeof.c",
          58, 8, sizeof(d));
  ;
  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/"
          "sizeof.c",
          59, 24, sizeof(*d));
  ;
  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/"
          "sizeof.c",
          60, 8, sizeof(**d));
  ;
  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/"
          "sizeof.c",
          61, 1, sizeof(***d));
  ;
  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/"
          "sizeof.c",
          62, 4, sizeof((int)a));
  ;
}


x86 assembly (clang, -O0):
<test_vars>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xee1(%rip),%ax
mov    %ax,-0x3(%rbp)
mov    0xed9(%rip),%al
mov    %al,-0x1(%rbp)
lea    0xed0(%rip),%rdi
mov    $0x31,%esi
mov    $0x3,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
mov    0xf44(%rip),%eax
mov    %eax,-0x7(%rbp)
lea    0xeaf(%rip),%rdi
mov    $0x33,%esi
mov    $0x4,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe97(%rip),%rdi
mov    $0x34,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe7f(%rip),%rdi
mov    $0x35,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe67(%rip),%rdi
mov    $0x36,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe4f(%rip),%rdi
mov    $0x38,%esi
mov    $0x28,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe37(%rip),%rdi
mov    $0x3a,%esi
mov    $0x8,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe1f(%rip),%rdi
mov    $0x3b,%esi
mov    $0x18,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe07(%rip),%rdi
mov    $0x3c,%esi
mov    $0x8,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xdef(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xdd7(%rip),%rdi
mov    $0x3e,%esi
mov    $0x4,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_vars>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x31,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x33,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x34,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x35,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x36,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x38,%esi
mov    $0x28,%edx
mov    $0x28,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3a,%esi
mov    $0x8,%edx
mov    $0x8,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3b,%esi
mov    $0x18,%edx
mov    $0x18,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3c,%esi
mov    $0x8,%edx
mov    $0x8,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
@__const.test_vars.a = [3 x i8] c"\01\02\03"
@.str = [139 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/sizeof.c\00"
@__const.test_vars.b = [4 x i8] c"abc\00"
define void @test_vars() {
%1 = alloca [3 x i8]
%2 = alloca [4 x i8]
%3 = alloca [5 x i8*]
%4 = alloca [3 x i8*]*
%5 = bitcast [3 x i8]* %1 to i8*
%6 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 49, i32 3, i32 3)
%7 = bitcast [4 x i8]* %2 to i8*
%8 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 51, i32 4, i32 4)
%9 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 52, i32 1, i32 1)
%10 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 53, i32 1, i32 1)
%11 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 54, i32 1, i32 1)
%12 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 56, i32 40, i32 40)
%13 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 58, i32 8, i32 8)
%14 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 59, i32 24, i32 24)
%15 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 60, i32 8, i32 8)
%16 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 61, i32 1, i32 1)
%17 = call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 62, i32 4, i32 4)
ret void
}

LLVM IR (-O2):
@.str = [139 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/sizeof.c\00"
define void @test_vars() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 49, i32 3, i32 3)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 51, i32 4, i32 4)
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 52, i32 1, i32 1)
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 53, i32 1, i32 1)
%5 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 54, i32 1, i32 1)
%6 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 56, i32 40, i32 40)
%7 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 58, i32 8, i32 8)
%8 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 59, i32 24, i32 24)
%9 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 60, i32 8, i32 8)
%10 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 61, i32 1, i32 1)
%11 = tail call i32 @fexpect(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 62, i32 4, i32 4)
ret void
}