void AssignTeacher(PDMCSchema, T, C) struct univStruct *PDMCSchema;
struct Teacher **T;
struct Course *C;
{
  SubCDistList(PDMCSchema, C);
  AssignCourseTaughtBy(C, T);
  AddCDistList(PDMCSchema, C);
}


x86 assembly (clang, -O0):
<AssignTeacher>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <SubCDistList@plt>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <AssignCourseTaughtBy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1030 <AddCDistList@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AssignTeacher>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rdx,%rsi
xor    %eax,%eax
call   1050 <SubCDistList@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <AssignCourseTaughtBy@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <AddCDistList@plt>

LLVM IR (-O0):
%struct.univStruct = type opaque
%struct.Teacher = type opaque
%struct.Course = type opaque
define void @AssignTeacher(%struct.univStruct* %0, %struct.Teacher** %1, %struct.Course* %2) {
%4 = alloca %struct.univStruct*
%5 = alloca %struct.Teacher**
%6 = alloca %struct.Course*
store %struct.univStruct* %0, %struct.univStruct** %4
store %struct.Teacher** %1, %struct.Teacher*** %5
store %struct.Course* %2, %struct.Course** %6
%7 = load %struct.univStruct*, %struct.univStruct** %4
%8 = load %struct.Course*, %struct.Course** %6
%9 = call i32 (%struct.univStruct*, %struct.Course*, ...) bitcast (i32 (...)* @SubCDistList to i32 (%struct.univStruct*, %struct.Course*, ...)*)(%struct.univStruct* %7, %struct.Course* %8)
%10 = load %struct.Course*, %struct.Course** %6
%11 = load %struct.Teacher**, %struct.Teacher*** %5
%12 = call i32 (%struct.Course*, %struct.Teacher**, ...) bitcast (i32 (...)* @AssignCourseTaughtBy to i32 (%struct.Course*, %struct.Teacher**, ...)*)(%struct.Course* %10, %struct.Teacher** %11)
%13 = load %struct.univStruct*, %struct.univStruct** %4
%14 = load %struct.Course*, %struct.Course** %6
%15 = call i32 (%struct.univStruct*, %struct.Course*, ...) bitcast (i32 (...)* @AddCDistList to i32 (%struct.univStruct*, %struct.Course*, ...)*)(%struct.univStruct* %13, %struct.Course* %14)
ret void
}

LLVM IR (-O2):
%struct.univStruct = type opaque
%struct.Teacher = type opaque
%struct.Course = type opaque
define void @AssignTeacher(%struct.univStruct* %0, %struct.Teacher** %1, %struct.Course* %2) {
%4 = tail call i32 (%struct.univStruct*, %struct.Course*, ...) bitcast (i32 (...)* @SubCDistList to i32 (%struct.univStruct*, %struct.Course*, ...)*)(%struct.univStruct* %0, %struct.Course* %2)
%5 = tail call i32 (%struct.Course*, %struct.Teacher**, ...) bitcast (i32 (...)* @AssignCourseTaughtBy to i32 (%struct.Course*, %struct.Teacher**, ...)*)(%struct.Course* %2, %struct.Teacher** %1)
%6 = tail call i32 (%struct.univStruct*, %struct.Course*, ...) bitcast (i32 (...)* @AddCDistList to i32 (%struct.univStruct*, %struct.Course*, ...)*)(%struct.univStruct* %0, %struct.Course* %2)
ret void
}