mostly_uniq1.m:009: In `my_main'(di, uo): mostly_uniq1.m:009: error: `multi' is not a valid determinism for a predicate mostly_uniq1.m:009: that has I/O state arguments. The valid determinisms for mostly_uniq1.m:009: such predicates are `det', `cc_multi' and `erroneous', mostly_uniq1.m:009: since the I/O state can be neither duplicated nor mostly_uniq1.m:009: destroyed. mostly_uniq1.m:023: In clause for `my_main(di, uo)': mostly_uniq1.m:023: in argument 2 of call to predicate `io.write_int'/3: mostly_uniq1.m:023: mode error: variable `STATE_VARIABLE_IO_0' has mostly_uniq1.m:023: instantiatedness `mostly_unique', mostly_uniq1.m:023: expected instantiatedness was `unique'. mostly_uniq1.m:023: This kind of uniqueness mismatch is usually caused by mostly_uniq1.m:023: doing input/output or some other kind of destructive mostly_uniq1.m:023: update in a context where it can be backtracked over, mostly_uniq1.m:023: such as the condition of an if-then-else.