$ swipl -O sat3.pl
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.3.15-7-gad4db9c)
Copyright (c) 1990-2015 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- num(_).
[Thread 1 (main) at Mon Jan 18 19:59:27 2016] pl-attvar.c:174: assignAttVar: Assertion failed: (__PL_ld->stacks.global.top)+8 <= (__PL_ld->stacks.global.max) && (__PL_ld->stac
ks.trail.top)+6 <= (__PL_ld->stacks.trail.max)
C-stack trace labeled "assert_fail":
[0] save_backtrace() at :? [0x7f6d261c484a]
[1] __assert_fail() at ??:? [0x7f6d2618838a]
[2] assignAttVar() at :? [0x7f6d2619375b]
[3] pl_dattvar_assign2_va() at pl-attvar.c:? [0x7f6d26193871]
[4] PL_next_solution() at ??:? [0x7f6d26128b37]
[5] query_loop() at :? [0x7f6d2615d88e]
[6] prologToplevel() at :? [0x7f6d2615e08b]
[7] PL_toplevel() at ??:? [0x7f6d2611b1dd]
[8] swipl(main+0x2d) [0x40083d]
[9] __libc_start_main() at ??:? [0x7f6d25b47b45]
[10] swipl(+0x881) [0x400881]
This is only reproducible with the -O flag, using Debian 8.1 (64-bit).
Let
sat3.pl
consist of:Then I get:
This is only reproducible with the
-O
flag, using Debian 8.1 (64-bit).