#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 */
struct stat {
  scalar_t__ st_dev;
  scalar_t__ st_ino;
  scalar_t__ st_mode;
  scalar_t__ st_nlink;
  scalar_t__ st_uid;
  scalar_t__ st_gid;
  scalar_t__ st_rdev;
  scalar_t__ st_size;
  scalar_t__ st_blksize;
  scalar_t__ st_blocks;
  scalar_t__ st_atime;
  scalar_t__ st_ctime;
  scalar_t__ st_mtime;
};

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ perror(char *);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  struct stat s1, s2;
  int diff = 0;
  if (argc != 3) {
    fprintf(stderr, "Usage: tstat file1 file2\n");
    exit(1);
  }
  if (stat(argv[1], &s1) < 0) {
    perror(argv[1]);
    exit(1);
  }
  if (stat(argv[2], &s2) < 0) {
    perror(argv[2]);
    exit(1);
  }
  if (s1.st_dev != s2.st_dev) {
    fprintf(stderr, "st_dev differs\n");
    diff++;
  }
  if (s1.st_ino != s2.st_ino) {
    fprintf(stderr, "st_ino differs\n");
    diff++;
  }
  if (s1.st_mode != s2.st_mode) {
    fprintf(stderr, "st_mode differs\n");
    diff++;
  }
  if (s1.st_nlink != s2.st_nlink) {
    fprintf(stderr, "st_nlink differs\n");
    diff++;
  }
  if (s1.st_uid != s2.st_uid) {
    fprintf(stderr, "st_uid differs\n");
    diff++;
  }
  if (s1.st_gid != s2.st_gid) {
    fprintf(stderr, "st_gid differs\n");
    diff++;
  }
  if (s1.st_rdev != s2.st_rdev) {
    fprintf(stderr, "st_rdev differs\n");
    diff++;
  }
  if (s1.st_size != s2.st_size) {
    fprintf(stderr, "st_size differs\n");
    diff++;
  }
  if (s1.st_blksize != s2.st_blksize) {
    fprintf(stderr, "st_blksize differs\n");
    diff++;
  }
  if (s1.st_blocks != s2.st_blocks) {
    fprintf(stderr, "st_blocks differs\n");
    diff++;
  }
  if (s1.st_atime != s2.st_atime) {
    fprintf(stderr, "st_atime differs\n");
    diff++;
  }
  if (s1.st_ctime != s2.st_ctime) {
    fprintf(stderr, "st_ctime differs\n");
    diff++;
  }
  if (s1.st_mtime != s2.st_mtime) {
    fprintf(stderr, "st_mtime differs\n");
    diff++;
  }
  fprintf(stderr, "%d differences\n", diff);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0xe4(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     118e <main+0x4e>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x78(%rbp),%rsi
call   1040 <stat@plt>
cmp    $0x0,%rax
jge    11c0 <main+0x80>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <perror@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0xe0(%rbp),%rsi
call   1040 <stat@plt>
cmp    $0x0,%rax
jge    11f5 <main+0xb5>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1050 <perror@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x78(%rbp),%rax
cmp    -0xe0(%rbp),%rax
je     122c <main+0xec>
mov    0x2dd3(%rip),%rax
mov    (%rax),%edi
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0xd8(%rbp),%rax
je     1263 <main+0x123>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
lea    0xddd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x68(%rbp),%rax
cmp    -0xd0(%rbp),%rax
je     129a <main+0x15a>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0xc8(%rbp),%rax
je     12d1 <main+0x191>
mov    0x2d2e(%rip),%rax
mov    (%rax),%edi
lea    0xd90(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0xc0(%rbp),%rax
je     1308 <main+0x1c8>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
lea    0xd6b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0xb8(%rbp),%rax
je     133f <main+0x1ff>
mov    0x2cc0(%rip),%rax
mov    (%rax),%edi
lea    0xd44(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0xb0(%rbp),%rax
je     1376 <main+0x236>
mov    0x2c89(%rip),%rax
mov    (%rax),%edi
lea    0xd1d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0xa8(%rbp),%rax
je     13ad <main+0x26d>
mov    0x2c52(%rip),%rax
mov    (%rax),%edi
lea    0xcf7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0xa0(%rbp),%rax
je     13e4 <main+0x2a4>
mov    0x2c1b(%rip),%rax
mov    (%rax),%edi
lea    0xcd1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x98(%rbp),%rax
je     141b <main+0x2db>
mov    0x2be4(%rip),%rax
mov    (%rax),%edi
lea    0xcae(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x90(%rbp),%rax
je     1452 <main+0x312>
mov    0x2bad(%rip),%rax
mov    (%rax),%edi
lea    0xc8a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x88(%rbp),%rax
je     1489 <main+0x349>
mov    0x2b76(%rip),%rax
mov    (%rax),%edi
lea    0xc65(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x80(%rbp),%rax
je     14bd <main+0x37d>
mov    0x2b42(%rip),%rax
mov    (%rax),%edi
lea    0xc43(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
mov    0x2b1c(%rip),%rax
mov    (%rax),%edi
mov    -0xe4(%rbp),%edx
lea    0xc29(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0xd0,%rsp
cmp    $0x3,%edi
jne    1169 <main+0x29>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0x68(%rsp),%rsi
call   1040 <stat@plt>
test   %rax,%rax
jns    118a <main+0x4a>
mov    0x8(%rbx),%rdi
jmp    119f <main+0x5f>
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
lea    0xe87(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    0x10(%rbx),%rdi
mov    %rsp,%rsi
call   1040 <stat@plt>
test   %rax,%rax
jns    11ae <main+0x6e>
mov    0x10(%rbx),%rdi
call   1050 <perror@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    0x68(%rsp),%rax
xor    %ebx,%ebx
cmp    (%rsp),%rax
je     11d7 <main+0x97>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
lea    0xe4f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%ebx
mov    0x70(%rsp),%rax
cmp    0x8(%rsp),%rax
je     11fd <main+0xbd>
mov    0x2df6(%rip),%rax
mov    (%rax),%edi
lea    0xe37(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0x78(%rsp),%rax
cmp    0x10(%rsp),%rax
je     1223 <main+0xe3>
mov    0x2dd0(%rip),%rax
mov    (%rax),%edi
lea    0xe21(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0x80(%rsp),%rax
cmp    0x18(%rsp),%rax
je     124c <main+0x10c>
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
lea    0xe09(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0x88(%rsp),%rax
cmp    0x20(%rsp),%rax
je     1275 <main+0x135>
mov    0x2d7e(%rip),%rax
mov    (%rax),%edi
lea    0xdf2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0x90(%rsp),%rax
cmp    0x28(%rsp),%rax
je     129e <main+0x15e>
mov    0x2d55(%rip),%rax
mov    (%rax),%edi
lea    0xdd9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0x98(%rsp),%rax
cmp    0x30(%rsp),%rax
je     12c7 <main+0x187>
mov    0x2d2c(%rip),%rax
mov    (%rax),%edi
lea    0xdc0(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0xa0(%rsp),%rax
cmp    0x38(%rsp),%rax
je     12f0 <main+0x1b0>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
lea    0xda8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0xa8(%rsp),%rax
cmp    0x40(%rsp),%rax
je     1319 <main+0x1d9>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
lea    0xd90(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0xb0(%rsp),%rax
cmp    0x48(%rsp),%rax
je     1342 <main+0x202>
mov    0x2cb1(%rip),%rax
mov    (%rax),%edi
lea    0xd7b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0xb8(%rsp),%rax
cmp    0x50(%rsp),%rax
je     136b <main+0x22b>
mov    0x2c88(%rip),%rax
mov    (%rax),%edi
lea    0xd65(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0xc0(%rsp),%rax
cmp    0x58(%rsp),%rax
je     1394 <main+0x254>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
lea    0xd4e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0xc8(%rsp),%rax
cmp    0x60(%rsp),%rax
je     13bd <main+0x27d>
mov    0x2c36(%rip),%rax
mov    (%rax),%edi
lea    0xd37(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
mov    0x2c1c(%rip),%rax
mov    (%rax),%edi
lea    0xd2f(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
@stderr = global i32 0
@.str = [26 x i8] c"Usage: tstat file1 file2\0A\00"
@.str.1 = [16 x i8] c"st_dev differs\0A\00"
@.str.2 = [16 x i8] c"st_ino differs\0A\00"
@.str.3 = [17 x i8] c"st_mode differs\0A\00"
@.str.4 = [18 x i8] c"st_nlink differs\0A\00"
@.str.5 = [16 x i8] c"st_uid differs\0A\00"
@.str.6 = [16 x i8] c"st_gid differs\0A\00"
@.str.7 = [17 x i8] c"st_rdev differs\0A\00"
@.str.8 = [17 x i8] c"st_size differs\0A\00"
@.str.9 = [20 x i8] c"st_blksize differs\0A\00"
@.str.10 = [19 x i8] c"st_blocks differs\0A\00"
@.str.11 = [18 x i8] c"st_atime differs\0A\00"
@.str.12 = [18 x i8] c"st_ctime differs\0A\00"
@.str.13 = [18 x i8] c"st_mtime differs\0A\00"
@.str.14 = [16 x i8] c"%d differences\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.stat
%7 = alloca %struct.stat
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i64 @stat(i8* %18, %struct.stat* %6)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %15
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @perror(i8* %24)
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %15
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 2
%30 = load i8*, i8** %29
%31 = call i64 @stat(i8* %30, %struct.stat* %7)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %39
33: ; preds = %27
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32 @perror(i8* %36)
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %27
%40 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%41 = load i64, i64* %40
%42 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%43 = load i64, i64* %42
%44 = icmp ne i64 %41, %43
br i1 %44, label %45, label %50
45: ; preds = %39
%46 = load i32, i32* @stderr
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%48 = load i32, i32* %8
%49 = add nsw i32 %48, 1
store i32 %49, i32* %8
br label %50
50: ; preds = %45, %39
%51 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 1
%52 = load i64, i64* %51
%53 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 1
%54 = load i64, i64* %53
%55 = icmp ne i64 %52, %54
br i1 %55, label %56, label %61
56: ; preds = %50
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%59 = load i32, i32* %8
%60 = add nsw i32 %59, 1
store i32 %60, i32* %8
br label %61
61: ; preds = %56, %50
%62 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 2
%63 = load i64, i64* %62
%64 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 2
%65 = load i64, i64* %64
%66 = icmp ne i64 %63, %65
br i1 %66, label %67, label %72
67: ; preds = %61
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%70 = load i32, i32* %8
%71 = add nsw i32 %70, 1
store i32 %71, i32* %8
br label %72
72: ; preds = %67, %61
%73 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 3
%74 = load i64, i64* %73
%75 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 3
%76 = load i64, i64* %75
%77 = icmp ne i64 %74, %76
br i1 %77, label %78, label %83
78: ; preds = %72
%79 = load i32, i32* @stderr
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%81 = load i32, i32* %8
%82 = add nsw i32 %81, 1
store i32 %82, i32* %8
br label %83
83: ; preds = %78, %72
%84 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 4
%85 = load i64, i64* %84
%86 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 4
%87 = load i64, i64* %86
%88 = icmp ne i64 %85, %87
br i1 %88, label %89, label %94
89: ; preds = %83
%90 = load i32, i32* @stderr
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%92 = load i32, i32* %8
%93 = add nsw i32 %92, 1
store i32 %93, i32* %8
br label %94
94: ; preds = %89, %83
%95 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 5
%96 = load i64, i64* %95
%97 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 5
%98 = load i64, i64* %97
%99 = icmp ne i64 %96, %98
br i1 %99, label %100, label %105
100: ; preds = %94
%101 = load i32, i32* @stderr
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
store i32 %104, i32* %8
br label %105
105: ; preds = %100, %94
%106 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 6
%107 = load i64, i64* %106
%108 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 6
%109 = load i64, i64* %108
%110 = icmp ne i64 %107, %109
br i1 %110, label %111, label %116
111: ; preds = %105
%112 = load i32, i32* @stderr
%113 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%114 = load i32, i32* %8
%115 = add nsw i32 %114, 1
store i32 %115, i32* %8
br label %116
116: ; preds = %111, %105
%117 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 7
%118 = load i64, i64* %117
%119 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 7
%120 = load i64, i64* %119
%121 = icmp ne i64 %118, %120
br i1 %121, label %122, label %127
122: ; preds = %116
%123 = load i32, i32* @stderr
%124 = call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%125 = load i32, i32* %8
%126 = add nsw i32 %125, 1
store i32 %126, i32* %8
br label %127
127: ; preds = %122, %116
%128 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 8
%129 = load i64, i64* %128
%130 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 8
%131 = load i64, i64* %130
%132 = icmp ne i64 %129, %131
br i1 %132, label %133, label %138
133: ; preds = %127
%134 = load i32, i32* @stderr
%135 = call i32 (i32, i8*, ...) @fprintf(i32 %134, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%136 = load i32, i32* %8
%137 = add nsw i32 %136, 1
store i32 %137, i32* %8
br label %138
138: ; preds = %133, %127
%139 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 9
%140 = load i64, i64* %139
%141 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 9
%142 = load i64, i64* %141
%143 = icmp ne i64 %140, %142
br i1 %143, label %144, label %149
144: ; preds = %138
%145 = load i32, i32* @stderr
%146 = call i32 (i32, i8*, ...) @fprintf(i32 %145, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%147 = load i32, i32* %8
%148 = add nsw i32 %147, 1
store i32 %148, i32* %8
br label %149
149: ; preds = %144, %138
%150 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 10
%151 = load i64, i64* %150
%152 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 10
%153 = load i64, i64* %152
%154 = icmp ne i64 %151, %153
br i1 %154, label %155, label %160
155: ; preds = %149
%156 = load i32, i32* @stderr
%157 = call i32 (i32, i8*, ...) @fprintf(i32 %156, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0))
%158 = load i32, i32* %8
%159 = add nsw i32 %158, 1
store i32 %159, i32* %8
br label %160
160: ; preds = %155, %149
%161 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 11
%162 = load i64, i64* %161
%163 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 11
%164 = load i64, i64* %163
%165 = icmp ne i64 %162, %164
br i1 %165, label %166, label %171
166: ; preds = %160
%167 = load i32, i32* @stderr
%168 = call i32 (i32, i8*, ...) @fprintf(i32 %167, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%169 = load i32, i32* %8
%170 = add nsw i32 %169, 1
store i32 %170, i32* %8
br label %171
171: ; preds = %166, %160
%172 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 12
%173 = load i64, i64* %172
%174 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 12
%175 = load i64, i64* %174
%176 = icmp ne i64 %173, %175
br i1 %176, label %177, label %182
177: ; preds = %171
%178 = load i32, i32* @stderr
%179 = call i32 (i32, i8*, ...) @fprintf(i32 %178, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%180 = load i32, i32* %8
%181 = add nsw i32 %180, 1
store i32 %181, i32* %8
br label %182
182: ; preds = %177, %171
%183 = load i32, i32* @stderr
%184 = load i32, i32* %8
%185 = call i32 (i32, i8*, ...) @fprintf(i32 %183, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 %184)
%186 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.stat = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
@stderr = global i32 0
@.str = [26 x i8] c"Usage: tstat file1 file2\0A\00"
@.str.1 = [16 x i8] c"st_dev differs\0A\00"
@.str.2 = [16 x i8] c"st_ino differs\0A\00"
@.str.3 = [17 x i8] c"st_mode differs\0A\00"
@.str.4 = [18 x i8] c"st_nlink differs\0A\00"
@.str.5 = [16 x i8] c"st_uid differs\0A\00"
@.str.6 = [16 x i8] c"st_gid differs\0A\00"
@.str.7 = [17 x i8] c"st_rdev differs\0A\00"
@.str.8 = [17 x i8] c"st_size differs\0A\00"
@.str.9 = [20 x i8] c"st_blksize differs\0A\00"
@.str.10 = [19 x i8] c"st_blocks differs\0A\00"
@.str.11 = [18 x i8] c"st_atime differs\0A\00"
@.str.12 = [18 x i8] c"st_ctime differs\0A\00"
@.str.13 = [18 x i8] c"st_mtime differs\0A\00"
@.str.14 = [16 x i8] c"%d differences\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = alloca %struct.stat
%5 = bitcast %struct.stat* %3 to i8*
%6 = bitcast %struct.stat* %4 to i8*
%7 = icmp eq i32 %0, 3
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = call i64 @stat(i8* %14, %struct.stat* %3)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %12
%18 = load i8*, i8** %13
%19 = call i32 @perror(i8* %18)
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %12
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = call i64 @stat(i8* %23, %struct.stat* %4)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %21
%27 = load i8*, i8** %22
%28 = call i32 @perror(i8* %27)
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %21
%31 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%32 = load i64, i64* %31
%33 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%34 = load i64, i64* %33
%35 = icmp eq i64 %32, %34
br i1 %35, label %39, label %36
36: ; preds = %30
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %39
39: ; preds = %36, %30
%40 = phi i32 [ 1, %36 ], [ 0, %30 ]
%41 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%42 = load i64, i64* %41
%43 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 1
%44 = load i64, i64* %43
%45 = icmp eq i64 %42, %44
br i1 %45, label %50, label %46
46: ; preds = %39
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%49 = add nuw nsw i32 %40, 1
br label %50
50: ; preds = %46, %39
%51 = phi i32 [ %49, %46 ], [ %40, %39 ]
%52 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 2
%53 = load i64, i64* %52
%54 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 2
%55 = load i64, i64* %54
%56 = icmp eq i64 %53, %55
br i1 %56, label %61, label %57
57: ; preds = %50
%58 = load i32, i32* @stderr
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%60 = add nuw nsw i32 %51, 1
br label %61
61: ; preds = %57, %50
%62 = phi i32 [ %60, %57 ], [ %51, %50 ]
%63 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 3
%64 = load i64, i64* %63
%65 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 3
%66 = load i64, i64* %65
%67 = icmp eq i64 %64, %66
br i1 %67, label %72, label %68
68: ; preds = %61
%69 = load i32, i32* @stderr
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%71 = add nuw nsw i32 %62, 1
br label %72
72: ; preds = %68, %61
%73 = phi i32 [ %71, %68 ], [ %62, %61 ]
%74 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 4
%75 = load i64, i64* %74
%76 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 4
%77 = load i64, i64* %76
%78 = icmp eq i64 %75, %77
br i1 %78, label %83, label %79
79: ; preds = %72
%80 = load i32, i32* @stderr
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%82 = add nuw nsw i32 %73, 1
br label %83
83: ; preds = %79, %72
%84 = phi i32 [ %82, %79 ], [ %73, %72 ]
%85 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 5
%86 = load i64, i64* %85
%87 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 5
%88 = load i64, i64* %87
%89 = icmp eq i64 %86, %88
br i1 %89, label %94, label %90
90: ; preds = %83
%91 = load i32, i32* @stderr
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%93 = add nuw nsw i32 %84, 1
br label %94
94: ; preds = %90, %83
%95 = phi i32 [ %93, %90 ], [ %84, %83 ]
%96 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 6
%97 = load i64, i64* %96
%98 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 6
%99 = load i64, i64* %98
%100 = icmp eq i64 %97, %99
br i1 %100, label %105, label %101
101: ; preds = %94
%102 = load i32, i32* @stderr
%103 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%104 = add nuw nsw i32 %95, 1
br label %105
105: ; preds = %101, %94
%106 = phi i32 [ %104, %101 ], [ %95, %94 ]
%107 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 7
%108 = load i64, i64* %107
%109 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 7
%110 = load i64, i64* %109
%111 = icmp eq i64 %108, %110
br i1 %111, label %116, label %112
112: ; preds = %105
%113 = load i32, i32* @stderr
%114 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%115 = add nuw nsw i32 %106, 1
br label %116
116: ; preds = %112, %105
%117 = phi i32 [ %115, %112 ], [ %106, %105 ]
%118 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 8
%119 = load i64, i64* %118
%120 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 8
%121 = load i64, i64* %120
%122 = icmp eq i64 %119, %121
br i1 %122, label %127, label %123
123: ; preds = %116
%124 = load i32, i32* @stderr
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %124, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%126 = add nuw nsw i32 %117, 1
br label %127
127: ; preds = %123, %116
%128 = phi i32 [ %126, %123 ], [ %117, %116 ]
%129 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 9
%130 = load i64, i64* %129
%131 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 9
%132 = load i64, i64* %131
%133 = icmp eq i64 %130, %132
br i1 %133, label %138, label %134
134: ; preds = %127
%135 = load i32, i32* @stderr
%136 = call i32 (i32, i8*, ...) @fprintf(i32 %135, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%137 = add nuw nsw i32 %128, 1
br label %138
138: ; preds = %134, %127
%139 = phi i32 [ %137, %134 ], [ %128, %127 ]
%140 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 10
%141 = load i64, i64* %140
%142 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 10
%143 = load i64, i64* %142
%144 = icmp eq i64 %141, %143
br i1 %144, label %149, label %145
145: ; preds = %138
%146 = load i32, i32* @stderr
%147 = call i32 (i32, i8*, ...) @fprintf(i32 %146, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0))
%148 = add nuw nsw i32 %139, 1
br label %149
149: ; preds = %145, %138
%150 = phi i32 [ %148, %145 ], [ %139, %138 ]
%151 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 11
%152 = load i64, i64* %151
%153 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 11
%154 = load i64, i64* %153
%155 = icmp eq i64 %152, %154
br i1 %155, label %160, label %156
156: ; preds = %149
%157 = load i32, i32* @stderr
%158 = call i32 (i32, i8*, ...) @fprintf(i32 %157, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%159 = add nuw nsw i32 %150, 1
br label %160
160: ; preds = %156, %149
%161 = phi i32 [ %159, %156 ], [ %150, %149 ]
%162 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 12
%163 = load i64, i64* %162
%164 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 12
%165 = load i64, i64* %164
%166 = icmp eq i64 %163, %165
br i1 %166, label %171, label %167
167: ; preds = %160
%168 = load i32, i32* @stderr
%169 = call i32 (i32, i8*, ...) @fprintf(i32 %168, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%170 = add nuw nsw i32 %161, 1
br label %171
171: ; preds = %167, %160
%172 = phi i32 [ %170, %167 ], [ %161, %160 ]
%173 = load i32, i32* @stderr
%174 = call i32 (i32, i8*, ...) @fprintf(i32 %173, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 %172)
%175 = call i32 @exit(i32 0)
unreachable
}