1 mainvar == 1 2 overriddenvar == 2 3 shlibvar1 == 3 4 shlib_mainvar () == 1 5 shlib_overriddenvar () == 2 6 shlib_shlibvar1 () == 3 7 shlib_shlibvar2 () == 4 8 shlib_shlibcall () == 5 9 shlib_shlibcall2 () == 8 10 shlib_maincall () == 6 11 main_called () == 6 12 shlib_checkfunptr1 (shlib_shlibvar1) == 0 13 shlib_checkfunptr2 (main_called) == 1 14 shlib_getfunptr1 () != shlib_shlibvar1 15 shlib_getfunptr2 () == main_called 16 shlib_check () == 1 17