Add enum to poly-stlc bench

This commit is contained in:
Max New 2014-02-23 11:49:20 -06:00 committed by Robby Findler
parent e2a0724636
commit 1ef73b146c
19 changed files with 67 additions and 27 deletions

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "app rule the range of the function is matched to the argument") > (define the-error "app rule the range of the function is matched to the argument")
72c72 73c73
< [(typeof Γ M (σσ_2)) < [(typeof Γ M (σσ_2))
--- ---
> [(typeof Γ M (σ_2 → σ_2)) > [(typeof Γ M (σ_2 → σ_2))
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -1,10 +1,10 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "the (([cons @ τ] v) v) value has been omitted") > (define the-error "the (([cons @ τ] v) v) value has been omitted")
46d45 47d46
< (([cons @ τ] v) v) < (([cons @ τ] v) v)
261,262c260 262,263c261
< M] < M]
< [#f #f])) < [#f #f]))
--- ---

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "the order of the types in the function position of application has been swapped") > (define the-error "the order of the types in the function position of application has been swapped")
72c72 73c73
< [(typeof Γ M (σσ_2)) < [(typeof Γ M (σσ_2))
--- ---
> [(typeof Γ M (σ_2 → σ)) > [(typeof Γ M (σ_2 → σ))
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "the type of cons is incorrect") > (define the-error "the type of cons is incorrect")
119c119 120c120
< (∀ a (a → ((list a) → (list a))))] < (∀ a (a → ((list a) → (list a))))]
--- ---
> (∀ a (a → ((list a) → a)))] > (∀ a (a → ((list a) → a)))]
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "the tail reduction returns the wrong value") > (define the-error "the tail reduction returns the wrong value")
165c165 166c166
< (in-hole E v_2) < (in-hole E v_2)
--- ---
> (in-hole E v_1) > (in-hole E v_1)
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "hd reduction acts on partially applied cons") > (define the-error "hd reduction acts on partially applied cons")
161c161 162c162
< (--> (in-hole E ((hd @ τ) (((cons @ τ) v_1) v_2))) < (--> (in-hole E ((hd @ τ) (((cons @ τ) v_1) v_2)))
--- ---
> (--> (in-hole E ((hd @ τ) ((cons @ τ) v_1))) > (--> (in-hole E ((hd @ τ) ((cons @ τ) v_1)))
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -1,13 +1,13 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "evaluation isn't allowed on the rhs of applications") > (define the-error "evaluation isn't allowed on the rhs of applications")
49,50c49 50,51c50
< (E M) < (E M)
< (v E))) < (v E)))
--- ---
> (E M))) > (E M)))
261c260 262c261
< M] < M]
--- ---
> M] > M]

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "lookup always returns int") > (define the-error "lookup always returns int")
108c108 109c109
< σ] < σ]
--- ---
> int] > int]
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -1,12 +1,12 @@
11c11 12c12
< (define the-error "no error") < (define the-error "no error")
--- ---
> (define the-error "variables aren't required to match in lookup") > (define the-error "variables aren't required to match in lookup")
107c107 108c108
< [(lookup (x σ Γ) x) < [(lookup (x σ Γ) x)
--- ---
> [(lookup (x σ Γ) x_2) > [(lookup (x σ Γ) x_2)
261c261 262c262
< M] < M]
--- ---
> M] > M]

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -276,3 +277,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -277,3 +278,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))

View File

@ -4,6 +4,7 @@
racket/list racket/list
racket/match racket/match
racket/contract racket/contract
math/base
"tut-subst.rkt") "tut-subst.rkt")
(provide (all-defined-out)) (provide (all-defined-out))
@ -278,3 +279,6 @@
(or (or
(equal? (car red-res) "error") (equal? (car red-res) "error")
(equal? t-type (type-check (car red-res)))))))) (equal? t-type (type-check (car red-res))))))))
(define (generate-enum-term)
(generate-term poly-stlc M #:i-th (random-natural #e10e200)))