Context : The Thirteenth Floor is a 1999 science fiction crime thriller film directed by Josef Rusnak and loosely based upon Simulacron-3 (1964), a novel by Daniel F. Galouye. 
Answer : Simulacron-3
Which is the basis of The Thirteenth Floor?