summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-11-18 11:34:57 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-11-18 11:34:57 +0100
commitc325eca1f275c5d3ad5248e2965122b7e26a5e2c (patch)
treea1119ba4d8e7e77557f480a34ebd12a62e4a0a50 /prolog
parent25da0d3ccc1bd03eaef0fd9ccf82bc4f720917b7 (diff)
Disable predicate autoloading in Prolog engine
So that for example append/3 and member/2 are not accessible to users when solving conc/3 and memb/2.
Diffstat (limited to 'prolog')
-rwxr-xr-xprolog/runner/main.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prolog/runner/main.pl b/prolog/runner/main.pl
index 303cb26..d945f51 100755
--- a/prolog/runner/main.pl
+++ b/prolog/runner/main.pl
@@ -19,6 +19,10 @@ prolog:error_message(time_limit_exceeded) -->
:- set_setting(pengine_sandbox:time_limit, 5.0).
:- set_setting(pengine_sandbox:thread_pool_size, 50).
+% Load required predicates then disable autoloading.
+:- autoload([verbose(false)]).
+:- set_prolog_flag(autoload, false).
+
% Start the server.
:- http_server(http_dispatch,
[port(3030),