Skip to content

Commit

Permalink
Update sdsl/* to use #lang rosette
Browse files Browse the repository at this point in the history
  • Loading branch information
emina committed Feb 28, 2016
1 parent 536ca9c commit 9a71501
Show file tree
Hide file tree
Showing 73 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion sdsl/bv/bv.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "lang/form.rkt" "lang/bvops.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/bv/lang/bvops.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require
(prefix-in $ (only-in rosette bv bveq bvslt bvsgt bvsle bvsge bvult bvugt bvule bvuge)))
Expand Down
4 changes: 2 additions & 2 deletions sdsl/bv/lang/program.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket [eq? ==])
(only-in "bvops.rkt" bv bv*))
Expand Down Expand Up @@ -153,4 +153,4 @@
(define t (trace* p))
(term->datum (trace-out t))
(asserts)
|#
|#
2 changes: 1 addition & 1 deletion sdsl/fsm/automaton.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "viz.rkt" (rename-in rosette/lib/synthax [choose ?]))

Expand Down
2 changes: 1 addition & 1 deletion sdsl/fsm/fsm.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "automaton.rkt" "query.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/fsm/lib.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require
rosette/lib/lift
Expand Down
2 changes: 1 addition & 1 deletion sdsl/fsm/query.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require
"automaton.rkt" "lib.rkt"
Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/basic.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "machine.rkt")
(provide (all-defined-out))
Expand Down
4 changes: 2 additions & 2 deletions sdsl/ifc/call.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "machine.rkt" )

Expand Down Expand Up @@ -168,4 +168,4 @@ m1k|#
(goto (pop m) (Rpc r))
(goto (push (pop m) (@ v (∨ Lv Lpc))) (Rpc r)))))
|#
|#
2 changes: 1 addition & 1 deletion sdsl/ifc/indistinguishable.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rosette/lib/match "machine.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/instruction.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rosette/lib/match rosette/lib/angelic "value.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/jump.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "machine.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/machine.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rosette/lib/match "value.rkt" "instruction.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/test.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "machine.rkt" "indistinguishable.rkt" "verify.rkt"
"basic.rkt" "jump.rkt" "call.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/value.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rosette/lib/match)

Expand Down
2 changes: 1 addition & 1 deletion sdsl/ifc/verify-EENI-demo.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "machine.rkt" "indistinguishable.rkt" "verify.rkt"
"basic.rkt" "jump.rkt" "call.rkt")
Expand Down
4 changes: 2 additions & 2 deletions sdsl/ifc/verify.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "machine.rkt" "indistinguishable.rkt")

Expand Down Expand Up @@ -90,4 +90,4 @@
[(list (instruction (? union? r) _) _ ...)
(sort (map object-name (union-values r)) string<? #:key symbol->string)]
[(list (instruction (? procedure? proc) _) ...)
(map object-name proc)]))
(map object-name proc)]))
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/builtins.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (for-syntax (only-in rosette make-list)) (only-in racket/syntax format-symbol)
"types.rkt"
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/env.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require syntax/id-table "types.rkt" "builtins.rkt")

Expand Down
4 changes: 2 additions & 2 deletions sdsl/synthcl/lang/errors.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(provide raise-arity-error raise-operator-arity-error
raise-no-common-type-error raise-bad-type-error
Expand All @@ -20,4 +20,4 @@
expr subexpr))

(define (raise-bad-form-error expected expr [subexpr #f])
(raise-syntax-error #f (format "expected ~a" expected) expr subexpr))
(raise-syntax-error #f (format "expected ~a" expected) expr subexpr))
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/forms.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require racket/stxparam racket/splicing
(for-syntax "types.rkt" "errors.rkt" (only-in racket make-list) (only-in syntax/stx stx-null?))
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/main.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (for-syntax "typecheck.rkt" "types.rkt"
(only-in rosette in-dict dict-keys)
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/operators.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (for-syntax "types.rkt" "errors.rkt" (only-in racket/syntax with-syntax*))
"types.rkt" (prefix-in model/ "../model/operators.rkt"))
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/queries.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "util.rkt" racket/stxparam
(only-in rackunit test-pred)
Expand Down
4 changes: 2 additions & 2 deletions sdsl/synthcl/lang/sugar.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require racket/syntax syntax/id-table "operators.rkt" "forms.rkt"
(for-template (only-in rosette #%app) "operators.rkt" "forms.rkt"))
Expand Down Expand Up @@ -30,4 +30,4 @@
[(expr ...)
(with-syntax ([(expr* ...) (map desugar (syntax->list stx))])
(quasisyntax/loc stx (expr* ...)))]
[_ stx]))
[_ stx]))
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/typecheck.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (for-template (only-in "forms.rkt" app-or-ref)
(only-in racket quote #%app #%datum)
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/types.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

; Provides a mapping from OpenCL type identifiers to
; the type instances / predicates in the OpenCL model.
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/lang/util.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "types.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/buffer.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "flags.rkt" "type.rkt" "pointers.rkt" "memory.rkt" "context.rkt" "work.rkt"
rosette/lib/match)
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/context.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "memory.rkt" rosette/lib/match)

Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/errors.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(provide raise-conversion-error raise-pointer-cast-error raise-context-error)

Expand Down
4 changes: 2 additions & 2 deletions sdsl/synthcl/model/flags.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(provide (all-defined-out))

Expand All @@ -10,4 +10,4 @@
(define-flags
[CL_MEM_READ_WRITE 1]
[CL_MEM_WRITE_ONLY 2]
[CL_MEM_READ_ONLY 4])
[CL_MEM_READ_ONLY 4])
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/kernel.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/syntax format-symbol) "context.rkt" "buffer.rkt" "program.rkt" "errors.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/memory.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "errors.rkt" "work.rkt" "type.rkt" "reals.rkt"
(only-in "pointers.rkt" gen:pointer)
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/objects.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "type.rkt" "context.rkt" "queue.rkt" "program.rkt" "kernel.rkt" "buffer.rkt"
rosette/lib/match)
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/operators.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "type.rkt" "reals.rkt"
(only-in rosette [/ @/] [bitvector->integer bv->int] [sqrt @sqrt]))
Expand Down
4 changes: 2 additions & 2 deletions sdsl/synthcl/model/pointers.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "type.rkt" "reals.rkt" "errors.rkt"
(for-syntax (only-in racket/syntax format-id)))
Expand Down Expand Up @@ -106,4 +106,4 @@
(pointer-ref bb* 5)
(pointer-set! bb* 5 #t)
(pointer-set! bb* 6 10)
(pointer-ref bb* 5)|#
(pointer-ref bb* 5)|#
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/program.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (for-syntax (only-in rosette/lib/util/syntax read-module)
(only-in racket filter-map))
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/queue.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "context.rkt" "buffer.rkt" "kernel.rkt"
"work.rkt" "runtime.rkt" "memory.rkt"
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/reals.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "type.rkt" "errors.rkt"
rosette/lib/match (only-in racket/syntax format-symbol)
Expand Down
4 changes: 2 additions & 2 deletions sdsl/synthcl/model/runtime.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require "memory.rkt" "reals.rkt" "type.rkt" "pointers.rkt")

Expand Down Expand Up @@ -63,4 +63,4 @@
((local-pointer-set! self) val))

(define (pointer->list self)
(list ((local-pointer-get self))))])
(list ((local-pointer-get self))))])
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/type.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(provide type? type-name type-base gen:type)

Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/model/work.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette


(provide current-work-size current-global-id
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/test/memory.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rackunit rackunit/text-ui rosette/lib/roseunit
"../model/memory.rkt" "../model/work.rkt"
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/test/operators.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rackunit rackunit/text-ui rosette/lib/roseunit
(prefix-in $ "../model/operators.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/test/reals.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rackunit rackunit/text-ui rosette/lib/roseunit "../model/reals.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/synthcl/test/work.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require rackunit rackunit/text-ui rosette/lib/roseunit "../model/work.rkt")

Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/alanon_arkansas_16.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/alanon_arkansas_2.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/alanon_arkansas_4.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/alanon_arkansas_8.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/imdb250_16.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/imdb250_2.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/imdb250_4.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/imdb250_8.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/itunes100_16.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
2 changes: 1 addition & 1 deletion sdsl/websynth/benchmarks/itunes100_2.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang s-exp rosette
#lang rosette

(require (only-in racket/runtime-path define-runtime-path))
(require "../dom.rkt")
Expand Down
Loading

0 comments on commit 9a71501

Please sign in to comment.