Skip to content

Commit

Permalink
Fixed top-level negation parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mossr committed Aug 27, 2024
1 parent f5b5e81 commit 48add99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,10 @@ function parse_formula(ex)
ϕ = parse_formula(ϕ_ex)
ψ = parse_formula(ψ_ex)
return :(Until($ϕ, $ψ, $I))
else
elseif var [:¬, :!]
ϕ_inner = parse_formula(strip_negation(ex))
return :(Negation($ϕ_inner))
else
core = body.head == :block ? body.args[end] : body
if typeof(core) == Bool
return :(Atomic(value=$(esc(core))))
Expand Down

0 comments on commit 48add99

Please sign in to comment.