int main() {
  printf("Macro max and min:\n");
  printf("==================\n");
  printf("max(1, 2): %d\n", ({
           __typeof__(1) _a = (1);
           __typeof__(2) _b = (2);
           _a > _b ? _a : _b;
         }));
  printf("max(-1, 1): %d\n", ({
           __typeof__(-1) _a = (-1);
           __typeof__(1) _b = (1);
           _a > _b ? _a : _b;
         }));
  printf("max(10, 0): %d\n", ({
           __typeof__(10) _a = (10);
           __typeof__(0) _b = (0);
           _a > _b ? _a : _b;
         }));
  printf("max('a', 'A'): %c\n", ({
           __typeof__('a') _a = ('a');
           __typeof__('A') _b = ('A');
           _a > _b ? _a : _b;
         }));
  printf("max(1.2345, 1.234): %f\n", ({
           __typeof__(1.2345) _a = (1.2345);
           __typeof__(1.234) _b = (1.234);
           _a > _b ? _a : _b;
         }));
  printf("max(42L, 49L): %lu\n", ({
           __typeof__(42L) _a = (42L);
           __typeof__(49L) _b = (49L);
           _a > _b ? _a : _b;
         }));
  printf("min(1, 2): %d\n", ({
           __typeof__(1) _a = (1);
           __typeof__(2) _b = (2);
           _a < _b ? _a : _b;
         }));
  printf("min(-1, 1): %d\n", ({
           __typeof__(-1) _a = (-1);
           __typeof__(1) _b = (1);
           _a < _b ? _a : _b;
         }));
  printf("min(10, 0): %d\n", ({
           __typeof__(10) _a = (10);
           __typeof__(0) _b = (0);
           _a < _b ? _a : _b;
         }));
  printf("\nFunction max and min:\n");
  printf("=====================\n");
  printf("max(1, 2): %d\n", max(1, 2));
  printf("max(-1, 1): %d\n", max(-1, 1));
  printf("max(10, 0): %d\n", max(10, 0));
  printf("min(1, 2): %d\n", min(1, 2));
  printf("min(-1, 1): %d\n", min(-1, 1));
  printf("min(10, 0): %d\n", min(10, 0));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1186 <main+0x56>
mov    -0x8(%rbp),%eax
mov    %eax,-0x90(%rbp)
jmp    118f <main+0x5f>
mov    -0xc(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x90(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffffffff,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    11d1 <main+0xa1>
mov    -0x14(%rbp),%eax
mov    %eax,-0x94(%rbp)
jmp    11da <main+0xaa>
mov    -0x18(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xa,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    121c <main+0xec>
mov    -0x20(%rbp),%eax
mov    %eax,-0x98(%rbp)
jmp    1225 <main+0xf5>
mov    -0x24(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x61,-0x2c(%rbp)
movl   $0x41,-0x30(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    1267 <main+0x137>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x9c(%rbp)
jmp    1270 <main+0x140>
mov    -0x30(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%esi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xd76(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xd61(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    12c6 <main+0x196>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    12d3 <main+0x1a3>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xd7a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movq   $0x2a,-0x58(%rbp)
movq   $0x31,-0x60(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x60(%rbp),%rax
jle    1321 <main+0x1f1>
mov    -0x58(%rbp),%rax
mov    %rax,-0xb0(%rbp)
jmp    132c <main+0x1fc>
mov    -0x60(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rsi
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x6c(%rbp)
movl   $0x2,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x70(%rbp),%eax
jge    1371 <main+0x241>
mov    -0x6c(%rbp),%eax
mov    %eax,-0xb4(%rbp)
jmp    137a <main+0x24a>
mov    -0x70(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%esi
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffffffff,-0x78(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x7c(%rbp),%eax
jge    13bc <main+0x28c>
mov    -0x78(%rbp),%eax
mov    %eax,-0xb8(%rbp)
jmp    13c5 <main+0x295>
mov    -0x7c(%rbp),%eax
mov    %eax,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%esi
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xa,-0x84(%rbp)
movl   $0x0,-0x88(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x88(%rbp),%eax
jge    1416 <main+0x2e6>
mov    -0x84(%rbp),%eax
mov    %eax,-0xbc(%rbp)
jmp    1422 <main+0x2f2>
mov    -0x88(%rbp),%eax
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%esi
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1050 <max@plt>
mov    %eax,%esi
lea    0xbac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1050 <max@plt>
mov    %eax,%esi
lea    0xb9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xa,%edi
xor    %esi,%esi
mov    $0x0,%al
call   1050 <max@plt>
mov    %eax,%esi
lea    0xb8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1040 <min@plt>
mov    %eax,%esi
lea    0xbba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1040 <min@plt>
mov    %eax,%esi
lea    0xba8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xa,%edi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <min@plt>
mov    %eax,%esi
lea    0xb9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9e(%rip),%r12
mov    %r12,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe97(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe91(%rip),%r14
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8b(%rip),%rdi
mov    $0x61,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8b(%rip),%rdi
movsd  0xe39(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe8d(%rip),%rdi
mov    $0x31,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8e(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe87(%rip),%rbx
mov    %rbx,%rdi
mov    $0xffffffff,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe81(%rip),%r13
mov    %r13,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe91(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9c(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1060 <max@plt>
mov    %r12,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <max@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <max@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <min@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <min@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <min@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Macro max and min:\0A\00"
@.str.1 = [20 x i8] c"==================\0A\00"
@.str.2 = [15 x i8] c"max(1, 2): %d\0A\00"
@.str.3 = [16 x i8] c"max(-1, 1): %d\0A\00"
@.str.4 = [16 x i8] c"max(10, 0): %d\0A\00"
@.str.5 = [19 x i8] c"max('a', 'A'): %c\0A\00"
@.str.6 = [24 x i8] c"max(1.2345, 1.234): %f\0A\00"
@.str.7 = [20 x i8] c"max(42L, 49L): %lu\0A\00"
@.str.8 = [15 x i8] c"min(1, 2): %d\0A\00"
@.str.9 = [16 x i8] c"min(-1, 1): %d\0A\00"
@.str.10 = [16 x i8] c"min(10, 0): %d\0A\00"
@.str.11 = [24 x i8] c"\0AFunction max and min:\0A\00"
@.str.12 = [23 x i8] c"=====================\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
store i32 0, i32* %1
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %2
store i32 2, i32* %3
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %0
%35 = load i32, i32* %2
br label %38
36: ; preds = %0
%37 = load i32, i32* %3
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ %35, %34 ], [ %37, %36 ]
store i32 %39, i32* %4
%40 = load i32, i32* %4
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %40)
store i32 -1, i32* %5
store i32 1, i32* %6
%42 = load i32, i32* %5
%43 = load i32, i32* %6
%44 = icmp sgt i32 %42, %43
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = load i32, i32* %5
br label %49
47: ; preds = %38
%48 = load i32, i32* %6
br label %49
49: ; preds = %47, %45
%50 = phi i32 [ %46, %45 ], [ %48, %47 ]
store i32 %50, i32* %7
%51 = load i32, i32* %7
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %51)
store i32 10, i32* %8
store i32 0, i32* %9
%53 = load i32, i32* %8
%54 = load i32, i32* %9
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %58
56: ; preds = %49
%57 = load i32, i32* %8
br label %60
58: ; preds = %49
%59 = load i32, i32* %9
br label %60
60: ; preds = %58, %56
%61 = phi i32 [ %57, %56 ], [ %59, %58 ]
store i32 %61, i32* %10
%62 = load i32, i32* %10
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %62)
store i32 97, i32* %11
store i32 65, i32* %12
%64 = load i32, i32* %11
%65 = load i32, i32* %12
%66 = icmp sgt i32 %64, %65
br i1 %66, label %67, label %69
67: ; preds = %60
%68 = load i32, i32* %11
br label %71
69: ; preds = %60
%70 = load i32, i32* %12
br label %71
71: ; preds = %69, %67
%72 = phi i32 [ %68, %67 ], [ %70, %69 ]
store i32 %72, i32* %13
%73 = load i32, i32* %13
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %73)
store double 1.234500e+00, double* %14
store double 1.234000e+00, double* %15
%75 = load double, double* %14
%76 = load double, double* %15
%77 = fcmp ogt double %75, %76
br i1 %77, label %78, label %80
78: ; preds = %71
%79 = load double, double* %14
br label %82
80: ; preds = %71
%81 = load double, double* %15
br label %82
82: ; preds = %80, %78
%83 = phi double [ %79, %78 ], [ %81, %80 ]
store double %83, double* %16
%84 = load double, double* %16
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), double %84)
store i64 42, i64* %17
store i64 49, i64* %18
%86 = load i64, i64* %17
%87 = load i64, i64* %18
%88 = icmp sgt i64 %86, %87
br i1 %88, label %89, label %91
89: ; preds = %82
%90 = load i64, i64* %17
br label %93
91: ; preds = %82
%92 = load i64, i64* %18
br label %93
93: ; preds = %91, %89
%94 = phi i64 [ %90, %89 ], [ %92, %91 ]
store i64 %94, i64* %19
%95 = load i64, i64* %19
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i64 %95)
store i32 1, i32* %20
store i32 2, i32* %21
%97 = load i32, i32* %20
%98 = load i32, i32* %21
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %102
100: ; preds = %93
%101 = load i32, i32* %20
br label %104
102: ; preds = %93
%103 = load i32, i32* %21
br label %104
104: ; preds = %102, %100
%105 = phi i32 [ %101, %100 ], [ %103, %102 ]
store i32 %105, i32* %22
%106 = load i32, i32* %22
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %106)
store i32 -1, i32* %23
store i32 1, i32* %24
%108 = load i32, i32* %23
%109 = load i32, i32* %24
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %113
111: ; preds = %104
%112 = load i32, i32* %23
br label %115
113: ; preds = %104
%114 = load i32, i32* %24
br label %115
115: ; preds = %113, %111
%116 = phi i32 [ %112, %111 ], [ %114, %113 ]
store i32 %116, i32* %25
%117 = load i32, i32* %25
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %117)
store i32 10, i32* %26
store i32 0, i32* %27
%119 = load i32, i32* %26
%120 = load i32, i32* %27
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %124
122: ; preds = %115
%123 = load i32, i32* %26
br label %126
124: ; preds = %115
%125 = load i32, i32* %27
br label %126
126: ; preds = %124, %122
%127 = phi i32 [ %123, %122 ], [ %125, %124 ]
store i32 %127, i32* %28
%128 = load i32, i32* %28
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %128)
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
%132 = call i32 (i32, i32, ...) bitcast (i32 (...)* @max to i32 (i32, i32, ...)*)(i32 1, i32 2)
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %132)
%134 = call i32 (i32, i32, ...) bitcast (i32 (...)* @max to i32 (i32, i32, ...)*)(i32 -1, i32 1)
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %134)
%136 = call i32 (i32, i32, ...) bitcast (i32 (...)* @max to i32 (i32, i32, ...)*)(i32 10, i32 0)
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %136)
%138 = call i32 (i32, i32, ...) bitcast (i32 (...)* @min to i32 (i32, i32, ...)*)(i32 1, i32 2)
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %138)
%140 = call i32 (i32, i32, ...) bitcast (i32 (...)* @min to i32 (i32, i32, ...)*)(i32 -1, i32 1)
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %140)
%142 = call i32 (i32, i32, ...) bitcast (i32 (...)* @min to i32 (i32, i32, ...)*)(i32 10, i32 0)
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %142)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [15 x i8] c"max(1, 2): %d\0A\00"
@.str.3 = [16 x i8] c"max(-1, 1): %d\0A\00"
@.str.4 = [16 x i8] c"max(10, 0): %d\0A\00"
@.str.5 = [19 x i8] c"max('a', 'A'): %c\0A\00"
@.str.6 = [24 x i8] c"max(1.2345, 1.234): %f\0A\00"
@.str.7 = [20 x i8] c"max(42L, 49L): %lu\0A\00"
@.str.8 = [15 x i8] c"min(1, 2): %d\0A\00"
@.str.9 = [16 x i8] c"min(-1, 1): %d\0A\00"
@.str.10 = [16 x i8] c"min(10, 0): %d\0A\00"
@str = [19 x i8] c"Macro max and min:\00"
@str.13 = [19 x i8] c"==================\00"
@str.14 = [23 x i8] c"\0AFunction max and min:\00"
@str.15 = [22 x i8] c"=====================\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 2)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 1)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 10)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 97)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), double 1.234500e+00)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i64 49)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 1)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 -1)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 0)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.14, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.15, i64 0, i64 0))
%14 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @max to i32 (i32, i32, ...)*)(i32 1, i32 2)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @max to i32 (i32, i32, ...)*)(i32 -1, i32 1)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%18 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @max to i32 (i32, i32, ...)*)(i32 10, i32 0)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %18)
%20 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @min to i32 (i32, i32, ...)*)(i32 1, i32 2)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %20)
%22 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @min to i32 (i32, i32, ...)*)(i32 -1, i32 1)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %22)
%24 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @min to i32 (i32, i32, ...)*)(i32 10, i32 0)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %24)
ret i32 0
}