void event_info_key(key, value) char *key;
char *value;
{
  int num;
  char midicmd[64];
  char errmsg[80];
  if (strcmp(key, "octave") == 0) {
    num = readsnumf(value);
    event_octave(num, 0);
  };
  if (strcmp(key, "MIDI") == 0 || strcmp(key, "MIDIx") == 0)
    event_specific(key, value);
  else if (strcmp(key, "volinc") == 0 || strcmp(key, "vol") == 0) {
    midicmd[0] = 0;
    strcat(midicmd, key);
    strcat(midicmd, " ");
    strcat(midicmd, value);
    event_specific("MIDI", midicmd);
  } else {
    sprintf(errmsg, "I: key \' %s\' not recognized", key);
    event_error(errmsg);
  }
}


x86 assembly (clang, -O0):
<event_info_key>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe72(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11b6 <event_info_key+0x46>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1070 <readsnumf@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <event_octave@plt>
mov    -0x8(%rbp),%rdi
lea    0xe46(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     11e8 <event_info_key+0x78>
mov    -0x8(%rbp),%rdi
lea    0xe32(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11fc <event_info_key+0x8c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <event_specific@plt>
jmp    129f <event_info_key+0x12f>
mov    -0x8(%rbp),%rdi
lea    0xe0b(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     122e <event_info_key+0xbe>
mov    -0x8(%rbp),%rdi
lea    0xdf9(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1273 <event_info_key+0x103>
movb   $0x0,-0x60(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x60(%rbp),%rdi
lea    0xdd3(%rip),%rsi
call   1080 <strcat@plt>
lea    -0x60(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x60(%rbp),%rsi
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1040 <event_specific@plt>
jmp    129a <event_info_key+0x12a>
lea    -0xb0(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xd9a(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x0,%al
call   1030 <event_error@plt>
jmp    129f <event_info_key+0x12f>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<event_info_key>:
push   %r15
push   %r14
push   %rbx
sub    $0x50,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xe6a(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11b4 <event_info_key+0x34>
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <readsnumf@plt>
mov    %eax,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1070 <event_octave@plt>
lea    0xe4c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1223 <event_info_key+0xa3>
lea    0xe3e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1223 <event_info_key+0xa3>
lea    0xe31(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1239 <event_info_key+0xb9>
lea    0xe25(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1239 <event_info_key+0xb9>
lea    0xe16(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <event_error@plt>
jmp    1275 <event_info_key+0xf5>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <event_specific@plt>
movb   $0x0,(%rsp)
mov    %rsp,%r15
mov    %r15,%rdi
mov    %rbx,%rsi
call   1090 <strcat@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
movw   $0x20,(%rsp,%rax,1)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <strcat@plt>
lea    0xd9c(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <event_specific@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"octave\00"
@.str.1 = [5 x i8] c"MIDI\00"
@.str.2 = [6 x i8] c"MIDIx\00"
@.str.3 = [7 x i8] c"volinc\00"
@.str.4 = [4 x i8] c"vol\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [28 x i8] c"I: key ' %s' not recognized\00"
define void @event_info_key(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca [64 x i8]
%7 = alloca [80 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
%8 = load i8*, i8** %3
%9 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i8*, i8** %4
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @readsnumf to i32 (i8*, ...)*)(i8* %12)
store i32 %13, i32* %5
%14 = load i32, i32* %5
%15 = call i32 (i32, i32, ...) bitcast (i32 (...)* @event_octave to i32 (i32, i32, ...)*)(i32 %14, i32 0)
br label %16
16: ; preds = %11, %2
%17 = load i8*, i8** %3
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i8*, i8** %3
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20, %16
%25 = load i8*, i8** %3
%26 = load i8*, i8** %4
%27 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @event_specific to i32 (i8*, i8*, ...)*)(i8* %25, i8* %26)
br label %55
28: ; preds = %20
%29 = load i8*, i8** %3
%30 = call i32 @strcmp(i8* %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = load i8*, i8** %3
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %48
36: ; preds = %32, %28
%37 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
store i8 0, i8* %37
%38 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%39 = load i8*, i8** %3
%40 = call i8* @strcat(i8* %38, i8* %39)
%41 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%42 = call i8* @strcat(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%43 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%44 = load i8*, i8** %4
%45 = call i8* @strcat(i8* %43, i8* %44)
%46 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%47 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @event_specific to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %46)
br label %54
48: ; preds = %32
%49 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%50 = load i8*, i8** %3
%51 = call i32 (i8*, i8*, ...) @sprintf(i8* %49, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %50)
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%53 = call i32 (i8*, ...) bitcast (i32 (...)* @event_error to i32 (i8*, ...)*)(i8* %52)
br label %54
54: ; preds = %48, %36
br label %55
55: ; preds = %54, %24
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"octave\00"
@.str.1 = [5 x i8] c"MIDI\00"
@.str.2 = [6 x i8] c"MIDIx\00"
@.str.3 = [7 x i8] c"volinc\00"
@.str.4 = [4 x i8] c"vol\00"
@.str.6 = [28 x i8] c"I: key ' %s' not recognized\00"
define void @event_info_key(i8* %0, i8* %1) {
%3 = alloca [64 x i8]
%4 = alloca [80 x i8]
%5 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @readsnumf to i32 (i8*, ...)*)(i8* %1)
%11 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @event_octave to i32 (i32, i32, ...)*)(i32 %10, i32 0)
br label %12
12: ; preds = %9, %2
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15, %12
%19 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @event_specific to i32 (i8*, i8*, ...)*)(i8* %0, i8* %1)
br label %36
20: ; preds = %15
%21 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %33
26: ; preds = %23, %20
store i8 0, i8* %5
%27 = call i8* @strcat(i8* %5, i8* dereferenceable(1) %0)
%28 = call i64 @strlen(i8* %5)
%29 = getelementptr [64 x i8], [64 x i8]* %3, i64 0, i64 %28
%30 = bitcast i8* %29 to i16*
store i16 32, i16* %30
%31 = call i8* @strcat(i8* %5, i8* dereferenceable(1) %1)
%32 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @event_specific to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %5)
br label %36
33: ; preds = %23
%34 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%35 = call i32 (i8*, ...) bitcast (i32 (...)* @event_error to i32 (i8*, ...)*)(i8* %6)
br label %36
36: ; preds = %26, %33, %18
ret void
}