I was in Iran in 2012, and in USA this summer(July, 2017).
First of all, my ESTA was denied(I'm an EU citizen). I had to show up at the US embassy of my country and pay a $200 fee for visa processing. It was accepted, but it doesn't really end there.
Landing at JFK, I was taken by homeland security to a room with a bunch of other people. They took my luggage and I had to stay for almost two hours(nearly missing my connecting flight to LAX!) with no explanation. No phones allowed, no bathroom breaks allowed, no communication from them at all. Extremely uncomfortable. The authorities were very rude in the process and offered no insight as to why I was held back. When engaging them constructively asking of a time horizon, I was told to shut up and sit down. Pretty much prison conditions.
Eventually, they just gave me a passport and grunted at me, and I had to basically sprint all across JFK to catch my flight.
So it doesn't close the door as to going to USA. However, you should consider if it's really worth it, because likely you'll receive the same treatment as above.
This is coming from a nordic looking male with a Scandinavian passport
anecdotal accounts I've read online, it seems vanishingly unlikely your visa will get declined solely on the basis of past tourist visits to nations designated state sponsors of terrorism
On the contrary all the anecdotal online new I read implies it is incrementally more difficult and stressful after undertaking such a trip although not impossible at all.