#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 */
typedef int uint32_t;
typedef int /*<<< orphan*/ arr;

/* Variables and functions */
int UINT_MAX;
void test(void) {
  size_t i;
  const uint32_t arr[] = {
      0,         1,         9,         10,         11,         99,
      100,       101,       999,       1000,       1001,       9999,
      10000,     10001,     99999,     100000,     100001,     999999,
      1000000,   1000001,   9999999,   10000000,   10000001,   99999999,
      100000000, 100000001, 999999999, 1000000000, 1000000001, UINT_MAX};
  for (i = 0; i < sizeof(arr) / sizeof(arr[0]); i++) {
  }
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x80(%rbp)
movl   $0x1,-0x7c(%rbp)
movl   $0x9,-0x78(%rbp)
movl   $0xa,-0x74(%rbp)
movl   $0xb,-0x70(%rbp)
movl   $0x63,-0x6c(%rbp)
movl   $0x64,-0x68(%rbp)
movl   $0x65,-0x64(%rbp)
movl   $0x3e7,-0x60(%rbp)
movl   $0x3e8,-0x5c(%rbp)
movl   $0x3e9,-0x58(%rbp)
movl   $0x270f,-0x54(%rbp)
movl   $0x2710,-0x50(%rbp)
movl   $0x2711,-0x4c(%rbp)
movl   $0x1869f,-0x48(%rbp)
movl   $0x186a0,-0x44(%rbp)
movl   $0x186a1,-0x40(%rbp)
movl   $0xf423f,-0x3c(%rbp)
movl   $0xf4240,-0x38(%rbp)
movl   $0xf4241,-0x34(%rbp)
movl   $0x98967f,-0x30(%rbp)
movl   $0x989680,-0x2c(%rbp)
movl   $0x989681,-0x28(%rbp)
movl   $0x5f5e0ff,-0x24(%rbp)
movl   $0x5f5e100,-0x20(%rbp)
movl   $0x5f5e101,-0x1c(%rbp)
movl   $0x3b9ac9ff,-0x18(%rbp)
movl   $0x3b9aca00,-0x14(%rbp)
movl   $0x3b9aca01,-0x10(%rbp)
mov    0x2e12(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
movq   $0x0,-0x8(%rbp)
cmpq   $0x1e,-0x8(%rbp)
jae    1204 <test+0x104>
jmp    11f3 <test+0xf3>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    11e3 <test+0xe3>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
ret

LLVM IR (-O0):
@UINT_MAX = global i32 0
define void @test() {
%1 = alloca i64
%2 = alloca [30 x i32]
%3 = getelementptr inbounds [30 x i32], [30 x i32]* %2, i64 0, i64 0
store i32 0, i32* %3
%4 = getelementptr inbounds i32, i32* %3, i64 1
store i32 1, i32* %4
%5 = getelementptr inbounds i32, i32* %4, i64 1
store i32 9, i32* %5
%6 = getelementptr inbounds i32, i32* %5, i64 1
store i32 10, i32* %6
%7 = getelementptr inbounds i32, i32* %6, i64 1
store i32 11, i32* %7
%8 = getelementptr inbounds i32, i32* %7, i64 1
store i32 99, i32* %8
%9 = getelementptr inbounds i32, i32* %8, i64 1
store i32 100, i32* %9
%10 = getelementptr inbounds i32, i32* %9, i64 1
store i32 101, i32* %10
%11 = getelementptr inbounds i32, i32* %10, i64 1
store i32 999, i32* %11
%12 = getelementptr inbounds i32, i32* %11, i64 1
store i32 1000, i32* %12
%13 = getelementptr inbounds i32, i32* %12, i64 1
store i32 1001, i32* %13
%14 = getelementptr inbounds i32, i32* %13, i64 1
store i32 9999, i32* %14
%15 = getelementptr inbounds i32, i32* %14, i64 1
store i32 10000, i32* %15
%16 = getelementptr inbounds i32, i32* %15, i64 1
store i32 10001, i32* %16
%17 = getelementptr inbounds i32, i32* %16, i64 1
store i32 99999, i32* %17
%18 = getelementptr inbounds i32, i32* %17, i64 1
store i32 100000, i32* %18
%19 = getelementptr inbounds i32, i32* %18, i64 1
store i32 100001, i32* %19
%20 = getelementptr inbounds i32, i32* %19, i64 1
store i32 999999, i32* %20
%21 = getelementptr inbounds i32, i32* %20, i64 1
store i32 1000000, i32* %21
%22 = getelementptr inbounds i32, i32* %21, i64 1
store i32 1000001, i32* %22
%23 = getelementptr inbounds i32, i32* %22, i64 1
store i32 9999999, i32* %23
%24 = getelementptr inbounds i32, i32* %23, i64 1
store i32 10000000, i32* %24
%25 = getelementptr inbounds i32, i32* %24, i64 1
store i32 10000001, i32* %25
%26 = getelementptr inbounds i32, i32* %25, i64 1
store i32 99999999, i32* %26
%27 = getelementptr inbounds i32, i32* %26, i64 1
store i32 100000000, i32* %27
%28 = getelementptr inbounds i32, i32* %27, i64 1
store i32 100000001, i32* %28
%29 = getelementptr inbounds i32, i32* %28, i64 1
store i32 999999999, i32* %29
%30 = getelementptr inbounds i32, i32* %29, i64 1
store i32 1000000000, i32* %30
%31 = getelementptr inbounds i32, i32* %30, i64 1
store i32 1000000001, i32* %31
%32 = getelementptr inbounds i32, i32* %31, i64 1
%33 = load i32, i32* @UINT_MAX
store i32 %33, i32* %32
store i64 0, i64* %1
br label %34
34: ; preds = %38, %0
%35 = load i64, i64* %1
%36 = icmp ult i64 %35, 30
br i1 %36, label %37, label %41
37: ; preds = %34
br label %38
38: ; preds = %37
%39 = load i64, i64* %1
%40 = add i64 %39, 1
store i64 %40, i64* %1
br label %34
41: ; preds = %34
ret void
}

LLVM IR (-O2):
@UINT_MAX = global i32 0
define void @test() {
ret void
}