int main(argc, argv)
int argc;
char **argv;
{
  int number_columns = 9;
  int cnt0 = 0;
  int cnt1 = 0;
  int i, A1;
  for (i = number_columns - 1; i != 0; i--) {
    if (i == 1) {
      dummy(&A1, i);
      cnt0++;
    } else {
      dummy(&A1, i - 1);
      cnt1++;
    }
  }
  if (cnt0 != 1 || cnt1 != 7)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x9,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     11c1 <main+0x91>
cmpl   $0x1,-0x20(%rbp)
jne    1194 <main+0x64>
mov    -0x20(%rbp),%esi
lea    -0x24(%rbp),%rdi
mov    $0x0,%al
call   1030 <dummy@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ae <main+0x7e>
mov    -0x20(%rbp),%esi
sub    $0x1,%esi
lea    -0x24(%rbp),%rdi
mov    $0x0,%al
call   1030 <dummy@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11b3 <main+0x83>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    1164 <main+0x34>
cmpl   $0x1,-0x18(%rbp)
jne    11d5 <main+0xa5>
cmpl   $0x7,-0x1c(%rbp)
je     11da <main+0xaa>
call   1040 <abort@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <dummy@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 9, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%11 = load i32, i32* %6
%12 = sub nsw i32 %11, 1
store i32 %12, i32* %9
br label %13
13: ; preds = %31, %2
%14 = load i32, i32* %9
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %34
16: ; preds = %13
%17 = load i32, i32* %9
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load i32, i32* %9
%21 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %10, i32 %20)
%22 = load i32, i32* %7
%23 = add nsw i32 %22, 1
store i32 %23, i32* %7
br label %30
24: ; preds = %16
%25 = load i32, i32* %9
%26 = sub nsw i32 %25, 1
%27 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %10, i32 %26)
%28 = load i32, i32* %8
%29 = add nsw i32 %28, 1
store i32 %29, i32* %8
br label %30
30: ; preds = %24, %19
br label %31
31: ; preds = %30
%32 = load i32, i32* %9
%33 = add nsw i32 %32, -1
store i32 %33, i32* %9
br label %13
34: ; preds = %13
%35 = load i32, i32* %7
%36 = icmp ne i32 %35, 1
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, i32* %8
%39 = icmp ne i32 %38, 7
br i1 %39, label %40, label %41
40: ; preds = %37, %34
unreachable
41: ; preds = %37
unreachable
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 7)
%6 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 6)
%7 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 5)
%8 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 4)
%9 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 3)
%10 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 2)
%11 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 1)
%12 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @dummy to i32 (i32*, i32, ...)*)(i32* %3, i32 1)
unreachable
}