Basic solver for bamboo systems over lossy semirings done.