#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 ts_eit {
  int dummy;
};

/* Variables and functions */
int ts_eit_add_short_event_descriptor(struct ts_eit *, int, int, int, int,
                                      char *, char *);
void ts_eit_test3(struct ts_eit *eit) {
  int i;
  for (i = 0; i < 15; i++) {
    if (ts_eit_add_short_event_descriptor(
            eit, 4, 1, 1234567890, 3600,
            "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
            "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
            "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            "x") != 1) {
      break;
    }
  }
  ts_eit_add_short_event_descriptor(eit, 4, 1, 1234567890, 3600,
                                    "00000000000000000000000",
                                    "1111111111111111111111111111111");
}


x86 assembly (clang, -O0):
<ts_eit_test3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xf,-0xc(%rbp)
jge    117e <ts_eit_test3+0x6e>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    $0x499602d2,%ecx
mov    $0xe10,%r8d
lea    0xeb3(%rip),%r9
lea    0xf20(%rip),%rax
mov    %rax,(%rsp)
call   1030 <ts_eit_add_short_event_descriptor@plt>
cmp    $0x1,%eax
je     116b <ts_eit_test3+0x5b>
jmp    117e <ts_eit_test3+0x6e>
jmp    1170 <ts_eit_test3+0x60>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <ts_eit_test3+0x13>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    $0x499602d2,%ecx
mov    $0xe10,%r8d
lea    0xf5c(%rip),%r9
lea    0xf6d(%rip),%rax
mov    %rax,(%rsp)
call   1030 <ts_eit_add_short_event_descriptor@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_eit_test3>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    $0xe,%ebp
lea    0xf4e(%rip),%r15
lea    0xed3(%rip),%r14
nopl   (%rax)
mov    %r15,(%rsp)
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    $0x499602d2,%ecx
mov    $0xe10,%r8d
mov    %r14,%r9
call   1030 <ts_eit_add_short_event_descriptor@plt>
sub    $0x1,%ebp
setb   %cl
cmp    $0x1,%eax
jne    1163 <ts_eit_test3+0x53>
test   %cl,%cl
je     1130 <ts_eit_test3+0x20>
lea    0xfa8(%rip),%rax
mov    %rax,(%rsp)
lea    0xf85(%rip),%r9
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    $0x499602d2,%ecx
mov    $0xe10,%r8d
call   1030 <ts_eit_add_short_event_descriptor@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ts_eit = type { i32 }
@.str = [116 x i8] c"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\00"
@.str.1 = [134 x i8] c"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\00"
@.str.2 = [24 x i8] c"00000000000000000000000\00"
@.str.3 = [32 x i8] c"1111111111111111111111111111111\00"
define void @ts_eit_test3(%struct.ts_eit* %0) {
%2 = alloca %struct.ts_eit*
%3 = alloca i32
store %struct.ts_eit* %0, %struct.ts_eit** %2
store i32 0, i32* %3
br label %4
4: ; preds = %13, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 15
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load %struct.ts_eit*, %struct.ts_eit** %2
%9 = call i32 @ts_eit_add_short_event_descriptor(%struct.ts_eit* %8, i32 4, i32 1, i32 1234567890, i32 3600, i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %7
br label %16
12: ; preds = %7
br label %13
13: ; preds = %12
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 1
store i32 %15, i32* %3
br label %4
16: ; preds = %11, %4
%17 = load %struct.ts_eit*, %struct.ts_eit** %2
%18 = call i32 @ts_eit_add_short_event_descriptor(%struct.ts_eit* %17, i32 4, i32 1, i32 1234567890, i32 3600, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.ts_eit = type { i32 }
@.str = [116 x i8] c"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\00"
@.str.1 = [134 x i8] c"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\00"
@.str.2 = [24 x i8] c"00000000000000000000000\00"
@.str.3 = [32 x i8] c"1111111111111111111111111111111\00"
define void @ts_eit_test3(%struct.ts_eit* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 0, %1 ], [ %6, %2 ]
%4 = tail call i32 @ts_eit_add_short_event_descriptor(%struct.ts_eit* %0, i32 4, i32 1, i32 1234567890, i32 3600, i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp ne i32 %4, 1
%6 = add nuw nsw i32 %3, 1
%7 = icmp eq i32 %6, 15
%8 = select i1 %5, i1 true, i1 %7
br i1 %8, label %9, label %2
9: ; preds = %2
%10 = tail call i32 @ts_eit_add_short_event_descriptor(%struct.ts_eit* %0, i32 4, i32 1, i32 1234567890, i32 3600, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
ret void
}