#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 *, int, float, char);
int /*<<< orphan*/ scanf(char *, int *, float *, char *);
main() {
  int a;
  float b;
  char c;
  scanf("%d %f %c", &a, &b, &c);
  printf("a = %d, b = %g, c = %c\n", a, b, c);
  scanf("%d , %f , %c", &a, &b, &c);
  printf("a = %d, b = %g, c = %c\n", a, b, c);
  scanf("%d : %f : %c", &a, &b, &c);
  printf("a = %d, b = %g, c = %c\n", a, b, c);
  scanf("%d%f%c", &a, &b, &c);
  printf("a = %d, b = %g, c = %c\n", a, b, c);
  scanf("%d,%f,%c", &a, &b, &c);
  printf("a = %d, b = %g, c = %c\n", a, b, c);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x9(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
lea    0xeba(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x9(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
lea    0xe8a(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x9(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
lea    0xe5a(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
lea    0xe7c(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x9(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
lea    0xe2a(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
lea    0xe53(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x9(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
lea    0xdfa(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xece(%rip),%rdi
lea    0x14(%rsp),%r12
lea    0x10(%rsp),%r14
lea    0xf(%rsp),%r15
mov    %r12,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%esi
movss  0x10(%rsp),%xmm0
movsbl 0xf(%rsp),%edx
lea    0xea4(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%esi
movss  0x10(%rsp),%xmm0
movsbl 0xf(%rsp),%edx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%esi
movss  0x10(%rsp),%xmm0
movsbl 0xf(%rsp),%edx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%esi
movss  0x10(%rsp),%xmm0
movsbl 0xf(%rsp),%edx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xe4a(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%esi
movss  0x10(%rsp),%xmm0
movsbl 0xf(%rsp),%edx
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %f %c\00"
@.str.1 = [24 x i8] c"a = %d, b = %g, c = %c\0A\00"
@.str.2 = [13 x i8] c"%d , %f , %c\00"
@.str.3 = [13 x i8] c"%d : %f : %c\00"
@.str.4 = [7 x i8] c"%d%f%c\00"
@.str.5 = [9 x i8] c"%d,%f,%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8
%4 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%5 = load i32, i32* %1
%6 = load float, float* %2
%7 = load i8, i8* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %5, float %6, i8 signext %7)
%9 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%10 = load i32, i32* %1
%11 = load float, float* %2
%12 = load i8, i8* %3
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %10, float %11, i8 signext %12)
%14 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%15 = load i32, i32* %1
%16 = load float, float* %2
%17 = load i8, i8* %3
%18 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %15, float %16, i8 signext %17)
%19 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%20 = load i32, i32* %1
%21 = load float, float* %2
%22 = load i8, i8* %3
%23 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %20, float %21, i8 signext %22)
%24 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%25 = load i32, i32* %1
%26 = load float, float* %2
%27 = load i8, i8* %3
%28 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %25, float %26, i8 signext %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %f %c\00"
@.str.1 = [24 x i8] c"a = %d, b = %g, c = %c\0A\00"
@.str.2 = [13 x i8] c"%d , %f , %c\00"
@.str.3 = [13 x i8] c"%d : %f : %c\00"
@.str.4 = [7 x i8] c"%d%f%c\00"
@.str.5 = [9 x i8] c"%d,%f,%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8
%4 = bitcast i32* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%7 = load i32, i32* %1
%8 = load float, float* %2
%9 = load i8, i8* %3
%10 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %7, float %8, i8 signext %9)
%11 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%12 = load i32, i32* %1
%13 = load float, float* %2
%14 = load i8, i8* %3
%15 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %12, float %13, i8 signext %14)
%16 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%17 = load i32, i32* %1
%18 = load float, float* %2
%19 = load i8, i8* %3
%20 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %17, float %18, i8 signext %19)
%21 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%22 = load i32, i32* %1
%23 = load float, float* %2
%24 = load i8, i8* %3
%25 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %22, float %23, i8 signext %24)
%26 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %1, float* %2, i8* %3)
%27 = load i32, i32* %1
%28 = load float, float* %2
%29 = load i8, i8* %3
%30 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %27, float %28, i8 signext %29)
ret i32 0
}