#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, int, float, float, char, char);
int /*<<< orphan*/ scanf(char *, ...);
int main(void) {
  int a, b;
  float x, y;
  char c1, c2;
  scanf("a=%db=%d", &a, &b);
  scanf("%f%e", &x, &y);
  scanf("%c%c", &c1, &c2);
  printf("a=%d,b=%d,x=%g,y=%g,c1=%c,c2=%c\n", a, b, x, y, c1, c2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xebd(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeac(%rip),%rdi
lea    -0x15(%rbp),%rsi
lea    -0x16(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
mov    -0x15(%rbp),%al
lea    0xe88(%rip),%rdi
movsbl %al,%ecx
movsbl -0x16(%rbp),%r8d
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xec6(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xeb3(%rip),%rdi
lea    0x7(%rsp),%rsi
lea    0x6(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x14(%rsp),%esi
mov    0x10(%rsp),%edx
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
movsbl 0x7(%rsp),%ecx
movsbl 0x6(%rsp),%r8d
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"a=%db=%d\00"
@.str.1 = [5 x i8] c"%f%e\00"
@.str.2 = [5 x i8] c"%c%c\00"
@.str.3 = [33 x i8] c"a=%d,b=%d,x=%g,y=%g,c1=%c,c2=%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca i8
%7 = alloca i8
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float* %4, float* %5)
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %6, i8* %7)
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = load float, float* %4
%14 = load float, float* %5
%15 = load i8, i8* %6
%16 = load i8, i8* %7
%17 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %11, i32 %12, float %13, float %14, i8 signext %15, i8 signext %16)
ret i32 0
}

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