dik...if the fire only heats the UFFI to higher temperatures without melting or burning the foam, then off-gassing will be increased and the foam will likely emit less formaldehyde in the future.
If the UFFI is consumed in the fire, then formaldehyde would be off-gassed and driven off by the fire...with the UFFI not being the only source of formaldehyde in the fire.
There have been studies on formaldehyde emission from MDF burning...see NFPA publications.
I believe the National Research Council-Canada (Canadian Research Council) has at least one publication on this.