; or (B) an oath, affirmation, or declaration of allegiance to the foreign state, a political subdivision thereof, or a designated foreign terrorist organization is required for such office, post, or employment. (5) Making a formal renunciation of United States nationality before a diplomatic or consular officer of the United States in a foreign state, in such form as may be prescribed by the Secretary of State. (6) Making in the United States a formal written renunciation of nationality in such form as may be prescribed by, and before such officer as may be designated by, the Attorney General, while the United States is in a state of war and the Attorney General approves such renunciation as not contrary to the interests of national defense. (7) (A) Committing any act of treason against, or attempting by force to overthrow, or bearing arms against, the United States; (B) violating or conspiring to violate any provision of section 2383 of title 18, United States Code; (C) willfully performing any act in violation of section 2385 of such title