int main(int argc, char *argv[]) {
  int i = 1;
  enum { true, false };
  printf("Data Section : ptr-val %p %s\n", (void *)getDataStr(), getDataStr());
  printf("Stack Section : ptr-val %p %s\n", (void *)getStackStr(),
         getStackStr());
  printf("enum true = %d, false =%d\n", true, false);
  do {
    printf("%d\n", i);
    i++;
    if (i < 15)
      continue;
  } while (false);
  do {
    printf("%d\n", i);
    i++;
    if (i < 15)
      break;
  } while (true);
  for (i = 0; i < 32; i++) {
    printf("shift %-12d %-12d = 0x%-12x %-12d = 0x%-12x\n", i, -1 << i, -1 << i,
           1 << i, 1 << i);
  }
}


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   $0x1,-0x14(%rbp)
mov    $0x0,%al
call   1050 <getDataStr@plt>
cltq
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1050 <getDataStr@plt>
mov    -0x28(%rbp),%rsi
mov    %eax,%edx
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getStackStr@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <getStackStr@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0xf,-0x14(%rbp)
jge    11db <main+0xab>
jmp    11e0 <main+0xb0>
jmp    11e0 <main+0xb0>
mov    $0x1,%al
test   $0x1,%al
jne    11b2 <main+0x82>
jmp    11ef <main+0xbf>
jmp    11f4 <main+0xc4>
mov    -0x14(%rbp),%esi
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0xf,-0x14(%rbp)
jge    121d <main+0xed>
jmp    1222 <main+0xf2>
jmp    1222 <main+0xf2>
movl   $0x0,-0x14(%rbp)
cmpl   $0x20,-0x14(%rbp)
jge    1284 <main+0x154>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%ecx
mov    $0xffffffff,%edx
shl    %cl,%edx
mov    -0x14(%rbp),%ecx
mov    $0xffffffff,%eax
shl    %cl,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%ecx
mov    $0x1,%r8d
shl    %cl,%r8d
mov    -0x14(%rbp),%ecx
mov    $0x1,%r9d
shl    %cl,%r9d
mov    -0x2c(%rbp),%ecx
lea    0xde9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1229 <main+0xf9>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <getDataStr@plt>
movslq %eax,%rbx
xor    %eax,%eax
call   1050 <getDataStr@plt>
lea    0xeb4(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getStackStr@plt>
movslq %eax,%rbx
xor    %eax,%eax
call   1040 <getStackStr@plt>
lea    0xeae(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x1,%ebx
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb7(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%ebx
jmp    11a0 <main+0x70>

LLVM IR (-O0):
@.str = [30 x i8] c"Data Section : ptr-val %p %s\0A\00"
@.str.1 = [31 x i8] c"Stack Section : ptr-val %p %s\0A\00"
@.str.2 = [27 x i8] c"enum true = %d, false =%d\0A\00"
@.str.3 = [4 x i8] c"%d\0A\00"
@.str.4 = [45 x i8] c"shift %-12d %-12d = 0x%-12x %-12d = 0x%-12x\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%7 = call i32 (...) @getDataStr()
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i8*
%10 = call i32 (...) @getDataStr()
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %9, i32 %10)
%12 = call i32 (...) @getStackStr()
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i8*
%15 = call i32 (...) @getStackStr()
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %14, i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 1)
br label %18
18: ; preds = %27, %2
%19 = load i32, i32* %6
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
%23 = load i32, i32* %6
%24 = icmp slt i32 %23, 15
br i1 %24, label %25, label %26
25: ; preds = %18
br label %27
26: ; preds = %18
br label %27
27: ; preds = %26, %25
br i1 true, label %18, label %28
28: ; preds = %27
br label %29
29: ; preds = %28
%30 = load i32, i32* %6
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
%34 = load i32, i32* %6
%35 = icmp slt i32 %34, 15
br i1 %35, label %36, label %37
36: ; preds = %29
br label %38
37: ; preds = %29
br label %38
38: ; preds = %37, %36
store i32 0, i32* %6
br label %39
39: ; preds = %53, %38
%40 = load i32, i32* %6
%41 = icmp slt i32 %40, 32
br i1 %41, label %42, label %56
42: ; preds = %39
%43 = load i32, i32* %6
%44 = load i32, i32* %6
%45 = shl i32 -1, %44
%46 = load i32, i32* %6
%47 = shl i32 -1, %46
%48 = load i32, i32* %6
%49 = shl i32 1, %48
%50 = load i32, i32* %6
%51 = shl i32 1, %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %43, i32 %45, i32 %47, i32 %49, i32 %51)
br label %53
53: ; preds = %42
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 1
store i32 %55, i32* %6
br label %39
56: ; preds = %39
%57 = load i32, i32* %3
ret i32 %57
}

LLVM IR (-O2):
@.str = [30 x i8] c"Data Section : ptr-val %p %s\0A\00"
@.str.1 = [31 x i8] c"Stack Section : ptr-val %p %s\0A\00"
@.str.2 = [27 x i8] c"enum true = %d, false =%d\0A\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @getDataStr()
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 (...) @getDataStr()
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %6)
%8 = tail call i32 (...) @getStackStr()
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i8*
%11 = tail call i32 (...) @getStackStr()
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %10, i32 %11)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 1)
br label %14
14: ; preds = %14, %2
%15 = phi i32 [ 1, %2 ], [ %17, %14 ]
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%17 = add nuw nsw i32 %15, 1
br label %14
}