#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 */
struct timeval {
  unsigned long tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ abort();
int getopt(int, char **, char *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
char *malloc(size_t);
char *optarg;
scalar_t__ opterr;
int /*<<< orphan*/ printf(char *, char, char, char, char, char, char, char,
                          char, char, char, char, char);
int rand();
char *realloc(char *, size_t);
int /*<<< orphan*/ srand(scalar_t__);
int main(int argc, char **argv) {
  char *tvalue = "local";
  char *nvalue = "1";
  char *fvalue = "1";
  char *pvalue = NULL;
  char *cvalue = "lower";
  int index;
  int c;
  char *mac_format = NULL;
  char *mac_f1 = "%c%c%c%c%c%c%c%c%c%c%c%c\n";
  char *mac_f2 = "%c%c-%c%c-%c%c-%c%c-%c%c-%c%c\n";
  char *mac_f3 = "%c%c:%c%c:%c%c:%c%c:%c%c:%c%c\n";
  char *mac_f4 = "%c%c%c%c.%c%c%c%c.%c%c%c%c\n";
  opterr = 0;
  while ((c = getopt(argc, argv, "t:n:f:p:c:")) != -1) {
    switch (c) {
    case 't':
      tvalue = optarg;
      break;
    case 'n':
      nvalue = optarg;
      break;
    case 'f':
      fvalue = optarg;
      if (fvalue == "1") {
        mac_format = mac_f1;
      } else if (fvalue == "2") {
        mac_format = mac_f2;
      }
      break;
    case 'p':
      pvalue = optarg;
      break;
    case 'c':
      cvalue = optarg;
      break;
    default:
      abort();
    }
  }
  struct timeval tm;
  gettimeofday(&tm, NULL);
  srand(tm.tv_sec + tm.tv_usec * 1000000ul);
  enum { hwaddr_len = 12 };
  enum { hwaddr_glb_len = 16 };
  enum { hwaddr_loc_len = 4 };
  static char hwaddr_glb[hwaddr_glb_len] = {'0', '1', '2', '3', '4', '5',
                                            '6', '7', '8', '9', 'A', 'B',
                                            'C', 'D', 'E', 'F'};
  static char hwaddr_loc[hwaddr_loc_len] = {'2', '6', 'A', 'E'};
  int i;
  size_t space = 1;
  char *mac = malloc(space);
  int local = 0;
  for (i = 0; i < hwaddr_len; i++) {
    if (i == 1 && local == 1) {
      mac[i] = hwaddr_loc[rand() % hwaddr_loc_len];
    } else {
      mac[i] = hwaddr_glb[rand() % hwaddr_glb_len];
    }
    space++;
    mac = realloc(mac, space);
  }
  printf(mac_format, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], mac[6],
         mac[7], mac[8], mac[9], mac[10], mac[11]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xe0,%rsp
movl   $0x0,-0x24(%rbp)
mov    %edi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
lea    0xea1(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe9c(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xe91(%rip),%rax
mov    %rax,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
lea    0xe80(%rip),%rax
mov    %rax,-0x58(%rbp)
movq   $0x0,-0x68(%rbp)
lea    0xe73(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    0xe82(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    0xe96(%rip),%rax
mov    %rax,-0x80(%rbp)
lea    0xeaa(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0x2dc6(%rip),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%rsi
lea    0xea3(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x60(%rbp)
cmp    $0xffffffff,%eax
je     130e <main+0x18e>
mov    -0x60(%rbp),%eax
add    $0xffffff9d,%eax
mov    %eax,%ecx
mov    %rcx,-0xc0(%rbp)
sub    $0x11,%eax
ja     1302 <main+0x182>
mov    -0xc0(%rbp),%rax
lea    0xda2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d8a(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
jmp    1309 <main+0x189>
mov    0x2d77(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
jmp    1309 <main+0x189>
mov    0x2d64(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
lea    0xdac(%rip),%rax
cmp    %rax,-0x48(%rbp)
jne    12b9 <main+0x139>
mov    -0x70(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    12d7 <main+0x157>
lea    0xe15(%rip),%rax
cmp    %rax,-0x48(%rbp)
jne    12d2 <main+0x152>
mov    -0x78(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    12d7 <main+0x157>
jmp    1309 <main+0x189>
mov    0x2d15(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
jmp    1309 <main+0x189>
mov    0x2d02(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
jmp    1309 <main+0x189>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1219 <main+0x99>
lea    -0x98(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
mov    -0x90(%rbp),%rdi
imul   $0xf4240,-0x98(%rbp),%rax
add    %rax,%rdi
call   1060 <srand@plt>
movq   $0x1,-0xa8(%rbp)
mov    -0xa8(%rbp),%rdi
call   1070 <malloc@plt>
mov    %rax,-0xb0(%rbp)
movl   $0x0,-0xb4(%rbp)
movl   $0x0,-0x9c(%rbp)
cmpl   $0xc,-0x9c(%rbp)
jge    1430 <main+0x2b0>
cmpl   $0x1,-0x9c(%rbp)
jne    13c3 <main+0x243>
cmpl   $0x1,-0xb4(%rbp)
jne    13c3 <main+0x243>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0x4,%ecx
cltd
idiv   %ecx
movslq %edx,%rcx
lea    0x2cd6(%rip),%rax
mov    (%rax,%rcx,1),%dl
mov    -0xb0(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13f0 <main+0x270>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
movslq %edx,%rcx
lea    0x2c94(%rip),%rax
mov    (%rax,%rcx,1),%dl
mov    -0xb0(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
mov    -0xb0(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
call   1080 <realloc@plt>
mov    %rax,-0xb0(%rbp)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    136a <main+0x1ea>
mov    -0x68(%rbp),%rdi
mov    -0xb0(%rbp),%rax
mov    (%rax),%sil
mov    -0xb0(%rbp),%rax
mov    0x1(%rax),%dl
mov    -0xb0(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0xb0(%rbp),%rax
mov    0x3(%rax),%r8b
mov    -0xb0(%rbp),%rax
mov    0x4(%rax),%r9b
mov    -0xb0(%rbp),%rax
mov    0x5(%rax),%r12b
mov    -0xb0(%rbp),%rax
mov    0x6(%rax),%r15b
mov    -0xb0(%rbp),%rax
mov    0x7(%rax),%r14b
mov    -0xb0(%rbp),%rax
mov    0x8(%rax),%bl
mov    -0xb0(%rbp),%rax
mov    0x9(%rax),%r11b
mov    -0xb0(%rbp),%rax
mov    0xa(%rax),%r10b
mov    -0xb0(%rbp),%rax
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %r12b,%r12d
mov    %r12d,(%rsp)
movsbl %r15b,%r15d
mov    %r15d,0x8(%rsp)
movsbl %r14b,%r14d
mov    %r14d,0x10(%rsp)
movsbl %bl,%ebx
mov    %ebx,0x18(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x20(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x28(%rsp)
movsbl 0xb(%rax),%eax
mov    %eax,0x30(%rsp)
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0xe0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x2e3e(%rip),%rax
movq   $0x0,(%rax)
xor    %r14d,%r14d
lea    0xe90(%rip),%r15
mov    $0x22801,%r12d
lea    0xe4a(%rip),%r13
nopl   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1090 <getopt@plt>
lea    -0x63(%rax),%ecx
cmp    $0x11,%ecx
ja     120f <main+0x8f>
bt     %ecx,%r12d
jb     11c0 <main+0x40>
cmp    $0x3,%ecx
jne    120f <main+0x8f>
mov    0x2e11(%rip),%rax
mov    (%rax),%rax
lea    0xe55(%rip),%rcx
cmp    %rcx,%rax
lea    0xe21(%rip),%rcx
cmove  %rcx,%r14
lea    0xdfa(%rip),%rcx
cmp    %rcx,%rax
cmove  %r13,%r14
jmp    11c0 <main+0x40>
cmp    $0xffffffff,%eax
jne    12e8 <main+0x168>
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
imul   $0xf4240,0x8(%rsp),%rdi
add    0x10(%rsp),%rdi
call   1060 <srand@plt>
mov    $0x1,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    $0x2,%ebp
lea    0xe00(%rip),%r15
xor    %eax,%eax
call   10a0 <rand@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffff0,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,-0x2(%rbx,%rbp,1)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1080 <realloc@plt>
mov    %rax,%rbx
add    $0x1,%rbp
cmp    $0xe,%rbp
jne    1250 <main+0xd0>
movsbl (%rbx),%esi
movsbl 0x1(%rbx),%edx
movsbl 0x2(%rbx),%ecx
movsbl 0x3(%rbx),%r8d
movsbl 0x4(%rbx),%r9d
movsbl 0x5(%rbx),%r10d
movsbl 0x6(%rbx),%r11d
movsbl 0x7(%rbx),%r15d
movsbl 0x8(%rbx),%r12d
movsbl 0x9(%rbx),%eax
movsbl 0xa(%rbx),%ebp
movsbl 0xb(%rbx),%ebx
sub    $0x8,%rsp
mov    %r14,%rdi
push   %rbx
push   %rbp
push   %rax
push   %r12
push   %r15
push   %r11
push   %r10
call   1040 <printf@plt>
add    $0x40,%rsp
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
@.str = [6 x i8] c"local\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [6 x i8] c"lower\00"
@.str.3 = [26 x i8] c"%c%c%c%c%c%c%c%c%c%c%c%c\0A\00"
@.str.4 = [31 x i8] c"%c%c-%c%c-%c%c-%c%c-%c%c-%c%c\0A\00"
@.str.5 = [31 x i8] c"%c%c:%c%c:%c%c:%c%c:%c%c:%c%c\0A\00"
@.str.6 = [28 x i8] c"%c%c%c%c.%c%c%c%c.%c%c%c%c\0A\00"
@opterr = global i64 0
@.str.7 = [11 x i8] c"t:n:f:p:c:\00"
@optarg = global i8* null
@.str.8 = [2 x i8] c"2\00"
@main.hwaddr_glb = internal global [16 x i8] c"0123456789ABCDEF"
@main.hwaddr_loc = internal global [4 x i8] c"26AE"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca %struct.timeval
%19 = alloca i32
%20 = alloca i64
%21 = alloca i8*
%22 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %7
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %8
store i8* null, i8** %9
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %10
store i8* null, i8** %13
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8** %14
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8** %15
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8** %16
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8** %17
store i64 0, i64* @opterr
br label %23
23: ; preds = %53, %2
%24 = load i32, i32* %4
%25 = load i8**, i8*** %5
%26 = call i32 @getopt(i32 %24, i8** %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store i32 %26, i32* %12
%27 = icmp ne i32 %26, -1
br i1 %27, label %28, label %54
28: ; preds = %23
%29 = load i32, i32* %12
switch i32 %29, label %51 [
i32 116, label %30
i32 110, label %32
i32 102, label %34
i32 112, label %47
i32 99, label %49
]
30: ; preds = %28
%31 = load i8*, i8** @optarg
store i8* %31, i8** %6
br label %53
32: ; preds = %28
%33 = load i8*, i8** @optarg
store i8* %33, i8** %7
br label %53
34: ; preds = %28
%35 = load i8*, i8** @optarg
store i8* %35, i8** %8
%36 = load i8*, i8** %8
%37 = icmp eq i8* %36, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0)
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = load i8*, i8** %14
store i8* %39, i8** %13
br label %46
40: ; preds = %34
%41 = load i8*, i8** %8
%42 = icmp eq i8* %41, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0)
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = load i8*, i8** %15
store i8* %44, i8** %13
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %38
br label %53
47: ; preds = %28
%48 = load i8*, i8** @optarg
store i8* %48, i8** %9
br label %53
49: ; preds = %28
%50 = load i8*, i8** @optarg
store i8* %50, i8** %10
br label %53
51: ; preds = %28
%52 = call i32 (...) @abort()
unreachable
53: ; preds = %49, %47, %46, %32, %30
br label %23
54: ; preds = %23
%55 = call i32 @gettimeofday(%struct.timeval* %18, i32* null)
%56 = getelementptr inbounds %struct.timeval, %struct.timeval* %18, i32 0, i32 1
%57 = load i64, i64* %56
%58 = getelementptr inbounds %struct.timeval, %struct.timeval* %18, i32 0, i32 0
%59 = load i64, i64* %58
%60 = mul i64 %59, 1000000
%61 = add i64 %57, %60
%62 = call i32 @srand(i64 %61)
store i64 1, i64* %20
%63 = load i64, i64* %20
%64 = call i8* @malloc(i64 %63)
store i8* %64, i8** %21
store i32 0, i32* %22
store i32 0, i32* %19
br label %65
65: ; preds = %100, %54
%66 = load i32, i32* %19
%67 = icmp slt i32 %66, 12
br i1 %67, label %68, label %103
68: ; preds = %65
%69 = load i32, i32* %19
%70 = icmp eq i32 %69, 1
br i1 %70, label %71, label %84
71: ; preds = %68
%72 = load i32, i32* %22
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %84
74: ; preds = %71
%75 = call i32 (...) @rand()
%76 = srem i32 %75, 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [4 x i8], [4 x i8]* @main.hwaddr_loc, i64 0, i64 %77
%79 = load i8, i8* %78
%80 = load i8*, i8** %21
%81 = load i32, i32* %19
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, i8* %80, i64 %82
store i8 %79, i8* %83
br label %94
84: ; preds = %71, %68
%85 = call i32 (...) @rand()
%86 = srem i32 %85, 16
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [16 x i8], [16 x i8]* @main.hwaddr_glb, i64 0, i64 %87
%89 = load i8, i8* %88
%90 = load i8*, i8** %21
%91 = load i32, i32* %19
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, i8* %90, i64 %92
store i8 %89, i8* %93
br label %94
94: ; preds = %84, %74
%95 = load i64, i64* %20
%96 = add i64 %95, 1
store i64 %96, i64* %20
%97 = load i8*, i8** %21
%98 = load i64, i64* %20
%99 = call i8* @realloc(i8* %97, i64 %98)
store i8* %99, i8** %21
br label %100
100: ; preds = %94
%101 = load i32, i32* %19
%102 = add nsw i32 %101, 1
store i32 %102, i32* %19
br label %65
103: ; preds = %65
%104 = load i8*, i8** %13
%105 = load i8*, i8** %21
%106 = getelementptr inbounds i8, i8* %105, i64 0
%107 = load i8, i8* %106
%108 = load i8*, i8** %21
%109 = getelementptr inbounds i8, i8* %108, i64 1
%110 = load i8, i8* %109
%111 = load i8*, i8** %21
%112 = getelementptr inbounds i8, i8* %111, i64 2
%113 = load i8, i8* %112
%114 = load i8*, i8** %21
%115 = getelementptr inbounds i8, i8* %114, i64 3
%116 = load i8, i8* %115
%117 = load i8*, i8** %21
%118 = getelementptr inbounds i8, i8* %117, i64 4
%119 = load i8, i8* %118
%120 = load i8*, i8** %21
%121 = getelementptr inbounds i8, i8* %120, i64 5
%122 = load i8, i8* %121
%123 = load i8*, i8** %21
%124 = getelementptr inbounds i8, i8* %123, i64 6
%125 = load i8, i8* %124
%126 = load i8*, i8** %21
%127 = getelementptr inbounds i8, i8* %126, i64 7
%128 = load i8, i8* %127
%129 = load i8*, i8** %21
%130 = getelementptr inbounds i8, i8* %129, i64 8
%131 = load i8, i8* %130
%132 = load i8*, i8** %21
%133 = getelementptr inbounds i8, i8* %132, i64 9
%134 = load i8, i8* %133
%135 = load i8*, i8** %21
%136 = getelementptr inbounds i8, i8* %135, i64 10
%137 = load i8, i8* %136
%138 = load i8*, i8** %21
%139 = getelementptr inbounds i8, i8* %138, i64 11
%140 = load i8, i8* %139
%141 = call i32 @printf(i8* %104, i8 signext %107, i8 signext %110, i8 signext %113, i8 signext %116, i8 signext %119, i8 signext %122, i8 signext %125, i8 signext %128, i8 signext %131, i8 signext %134, i8 signext %137, i8 signext %140)
%142 = load i32, i32* %3
ret i32 %142
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
@.str.1 = [2 x i8] c"1\00"
@.str.3 = [26 x i8] c"%c%c%c%c%c%c%c%c%c%c%c%c\0A\00"
@.str.4 = [31 x i8] c"%c%c-%c%c-%c%c-%c%c-%c%c-%c%c\0A\00"
@opterr = global i64 0
@.str.7 = [11 x i8] c"t:n:f:p:c:\00"
@optarg = global i8* null
@.str.8 = [2 x i8] c"2\00"
@main.hwaddr_glb = internal unnamed_addr constant [16 x i8] c"0123456789ABCDEF"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca %struct.timeval
store i64 0, i64* @opterr
br label %4
4: ; preds = %9, %2
%5 = phi i8* [ null, %2 ], [ %14, %9 ]
br label %6
6: ; preds = %8, %4
%7 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
switch i32 %7, label %15 [
i32 -1, label %17
i32 116, label %8
i32 110, label %8
i32 102, label %9
i32 112, label %8
i32 99, label %8
]
8: ; preds = %6, %6, %6, %6
br label %6
9: ; preds = %6
%10 = load i8*, i8** @optarg
%11 = icmp eq i8* %10, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0)
%12 = icmp eq i8* %10, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0)
%13 = select i1 %12, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* %5
%14 = select i1 %11, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %13
br label %4
15: ; preds = %6
%16 = tail call i32 (...) @abort()
unreachable
17: ; preds = %6
%18 = bitcast %struct.timeval* %3 to i8*
%19 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%20 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%21 = load i64, i64* %20
%22 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%23 = load i64, i64* %22
%24 = mul i64 %23, 1000000
%25 = add i64 %24, %21
%26 = tail call i32 @srand(i64 %25)
%27 = tail call dereferenceable_or_null(1) i8* @malloc(i64 1)
br label %28
28: ; preds = %17, %28
%29 = phi i64 [ 0, %17 ], [ %40, %28 ]
%30 = phi i8* [ %27, %17 ], [ %39, %28 ]
%31 = phi i64 [ 1, %17 ], [ %38, %28 ]
%32 = tail call i32 (...) @rand()
%33 = srem i32 %32, 16
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [16 x i8], [16 x i8]* @main.hwaddr_glb, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = getelementptr inbounds i8, i8* %30, i64 %29
store i8 %36, i8* %37
%38 = add nuw nsw i64 %31, 1
%39 = tail call i8* @realloc(i8* %30, i64 %38)
%40 = add nuw nsw i64 %29, 1
%41 = icmp eq i64 %40, 12
br i1 %41, label %42, label %28
42: ; preds = %28
%43 = load i8, i8* %39
%44 = getelementptr inbounds i8, i8* %39, i64 1
%45 = load i8, i8* %44
%46 = getelementptr inbounds i8, i8* %39, i64 2
%47 = load i8, i8* %46
%48 = getelementptr inbounds i8, i8* %39, i64 3
%49 = load i8, i8* %48
%50 = getelementptr inbounds i8, i8* %39, i64 4
%51 = load i8, i8* %50
%52 = getelementptr inbounds i8, i8* %39, i64 5
%53 = load i8, i8* %52
%54 = getelementptr inbounds i8, i8* %39, i64 6
%55 = load i8, i8* %54
%56 = getelementptr inbounds i8, i8* %39, i64 7
%57 = load i8, i8* %56
%58 = getelementptr inbounds i8, i8* %39, i64 8
%59 = load i8, i8* %58
%60 = getelementptr inbounds i8, i8* %39, i64 9
%61 = load i8, i8* %60
%62 = getelementptr inbounds i8, i8* %39, i64 10
%63 = load i8, i8* %62
%64 = getelementptr inbounds i8, i8* %39, i64 11
%65 = load i8, i8* %64
%66 = tail call i32 @printf(i8* %5, i8 signext %43, i8 signext %45, i8 signext %47, i8 signext %49, i8 signext %51, i8 signext %53, i8 signext %55, i8 signext %57, i8 signext %59, i8 signext %61, i8 signext %63, i8 signext %65)
ret i32 0
}