#include <stdio.h>
#include <stdlib.h>
void func001(void)
{
}
void func002(void)
{
}
void func003(void)
{
}
void func004(void)
{
}
void func005(void)
{
}
void func006(void)
{
}
void func007(void)
{
}
void func008(void)
{
}
void func009(void)
{
}
typedef void (*funky)(void);
funky funcs[] = {
func001,
func002,
func003,
func004,
func005,
func006,
func007,
func008,
func009
};
int main(void)
{
int i;
for (i = 0; i < 20; i++) {
(rand()%(sizeof funcs
/ sizeof funcs
[0]))[funcs
](); }
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCnZvaWQgZnVuYzAwMSh2b2lkKQp7CglwdXRzKCJ0aGUiKTsKfQp2b2lkIGZ1bmMwMDIodm9pZCkKewoJcHV0cygicXVpY2siKTsKfQp2b2lkIGZ1bmMwMDModm9pZCkKewoJcHV0cygiYnJvd24iKTsKfQp2b2lkIGZ1bmMwMDQodm9pZCkKewoJcHV0cygiZm94Iik7Cn0Kdm9pZCBmdW5jMDA1KHZvaWQpCnsKCXB1dHMoImp1bXBlZCIpOwp9CnZvaWQgZnVuYzAwNih2b2lkKQp7CglwdXRzKCJvdmVyIik7Cn0Kdm9pZCBmdW5jMDA3KHZvaWQpCnsKCXB1dHMoInRoZSIpOwp9CnZvaWQgZnVuYzAwOCh2b2lkKQp7CglwdXRzKCJsYXp5Iik7Cn0Kdm9pZCBmdW5jMDA5KHZvaWQpCnsKCXB1dHMoImRvZyIpOwp9Cgp0eXBlZGVmIHZvaWQgKCpmdW5reSkodm9pZCk7CgpmdW5reSBmdW5jc1tdID0gewoJZnVuYzAwMSwKCWZ1bmMwMDIsCglmdW5jMDAzLAoJZnVuYzAwNCwKCWZ1bmMwMDUsCglmdW5jMDA2LAoJZnVuYzAwNywKCWZ1bmMwMDgsCglmdW5jMDA5Cn07CgppbnQgbWFpbih2b2lkKQp7CglpbnQgaTsKCXNyYW5kKHRpbWUoTlVMTCkpOwoJZm9yIChpID0gMDsgaSA8IDIwOyBpKyspIHsKCQkocmFuZCgpJShzaXplb2YgZnVuY3MgLyBzaXplb2YgZnVuY3NbMF0pKVtmdW5jc10oKTsKCX0KfQo=