Skip to content

Commit

Permalink
feat(eo-phi-normalizer): add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Dec 16, 2024
1 parent 3156e05 commit 56f5f02
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
31 changes: 17 additions & 14 deletions eo-phi-normalizer/test/eo/phi/dataization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ tests:
object: |
⟦ a ↦ ⟦ Δ ⤍ 01- ⟧, b ↦ ⟦ Δ ⤍ 01- ⟧, c ↦ ⟦ Δ ⤍ 01- ⟧, d ↦ ⟦ Δ ⤍ 01- ⟧, λ ⤍ Package ⟧
# FIXME: fails
# TODO #636:30min fails
# - name: "cross-reference (1)"
# dependencies: []
# input: |
Expand All @@ -176,7 +176,7 @@ tests:
# object: |
# NOT ⟦ x ↦ ⊥, λ ⤍ Package ⟧

# FIXME: fails
# TODO #636:30min fails
# - name: "cross-reference (2)"
# dependencies: []
# input: |
Expand All @@ -185,7 +185,7 @@ tests:
# object: |
# NOT ⟦ x ↦ ⊥, λ ⤍ Package ⟧

# FIXME: fails
# TODO #636:30min fails
# - name: "cross-reference + dispatch (1)"
# dependencies: []
# input: |
Expand All @@ -194,7 +194,7 @@ tests:
# object: |
# NOT ⟦ x ↦ ⊥, λ ⤍ Package ⟧

# FIXME: fails
# TODO #636:30min fails
# - name: "cross-reference + dispatch (1)"
# dependencies: []
# input: |
Expand All @@ -203,7 +203,7 @@ tests:
# object: |
# NOT ⟦ x ↦ ⊥, λ ⤍ Package ⟧

# FIXME: fails
# TODO #636:30min fails
# - name: "cross-reference + dispatch (2)"
# dependencies: []
# input: |
Expand All @@ -212,7 +212,7 @@ tests:
# object: |
# NOT ⟦ x ↦ ⊥, λ ⤍ Package ⟧

# FIXME: fails
# TODO #636:30min fails
# - name: "cross-reference + dispatch (3)"
# dependencies: []
# input: |
Expand All @@ -221,7 +221,7 @@ tests:
# object: |
# NOT ⟦ x ↦ ⊥, λ ⤍ Package ⟧

# FIXME: fails
# TODO #636:30min fails
# - name: "interleaving ρ and other dispatches"
# dependencies: []
# input: |
Expand Down Expand Up @@ -309,7 +309,7 @@ tests:
output:
bytes: "00-"

# Missing int tests: div
# TODO #636:30min Missing int tests: div

- name: "bitwise and"
dependencies:
Expand Down Expand Up @@ -373,7 +373,7 @@ tests:
output:
bytes: "01-"

# Missing bytes tests: or, xor, slice, concat
# TODO #636:30min Missing bytes tests: or, xor, slice, concat

- name: "float times and plus (raw bytes)"
dependencies:
Expand Down Expand Up @@ -413,7 +413,7 @@ tests:
output:
object: "69.42"

# Missing float tests: gt, div
# TODO #636:30min Missing float tests: gt, div

- name: "string slice (raw bytes)"
dependencies:
Expand Down Expand Up @@ -478,7 +478,10 @@ tests:
output:
object: "11" # == 11

# Missing malloc tests: (all)
# Missing cage tests: (all)
# Missing io tests: (all)
# Other missing tests: dataized, error, seq, as_phi, rust, try
# TODO #636:30min Missing malloc tests: (all)

# TODO #636:30min Missing cage tests: (all)

# TODO #636:30min Missing io tests: (all)

# TODO #636:30min Other missing tests: dataized, error, seq, as_phi, rust, try
6 changes: 3 additions & 3 deletions eo-phi-normalizer/test/eo/phi/rules/new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ rules:
⌈ !b , ⟦ !τ ↦ !b, !B ⟧ ⌉(ρ ↦ ⟦ !τ ↦ !b, !B ⟧)
when:
- nf: '!b'
- nf: '⟦ !B ⟧' #TODO: change the condition, every object in !B should be in the nf
# TODO #636:30min Change the condition, every object in !B should be in the nf
- nf: '⟦ !B ⟧'
tests:
- name: 'Contextualization changes ξ'
input: ⟦ a ↦ ξ ⟧.a
Expand Down Expand Up @@ -80,7 +81,6 @@ rules:
output: ['⟦ a ↦ ⟦ b ↦ ⟦ a ↦ ⟦ b ↦ ∅ ⟧ (b ↦ ξ) ⟧ ⟧ ().a ⟧']
- name: Phi Paper - Example E1
input: ⟦ k ↦ ⟦ x ↦ ξ.t, t ↦ ∅ ⟧(t ↦ ⟦ρ ↦ ⟦⟧⟧) ⟧
# output: ['⟦ k ↦ ⟦ x ↦ ξ.t, t ↦ ⟦ρ ↦ ⟦⟧⟧ ⟧() ⟧']
output: ['⟦ k ↦ ⟦ t ↦ ⟦ρ ↦ ⟦⟧⟧, x ↦ ξ.t ⟧() ⟧']
- name: Phi Paper - Example E4 - dispatch on y
input: ⟦ k ↦ ⟦ x ↦ ∅, y ↦ ξ.x ⟧(x ↦ ⟦ρ ↦ ⟦⟧⟧).y ⟧
Expand Down Expand Up @@ -124,7 +124,7 @@ rules:
input: ⟦ m ↦ ⟦ x ↦ ξ.t, φ ↦ ⟦ t ↦ ⟦⟧ ⟧ ⟧.t(ρ ↦ ⟦ x ↦ ξ.t, φ ↦ ⟦ t ↦ ⟦⟧ ⟧ ⟧) ⟧
output: ['⟦ m ↦ ⟦ x ↦ ξ.t, φ ↦ ⟦ t ↦ ⟦⟧ ⟧ ⟧.φ.t(ρ ↦ ⟦ x ↦ ξ.t, φ ↦ ⟦ t ↦ ⟦⟧ ⟧ ⟧) ⟧']

# there's no B2 in the result
# TODO #636:30min There's no B2 in the result
- name: STAY
description: 'Application of a ρ-binding when ρ already exists'
pattern: |
Expand Down

0 comments on commit 56f5f02

Please sign in to comment.