#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*/ abort();
int main() {
  int i;
  char ia[16];
  char ic[16] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45};
  char ib[16] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45};
  for (i = 0; i < 16; i++) {
    ia[i] = ib[i] * ic[i];
  }
  for (i = 0; i < 16; i++) {
    if (ia[i] != (char)(ib[i] * ic[i]))
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    1189 <main+0x79>
movslq -0x8(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%eax
movslq -0x8(%rbp),%rcx
movsbl -0x30(%rbp,%rcx,1),%ecx
imul   %ecx,%eax
mov    %al,%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x20(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1152 <main+0x42>
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    11dd <main+0xcd>
movslq -0x8(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
movslq -0x8(%rbp),%rcx
movsbl -0x40(%rbp,%rcx,1),%ecx
movslq -0x8(%rbp),%rdx
movsbl -0x30(%rbp,%rdx,1),%edx
imul   %edx,%ecx
movsbl %cl,%ecx
cmp    %ecx,%eax
je     11ca <main+0xba>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11cf <main+0xbf>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1190 <main+0x80>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@__const.main.ic = [16 x i8] c"\00\03\06\09\0C\0F\12\15\18\1B\1E!$'*-"
@__const.main.ib = [16 x i8] c"\00\03\06\09\0C\0F\12\15\18\1B\1E!$'*-"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [16 x i8]
%4 = alloca [16 x i8]
%5 = alloca [16 x i8]
store i32 0, i32* %1
%6 = bitcast [16 x i8]* %4 to i8*
%7 = bitcast [16 x i8]* %5 to i8*
store i32 0, i32* %2
br label %8
8: ; preds = %27, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load i32, i32* %2
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 %13
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = mul nsw i32 %16, %21
%23 = trunc i32 %22 to i8
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 %25
store i8 %23, i8* %26
br label %27
27: ; preds = %11
%28 = load i32, i32* %2
%29 = add nsw i32 %28, 1
store i32 %29, i32* %2
br label %8
30: ; preds = %8
store i32 0, i32* %2
br label %31
31: ; preds = %57, %30
%32 = load i32, i32* %2
%33 = icmp slt i32 %32, 16
br i1 %33, label %34, label %60
34: ; preds = %31
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 %36
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = load i32, i32* %2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = load i32, i32* %2
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 %46
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = mul nsw i32 %44, %49
%51 = trunc i32 %50 to i8
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %39, %52
br i1 %53, label %54, label %56
54: ; preds = %34
%55 = call i32 (...) @abort()
unreachable
56: ; preds = %34
br label %57
57: ; preds = %56
%58 = load i32, i32* %2
%59 = add nsw i32 %58, 1
store i32 %59, i32* %2
br label %31
60: ; preds = %31
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}