:- module mut.

:- interface.

:- import_module io.

:- pred main(io::di, io::uo) is det.

:- implementation.

:- mutable(x, int, 1, ground, [untrailed, attach_to_io_state]).

main(!IO) :-
    get_x(X, !IO),
    io.write_int(X, !IO),
    nl(!IO).
