let reset () = Tools.do_at_reset (); s.current <- Context.empty; s.symtab <- Symtab.empty; s.counter <- 0