Brainstorm

A rocket scientist’s plan to beat a murder rap by feigning insanity falls apart under the stress of the state mental hospital where he’s confined pending review of his condition.

And so an affair with the boss’s wife comes to an end.

The locus is the U.S. space program, one of the private research contractors.

The girl is suicidal, the husband rich and powerful.

The scientist is a toy in a Beverly Hills scavenger hunt early on.

A sympathetic doctor is there to confirm normalcy or insanity, the willful disobliging patient cannot be still.