#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*/ buildBranchName(char *, char *, char const *);
int /*<<< orphan*/ buildVersionBumpMessage(char *, char const *);
int /*<<< orphan*/ commit(char *);
int /*<<< orphan*/ createBranchAndSwitch(char *, char *);
int /*<<< orphan*/ printf(char *, char const *, char const *);
int /*<<< orphan*/ pushToOrigin(char *);
void createHotfixBranch(const char *version, const char *bumpScript) {
  char hotfixName[1000];
  buildBranchName(hotfixName, "hotfix", version);
  char message[100];
  buildVersionBumpMessage(message, version);
  printf("Create branch %s for hotfix version %s\n", hotfixName, version);
  createBranchAndSwitch(hotfixName, "master");
  printf("./%s \"%s\"\n", bumpScript, version);
  commit(message);
  pushToOrigin(hotfixName);
}


x86 assembly (clang, -O0):
<createHotfixBranch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x400(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe7b(%rip),%rsi
call   1080 <buildBranchName@plt>
lea    -0x470(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <buildVersionBumpMessage@plt>
lea    -0x400(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xe5b(%rip),%rdi
call   1050 <printf@plt>
lea    -0x400(%rbp),%rdi
lea    0xe70(%rip),%rsi
call   1070 <createBranchAndSwitch@plt>
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xe63(%rip),%rdi
call   1050 <printf@plt>
lea    -0x470(%rbp),%rdi
call   1060 <commit@plt>
lea    -0x400(%rbp),%rdi
call   1040 <pushToOrigin@plt>
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createHotfixBranch>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x458,%rsp
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xe85(%rip),%rsi
lea    0x70(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rdx
call   1080 <buildBranchName@plt>
mov    %rsp,%r12
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <buildVersionBumpMessage@plt>
lea    0xe67(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1050 <printf@plt>
lea    0xe7d(%rip),%rsi
mov    %r14,%rdi
call   1070 <createBranchAndSwitch@plt>
lea    0xe75(%rip),%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1050 <printf@plt>
mov    %r12,%rdi
call   1060 <commit@plt>
mov    %r14,%rdi
call   1040 <pushToOrigin@plt>
add    $0x458,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"hotfix\00"
@.str.1 = [40 x i8] c"Create branch %s for hotfix version %s\0A\00"
@.str.2 = [7 x i8] c"master\00"
@.str.3 = [11 x i8] c"./%s \22%s\22\0A\00"
define void @createHotfixBranch(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [1000 x i8]
%6 = alloca [100 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%8 = load i8*, i8** %3
%9 = call i32 @buildBranchName(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%11 = load i8*, i8** %3
%12 = call i32 @buildVersionBumpMessage(i8* %10, i8* %11)
%13 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%14 = load i8*, i8** %3
%15 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %13, i8* %14)
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%17 = call i32 @createBranchAndSwitch(i8* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%18 = load i8*, i8** %4
%19 = load i8*, i8** %3
%20 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %18, i8* %19)
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%22 = call i32 @commit(i8* %21)
%23 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%24 = call i32 @pushToOrigin(i8* %23)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"hotfix\00"
@.str.1 = [40 x i8] c"Create branch %s for hotfix version %s\0A\00"
@.str.2 = [7 x i8] c"master\00"
@.str.3 = [11 x i8] c"./%s \22%s\22\0A\00"
define void @createHotfixBranch(i8* %0, i8* %1) {
%3 = alloca [1000 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%6 = call i32 @buildBranchName(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%8 = call i32 @buildVersionBumpMessage(i8* %7, i8* %0)
%9 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %5, i8* %0)
%10 = call i32 @createBranchAndSwitch(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %1, i8* %0)
%12 = call i32 @commit(i8* %7)
%13 = call i32 @pushToOrigin(i8* %5)
ret void
}