#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*/ printf(char *, ...);
int main(int argc, char **argv) {
  int i, j, ok = 1;
  int m[100][100];
  printf("\n");
  for (i = 0; i < 100; i++) {
    for (j = 0; j < 100; j++) {
      m[i][j] = 1;
    }
  }
  for (i = 0; i < 100; i++) {
    for (j = 0; j < 100; j++) {
      if (m[i][j] != 1) {
        printf("Element [%d,%d] not set... \n", i, j);
        ok = 0;
      }
    }
  }
  if (ok) {
    printf("\nAll elements correctly set to 1\n\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9c60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jge    11a1 <main+0x91>
movl   $0x0,-0x18(%rbp)
cmpl   $0x64,-0x18(%rbp)
jge    118e <main+0x7e>
movslq -0x14(%rbp),%rcx
lea    -0x9c60(%rbp),%rax
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movl   $0x1,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1156 <main+0x46>
jmp    1193 <main+0x83>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1145 <main+0x35>
movl   $0x0,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jge    1227 <main+0x117>
movl   $0x0,-0x18(%rbp)
cmpl   $0x64,-0x18(%rbp)
jge    1214 <main+0x104>
movslq -0x14(%rbp),%rcx
lea    -0x9c60(%rbp),%rax
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
je     1201 <main+0xf1>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
jmp    1206 <main+0xf6>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b9 <main+0xa9>
jmp    1219 <main+0x109>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11a8 <main+0x98>
cmpl   $0x0,-0x1c(%rbp)
je     123f <main+0x12f>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x9c60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x9c40,%rsp
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x180,%eax
movaps 0xeab(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movaps %xmm0,-0x180(%rsp,%rax,1)
ff
movaps %xmm0,-0x170(%rsp,%rax,1)
ff
movaps %xmm0,-0x160(%rsp,%rax,1)
ff
movaps %xmm0,-0x150(%rsp,%rax,1)
ff
movaps %xmm0,-0x140(%rsp,%rax,1)
ff
movaps %xmm0,-0x130(%rsp,%rax,1)
ff
movaps %xmm0,-0x120(%rsp,%rax,1)
ff
movaps %xmm0,-0x110(%rsp,%rax,1)
ff
movaps %xmm0,-0x100(%rsp,%rax,1)
ff
movaps %xmm0,-0xf0(%rsp,%rax,1)
ff
movaps %xmm0,-0xe0(%rsp,%rax,1)
ff
movaps %xmm0,-0xd0(%rsp,%rax,1)
ff
movaps %xmm0,-0xc0(%rsp,%rax,1)
ff
movaps %xmm0,-0xb0(%rsp,%rax,1)
ff
movaps %xmm0,-0xa0(%rsp,%rax,1)
ff
movaps %xmm0,-0x90(%rsp,%rax,1)
ff
movaps %xmm0,-0x80(%rsp,%rax,1)
movaps %xmm0,-0x70(%rsp,%rax,1)
movaps %xmm0,-0x60(%rsp,%rax,1)
movaps %xmm0,-0x50(%rsp,%rax,1)
movaps %xmm0,-0x40(%rsp,%rax,1)
movaps %xmm0,-0x30(%rsp,%rax,1)
movaps %xmm0,-0x20(%rsp,%rax,1)
movaps %xmm0,-0x10(%rsp,%rax,1)
movaps %xmm0,(%rsp,%rax,1)
add    $0x190,%rax
cmp    $0x9dc0,%rax
jne    1160 <main+0x30>
mov    $0x1,%ebp
mov    %rsp,%r12
xor    %r15d,%r15d
lea    0xde0(%rip),%r14
jmp    1251 <main+0x121>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r15
add    $0x190,%r12
cmp    $0x64,%r15
je     1284 <main+0x154>
xor    %ebx,%ebx
jmp    126a <main+0x13a>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbx
cmp    $0x64,%rbx
je     1240 <main+0x110>
cmpl   $0x1,(%r12,%rbx,4)
je     1260 <main+0x130>
xor    %ebp,%ebp
mov    %r14,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1260 <main+0x130>
test   %ebp,%ebp
je     1294 <main+0x164>
lea    0xd9e(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x9c40,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [29 x i8] c"Element [%d,%d] not set... \0A\00"
@.str.2 = [35 x i8] c"\0AAll elements correctly set to 1\0A\0A\00"
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 [100 x [100 x i32]]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %6
br label %11
11: ; preds = %29, %2
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 100
br i1 %13, label %14, label %32
14: ; preds = %11
store i32 0, i32* %7
br label %15
15: ; preds = %25, %14
%16 = load i32, i32* %7
%17 = icmp slt i32 %16, 100
br i1 %17, label %18, label %28
18: ; preds = %15
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %9, i64 0, i64 %20
%22 = load i32, i32* %7
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [100 x i32], [100 x i32]* %21, i64 0, i64 %23
store i32 1, i32* %24
br label %25
25: ; preds = %18
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
store i32 %27, i32* %7
br label %15
28: ; preds = %15
br label %29
29: ; preds = %28
%30 = load i32, i32* %6
%31 = add nsw i32 %30, 1
store i32 %31, i32* %6
br label %11
32: ; preds = %11
store i32 0, i32* %6
br label %33
33: ; preds = %58, %32
%34 = load i32, i32* %6
%35 = icmp slt i32 %34, 100
br i1 %35, label %36, label %61
36: ; preds = %33
store i32 0, i32* %7
br label %37
37: ; preds = %54, %36
%38 = load i32, i32* %7
%39 = icmp slt i32 %38, 100
br i1 %39, label %40, label %57
40: ; preds = %37
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %9, i64 0, i64 %42
%44 = load i32, i32* %7
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i32], [100 x i32]* %43, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = icmp ne i32 %47, 1
br i1 %48, label %49, label %53
49: ; preds = %40
%50 = load i32, i32* %6
%51 = load i32, i32* %7
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %50, i32 %51)
store i32 0, i32* %8
br label %53
53: ; preds = %49, %40
br label %54
54: ; preds = %53
%55 = load i32, i32* %7
%56 = add nsw i32 %55, 1
store i32 %56, i32* %7
br label %37
57: ; preds = %37
br label %58
58: ; preds = %57
%59 = load i32, i32* %6
%60 = add nsw i32 %59, 1
store i32 %60, i32* %6
br label %33
61: ; preds = %33
%62 = load i32, i32* %8
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
br label %66
66: ; preds = %64, %61
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [29 x i8] c"Element [%d,%d] not set... \0A\00"
@str = [34 x i8] c"\0AAll elements correctly set to 1\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [100 x [100 x i32]]
%4 = bitcast [100 x [100 x i32]]* %3 to i8*
%5 = tail call i32 @putchar(i32 10)
br label %6
6: ; preds = %6, %2
%7 = phi i64 [ 0, %2 ], [ %58, %6 ]
%8 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 0
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %9
%10 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 4
%11 = bitcast i32* %10 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %11
%12 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 8
%13 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %13
%14 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 12
%15 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %15
%16 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 16
%17 = bitcast i32* %16 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %17
%18 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 20
%19 = bitcast i32* %18 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %19
%20 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 24
%21 = bitcast i32* %20 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %21
%22 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 28
%23 = bitcast i32* %22 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %23
%24 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 32
%25 = bitcast i32* %24 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %25
%26 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 36
%27 = bitcast i32* %26 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %27
%28 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 40
%29 = bitcast i32* %28 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %29
%30 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 44
%31 = bitcast i32* %30 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %31
%32 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 48
%33 = bitcast i32* %32 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %33
%34 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 52
%35 = bitcast i32* %34 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %35
%36 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 56
%37 = bitcast i32* %36 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %37
%38 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 60
%39 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %39
%40 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 64
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %41
%42 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 68
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %43
%44 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 72
%45 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %45
%46 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 76
%47 = bitcast i32* %46 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %47
%48 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 80
%49 = bitcast i32* %48 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %49
%50 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 84
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %51
%52 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 88
%53 = bitcast i32* %52 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %53
%54 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 92
%55 = bitcast i32* %54 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %55
%56 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %7, i64 96
%57 = bitcast i32* %56 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %57
%58 = add nuw nsw i64 %7, 1
%59 = icmp eq i64 %58, 100
br i1 %59, label %60, label %6
60: ; preds = %6, %77
%61 = phi i64 [ %78, %77 ], [ 0, %6 ]
%62 = phi i32 [ %74, %77 ], [ 1, %6 ]
%63 = trunc i64 %61 to i32
br label %64
64: ; preds = %60, %73
%65 = phi i64 [ 0, %60 ], [ %75, %73 ]
%66 = phi i32 [ %62, %60 ], [ %74, %73 ]
%67 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %3, i64 0, i64 %61, i64 %65
%68 = load i32, i32* %67
%69 = icmp eq i32 %68, 1
br i1 %69, label %73, label %70
70: ; preds = %64
%71 = trunc i64 %65 to i32
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %63, i32 %71)
br label %73
73: ; preds = %64, %70
%74 = phi i32 [ 0, %70 ], [ %66, %64 ]
%75 = add nuw nsw i64 %65, 1
%76 = icmp eq i64 %75, 100
br i1 %76, label %77, label %64
77: ; preds = %73
%78 = add nuw nsw i64 %61, 1
%79 = icmp eq i64 %78, 100
br i1 %79, label %80, label %60
80: ; preds = %77
%81 = icmp eq i32 %74, 0
br i1 %81, label %84, label %82
82: ; preds = %80
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %84
84: ; preds = %82, %80
ret i32 0
}