#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*/ generateMSubsets(int, int);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Generate 0-subsets of {1, 2, 3, 4}:\n");
  generateMSubsets(0, 4);
  printf("\nGenerate 1-subsets of {1, 2, 3, 4}:\n");
  generateMSubsets(1, 4);
  printf("\nGenerate 2-subsets of {1, 2, 3, 4}:\n");
  generateMSubsets(2, 4);
  printf("\nGenerate 3-subsets of {1, 2, 3, 4}:\n");
  generateMSubsets(3, 4);
  printf("\nGenerate 4-subsets of {1, 2, 3, 4}:\n");
  generateMSubsets(4, 4);
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x4,%esi
mov    %esi,%edi
call   1050 <generateMSubsets@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xed4(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
mov    $0x4,%edi
mov    $0x4,%esi
call   1050 <generateMSubsets@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Generate 0-subsets of {1, 2, 3, 4}:\0A\00"
@.str.1 = [38 x i8] c"\0AGenerate 1-subsets of {1, 2, 3, 4}:\0A\00"
@.str.2 = [38 x i8] c"\0AGenerate 2-subsets of {1, 2, 3, 4}:\0A\00"
@.str.3 = [38 x i8] c"\0AGenerate 3-subsets of {1, 2, 3, 4}:\0A\00"
@.str.4 = [38 x i8] c"\0AGenerate 4-subsets of {1, 2, 3, 4}:\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @generateMSubsets(i32 0, i32 4)
%3 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @generateMSubsets(i32 1, i32 4)
%5 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @generateMSubsets(i32 2, i32 4)
%7 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @generateMSubsets(i32 3, i32 4)
%9 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @generateMSubsets(i32 4, i32 4)
%11 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@str = [36 x i8] c"Generate 0-subsets of {1, 2, 3, 4}:\00"
@str.5 = [37 x i8] c"\0AGenerate 1-subsets of {1, 2, 3, 4}:\00"
@str.6 = [37 x i8] c"\0AGenerate 2-subsets of {1, 2, 3, 4}:\00"
@str.7 = [37 x i8] c"\0AGenerate 3-subsets of {1, 2, 3, 4}:\00"
@str.8 = [37 x i8] c"\0AGenerate 4-subsets of {1, 2, 3, 4}:\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @generateMSubsets(i32 0, i32 4)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @generateMSubsets(i32 1, i32 4)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 @generateMSubsets(i32 2, i32 4)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.7, i64 0, i64 0))
%8 = tail call i32 @generateMSubsets(i32 3, i32 4)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.8, i64 0, i64 0))
%10 = tail call i32 @generateMSubsets(i32 4, i32 4)
%11 = tail call i32 (...) @getchar()
ret i32 0
}