Skip to content

Commit

Permalink
Use slice.copy; fix list notation
Browse files Browse the repository at this point in the history
  • Loading branch information
upamanyus committed Jun 30, 2024
1 parent fc853eb commit 7dc73da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goose.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (ctx Ctx) integerConversion(s ast.Node, x ast.Expr, width int) glang.Expr {

func (ctx Ctx) copyExpr(n ast.Node, dst ast.Expr, src ast.Expr) glang.Expr {
e := sliceElem(ctx.typeOf(dst))
return glang.NewCallExpr(glang.GallinaIdent("SliceCopy"),
return glang.NewCallExpr(glang.GallinaIdent("slice.copy"),
ctx.coqTypeOfType(n, e),
ctx.expr(dst), ctx.expr(src))
}
Expand Down
2 changes: 1 addition & 1 deletion internal/glang/coq.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func (le ListExpr) Coq(needs_paren bool) string {
for _, t := range le {
comps = append(comps, t.Coq(false))
}
return fmt.Sprintf("[%s]",
return fmt.Sprintf("[ %s ]",
indent(1, strings.Join(comps, "; ")))
}

Expand Down

0 comments on commit 7dc73da

Please sign in to comment.