halt/[0,1]
halt
halt(
+ExitCode)
Causes an exit from Prolog.
causes an exit from Prolog
halt/0
exits with a "success" exit status (0).
halt/1
exits with the exit status given by its ExitCode argument.
instantiation_error
type_error
abort/0
, break/0
ref-iex-int