[CH3:1][C:2]1[S:18][C:5]2[N:6]=[C:7]3[CH:14]=[CH:13][C:12]([C:15]([NH2:17])=O)=[CH:11][N:8]3[C:9](=[O:10])[C:4]=2[CH:3]=1.C(Cl)(Cl)Cl>P(Cl)(Cl)(Cl)=O>[CH3:1][C:2]1[S:18][C:5]2[N:6]=[C:7]3[CH:14]=[CH:13][C:12]([C:15]#[N:17])=[CH:11][N:8]3[C:9](=[O:10])[C:4]=2[CH:3]=12-Methyl-4-oxo-4H-pyrido[1,2-a]thieno[2,3-d]pyrimidine-7-carboxamide (Example 21), 2.6 g (0.010 mol), in 30 ml of phosphorus oxychloride and 30 ml of chloroform is refluxed on a steam bath for three hours. The chloroform and excess phosphorus oxychloride are evaporated in vacuo and the residue is treated with 200 ml of ice water. The resulting precipitate is filtered to give 2.1 g of 2-methyl-4-oxo-4H-pyrido[1,2-a]-thieno[2,3-d]pyrimidine-7-carbonitrile; mp 256°-258° C. after recrystallization from glacial acetic acid.