1 2 3 4 5 6 7 8 9 10
mainvar == 1 overriddenvar == 2 shlibvar1 == 3 shlib_shlibvar1 () == 3 shlib_shlibvar2 () == 4 shlib_shlibcall () == 5 main_called () == 6 shlib_checkfunptr1 (shlib_shlibvar1) == 0 shlib_getfunptr1 () != shlib_shlibvar1 shlib_check () == 1