#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 */
char *concat(char *, char *);
char *addPrefixes(int p, char *modifier, char *attrs) {
  char *new;
  char *tabs = "";
  char *webkit = "-webkit-";
  char *moz = "-moz-";
  char *ms = "-ms-";
  char *o = "-o-";
  char *orig = "";
  for (int i = 0; i < p; i++) {
    tabs = concat(" ", tabs);
  }
  orig = concat(tabs, orig);
  webkit = concat(tabs, webkit);
  moz = concat(tabs, moz);
  ms = concat(tabs, ms);
  o = concat(tabs, o);
  orig = concat(orig, modifier);
  webkit = concat(webkit, modifier);
  moz = concat(moz, modifier);
  ms = concat(ms, modifier);
  o = concat(o, modifier);
  orig = concat(orig, attrs);
  webkit = concat(webkit, attrs);
  moz = concat(moz, attrs);
  ms = concat(ms, attrs);
  o = concat(o, attrs);
  orig = concat(orig, ";\n");
  webkit = concat(webkit, ";\n");
  moz = concat(moz, ";\n");
  ms = concat(ms, ";\n");
  o = concat(o, ";\n");
  new = concat(orig, webkit);
  new = concat(new, moz);
  new = concat(new, ms);
  new = concat(new, o);
  if (new) {
    return new;
  }
  return NULL;
}


x86 assembly (clang, -O0):
<addPrefixes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
lea    0xef2(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xecb(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xec9(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xec4(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xebe(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xebb(%rip),%rax
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    119a <addPrefixes+0x8a>
mov    -0x30(%rbp),%rsi
lea    0xe95(%rip),%rdi
call   1030 <concat@plt>
mov    %rax,-0x30(%rbp)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    116c <addPrefixes+0x5c>
mov    -0x30(%rbp),%rdi
mov    -0x58(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x40(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdi
lea    0xd76(%rip),%rsi
call   1030 <concat@plt>
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xd62(%rip),%rsi
call   1030 <concat@plt>
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xd4e(%rip),%rsi
call   1030 <concat@plt>
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xd3a(%rip),%rsi
call   1030 <concat@plt>
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rdi
lea    0xd26(%rip),%rsi
call   1030 <concat@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1030 <concat@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1359 <addPrefixes+0x249>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1361 <addPrefixes+0x251>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<addPrefixes>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
test   %edi,%edi
jle    1155 <addPrefixes+0x45>
mov    %edi,%ebp
lea    0xeeb(%rip),%rbx
lea    0xee0(%rip),%r12
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <concat@plt>
mov    %rax,%rbx
add    $0xffffffff,%ebp
jne    1140 <addPrefixes+0x30>
jmp    115c <addPrefixes+0x4c>
lea    0xec0(%rip),%rbx
lea    0xeb9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %rax,%r12
lea    0xe8b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %rax,%rbp
lea    0xe82(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %rax,0x8(%rsp)
lea    0xe74(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %rax,0x10(%rsp)
lea    0xe65(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %rax,%rbx
mov    %r12,%rdi
mov    %r15,%rsi
call   1030 <concat@plt>
mov    %rax,%r13
mov    %rbp,%rdi
mov    %r15,%rsi
call   1030 <concat@plt>
mov    %rax,%rbp
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
call   1030 <concat@plt>
mov    %rax,%r12
mov    0x10(%rsp),%rdi
mov    %r15,%rsi
call   1030 <concat@plt>
mov    %rax,0x8(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <concat@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    %r14,%rsi
call   1030 <concat@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %r14,%rsi
call   1030 <concat@plt>
mov    %rax,%rbp
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <concat@plt>
mov    %rax,%r12
mov    0x8(%rsp),%rdi
mov    %r14,%rsi
call   1030 <concat@plt>
mov    %rax,%r13
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <concat@plt>
mov    %rax,%r14
lea    0xdc5(%rip),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <concat@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1030 <concat@plt>
mov    %rax,%rbp
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <concat@plt>
mov    %rax,%r12
mov    %r13,%rdi
mov    %rbx,%rsi
call   1030 <concat@plt>
mov    %rax,%r13
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <concat@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    %rbp,%rsi
call   1030 <concat@plt>
mov    %rax,%rdi
mov    %r12,%rsi
call   1030 <concat@plt>
mov    %rax,%rdi
mov    %r13,%rsi
call   1030 <concat@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <concat@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [9 x i8] c"-webkit-\00"
@.str.2 = [6 x i8] c"-moz-\00"
@.str.3 = [5 x i8] c"-ms-\00"
@.str.4 = [4 x i8] c"-o-\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [3 x i8] c";\0A\00"
define i8* @addPrefixes(i32 %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %9
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %10
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %12
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %14
store i32 0, i32* %15
br label %16
16: ; preds = %23, %3
%17 = load i32, i32* %15
%18 = load i32, i32* %5
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load i8*, i8** %9
%22 = call i8* @concat(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* %21)
store i8* %22, i8** %9
br label %23
23: ; preds = %20
%24 = load i32, i32* %15
%25 = add nsw i32 %24, 1
store i32 %25, i32* %15
br label %16
26: ; preds = %16
%27 = load i8*, i8** %9
%28 = load i8*, i8** %14
%29 = call i8* @concat(i8* %27, i8* %28)
store i8* %29, i8** %14
%30 = load i8*, i8** %9
%31 = load i8*, i8** %10
%32 = call i8* @concat(i8* %30, i8* %31)
store i8* %32, i8** %10
%33 = load i8*, i8** %9
%34 = load i8*, i8** %11
%35 = call i8* @concat(i8* %33, i8* %34)
store i8* %35, i8** %11
%36 = load i8*, i8** %9
%37 = load i8*, i8** %12
%38 = call i8* @concat(i8* %36, i8* %37)
store i8* %38, i8** %12
%39 = load i8*, i8** %9
%40 = load i8*, i8** %13
%41 = call i8* @concat(i8* %39, i8* %40)
store i8* %41, i8** %13
%42 = load i8*, i8** %14
%43 = load i8*, i8** %6
%44 = call i8* @concat(i8* %42, i8* %43)
store i8* %44, i8** %14
%45 = load i8*, i8** %10
%46 = load i8*, i8** %6
%47 = call i8* @concat(i8* %45, i8* %46)
store i8* %47, i8** %10
%48 = load i8*, i8** %11
%49 = load i8*, i8** %6
%50 = call i8* @concat(i8* %48, i8* %49)
store i8* %50, i8** %11
%51 = load i8*, i8** %12
%52 = load i8*, i8** %6
%53 = call i8* @concat(i8* %51, i8* %52)
store i8* %53, i8** %12
%54 = load i8*, i8** %13
%55 = load i8*, i8** %6
%56 = call i8* @concat(i8* %54, i8* %55)
store i8* %56, i8** %13
%57 = load i8*, i8** %14
%58 = load i8*, i8** %7
%59 = call i8* @concat(i8* %57, i8* %58)
store i8* %59, i8** %14
%60 = load i8*, i8** %10
%61 = load i8*, i8** %7
%62 = call i8* @concat(i8* %60, i8* %61)
store i8* %62, i8** %10
%63 = load i8*, i8** %11
%64 = load i8*, i8** %7
%65 = call i8* @concat(i8* %63, i8* %64)
store i8* %65, i8** %11
%66 = load i8*, i8** %12
%67 = load i8*, i8** %7
%68 = call i8* @concat(i8* %66, i8* %67)
store i8* %68, i8** %12
%69 = load i8*, i8** %13
%70 = load i8*, i8** %7
%71 = call i8* @concat(i8* %69, i8* %70)
store i8* %71, i8** %13
%72 = load i8*, i8** %14
%73 = call i8* @concat(i8* %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i8* %73, i8** %14
%74 = load i8*, i8** %10
%75 = call i8* @concat(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i8* %75, i8** %10
%76 = load i8*, i8** %11
%77 = call i8* @concat(i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i8* %77, i8** %11
%78 = load i8*, i8** %12
%79 = call i8* @concat(i8* %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i8* %79, i8** %12
%80 = load i8*, i8** %13
%81 = call i8* @concat(i8* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i8* %81, i8** %13
%82 = load i8*, i8** %14
%83 = load i8*, i8** %10
%84 = call i8* @concat(i8* %82, i8* %83)
store i8* %84, i8** %8
%85 = load i8*, i8** %8
%86 = load i8*, i8** %11
%87 = call i8* @concat(i8* %85, i8* %86)
store i8* %87, i8** %8
%88 = load i8*, i8** %8
%89 = load i8*, i8** %12
%90 = call i8* @concat(i8* %88, i8* %89)
store i8* %90, i8** %8
%91 = load i8*, i8** %8
%92 = load i8*, i8** %13
%93 = call i8* @concat(i8* %91, i8* %92)
store i8* %93, i8** %8
%94 = load i8*, i8** %8
%95 = icmp ne i8* %94, null
br i1 %95, label %96, label %98
96: ; preds = %26
%97 = load i8*, i8** %8
store i8* %97, i8** %4
br label %99
98: ; preds = %26
store i8* null, i8** %4
br label %99
99: ; preds = %98, %96
%100 = load i8*, i8** %4
ret i8* %100
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [9 x i8] c"-webkit-\00"
@.str.2 = [6 x i8] c"-moz-\00"
@.str.3 = [5 x i8] c"-ms-\00"
@.str.4 = [4 x i8] c"-o-\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [3 x i8] c";\0A\00"
define i8* @addPrefixes(i32 %0, i8* %1, i8* %2) {
%4 = icmp sgt i32 %0, 0
br i1 %4, label %31, label %5
5: ; preds = %31, %3
%6 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %3 ], [ %34, %31 ]
%7 = tail call i8* @concat(i8* %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%8 = tail call i8* @concat(i8* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i8* @concat(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i8* @concat(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i8* @concat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i8* @concat(i8* %7, i8* %1)
%13 = tail call i8* @concat(i8* %8, i8* %1)
%14 = tail call i8* @concat(i8* %9, i8* %1)
%15 = tail call i8* @concat(i8* %10, i8* %1)
%16 = tail call i8* @concat(i8* %11, i8* %1)
%17 = tail call i8* @concat(i8* %12, i8* %2)
%18 = tail call i8* @concat(i8* %13, i8* %2)
%19 = tail call i8* @concat(i8* %14, i8* %2)
%20 = tail call i8* @concat(i8* %15, i8* %2)
%21 = tail call i8* @concat(i8* %16, i8* %2)
%22 = tail call i8* @concat(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%23 = tail call i8* @concat(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%24 = tail call i8* @concat(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%25 = tail call i8* @concat(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%26 = tail call i8* @concat(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%27 = tail call i8* @concat(i8* %22, i8* %23)
%28 = tail call i8* @concat(i8* %27, i8* %24)
%29 = tail call i8* @concat(i8* %28, i8* %25)
%30 = tail call i8* @concat(i8* %29, i8* %26)
ret i8* %30
31: ; preds = %3, %31
%32 = phi i32 [ %35, %31 ], [ 0, %3 ]
%33 = phi i8* [ %34, %31 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %3 ]
%34 = tail call i8* @concat(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%35 = add nuw nsw i32 %32, 1
%36 = icmp eq i32 %35, %0
br i1 %36, label %5, label %31
}