Skip to content

Commit

Permalink
add a TODO on using only the order and remove the types
Browse files Browse the repository at this point in the history
  • Loading branch information
yihozhang committed Jan 24, 2024
1 parent 1ee1cab commit a49ded1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ impl EGraph {
binding: &IndexSet<ResolvedVar>,
actions: &GenericCoreActions<ResolvedCall, ResolvedVar>,
) -> Result<Program, Vec<TypeError>> {
// TODO: delete types and just keep the ordering
let mut types = IndexMap::default();
for var in binding {
types.insert(var.name, var.sort.clone());
Expand Down Expand Up @@ -189,6 +190,7 @@ impl EGraph {
actions: &ResolvedCoreActions,
target: &ResolvedAtomTerm,
) -> Result<Program, Vec<TypeError>> {
// TODO: delete types and just keep the ordering
let mut types = IndexMap::default();
for var in binding {
types.insert(var.name, var.sort.clone());
Expand Down

0 comments on commit a49ded1

Please sign in to comment.