#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*/ debug_display_fields(int, char const **, int const *,
                                        int const);
int /*<<< orphan*/ printf(char *);
int debug_display_usertable() {
  const char *fields[] = {"User name", "Encrypted Password"};
  const int fields_len[] = {1, 1};
  int i, ptr;
  const int n_fields = 2;
  const int entry_size = 2;
  ptr = 31168;
  for (i = 0; i < 16; i++) {
    debug_display_fields(ptr, fields, fields_len, n_fields);
    printf("\n");
    ptr = ptr + entry_size;
  }
  return 1;
}


x86 assembly (clang, -O0):
<debug_display_usertable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x2ce1(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2cde(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0xedb(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x2,-0x24(%rbp)
movl   $0x2,-0x28(%rbp)
movl   $0x79c0,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x10,-0x1c(%rbp)
jge    11a7 <debug_display_usertable+0x87>
mov    -0x20(%rbp),%edi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1165 <debug_display_usertable+0x45>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_display_usertable>:
push   %r14
push   %rbx
sub    $0x28,%rsp
movaps 0x2ce2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x100000001,%rax
mov    %rax,0x8(%rsp)
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%r14
mov    $0x79c0,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79c2,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79c4,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79c6,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79c8,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79ca,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79cc,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79ce,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79d0,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79d2,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79d4,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79d6,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79d8,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79da,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79dc,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x79de,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x2,%ecx
call   1040 <debug_display_fields@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [10 x i8] c"User name\00"
@.str.1 = [19 x i8] c"Encrypted Password\00"
@__const.debug_display_usertable.fields = [2 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i32 0, i32 0)]
@__const.debug_display_usertable.fields_len = [2 x i32] [i32 1, i32 1]
@.str.2 = [2 x i8] c"\0A\00"
define i32 @debug_display_usertable() {
%1 = alloca [2 x i8*]
%2 = alloca [2 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast [2 x i8*]* %1 to i8*
%8 = bitcast [2 x i32]* %2 to i8*
store i32 2, i32* %5
store i32 2, i32* %6
store i32 31168, i32* %4
store i32 0, i32* %3
br label %9
9: ; preds = %20, %0
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 16
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load i32, i32* %4
%14 = getelementptr inbounds [2 x i8*], [2 x i8*]* %1, i64 0, i64 0
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 0
%16 = call i32 @debug_display_fields(i32 %13, i8** %14, i32* %15, i32 2)
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 2
store i32 %19, i32* %4
br label %20
20: ; preds = %12
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
store i32 %22, i32* %3
br label %9
23: ; preds = %9
ret i32 1
}

LLVM IR (-O2):
@.str = [10 x i8] c"User name\00"
@.str.1 = [19 x i8] c"Encrypted Password\00"
@__const.debug_display_usertable.fields = [2 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i32 0, i32 0)]
define i32 @debug_display_usertable() {
%1 = alloca [2 x i8*]
%2 = alloca i64
%3 = bitcast [2 x i8*]* %1 to i8*
%4 = bitcast i64* %2 to i8*
store i64 4294967297, i64* %2
%5 = getelementptr inbounds [2 x i8*], [2 x i8*]* %1, i64 0, i64 0
%6 = bitcast i64* %2 to i32*
%7 = call i32 @debug_display_fields(i32 31168, i8** %5, i32* %6, i32 2)
%8 = call i32 @putchar(i32 10)
%9 = call i32 @debug_display_fields(i32 31170, i8** %5, i32* %6, i32 2)
%10 = call i32 @putchar(i32 10)
%11 = call i32 @debug_display_fields(i32 31172, i8** %5, i32* %6, i32 2)
%12 = call i32 @putchar(i32 10)
%13 = call i32 @debug_display_fields(i32 31174, i8** %5, i32* %6, i32 2)
%14 = call i32 @putchar(i32 10)
%15 = call i32 @debug_display_fields(i32 31176, i8** %5, i32* %6, i32 2)
%16 = call i32 @putchar(i32 10)
%17 = call i32 @debug_display_fields(i32 31178, i8** %5, i32* %6, i32 2)
%18 = call i32 @putchar(i32 10)
%19 = call i32 @debug_display_fields(i32 31180, i8** %5, i32* %6, i32 2)
%20 = call i32 @putchar(i32 10)
%21 = call i32 @debug_display_fields(i32 31182, i8** %5, i32* %6, i32 2)
%22 = call i32 @putchar(i32 10)
%23 = call i32 @debug_display_fields(i32 31184, i8** %5, i32* %6, i32 2)
%24 = call i32 @putchar(i32 10)
%25 = call i32 @debug_display_fields(i32 31186, i8** %5, i32* %6, i32 2)
%26 = call i32 @putchar(i32 10)
%27 = call i32 @debug_display_fields(i32 31188, i8** %5, i32* %6, i32 2)
%28 = call i32 @putchar(i32 10)
%29 = call i32 @debug_display_fields(i32 31190, i8** %5, i32* %6, i32 2)
%30 = call i32 @putchar(i32 10)
%31 = call i32 @debug_display_fields(i32 31192, i8** %5, i32* %6, i32 2)
%32 = call i32 @putchar(i32 10)
%33 = call i32 @debug_display_fields(i32 31194, i8** %5, i32* %6, i32 2)
%34 = call i32 @putchar(i32 10)
%35 = call i32 @debug_display_fields(i32 31196, i8** %5, i32* %6, i32 2)
%36 = call i32 @putchar(i32 10)
%37 = call i32 @debug_display_fields(i32 31198, i8** %5, i32* %6, i32 2)
%38 = call i32 @putchar(i32 10)
ret i32 1
}