#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 */
unsigned char *code_table_4_4_location(unsigned char **);
unsigned char *forecast_time_in_units_location(unsigned char **, int *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, unsigned int);
unsigned char *perturbation_number_location(unsigned char **);
int /*<<< orphan*/ stderr;
unsigned int uint4(unsigned char *);
int same_sec4_but_ensemble(int mode, unsigned char **sec_a,
                           unsigned char **sec_b) {
  unsigned int i, size;
  unsigned char *p, *fcst_time, *f1, *f2, *f3, *f4, *pert;
  unsigned char *code_4_4;
  int fcst_size;
  if ((sec_b[4] ? uint4(sec_b[4] + 0) : 0) !=
      (size = (sec_a[4] ? uint4(sec_a[4] + 0) : 0)))
    return 0;
  if ((((int)((sec_a[4][7] << 8) + (sec_a[4][8])))) !=
      (((int)((sec_b[4][7] << 8) + (sec_b[4][8])))))
    return 0;
  pert = perturbation_number_location(sec_a);
  code_4_4 = code_table_4_4_location(sec_a);
  fcst_time = forecast_time_in_units_location(sec_a, &fcst_size);
  f1 = f2 = f3 = f4 = NULL;
  if (fcst_time) {
    f1 = fcst_time + 0;
    f2 = fcst_time + 1;
    if (fcst_size == 4) {
      f3 = fcst_time + 2;
      f4 = fcst_time + 3;
    }
  }
  if (mode == 98) {
    if (pert)
      fprintf(stderr, "same_sec4_but_ensemble: pert=%ld\n", pert - sec_a[4]);
    if (code_4_4)
      fprintf(stderr, "same_sec4_but_ensemble: code_4.4=%ld\n",
              code_4_4 - sec_a[4]);
    fprintf(stderr, "same_sec4_but_ensemble: size=%d\n", size);
  }
  for (i = 0; i < size; i++) {
    p = sec_a[4] + i;
    if (p != pert && p != code_4_4 && p != f1 && p != f2 && p != f3 &&
        p != f4) {
      if (*p != sec_b[4][i]) {
        if (mode)
          fprintf(stderr, "same_sec4_but_ensemble: i=%d", i);
        return 0;
      }
      if (mode == 98)
        fprintf(stderr, "same_sec4_but_ensemble: byte %d is ok\n", i);
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<same_sec4_but_ensemble>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpq   $0x0,0x20(%rax)
je     1187 <same_sec4_but_ensemble+0x37>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
call   1030 <uint4@plt>
mov    %eax,-0x68(%rbp)
jmp    1191 <same_sec4_but_ensemble+0x41>
xor    %eax,%eax
mov    %eax,-0x68(%rbp)
jmp    1191 <same_sec4_but_ensemble+0x41>
mov    -0x68(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x20(%rax)
je     11bb <same_sec4_but_ensemble+0x6b>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1030 <uint4@plt>
mov    %eax,-0x70(%rbp)
jmp    11c5 <same_sec4_but_ensemble+0x75>
xor    %eax,%eax
mov    %eax,-0x70(%rbp)
jmp    11c5 <same_sec4_but_ensemble+0x75>
mov    -0x6c(%rbp),%eax
mov    -0x70(%rbp),%ecx
mov    %ecx,-0x20(%rbp)
cmp    %ecx,%eax
je     11e2 <same_sec4_but_ensemble+0x92>
movl   $0x0,-0x4(%rbp)
jmp    144b <same_sec4_but_ensemble+0x2fb>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
movzbl 0x7(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
mov    0x20(%rcx),%rcx
movzbl 0x8(%rcx),%ecx
add    %ecx,%eax
mov    -0x18(%rbp),%rcx
mov    0x20(%rcx),%rcx
movzbl 0x7(%rcx),%ecx
shl    $0x8,%ecx
mov    -0x18(%rbp),%rdx
mov    0x20(%rdx),%rdx
movzbl 0x8(%rdx),%edx
add    %edx,%ecx
cmp    %ecx,%eax
je     1230 <same_sec4_but_ensemble+0xe0>
movl   $0x0,-0x4(%rbp)
jmp    144b <same_sec4_but_ensemble+0x2fb>
mov    -0x10(%rbp),%rdi
call   1040 <perturbation_number_location@plt>
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <code_table_4_4_location@plt>
mov    %rax,-0x60(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x64(%rbp),%rsi
call   1050 <forecast_time_in_units_location@plt>
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x50(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x38(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     12c1 <same_sec4_but_ensemble+0x171>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x4,-0x64(%rbp)
jne    12bc <same_sec4_but_ensemble+0x16c>
mov    -0x30(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x50(%rbp)
jmp    12c1 <same_sec4_but_ensemble+0x171>
cmpl   $0x62,-0x8(%rbp)
jne    1345 <same_sec4_but_ensemble+0x1f5>
cmpq   $0x0,-0x58(%rbp)
je     12fc <same_sec4_but_ensemble+0x1ac>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
mov    -0x58(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    0x20(%rcx),%rcx
sub    %rcx,%rax
mov    %eax,%edx
lea    0xd09(%rip),%rsi
call   1060 <fprintf@plt>
cmpq   $0x0,-0x60(%rbp)
je     132d <same_sec4_but_ensemble+0x1dd>
mov    0x2cd2(%rip),%rax
mov    (%rax),%edi
mov    -0x60(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    0x20(%rcx),%rcx
sub    %rcx,%rax
mov    %eax,%edx
lea    0xcfa(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2cac(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%edx
lea    0xd08(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jae    1444 <same_sec4_but_ensemble+0x2f4>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
mov    -0x1c(%rbp),%ecx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x58(%rbp),%rax
je     1431 <same_sec4_but_ensemble+0x2e1>
mov    -0x28(%rbp),%rax
cmp    -0x60(%rbp),%rax
je     1431 <same_sec4_but_ensemble+0x2e1>
mov    -0x28(%rbp),%rax
cmp    -0x38(%rbp),%rax
je     1431 <same_sec4_but_ensemble+0x2e1>
mov    -0x28(%rbp),%rax
cmp    -0x40(%rbp),%rax
je     1431 <same_sec4_but_ensemble+0x2e1>
mov    -0x28(%rbp),%rax
cmp    -0x48(%rbp),%rax
je     1431 <same_sec4_but_ensemble+0x2e1>
mov    -0x28(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     1431 <same_sec4_but_ensemble+0x2e1>
mov    -0x28(%rbp),%rax
movzbl (%rax),%eax
mov    -0x18(%rbp),%rcx
mov    0x20(%rcx),%rcx
mov    -0x1c(%rbp),%edx
movzbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
je     140a <same_sec4_but_ensemble+0x2ba>
cmpl   $0x0,-0x8(%rbp)
je     13fe <same_sec4_but_ensemble+0x2ae>
mov    0x2bf3(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xc70(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    144b <same_sec4_but_ensemble+0x2fb>
cmpl   $0x62,-0x8(%rbp)
jne    142c <same_sec4_but_ensemble+0x2dc>
mov    0x2bc5(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xc5f(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1431 <same_sec4_but_ensemble+0x2e1>
jmp    1436 <same_sec4_but_ensemble+0x2e6>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    134c <same_sec4_but_ensemble+0x1fc>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<same_sec4_but_ensemble>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r15
mov    %edi,(%rsp)
mov    %rdx,0x18(%rsp)
mov    0x20(%rdx),%rdi
xor    %ebx,%ebx
mov    $0x0,%r13d
test   %rdi,%rdi
je     1182 <same_sec4_but_ensemble+0x32>
call   1030 <uint4@plt>
mov    %eax,%r13d
mov    0x20(%r15),%rdi
test   %rdi,%rdi
je     1192 <same_sec4_but_ensemble+0x42>
call   1030 <uint4@plt>
mov    %eax,%ebx
xor    %ebp,%ebp
cmp    %ebx,%r13d
jne    1324 <same_sec4_but_ensemble+0x1d4>
mov    0x20(%r15),%rax
movzwl 0x7(%rax),%eax
shl    $0x10,%eax
bswap  %eax
mov    0x18(%rsp),%rcx
mov    0x20(%rcx),%rcx
movzwl 0x7(%rcx),%ecx
shl    $0x10,%ecx
bswap  %ecx
cmp    %ecx,%eax
jne    1324 <same_sec4_but_ensemble+0x1d4>
mov    %r15,%rdi
call   1040 <perturbation_number_location@plt>
mov    %rax,%rbp
mov    %r15,%rdi
call   1070 <code_table_4_4_location@plt>
mov    %rax,%r12
lea    0x4(%rsp),%rsi
mov    %r15,%rdi
call   1050 <forecast_time_in_units_location@plt>
mov    %rax,%r14
test   %rax,%rax
je     1204 <same_sec4_but_ensemble+0xb4>
lea    0x1(%r14),%rdx
cmpl   $0x4,0x4(%rsp)
jne    1206 <same_sec4_but_ensemble+0xb6>
lea    0x2(%r14),%rsi
lea    0x3(%r14),%rdi
jmp    120a <same_sec4_but_ensemble+0xba>
xor    %edx,%edx
xor    %esi,%esi
xor    %edi,%edi
cmpl   $0x62,(%rsp)
mov    %rsi,0x10(%rsp)
mov    %rdi,0x8(%rsp)
jne    1287 <same_sec4_but_ensemble+0x137>
mov    %rdx,%rbx
test   %rbp,%rbp
je     123f <same_sec4_but_ensemble+0xef>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
mov    0x20(%r15),%eax
mov    %ebp,%edx
sub    %eax,%edx
lea    0xdc6(%rip),%rsi
call   1060 <fprintf@plt>
test   %r12,%r12
je     1262 <same_sec4_but_ensemble+0x112>
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
mov    0x20(%r15),%eax
mov    %r12d,%edx
sub    %eax,%edx
lea    0xdc5(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2d77(%rip),%rax
mov    (%rax),%edi
lea    0xdd6(%rip),%rsi
mov    %r13d,%edx
call   1060 <fprintf@plt>
mov    %rbx,%rdx
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdi
test   %r13d,%r13d
je     131f <same_sec4_but_ensemble+0x1cf>
mov    %r13d,%r13d
xor    %ebx,%ebx
mov    %r15,0x20(%rsp)
jmp    12a9 <same_sec4_but_ensemble+0x159>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    %rbx,%r13
je     131f <same_sec4_but_ensemble+0x1cf>
mov    0x20(%r15),%rax
add    %rbx,%rax
cmp    %rbp,%rax
je     12a0 <same_sec4_but_ensemble+0x150>
cmp    %r12,%rax
je     12a0 <same_sec4_but_ensemble+0x150>
cmp    %r14,%rax
je     12a0 <same_sec4_but_ensemble+0x150>
cmp    %rdx,%rax
je     12a0 <same_sec4_but_ensemble+0x150>
cmp    %rsi,%rax
je     12a0 <same_sec4_but_ensemble+0x150>
cmp    %rdi,%rax
je     12a0 <same_sec4_but_ensemble+0x150>
movzbl (%rax),%eax
mov    0x18(%rsp),%rcx
mov    0x20(%rcx),%rcx
cmp    (%rcx,%rbx,1),%al
jne    1335 <same_sec4_but_ensemble+0x1e5>
cmpl   $0x62,(%rsp)
jne    12a0 <same_sec4_but_ensemble+0x150>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
lea    0xd91(%rip),%rsi
mov    %r14,%r15
mov    %r12,%r14
mov    %rdx,%r12
mov    %ebx,%edx
call   1060 <fprintf@plt>
mov    0x8(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    %r12,%rdx
mov    %r14,%r12
mov    %r15,%r14
mov    0x20(%rsp),%r15
jmp    12a0 <same_sec4_but_ensemble+0x150>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ebp,%ebp
cmpl   $0x0,(%rsp)
je     1324 <same_sec4_but_ensemble+0x1d4>
mov    0x2c9c(%rip),%rax
mov    (%rax),%edi
lea    0xd1c(%rip),%rsi
mov    %ebx,%edx
call   1060 <fprintf@plt>
jmp    1324 <same_sec4_but_ensemble+0x1d4>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"same_sec4_but_ensemble: pert=%ld\0A\00"
@.str.1 = [38 x i8] c"same_sec4_but_ensemble: code_4.4=%ld\0A\00"
@.str.2 = [33 x i8] c"same_sec4_but_ensemble: size=%d\0A\00"
@.str.3 = [29 x i8] c"same_sec4_but_ensemble: i=%d\00"
@.str.4 = [39 x i8] c"same_sec4_but_ensemble: byte %d is ok\0A\00"
define i32 @same_sec4_but_ensemble(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i32
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%19 = load i8**, i8*** %7
%20 = getelementptr inbounds i8*, i8** %19, i64 4
%21 = load i8*, i8** %20
%22 = icmp ne i8* %21, null
br i1 %22, label %23, label %29
23: ; preds = %3
%24 = load i8**, i8*** %7
%25 = getelementptr inbounds i8*, i8** %24, i64 4
%26 = load i8*, i8** %25
%27 = getelementptr inbounds i8, i8* %26, i64 0
%28 = call i32 @uint4(i8* %27)
br label %30
29: ; preds = %3
br label %30
30: ; preds = %29, %23
%31 = phi i32 [ %28, %23 ], [ 0, %29 ]
%32 = load i8**, i8*** %6
%33 = getelementptr inbounds i8*, i8** %32, i64 4
%34 = load i8*, i8** %33
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %42
36: ; preds = %30
%37 = load i8**, i8*** %6
%38 = getelementptr inbounds i8*, i8** %37, i64 4
%39 = load i8*, i8** %38
%40 = getelementptr inbounds i8, i8* %39, i64 0
%41 = call i32 @uint4(i8* %40)
br label %43
42: ; preds = %30
br label %43
43: ; preds = %42, %36
%44 = phi i32 [ %41, %36 ], [ 0, %42 ]
store i32 %44, i32* %9
%45 = icmp ne i32 %31, %44
br i1 %45, label %46, label %47
46: ; preds = %43
store i32 0, i32* %4
br label %204
47: ; preds = %43
%48 = load i8**, i8*** %6
%49 = getelementptr inbounds i8*, i8** %48, i64 4
%50 = load i8*, i8** %49
%51 = getelementptr inbounds i8, i8* %50, i64 7
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = shl i32 %53, 8
%55 = load i8**, i8*** %6
%56 = getelementptr inbounds i8*, i8** %55, i64 4
%57 = load i8*, i8** %56
%58 = getelementptr inbounds i8, i8* %57, i64 8
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = add nsw i32 %54, %60
%62 = load i8**, i8*** %7
%63 = getelementptr inbounds i8*, i8** %62, i64 4
%64 = load i8*, i8** %63
%65 = getelementptr inbounds i8, i8* %64, i64 7
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = shl i32 %67, 8
%69 = load i8**, i8*** %7
%70 = getelementptr inbounds i8*, i8** %69, i64 4
%71 = load i8*, i8** %70
%72 = getelementptr inbounds i8, i8* %71, i64 8
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = add nsw i32 %68, %74
%76 = icmp ne i32 %61, %75
br i1 %76, label %77, label %78
77: ; preds = %47
store i32 0, i32* %4
br label %204
78: ; preds = %47
%79 = load i8**, i8*** %6
%80 = call i8* @perturbation_number_location(i8** %79)
store i8* %80, i8** %16
%81 = load i8**, i8*** %6
%82 = call i8* @code_table_4_4_location(i8** %81)
store i8* %82, i8** %17
%83 = load i8**, i8*** %6
%84 = call i8* @forecast_time_in_units_location(i8** %83, i32* %18)
store i8* %84, i8** %11
store i8* null, i8** %15
store i8* null, i8** %14
store i8* null, i8** %13
store i8* null, i8** %12
%85 = load i8*, i8** %11
%86 = icmp ne i8* %85, null
br i1 %86, label %87, label %100
87: ; preds = %78
%88 = load i8*, i8** %11
%89 = getelementptr inbounds i8, i8* %88, i64 0
store i8* %89, i8** %12
%90 = load i8*, i8** %11
%91 = getelementptr inbounds i8, i8* %90, i64 1
store i8* %91, i8** %13
%92 = load i32, i32* %18
%93 = icmp eq i32 %92, 4
br i1 %93, label %94, label %99
94: ; preds = %87
%95 = load i8*, i8** %11
%96 = getelementptr inbounds i8, i8* %95, i64 2
store i8* %96, i8** %14
%97 = load i8*, i8** %11
%98 = getelementptr inbounds i8, i8* %97, i64 3
store i8* %98, i8** %15
br label %99
99: ; preds = %94, %87
br label %100
100: ; preds = %99, %78
%101 = load i32, i32* %5
%102 = icmp eq i32 %101, 98
br i1 %102, label %103, label %135
103: ; preds = %100
%104 = load i8*, i8** %16
%105 = icmp ne i8* %104, null
br i1 %105, label %106, label %117
106: ; preds = %103
%107 = load i32, i32* @stderr
%108 = load i8*, i8** %16
%109 = load i8**, i8*** %6
%110 = getelementptr inbounds i8*, i8** %109, i64 4
%111 = load i8*, i8** %110
%112 = ptrtoint i8* %108 to i64
%113 = ptrtoint i8* %111 to i64
%114 = sub i64 %112, %113
%115 = trunc i64 %114 to i32
%116 = call i32 @fprintf(i32 %107, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %106, %103
%118 = load i8*, i8** %17
%119 = icmp ne i8* %118, null
br i1 %119, label %120, label %131
120: ; preds = %117
%121 = load i32, i32* @stderr
%122 = load i8*, i8** %17
%123 = load i8**, i8*** %6
%124 = getelementptr inbounds i8*, i8** %123, i64 4
%125 = load i8*, i8** %124
%126 = ptrtoint i8* %122 to i64
%127 = ptrtoint i8* %125 to i64
%128 = sub i64 %126, %127
%129 = trunc i64 %128 to i32
%130 = call i32 @fprintf(i32 %121, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %129)
br label %131
131: ; preds = %120, %117
%132 = load i32, i32* @stderr
%133 = load i32, i32* %9
%134 = call i32 @fprintf(i32 %132, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %133)
br label %135
135: ; preds = %131, %100
store i32 0, i32* %8
br label %136
136: ; preds = %200, %135
%137 = load i32, i32* %8
%138 = load i32, i32* %9
%139 = icmp ult i32 %137, %138
br i1 %139, label %140, label %203
140: ; preds = %136
%141 = load i8**, i8*** %6
%142 = getelementptr inbounds i8*, i8** %141, i64 4
%143 = load i8*, i8** %142
%144 = load i32, i32* %8
%145 = zext i32 %144 to i64
%146 = getelementptr inbounds i8, i8* %143, i64 %145
store i8* %146, i8** %10
%147 = load i8*, i8** %10
%148 = load i8*, i8** %16
%149 = icmp ne i8* %147, %148
br i1 %149, label %150, label %199
150: ; preds = %140
%151 = load i8*, i8** %10
%152 = load i8*, i8** %17
%153 = icmp ne i8* %151, %152
br i1 %153, label %154, label %199
154: ; preds = %150
%155 = load i8*, i8** %10
%156 = load i8*, i8** %12
%157 = icmp ne i8* %155, %156
br i1 %157, label %158, label %199
158: ; preds = %154
%159 = load i8*, i8** %10
%160 = load i8*, i8** %13
%161 = icmp ne i8* %159, %160
br i1 %161, label %162, label %199
162: ; preds = %158
%163 = load i8*, i8** %10
%164 = load i8*, i8** %14
%165 = icmp ne i8* %163, %164
br i1 %165, label %166, label %199
166: ; preds = %162
%167 = load i8*, i8** %10
%168 = load i8*, i8** %15
%169 = icmp ne i8* %167, %168
br i1 %169, label %170, label %199
170: ; preds = %166
%171 = load i8*, i8** %10
%172 = load i8, i8* %171
%173 = zext i8 %172 to i32
%174 = load i8**, i8*** %7
%175 = getelementptr inbounds i8*, i8** %174, i64 4
%176 = load i8*, i8** %175
%177 = load i32, i32* %8
%178 = zext i32 %177 to i64
%179 = getelementptr inbounds i8, i8* %176, i64 %178
%180 = load i8, i8* %179
%181 = zext i8 %180 to i32
%182 = icmp ne i32 %173, %181
br i1 %182, label %183, label %191
183: ; preds = %170
%184 = load i32, i32* %5
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %190
186: ; preds = %183
%187 = load i32, i32* @stderr
%188 = load i32, i32* %8
%189 = call i32 @fprintf(i32 %187, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %188)
br label %190
190: ; preds = %186, %183
store i32 0, i32* %4
br label %204
191: ; preds = %170
%192 = load i32, i32* %5
%193 = icmp eq i32 %192, 98
br i1 %193, label %194, label %198
194: ; preds = %191
%195 = load i32, i32* @stderr
%196 = load i32, i32* %8
%197 = call i32 @fprintf(i32 %195, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %196)
br label %198
198: ; preds = %194, %191
br label %199
199: ; preds = %198, %166, %162, %158, %154, %150, %140
br label %200
200: ; preds = %199
%201 = load i32, i32* %8
%202 = add i32 %201, 1
store i32 %202, i32* %8
br label %136
203: ; preds = %136
store i32 1, i32* %4
br label %204
204: ; preds = %203, %190, %77, %46
%205 = load i32, i32* %4
ret i32 %205
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"same_sec4_but_ensemble: pert=%ld\0A\00"
@.str.1 = [38 x i8] c"same_sec4_but_ensemble: code_4.4=%ld\0A\00"
@.str.2 = [33 x i8] c"same_sec4_but_ensemble: size=%d\0A\00"
@.str.3 = [29 x i8] c"same_sec4_but_ensemble: i=%d\00"
@.str.4 = [39 x i8] c"same_sec4_but_ensemble: byte %d is ok\0A\00"
define i32 @same_sec4_but_ensemble(i32 %0, i8** %1, i8** nocapture %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
%6 = getelementptr inbounds i8*, i8** %2, i64 4
%7 = load i8*, i8** %6
%8 = icmp eq i8* %7, null
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = tail call i32 @uint4(i8* %7)
br label %11
11: ; preds = %3, %9
%12 = phi i32 [ %10, %9 ], [ 0, %3 ]
%13 = getelementptr inbounds i8*, i8** %1, i64 4
%14 = load i8*, i8** %13
%15 = icmp eq i8* %14, null
br i1 %15, label %18, label %16
16: ; preds = %11
%17 = tail call i32 @uint4(i8* %14)
br label %18
18: ; preds = %11, %16
%19 = phi i32 [ %17, %16 ], [ 0, %11 ]
%20 = icmp eq i32 %12, %19
br i1 %20, label %21, label %120
21: ; preds = %18
%22 = load i8*, i8** %13
%23 = getelementptr inbounds i8, i8* %22, i64 7
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = shl nuw nsw i32 %25, 8
%27 = getelementptr inbounds i8, i8* %22, i64 8
%28 = load i8, i8* %27
%29 = zext i8 %28 to i32
%30 = or i32 %26, %29
%31 = load i8*, i8** %6
%32 = getelementptr inbounds i8, i8* %31, i64 7
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = shl nuw nsw i32 %34, 8
%36 = getelementptr inbounds i8, i8* %31, i64 8
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = or i32 %35, %38
%40 = icmp eq i32 %30, %39
br i1 %40, label %41, label %120
41: ; preds = %21
%42 = tail call i8* @perturbation_number_location(i8** %1)
%43 = tail call i8* @code_table_4_4_location(i8** %1)
%44 = call i8* @forecast_time_in_units_location(i8** %1, i32* %4)
%45 = icmp eq i8* %44, null
br i1 %45, label %53, label %46
46: ; preds = %41
%47 = getelementptr inbounds i8, i8* %44, i64 1
%48 = load i32, i32* %4
%49 = icmp eq i32 %48, 4
br i1 %49, label %50, label %53
50: ; preds = %46
%51 = getelementptr inbounds i8, i8* %44, i64 2
%52 = getelementptr inbounds i8, i8* %44, i64 3
br label %53
53: ; preds = %46, %50, %41
%54 = phi i8* [ %47, %50 ], [ %47, %46 ], [ null, %41 ]
%55 = phi i8* [ %51, %50 ], [ null, %46 ], [ null, %41 ]
%56 = phi i8* [ %52, %50 ], [ null, %46 ], [ null, %41 ]
%57 = icmp eq i32 %0, 98
br i1 %57, label %58, label %81
58: ; preds = %53
%59 = icmp eq i8* %42, null
br i1 %59, label %68, label %60
60: ; preds = %58
%61 = load i32, i32* @stderr
%62 = load i8*, i8** %13
%63 = ptrtoint i8* %42 to i64
%64 = ptrtoint i8* %62 to i64
%65 = sub i64 %63, %64
%66 = trunc i64 %65 to i32
%67 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 %66)
br label %68
68: ; preds = %60, %58
%69 = icmp eq i8* %43, null
br i1 %69, label %78, label %70
70: ; preds = %68
%71 = load i32, i32* @stderr
%72 = load i8*, i8** %13
%73 = ptrtoint i8* %43 to i64
%74 = ptrtoint i8* %72 to i64
%75 = sub i64 %73, %74
%76 = trunc i64 %75 to i32
%77 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %76)
br label %78
78: ; preds = %70, %68
%79 = load i32, i32* @stderr
%80 = call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %12)
br label %81
81: ; preds = %78, %53
%82 = icmp eq i32 %12, 0
br i1 %82, label %120, label %83
83: ; preds = %81
%84 = zext i32 %12 to i64
br label %85
85: ; preds = %83, %117
%86 = phi i64 [ 0, %83 ], [ %118, %117 ]
%87 = load i8*, i8** %13
%88 = getelementptr inbounds i8, i8* %87, i64 %86
%89 = icmp eq i8* %88, %42
%90 = icmp eq i8* %88, %43
%91 = select i1 %89, i1 true, i1 %90
%92 = icmp eq i8* %88, %44
%93 = select i1 %91, i1 true, i1 %92
%94 = icmp eq i8* %88, %54
%95 = select i1 %93, i1 true, i1 %94
%96 = icmp eq i8* %88, %55
%97 = select i1 %95, i1 true, i1 %96
%98 = icmp eq i8* %88, %56
%99 = select i1 %97, i1 true, i1 %98
br i1 %99, label %117, label %100
100: ; preds = %85
%101 = load i8, i8* %88
%102 = load i8*, i8** %6
%103 = getelementptr inbounds i8, i8* %102, i64 %86
%104 = load i8, i8* %103
%105 = icmp eq i8 %101, %104
br i1 %105, label %112, label %106
106: ; preds = %100
%107 = icmp eq i32 %0, 0
br i1 %107, label %120, label %108
108: ; preds = %106
%109 = trunc i64 %86 to i32
%110 = load i32, i32* @stderr
%111 = call i32 @fprintf(i32 %110, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %109)
br label %120
112: ; preds = %100
br i1 %57, label %113, label %117
113: ; preds = %112
%114 = load i32, i32* @stderr
%115 = trunc i64 %86 to i32
%116 = call i32 @fprintf(i32 %114, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %85, %113, %112
%118 = add nuw nsw i64 %86, 1
%119 = icmp eq i64 %118, %84
br i1 %119, label %120, label %85
120: ; preds = %117, %81, %106, %108, %21, %18
%121 = phi i32 [ 0, %18 ], [ 0, %21 ], [ 0, %108 ], [ 0, %106 ], [ 1, %81 ], [ 1, %117 ]
ret i32 %121
}