Skip to content

Commit

Permalink
fix apply doesn't allow a CTerm with constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevengre committed Sep 4, 2024
1 parent 40e6164 commit 94d3596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyk/src/pyk/cterm/cterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ def add_constraint(self, constraint: KInner) -> CSubst:

def apply(self, cterm: CTerm) -> CTerm:
"""Apply this `CSubst` to the given `CTerm` (instantiating the free variables, and adding the constraints)."""
_kast = self.subst(cterm.kast)
return CTerm(_kast, [self.constraint])
config = self.subst(cterm.config)
return CTerm(config, [self.constraint])


def cterm_build_claim(
Expand Down

0 comments on commit 94d3596

Please sign in to comment.