Skip to content

Commit

Permalink
forgot to add Prefix to branch tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
mbellotti committed May 24, 2023
1 parent 3e7a37a commit 6871092
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 6 additions & 12 deletions llvm/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,21 +203,15 @@ func (c *Compiler) processSpec(root ast.Node, isImport bool) ([]*ast.AssertionSt
c.globalVariable(rawid, value, d.Position())
case *ast.InfixExpression:
if n.Value.TokenLiteral() == "COMPOUND_STRING" {
value := c.compileValue(d)
rawid := n.Name.RawId()
s := c.specs[rawid[0]]
//s.DefineSpecVar(rawid, value)
s.DefineSpecType(rawid, value.Type())
c.globalVariable(rawid, value, d.Position())
name := n.Name.IdString()
r := c.compileCompoundGlobal(name, n.Value.(*ast.InfixExpression))
c.storeGlobal(name, r)
}
case *ast.PrefixExpression:
if n.Value.TokenLiteral() == "COMPOUND_STRING" {
value := c.compileValue(d)
rawid := n.Name.RawId()
s := c.specs[rawid[0]]
//s.DefineSpecVar(rawid, value)
s.DefineSpecType(rawid, value.Type())
c.globalVariable(rawid, value, d.Position())
name := n.Name.IdString()
r := c.compileCompoundGlobal(name, n.Value.(*ast.InfixExpression))
c.storeGlobal(name, r)
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions smt/rules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ func TagRule(ru Rule, branch string, block string) Rule {
r.Y = TagRule(r.Y, branch, block)
r.Tag(branch, block)
return r
case *Prefix:
r.X = TagRule(r.X, branch, block)
r.Tag(branch, block)
return r
case *Ite:
r.Cond = TagRule(r.Cond, branch, block)
r.T = TagRules(r.T, branch, block)
Expand Down

0 comments on commit 6871092

Please sign in to comment.