#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*/ printf(char *, char *);
int strlen(char *);
int main(int argc, char *argv[]) {
  char *a = ":SaTiRoWit!jirc@ACTrbs.DqGwLf.virtual PRIVMSG #trivia : "
            "11,0`%0,11%,12,11`%11,12%,2,12`%12,2%,8,2 wIt TrIvIa "
            "12,2`%2,12%,11,12`%12,11%,0,11`%11,0%, 5 Pregunta 23/30. TEMA: "
            "Historia.";
  int k = 0;
  k++;
  while ((a[k] != ':') && (k < (strlen(a)))) {
    printf("(%s)\n", a + k);
    k++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x3a,%ecx
mov    %al,-0x1d(%rbp)
je     1187 <main+0x67>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
cmp    %ecx,%eax
setl   %al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
test   $0x1,%al
jne    1197 <main+0x77>
jmp    11bc <main+0x9c>
mov    -0x18(%rbp),%rsi
movslq -0x1c(%rbp),%rax
add    %rax,%rsi
lea    0xf0d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1151 <main+0x31>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    $0x1,%ebx
lea    0xecf(%rip),%r15
lea    0xf7e(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    1165 <main+0x45>
lea    (%r15,%rbx,1),%rsi
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x36,%rbx
jne    1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [182 x i8] c":SaTiRoWit!jirc@ACTrbs.DqGwLf.virtual PRIVMSG #trivia : 11,0`%0,11%,12,11`%11,12%,2,12`%12,2%,8,2 wIt TrIvIa 12,2`%2,12%,11,12`%12,11%,0,11`%11,0%, 5 Pregunta 23/30. TEMA: Historia.\00"
@.str.1 = [6 x i8] c"(%s)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str, i64 0, i64 0), i8** %6
store i32 0, i32* %7
%8 = load i32, i32* %7
%9 = add nsw i32 %8, 1
store i32 %9, i32* %7
br label %10
10: ; preds = %25, %2
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %11, i64 %13
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 58
br i1 %17, label %18, label %23
18: ; preds = %10
%19 = load i32, i32* %7
%20 = load i8*, i8** %6
%21 = call i32 @strlen(i8* %20)
%22 = icmp slt i32 %19, %21
br label %23
23: ; preds = %18, %10
%24 = phi i1 [ false, %10 ], [ %22, %18 ]
br i1 %24, label %25, label %33
25: ; preds = %23
%26 = load i8*, i8** %6
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%31 = load i32, i32* %7
%32 = add nsw i32 %31, 1
store i32 %32, i32* %7
br label %10
33: ; preds = %23
ret i32 0
}

LLVM IR (-O2):
@.str = [182 x i8] c":SaTiRoWit!jirc@ACTrbs.DqGwLf.virtual PRIVMSG #trivia : 11,0`%0,11%,12,11`%11,12%,2,12`%12,2%,8,2 wIt TrIvIa 12,2`%2,12%,11,12`%12,11%,0,11`%11,0%, 5 Pregunta 23/30. TEMA: Historia.\00"
@.str.1 = [6 x i8] c"(%s)\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %9
%4 = phi i64 [ 1, %2 ], [ %11, %9 ]
%5 = phi i8* [ getelementptr inbounds ([182 x i8], [182 x i8]* @.str, i64 0, i64 1), %2 ], [ %12, %9 ]
%6 = tail call i32 @strlen(i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str, i64 0, i64 0))
%7 = sext i32 %6 to i64
%8 = icmp slt i64 %4, %7
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%11 = add nuw nsw i64 %4, 1
%12 = getelementptr inbounds [182 x i8], [182 x i8]* @.str, i64 0, i64 %11
%13 = icmp eq i64 %11, 54
br i1 %13, label %14, label %3
14: ; preds = %9, %3
ret i32 0
}