write the c tick function sm tick() (only the tick function, not the main code) for this synchsm. assume a global state variable currstate has been defined, with valid enum values of sm init and sm go; a value of -1 indicates the first call to the tick function.