According to Organic Chemistry by Jonathan Clayden, Nick Greeves and Stuart Warren (2nd edition), the mechanism for alkene ozonolysis is given as
In Advanced Organic Chemistry, Part B: Reactions and Synthesis, Francis A. Carey and Richard J. Sundberg (5th edition), the ozonolysis of alkene is given as:
But mechanism of ozonolysis of alkynes is not given.
What is the correct mechanism of the ozonolysis of alkynes?