?- A in 0..1, (A#<==>A)#/\A mod A#>A/ -1. false, unexpected. ?- A = 1, A in 0..1, (A#<==>A)#/\A mod A#>A/ -1. A = 1 ; false.
exit:user:t3nr2^0^(9440/4)^uxtestsample((A/B#\=C,A#<==>D),c:5). ER = (_A/_C#\=_D,_A#<==>_B)-(c:5), freeze:freeze(_A,(user:(_A==0)->true;user:(_A==1))), freeze:freeze(_B,(user:(_B==0)->true;user:(_B==1))) ; ... . ?- gs_boolgoal(A,0,0), gs_boolgoal(D,0,0), uxtestsample((A/B#\=C,A#<==>D),R). call:user:5^findall(v(A,B,C,D),(qs3([B,C]),(A/B#\=C,A#<==>D),labeling([],[B,C]),member(v(A,B,C,D),[v(0,-2,-2,0),v(0,-2,-1,0),v(0,-2,1,0),v(0,-2,2,0),v(0,-1,-2,0),v(0,-1,-1,0),v(0,-1,1,0),v(0,-1,2,0),v(0,1,-2,0),v(0,1,-1,0),v(0,1,1,0),v(0,1,2,0),v(0,2,-2,0),v(0,2,-1,0),v(0,2,1,0),v(0,2,2,0),v(1,-1,-2,1),v(1,-1,0,1),v(1,-1,1,1),v(1,-1,2,1),v(1,1,-2,1),v(1,1,-1,1),v(1,1,0,1),v(1,1,2,1)])),E). thread 'main' panicked at 'index out of bounds: the len is 918315 but the index is 918563', src/machine/machine_state_impl.rs:70:17 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
user:0^(256/3)^uxtestsample(A#>B-max(C,D)).
call:4^uxtestsample_to((A in{1}\/{3},B#>C mod (D mod (E mod F)))).Price: 2317
?- atom_chars(\\, Chars). error: exception thrown: error(existence_error(procedure, atom_chars/2), atom_chars/2)
(defun rusty-copyline () (interactive) (re-search-forward "<td\\\(><a name=[0-9]*>\\\([0-9]*\\\)</a><td>\\\| +>\\\)[\t ]*\\\( /[*][*]/\\)?") (let ((nr (match-string 2)) (b (buffer-substring (point) (line-end-position)))) (setq b (replace-regexp-in-string "<br>" "\n" b)) (setq b (replace-regexp-in-string "\ " " " b)) (setq b (replace-regexp-in-string "\>" ">" b)) (next-line) (other-window 1) ;; (kill-new b))) (insert "?- " (format "/*%d*/" (string-to-number nr)) " catch((read(Goal_0),Goal_0),error(Error,_),true).\n") (insert b) (comint-send-input) (other-window 1) (recenter-top-bottom 1))) (global-set-key [f12] 'rusty-copyline)
git pull && cargo run1 ulrich@p0:/opt/gupu$ git clone https://github.com/mthom/rusty-wam --recursive Cloning into 'rusty-wam'... ... ulrich@p0:/opt/gupu$ cd rusty-wam/ ulrich@p0:/opt/gupu/rusty-wam$ sudo apt-get install cargo ulrich@p0:/opt/gupu/rusty-wam$ cargo build ulrich@p0:/opt/gupu/rusty-wam$ target/debug/rusty-wam git pull --recurse-submodules git clone https://github.com/mthom/rusty-wam --recursive