#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 uint8_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, int, int);
int /*<<< orphan*/ isxdigit(int);
scalar_t__ memcmp(int *, char *, int);
void testarristg(FILE *fhout, uint8_t essidlen, uint8_t *essid) {
  static int k1;
  static char *dg860A = "DG860A";
  static char *tg852g = "TG852G";
  static char *tg862g = "TG862G";
  static char *dg1670A = "DG1670A";
  static char *sbg6580 = "SBG6580";
  static char *tg1672g = "TG1672G";
  if (essidlen >= 8) {
    if ((!isxdigit(essid[6])) || (!isxdigit(essid[7])))
      return;
    if (memcmp(essid, dg860A, 6) == 0) {
      for (k1 = 0; k1 < 0x10000; k1++)
        fprintf(fhout, "DG860A%04X%c%c\n", k1, essid[6], essid[7]);
      return;
    }
    if (memcmp(essid, tg852g, 6) == 0) {
      for (k1 = 0; k1 < 0x10000; k1++)
        fprintf(fhout, "TG852G%04X%c%c\n", k1, essid[6], essid[7]);
      return;
    }
    if (memcmp(essid, tg862g, 6) == 0) {
      for (k1 = 0; k1 < 0x10000; k1++)
        fprintf(fhout, "TG862G%04X%c%c\n", k1, essid[6], essid[7]);
      return;
    }
  }
  if (essidlen >= 9) {
    if ((!isxdigit(essid[7])) || (!isxdigit(essid[8])))
      return;
    if (memcmp(essid, dg1670A, 7) == 0) {
      for (k1 = 0; k1 < 0x10000; k1++)
        fprintf(fhout, "DG1670A%04X%c%c\n", k1, essid[7], essid[8]);
      return;
    }
    if (memcmp(essid, sbg6580, 7) == 0) {
      for (k1 = 0; k1 < 0x10000; k1++)
        fprintf(fhout, "SBG6580%04X%c%c\n", k1, essid[7], essid[8]);
      return;
    }
    if (memcmp(essid, tg1672g, 7) == 0) {
      for (k1 = 0; k1 < 0x10000; k1++)
        fprintf(fhout, "TG1672G%04X%c%c\n", k1, essid[7], essid[8]);
      return;
    }
  }
  return;
}


x86 assembly (clang, -O0):
<testarristg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x8,-0xc(%rbp)
jl     12e6 <testarristg+0x1b6>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%edi
call   1050 <isxdigit@plt>
cmp    $0x0,%eax
je     1177 <testarristg+0x47>
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%edi
call   1050 <isxdigit@plt>
cmp    $0x0,%eax
jne    117c <testarristg+0x4c>
jmp    148e <testarristg+0x35e>
mov    -0x18(%rbp),%rdi
mov    0x2eb1(%rip),%rsi
mov    $0x6,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    11f3 <testarristg+0xc3>
movl   $0x0,0x2ec7(%rip)
cmpl   $0x10000,0x2ebd(%rip)
jge    11ee <testarristg+0xbe>
mov    -0x8(%rbp),%rdi
mov    0x2ead(%rip),%edx
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%r8d
lea    0xe58(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e8c(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e83(%rip)
jmp    11a5 <testarristg+0x75>
jmp    148e <testarristg+0x35e>
mov    -0x18(%rbp),%rdi
mov    0x2e42(%rip),%rsi
mov    $0x6,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    126a <testarristg+0x13a>
movl   $0x0,0x2e50(%rip)
cmpl   $0x10000,0x2e46(%rip)
jge    1265 <testarristg+0x135>
mov    -0x8(%rbp),%rdi
mov    0x2e36(%rip),%edx
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%r8d
lea    0xdf1(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e15(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e0c(%rip)
jmp    121c <testarristg+0xec>
jmp    148e <testarristg+0x35e>
mov    -0x18(%rbp),%rdi
mov    0x2dd3(%rip),%rsi
mov    $0x6,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    12e1 <testarristg+0x1b1>
movl   $0x0,0x2dd9(%rip)
cmpl   $0x10000,0x2dcf(%rip)
jge    12dc <testarristg+0x1ac>
mov    -0x8(%rbp),%rdi
mov    0x2dbf(%rip),%edx
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%r8d
lea    0xd8a(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2d9e(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2d95(%rip)
jmp    1293 <testarristg+0x163>
jmp    148e <testarristg+0x35e>
jmp    12e6 <testarristg+0x1b6>
cmpl   $0x9,-0xc(%rbp)
jl     1489 <testarristg+0x359>
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%edi
call   1050 <isxdigit@plt>
cmp    $0x0,%eax
je     131a <testarristg+0x1ea>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%edi
call   1050 <isxdigit@plt>
cmp    $0x0,%eax
jne    131f <testarristg+0x1ef>
jmp    148e <testarristg+0x35e>
mov    -0x18(%rbp),%rdi
mov    0x2d26(%rip),%rsi
mov    $0x7,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    1396 <testarristg+0x266>
movl   $0x0,0x2d24(%rip)
cmpl   $0x10000,0x2d1a(%rip)
jge    1391 <testarristg+0x261>
mov    -0x8(%rbp),%rdi
mov    0x2d0a(%rip),%edx
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%r8d
lea    0xce5(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2ce9(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ce0(%rip)
jmp    1348 <testarristg+0x218>
jmp    148e <testarristg+0x35e>
mov    -0x18(%rbp),%rdi
mov    0x2cb7(%rip),%rsi
mov    $0x7,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    140d <testarristg+0x2dd>
movl   $0x0,0x2cad(%rip)
cmpl   $0x10000,0x2ca3(%rip)
jge    1408 <testarristg+0x2d8>
mov    -0x8(%rbp),%rdi
mov    0x2c93(%rip),%edx
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%r8d
lea    0xc7f(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2c72(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2c69(%rip)
jmp    13bf <testarristg+0x28f>
jmp    148e <testarristg+0x35e>
mov    -0x18(%rbp),%rdi
mov    0x2c48(%rip),%rsi
mov    $0x7,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    1484 <testarristg+0x354>
movl   $0x0,0x2c36(%rip)
cmpl   $0x10000,0x2c2c(%rip)
jge    147f <testarristg+0x34f>
mov    -0x8(%rbp),%rdi
mov    0x2c1c(%rip),%edx
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%r8d
lea    0xc19(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2bfb(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2bf2(%rip)
jmp    1436 <testarristg+0x306>
jmp    148e <testarristg+0x35e>
jmp    1489 <testarristg+0x359>
jmp    148e <testarristg+0x35e>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testarristg>:
push   %rbp
push   %r14
push   %rbx
cmp    $0x8,%esi
jl     1338 <testarristg+0x208>
mov    %rdx,%rbx
mov    %esi,%ebp
mov    %rdi,%r14
mov    0x18(%rdx),%edi
call   1050 <isxdigit@plt>
test   %eax,%eax
je     1338 <testarristg+0x208>
mov    0x1c(%rbx),%edi
call   1050 <isxdigit@plt>
test   %eax,%eax
je     1338 <testarristg+0x208>
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     127c <testarristg+0x14c>
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     12ba <testarristg+0x18a>
lea    0xe68(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     12fa <testarristg+0x1ca>
cmp    $0x9,%ebp
jb     1338 <testarristg+0x208>
mov    0x1c(%rbx),%edi
call   1050 <isxdigit@plt>
test   %eax,%eax
je     1338 <testarristg+0x208>
mov    0x20(%rbx),%edi
call   1050 <isxdigit@plt>
test   %eax,%eax
je     1338 <testarristg+0x208>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
mov    $0x7,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     133d <testarristg+0x20d>
lea    0xe14(%rip),%rsi
mov    %rbx,%rdi
mov    $0x7,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     137a <testarristg+0x24a>
lea    0xdff(%rip),%rsi
mov    %rbx,%rdi
mov    $0x7,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
jne    1338 <testarristg+0x208>
movl   $0x0,0x2df6(%rip)
xor    %edx,%edx
lea    0xe30(%rip),%rbp
mov    0x1c(%rbx),%ecx
mov    0x20(%rbx),%r8d
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <fprintf@plt>
mov    0x2dd5(%rip),%eax
lea    0x1(%rax),%edx
mov    %edx,0x2dcc(%rip)
cmp    $0xffff,%eax
jl     124f <testarristg+0x11f>
jmp    1338 <testarristg+0x208>
movl   $0x0,0x2db6(%rip)
xor    %edx,%edx
lea    0xd9e(%rip),%rbp
nop
mov    0x18(%rbx),%ecx
mov    0x1c(%rbx),%r8d
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <fprintf@plt>
mov    0x2d94(%rip),%eax
lea    0x1(%rax),%edx
mov    %edx,0x2d8b(%rip)
cmp    $0xffff,%eax
jl     1290 <testarristg+0x160>
jmp    1338 <testarristg+0x208>
movl   $0x0,0x2d78(%rip)
xor    %edx,%edx
lea    0xd70(%rip),%rbp
nopl   (%rax)
mov    0x18(%rbx),%ecx
mov    0x1c(%rbx),%r8d
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <fprintf@plt>
mov    0x2d54(%rip),%eax
lea    0x1(%rax),%edx
mov    %edx,0x2d4b(%rip)
cmp    $0xffff,%eax
jl     12d0 <testarristg+0x1a0>
jmp    1338 <testarristg+0x208>
movl   $0x0,0x2d38(%rip)
xor    %edx,%edx
lea    0xd40(%rip),%rbp
nopl   (%rax)
mov    0x18(%rbx),%ecx
mov    0x1c(%rbx),%r8d
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <fprintf@plt>
mov    0x2d14(%rip),%eax
lea    0x1(%rax),%edx
mov    %edx,0x2d0b(%rip)
cmp    $0xffff,%eax
jl     1310 <testarristg+0x1e0>
pop    %rbx
pop    %r14
pop    %rbp
ret
movl   $0x0,0x2cf5(%rip)
xor    %edx,%edx
lea    0xd0d(%rip),%rbp
mov    0x1c(%rbx),%ecx
mov    0x20(%rbx),%r8d
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <fprintf@plt>
mov    0x2cd4(%rip),%eax
lea    0x1(%rax),%edx
mov    %edx,0x2ccb(%rip)
cmp    $0xffff,%eax
jl     1350 <testarristg+0x220>
jmp    1338 <testarristg+0x208>
movl   $0x0,0x2cb8(%rip)
xor    %edx,%edx
lea    0xce1(%rip),%rbp
mov    0x1c(%rbx),%ecx
mov    0x20(%rbx),%r8d
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <fprintf@plt>
mov    0x2c97(%rip),%eax
lea    0x1(%rax),%edx
mov    %edx,0x2c8e(%rip)
cmp    $0xffff,%eax
jl     138d <testarristg+0x25d>
jmp    1338 <testarristg+0x208>

LLVM IR (-O0):
@testarristg.k1 = internal global i32 0
@testarristg.dg860A = internal global i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0)
@.str = [7 x i8] c"DG860A\00"
@testarristg.tg852g = internal global i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0)
@.str.1 = [7 x i8] c"TG852G\00"
@testarristg.tg862g = internal global i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0)
@.str.2 = [7 x i8] c"TG862G\00"
@testarristg.dg1670A = internal global i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0)
@.str.3 = [8 x i8] c"DG1670A\00"
@testarristg.sbg6580 = internal global i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i32 0, i32 0)
@.str.4 = [8 x i8] c"SBG6580\00"
@testarristg.tg1672g = internal global i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i32 0, i32 0)
@.str.5 = [8 x i8] c"TG1672G\00"
@.str.6 = [16 x i8] c"DG860A%04X%c%c\0A\00"
@.str.7 = [16 x i8] c"TG852G%04X%c%c\0A\00"
@.str.8 = [16 x i8] c"TG862G%04X%c%c\0A\00"
@.str.9 = [17 x i8] c"DG1670A%04X%c%c\0A\00"
@.str.10 = [17 x i8] c"SBG6580%04X%c%c\0A\00"
@.str.11 = [17 x i8] c"TG1672G%04X%c%c\0A\00"
define void @testarristg(i32* %0, i32 %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32*
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%7 = load i32, i32* %5
%8 = icmp sge i32 %7, 8
br i1 %8, label %9, label %92
9: ; preds = %3
%10 = load i32*, i32** %6
%11 = getelementptr inbounds i32, i32* %10, i64 6
%12 = load i32, i32* %11
%13 = call i32 @isxdigit(i32 %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %9
%16 = load i32*, i32** %6
%17 = getelementptr inbounds i32, i32* %16, i64 7
%18 = load i32, i32* %17
%19 = call i32 @isxdigit(i32 %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %15, %9
br label %179
22: ; preds = %15
%23 = load i32*, i32** %6
%24 = load i8*, i8** @testarristg.dg860A
%25 = call i64 @memcmp(i32* %23, i8* %24, i32 6)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %45
27: ; preds = %22
store i32 0, i32* @testarristg.k1
br label %28
28: ; preds = %41, %27
%29 = load i32, i32* @testarristg.k1
%30 = icmp slt i32 %29, 65536
br i1 %30, label %31, label %44
31: ; preds = %28
%32 = load i32*, i32** %4
%33 = load i32, i32* @testarristg.k1
%34 = load i32*, i32** %6
%35 = getelementptr inbounds i32, i32* %34, i64 6
%36 = load i32, i32* %35
%37 = load i32*, i32** %6
%38 = getelementptr inbounds i32, i32* %37, i64 7
%39 = load i32, i32* %38
%40 = call i32 @fprintf(i32* %32, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %33, i32 %36, i32 %39)
br label %41
41: ; preds = %31
%42 = load i32, i32* @testarristg.k1
%43 = add nsw i32 %42, 1
store i32 %43, i32* @testarristg.k1
br label %28
44: ; preds = %28
br label %179
45: ; preds = %22
%46 = load i32*, i32** %6
%47 = load i8*, i8** @testarristg.tg852g
%48 = call i64 @memcmp(i32* %46, i8* %47, i32 6)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %68
50: ; preds = %45
store i32 0, i32* @testarristg.k1
br label %51
51: ; preds = %64, %50
%52 = load i32, i32* @testarristg.k1
%53 = icmp slt i32 %52, 65536
br i1 %53, label %54, label %67
54: ; preds = %51
%55 = load i32*, i32** %4
%56 = load i32, i32* @testarristg.k1
%57 = load i32*, i32** %6
%58 = getelementptr inbounds i32, i32* %57, i64 6
%59 = load i32, i32* %58
%60 = load i32*, i32** %6
%61 = getelementptr inbounds i32, i32* %60, i64 7
%62 = load i32, i32* %61
%63 = call i32 @fprintf(i32* %55, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %56, i32 %59, i32 %62)
br label %64
64: ; preds = %54
%65 = load i32, i32* @testarristg.k1
%66 = add nsw i32 %65, 1
store i32 %66, i32* @testarristg.k1
br label %51
67: ; preds = %51
br label %179
68: ; preds = %45
%69 = load i32*, i32** %6
%70 = load i8*, i8** @testarristg.tg862g
%71 = call i64 @memcmp(i32* %69, i8* %70, i32 6)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %91
73: ; preds = %68
store i32 0, i32* @testarristg.k1
br label %74
74: ; preds = %87, %73
%75 = load i32, i32* @testarristg.k1
%76 = icmp slt i32 %75, 65536
br i1 %76, label %77, label %90
77: ; preds = %74
%78 = load i32*, i32** %4
%79 = load i32, i32* @testarristg.k1
%80 = load i32*, i32** %6
%81 = getelementptr inbounds i32, i32* %80, i64 6
%82 = load i32, i32* %81
%83 = load i32*, i32** %6
%84 = getelementptr inbounds i32, i32* %83, i64 7
%85 = load i32, i32* %84
%86 = call i32 @fprintf(i32* %78, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %79, i32 %82, i32 %85)
br label %87
87: ; preds = %77
%88 = load i32, i32* @testarristg.k1
%89 = add nsw i32 %88, 1
store i32 %89, i32* @testarristg.k1
br label %74
90: ; preds = %74
br label %179
91: ; preds = %68
br label %92
92: ; preds = %91, %3
%93 = load i32, i32* %5
%94 = icmp sge i32 %93, 9
br i1 %94, label %95, label %178
95: ; preds = %92
%96 = load i32*, i32** %6
%97 = getelementptr inbounds i32, i32* %96, i64 7
%98 = load i32, i32* %97
%99 = call i32 @isxdigit(i32 %98)
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %107
101: ; preds = %95
%102 = load i32*, i32** %6
%103 = getelementptr inbounds i32, i32* %102, i64 8
%104 = load i32, i32* %103
%105 = call i32 @isxdigit(i32 %104)
%106 = icmp ne i32 %105, 0
br i1 %106, label %108, label %107
107: ; preds = %101, %95
br label %179
108: ; preds = %101
%109 = load i32*, i32** %6
%110 = load i8*, i8** @testarristg.dg1670A
%111 = call i64 @memcmp(i32* %109, i8* %110, i32 7)
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %131
113: ; preds = %108
store i32 0, i32* @testarristg.k1
br label %114
114: ; preds = %127, %113
%115 = load i32, i32* @testarristg.k1
%116 = icmp slt i32 %115, 65536
br i1 %116, label %117, label %130
117: ; preds = %114
%118 = load i32*, i32** %4
%119 = load i32, i32* @testarristg.k1
%120 = load i32*, i32** %6
%121 = getelementptr inbounds i32, i32* %120, i64 7
%122 = load i32, i32* %121
%123 = load i32*, i32** %6
%124 = getelementptr inbounds i32, i32* %123, i64 8
%125 = load i32, i32* %124
%126 = call i32 @fprintf(i32* %118, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %119, i32 %122, i32 %125)
br label %127
127: ; preds = %117
%128 = load i32, i32* @testarristg.k1
%129 = add nsw i32 %128, 1
store i32 %129, i32* @testarristg.k1
br label %114
130: ; preds = %114
br label %179
131: ; preds = %108
%132 = load i32*, i32** %6
%133 = load i8*, i8** @testarristg.sbg6580
%134 = call i64 @memcmp(i32* %132, i8* %133, i32 7)
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %154
136: ; preds = %131
store i32 0, i32* @testarristg.k1
br label %137
137: ; preds = %150, %136
%138 = load i32, i32* @testarristg.k1
%139 = icmp slt i32 %138, 65536
br i1 %139, label %140, label %153
140: ; preds = %137
%141 = load i32*, i32** %4
%142 = load i32, i32* @testarristg.k1
%143 = load i32*, i32** %6
%144 = getelementptr inbounds i32, i32* %143, i64 7
%145 = load i32, i32* %144
%146 = load i32*, i32** %6
%147 = getelementptr inbounds i32, i32* %146, i64 8
%148 = load i32, i32* %147
%149 = call i32 @fprintf(i32* %141, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 %142, i32 %145, i32 %148)
br label %150
150: ; preds = %140
%151 = load i32, i32* @testarristg.k1
%152 = add nsw i32 %151, 1
store i32 %152, i32* @testarristg.k1
br label %137
153: ; preds = %137
br label %179
154: ; preds = %131
%155 = load i32*, i32** %6
%156 = load i8*, i8** @testarristg.tg1672g
%157 = call i64 @memcmp(i32* %155, i8* %156, i32 7)
%158 = icmp eq i64 %157, 0
br i1 %158, label %159, label %177
159: ; preds = %154
store i32 0, i32* @testarristg.k1
br label %160
160: ; preds = %173, %159
%161 = load i32, i32* @testarristg.k1
%162 = icmp slt i32 %161, 65536
br i1 %162, label %163, label %176
163: ; preds = %160
%164 = load i32*, i32** %4
%165 = load i32, i32* @testarristg.k1
%166 = load i32*, i32** %6
%167 = getelementptr inbounds i32, i32* %166, i64 7
%168 = load i32, i32* %167
%169 = load i32*, i32** %6
%170 = getelementptr inbounds i32, i32* %169, i64 8
%171 = load i32, i32* %170
%172 = call i32 @fprintf(i32* %164, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 %165, i32 %168, i32 %171)
br label %173
173: ; preds = %163
%174 = load i32, i32* @testarristg.k1
%175 = add nsw i32 %174, 1
store i32 %175, i32* @testarristg.k1
br label %160
176: ; preds = %160
br label %179
177: ; preds = %154
br label %178
178: ; preds = %177, %92
br label %179
179: ; preds = %178, %176, %153, %130, %107, %90, %67, %44, %21
ret void
}

LLVM IR (-O2):
@testarristg.k1 = internal unnamed_addr global i32 0
@.str = [7 x i8] c"DG860A\00"
@.str.1 = [7 x i8] c"TG852G\00"
@.str.2 = [7 x i8] c"TG862G\00"
@.str.3 = [8 x i8] c"DG1670A\00"
@.str.4 = [8 x i8] c"SBG6580\00"
@.str.5 = [8 x i8] c"TG1672G\00"
@.str.6 = [16 x i8] c"DG860A%04X%c%c\0A\00"
@.str.7 = [16 x i8] c"TG852G%04X%c%c\0A\00"
@.str.8 = [16 x i8] c"TG862G%04X%c%c\0A\00"
@.str.9 = [17 x i8] c"DG1670A%04X%c%c\0A\00"
@.str.10 = [17 x i8] c"SBG6580%04X%c%c\0A\00"
@.str.11 = [17 x i8] c"TG1672G%04X%c%c\0A\00"
define void @testarristg(i32* nocapture %0, i32 %1, i32* %2) {
%4 = icmp sgt i32 %1, 7
br i1 %4, label %5, label %98
5: ; preds = %3
%6 = getelementptr inbounds i32, i32* %2, i64 6
%7 = load i32, i32* %6
%8 = tail call i32 @isxdigit(i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %98, label %10
10: ; preds = %5
%11 = getelementptr inbounds i32, i32* %2, i64 7
%12 = load i32, i32* %11
%13 = tail call i32 @isxdigit(i32 %12)
%14 = icmp eq i32 %13, 0
br i1 %14, label %98, label %15
15: ; preds = %10
%16 = tail call i64 @memcmp(i32* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %27
18: ; preds = %15
store i32 0, i32* @testarristg.k1
br label %19
19: ; preds = %18, %19
%20 = phi i32 [ 0, %18 ], [ %25, %19 ]
%21 = load i32, i32* %6
%22 = load i32, i32* %11
%23 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %20, i32 %21, i32 %22)
%24 = load i32, i32* @testarristg.k1
%25 = add nsw i32 %24, 1
store i32 %25, i32* @testarristg.k1
%26 = icmp slt i32 %24, 65535
br i1 %26, label %19, label %98
27: ; preds = %15
%28 = tail call i64 @memcmp(i32* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %39
30: ; preds = %27
store i32 0, i32* @testarristg.k1
br label %31
31: ; preds = %30, %31
%32 = phi i32 [ 0, %30 ], [ %37, %31 ]
%33 = load i32, i32* %6
%34 = load i32, i32* %11
%35 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %32, i32 %33, i32 %34)
%36 = load i32, i32* @testarristg.k1
%37 = add nsw i32 %36, 1
store i32 %37, i32* @testarristg.k1
%38 = icmp slt i32 %36, 65535
br i1 %38, label %31, label %98
39: ; preds = %27
%40 = tail call i64 @memcmp(i32* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %51
42: ; preds = %39
store i32 0, i32* @testarristg.k1
br label %43
43: ; preds = %42, %43
%44 = phi i32 [ 0, %42 ], [ %49, %43 ]
%45 = load i32, i32* %6
%46 = load i32, i32* %11
%47 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %44, i32 %45, i32 %46)
%48 = load i32, i32* @testarristg.k1
%49 = add nsw i32 %48, 1
store i32 %49, i32* @testarristg.k1
%50 = icmp slt i32 %48, 65535
br i1 %50, label %43, label %98
51: ; preds = %39
%52 = icmp ugt i32 %1, 8
br i1 %52, label %53, label %98
53: ; preds = %51
%54 = load i32, i32* %11
%55 = tail call i32 @isxdigit(i32 %54)
%56 = icmp eq i32 %55, 0
br i1 %56, label %98, label %57
57: ; preds = %53
%58 = getelementptr inbounds i32, i32* %2, i64 8
%59 = load i32, i32* %58
%60 = tail call i32 @isxdigit(i32 %59)
%61 = icmp eq i32 %60, 0
br i1 %61, label %98, label %62
62: ; preds = %57
%63 = tail call i64 @memcmp(i32* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 7)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %62
store i32 0, i32* @testarristg.k1
br label %66
66: ; preds = %65, %66
%67 = phi i32 [ 0, %65 ], [ %72, %66 ]
%68 = load i32, i32* %11
%69 = load i32, i32* %58
%70 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %67, i32 %68, i32 %69)
%71 = load i32, i32* @testarristg.k1
%72 = add nsw i32 %71, 1
store i32 %72, i32* @testarristg.k1
%73 = icmp slt i32 %71, 65535
br i1 %73, label %66, label %98
74: ; preds = %62
%75 = tail call i64 @memcmp(i32* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 7)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %86
77: ; preds = %74
store i32 0, i32* @testarristg.k1
br label %78
78: ; preds = %77, %78
%79 = phi i32 [ 0, %77 ], [ %84, %78 ]
%80 = load i32, i32* %11
%81 = load i32, i32* %58
%82 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 %79, i32 %80, i32 %81)
%83 = load i32, i32* @testarristg.k1
%84 = add nsw i32 %83, 1
store i32 %84, i32* @testarristg.k1
%85 = icmp slt i32 %83, 65535
br i1 %85, label %78, label %98
86: ; preds = %74
%87 = tail call i64 @memcmp(i32* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %98
89: ; preds = %86
store i32 0, i32* @testarristg.k1
br label %90
90: ; preds = %89, %90
%91 = phi i32 [ 0, %89 ], [ %96, %90 ]
%92 = load i32, i32* %11
%93 = load i32, i32* %58
%94 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 %91, i32 %92, i32 %93)
%95 = load i32, i32* @testarristg.k1
%96 = add nsw i32 %95, 1
store i32 %96, i32* @testarristg.k1
%97 = icmp slt i32 %95, 65535
br i1 %97, label %90, label %98
98: ; preds = %90, %78, %66, %43, %31, %19, %3, %51, %86, %53, %57, %5, %10
ret void
}