Reaction SMILES: NN1CCCC1.[CH3:7][N:8]([CH3:35])[C:9]1[C:10]2[S:30][C:29]3[CH:31]=[CH:32][CH:33]=[CH:34][C:28]=3[C:11]=2[N:12]=[C:13]([NH:15][C@H:16]2[CH2:20][CH2:19][N:18](C(OC(C)(C)C)=O)[CH2:17]2)[N:14]=1.CO.C(OCC)(=O)C>O1CCOCC1.Cl>[CH3:7][N:8]([CH3:35])[C:9]1[C:10]2[S:30][C:29]3[CH:31]=[CH:32][CH:33]=[CH:34][C:28]=3[C:11]=2[N:12]=[C:13]([NH:15][C@H:16]2[CH2:20][CH2:19][NH:18][CH2:17]2)[N:14]=1
Reactant: CN(C)c1nc(N[C@H]2CCN(C(=O)OC(C)(C)C)C2)nc2c1sc1ccccc12
Agent: Cl
Agent: NN1CCCC1
Solvent: CO
Solvent: CCOC(C)=O
Solvent: C1COCCO1
Product: CN(C)c1nc(N[C@H]2CCNC2)nc2c1sc1ccccc12
Temperature: 25 °C
Reaction time: 3 h
Yield: 93.4 %

Procedure:
A mixture of 2,4-dichlorobenzo[4,5]thieno[3,2-d]pyrimidine (1.0 g), 50% aqueous dimethyl amine (2 mL), ethanol (10 mL), and 1,4-dioxane (10 mL) was stirred at 40° C. for 1 h. Water was added to the reaction mixture, the resulting solids were collected by filtration and washed with water to obtain 2-chloro-4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidine (0.98 g). (2) To a mixture of 2-chloro-4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidine (0.10 g), Pd2(dba)3 (0.035 g), Xantphos (0.066 g), (S)-t-butyl 3-aminopyrrolidine-1-carboxylate (0.071 mL), and 1,4-dioxane (1 mL) was added sodium t-butoxide (0.11 g) under nitrogen atmosphere, and the mixture was stirred at 60° C. for 6 h and then at room temperature for 15 h. The reaction mixture was diluted with ethyl acetate and water, then the interlayer was removed by Celite filtration, and the organic layer was washed with saturated brine. The organic layer was dried with anhydrous magnesium sulfate, then the desiccant was removed by filtration, the filtrate was concentrated under reduced pressure, and the residue was purified by silica gel column chromatography (ethyl acetate/hexane=2:1) to obtain t-butyl (S)-3-(4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidin-2-ylamino)pyrrolidine-1-carboxylate (0.13 g). (3) To a solution of t-butyl (S)-3-(4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidin-2-ylamino)pyrrolidine-1-carboxylate (0.13 g) in 1,4-dioxane (1 mL) were added several drops of a solution (1 mL) of 4 M HCl in 1,4-dioxane and concentrated hydrochloric acid, and the mixture was stirred at room temperature for 3 h. To the reaction suspension was added a small amount of methanol, the mixture was stirred, followed by addition of ethyl acetate, and the solids were collected by filtration. The resulting solids were dissolved in ethyl acetate and 1 M aqueous sodium hydroxide, and the aqueous layer was extracted with ethyl acetate. The organic layer was dried with anhydrous magnesium sulfate, then the desiccant was removed by filtration, and the filtrate was concentrated under reduced pressure to obtain (S)-3-(4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidin-2-ylamino)pyrrolidine (0.092 g). (4) To a solution of (S)-3-(4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidin-2-ylamino)pyrrolidine (0.091 g) in DMF (2 mL) were added 4-trifluoromethoxyphenylacetic acid (0.096 g), HOBt (0.039 g), and EDC.HCl (0.17 g), and the mixture was stirred at room temperature for 1 h. The reaction solution was diluted with ethyl acetate, and then the organic layer was washed with saturated aqueous sodium hydrogencarbonate and saturated brine and dried with anhydrous magnesium sulfate. The desiccant was removed by filtration, and the filtrate was concentrated under reduced pressure. The residue was purified by silica gel column chromatography (chloroform/methanol=40:1) to obtain white solid 1-((S)-3-(4-dimethylamino-benzo[4,5]thieno[3,2-d]pyrimidin-2-ylamino)pyrrolidin-1-yl)-2-(4-trifluoromethoxy-phenyl)ethanone (0.024 g).