mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 19:03:45 +00:00
31 lines
572 B
Mathematica
31 lines
572 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module multidet_prune1.
|
|
:- interface.
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
:- import_module require.
|
|
|
|
main(!IO) :-
|
|
( if
|
|
( X = 1
|
|
; X = 2
|
|
; fail
|
|
),
|
|
q(X)
|
|
then
|
|
io.write_int(1, !IO)
|
|
else
|
|
io.write_int(2, !IO)
|
|
).
|
|
|
|
:- pred q(int::in) is det.
|
|
:- pragma no_inline(q/1).
|
|
|
|
q(_).
|