#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 */

/* Variables and functions */
int /*<<< orphan*/ __print_int(int);
int main() {
  int i = 0, j = 0;
  int a;
  int b;
  int c;
  int d = 4;
  for (i = 0; i < 5; i++) {
    j = 0;
    do {
      a = 5 * d;
      b = i * 5;
      c = i * j;
      j++;
    } while (j < 5);
  }
  __print_int(a);
  __print_int(b);
  __print_int(c);
  for (i = 0; i < 5; i++) {
    j = 0;
    while (j < 5) {
      a = 5 * d;
      b = i * 5;
      c = i * j;
      j++;
    }
  }
  __print_int(a);
  __print_int(b);
  __print_int(c);
  i = 0;
  while (i < 5) {
    for (j = 0; j < 5; j++) {
      a = 5 * d;
      b = i * 5;
      c = i * j;
      j++;
    }
    i++;
  }
  __print_int(a);
  __print_int(b);
  __print_int(c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x4,-0x1c(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    118a <main+0x7a>
movl   $0x0,-0xc(%rbp)
imul   $0x5,-0x1c(%rbp),%eax
mov    %eax,-0x10(%rbp)
imul   $0x5,-0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jl     114c <main+0x3c>
jmp    117c <main+0x6c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113b <main+0x2b>
mov    -0x10(%rbp),%edi
call   1030 <__print_int@plt>
mov    -0x14(%rbp),%edi
call   1030 <__print_int@plt>
mov    -0x18(%rbp),%edi
call   1030 <__print_int@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    11fd <main+0xed>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    11ea <main+0xda>
imul   $0x5,-0x1c(%rbp),%eax
mov    %eax,-0x10(%rbp)
imul   $0x5,-0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11ba <main+0xaa>
jmp    11ef <main+0xdf>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a9 <main+0x99>
mov    -0x10(%rbp),%edi
call   1030 <__print_int@plt>
mov    -0x14(%rbp),%edi
call   1030 <__print_int@plt>
mov    -0x18(%rbp),%edi
call   1030 <__print_int@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1274 <main+0x164>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    1266 <main+0x156>
imul   $0x5,-0x1c(%rbp),%eax
mov    %eax,-0x10(%rbp)
imul   $0x5,-0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    122d <main+0x11d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    121c <main+0x10c>
mov    -0x10(%rbp),%edi
call   1030 <__print_int@plt>
mov    -0x14(%rbp),%edi
call   1030 <__print_int@plt>
mov    -0x18(%rbp),%edi
call   1030 <__print_int@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x14,%edi
call   1030 <__print_int@plt>
mov    $0x14,%edi
call   1030 <__print_int@plt>
mov    $0x10,%edi
call   1030 <__print_int@plt>
mov    $0x14,%edi
call   1030 <__print_int@plt>
mov    $0x14,%edi
call   1030 <__print_int@plt>
mov    $0x10,%edi
call   1030 <__print_int@plt>
mov    $0x14,%edi
call   1030 <__print_int@plt>
mov    $0x14,%edi
call   1030 <__print_int@plt>
mov    $0x10,%edi
call   1030 <__print_int@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 4, i32* %7
store i32 0, i32* %2
br label %8
8: ; preds = %26, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %29
11: ; preds = %8
store i32 0, i32* %3
br label %12
12: ; preds = %22, %11
%13 = load i32, i32* %7
%14 = mul nsw i32 5, %13
store i32 %14, i32* %4
%15 = load i32, i32* %2
%16 = mul nsw i32 %15, 5
store i32 %16, i32* %5
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = mul nsw i32 %17, %18
store i32 %19, i32* %6
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %22
22: ; preds = %12
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 5
br i1 %24, label %12, label %25
25: ; preds = %22
br label %26
26: ; preds = %25
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %8
29: ; preds = %8
%30 = load i32, i32* %4
%31 = call i32 @__print_int(i32 %30)
%32 = load i32, i32* %5
%33 = call i32 @__print_int(i32 %32)
%34 = load i32, i32* %6
%35 = call i32 @__print_int(i32 %34)
store i32 0, i32* %2
br label %36
36: ; preds = %54, %29
%37 = load i32, i32* %2
%38 = icmp slt i32 %37, 5
br i1 %38, label %39, label %57
39: ; preds = %36
store i32 0, i32* %3
br label %40
40: ; preds = %43, %39
%41 = load i32, i32* %3
%42 = icmp slt i32 %41, 5
br i1 %42, label %43, label %53
43: ; preds = %40
%44 = load i32, i32* %7
%45 = mul nsw i32 5, %44
store i32 %45, i32* %4
%46 = load i32, i32* %2
%47 = mul nsw i32 %46, 5
store i32 %47, i32* %5
%48 = load i32, i32* %2
%49 = load i32, i32* %3
%50 = mul nsw i32 %48, %49
store i32 %50, i32* %6
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %40
53: ; preds = %40
br label %54
54: ; preds = %53
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
br label %36
57: ; preds = %36
%58 = load i32, i32* %4
%59 = call i32 @__print_int(i32 %58)
%60 = load i32, i32* %5
%61 = call i32 @__print_int(i32 %60)
%62 = load i32, i32* %6
%63 = call i32 @__print_int(i32 %62)
store i32 0, i32* %2
br label %64
64: ; preds = %84, %57
%65 = load i32, i32* %2
%66 = icmp slt i32 %65, 5
br i1 %66, label %67, label %87
67: ; preds = %64
store i32 0, i32* %3
br label %68
68: ; preds = %81, %67
%69 = load i32, i32* %3
%70 = icmp slt i32 %69, 5
br i1 %70, label %71, label %84
71: ; preds = %68
%72 = load i32, i32* %7
%73 = mul nsw i32 5, %72
store i32 %73, i32* %4
%74 = load i32, i32* %2
%75 = mul nsw i32 %74, 5
store i32 %75, i32* %5
%76 = load i32, i32* %2
%77 = load i32, i32* %3
%78 = mul nsw i32 %76, %77
store i32 %78, i32* %6
%79 = load i32, i32* %3
%80 = add nsw i32 %79, 1
store i32 %80, i32* %3
br label %81
81: ; preds = %71
%82 = load i32, i32* %3
%83 = add nsw i32 %82, 1
store i32 %83, i32* %3
br label %68
84: ; preds = %68
%85 = load i32, i32* %2
%86 = add nsw i32 %85, 1
store i32 %86, i32* %2
br label %64
87: ; preds = %64
%88 = load i32, i32* %4
%89 = call i32 @__print_int(i32 %88)
%90 = load i32, i32* %5
%91 = call i32 @__print_int(i32 %90)
%92 = load i32, i32* %6
%93 = call i32 @__print_int(i32 %92)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__print_int(i32 20)
%2 = tail call i32 @__print_int(i32 20)
%3 = tail call i32 @__print_int(i32 16)
%4 = tail call i32 @__print_int(i32 20)
%5 = tail call i32 @__print_int(i32 20)
%6 = tail call i32 @__print_int(i32 16)
%7 = tail call i32 @__print_int(i32 20)
%8 = tail call i32 @__print_int(i32 20)
%9 = tail call i32 @__print_int(i32 16)
ret i32 0
}