Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:abarbu/icfp2013
- Loading branch information
Showing
3 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
;; TOOD: something | ||
(declare (uses rpc secret hobostuff)) | ||
(use medea) | ||
;; For now lets just test if this can call something | ||
(display "Using secret ") | ||
(display my-secret) | ||
(display "\n") | ||
(display "call result was") | ||
(define train_results (make-train-call my-secret 3 '())) | ||
(display train_results) | ||
(display "\n") | ||
(display "Eval of above\n") | ||
(display (make-eval-program-call my-secret (cdr (assoc 'challenge train_results)) (list "0x00000000000001" "0xEFFFFFFFFFFFFF"))) | ||
(display "Eval of shift left\n") | ||
(display (make-eval-program-call my-secret "(lambda (x) (shl1 x))" (list "0x00000000000001" "0xEFFFFFFFFFFFFF"))) | ||
(display "Eval of shift right\n") | ||
(display (make-eval-program-call my-secret "(lambda (x) (shr1 x))" (list "0x00000000000001" "0xEFFFFFFFFFFFFF"))) | ||
(display "Status\n") | ||
(display (make-status-call my-secret)) | ||
(when #f | ||
;; TOOD: something | ||
(declare (uses rpc secret)) | ||
(use medea) | ||
;; For now lets just test if this can call something | ||
(display "Using secret ") | ||
(display my-secret) | ||
(display "\n") | ||
(display "call result was") | ||
(define train_results (make-train-call my-secret 3 '())) | ||
(display train_results) | ||
(display "\n") | ||
(display "Eval of above\n") | ||
(display (make-eval-program-call my-secret (cdr (assoc 'challenge train_results)) (list "0x00000000000001" "0xEFFFFFFFFFFFFF"))) | ||
(display "Eval of shift left\n") | ||
(display (make-eval-program-call my-secret "(lambda (x) (shl1 x))" (list "0x00000000000001" "0xEFFFFFFFFFFFFF"))) | ||
(display "Eval of shift right\n") | ||
(display (make-eval-program-call my-secret "(lambda (x) (shr1 x))" (list "0x00000000000001" "0xEFFFFFFFFFFFFF"))) | ||
(display "Status\n") | ||
(display (make-status-call my-secret))) | ||
|
||
(declare (uses rpc secret more-stuff)) | ||
(use stuff scheme2c-compatibility nondeterminism traversal) | ||
(solve-training-problem 8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters