This game is a version of Rogue 5.2. It was originally written by Michael Toy, Ken Arnold, and Glenn Wichman, released in April 1982, and distributed with BSD. It is called V4 because it has more in common with the previous 4.x releases than with the 5.x versions which followed it.
The Roguelike Restoration Project updated Rogue 5.2 to run on modern systems.
The Roguelike Gallery's version has been further modified to work with dgamelaunch and to log the results of all games.
The source code can be downloaded.