semigeneralized code