Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 86bf3e2
  • /
  • examples
  • /
  • tactics
  • /
  • inline.ec
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:3f6c544a7a50de396a895afa7d6d7702b2df0719
directory badge Iframe embedding
swh:1:dir:4c2b921b14e43e10b9100a980555107760de3653
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
inline.ec
module F = {
  proc f () = {
    var r;

    r <- 0;
  }

  proc g () = {
    var s;

    s <- 1;
  }
}.

module G = {
  proc f () = {
    var t;

    F.g();
    t <- 2;
  }

  proc g () = {
    var u;

    F.f();
    u <- 3;
  }
}.

module Game = {
  proc main () = {
    F.f();
    G.g();
    F.g();
    G.f();
  }
}.

equiv inline_full_procedures : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline F.f G.g.
admitted.

equiv inline_star : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline *.
admitted.

equiv inline_blank : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline.
admitted.

equiv inline_module : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline F.
admitted.

equiv inline_procedure : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline f.
admitted.

equiv inline_minus_full_procedure : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline * - F.f.
admitted.

equiv inline_minus_procedure : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline * - f.
admitted.

equiv inline_minus_module : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline * - F.
admitted.

equiv inline_minuses : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline * - F - g.
admitted.

equiv inline_add_back : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline * - F F.
admitted.

equiv inline_remove_back : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline F - F.
admitted.

equiv inline_side : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline{1} *.
admitted.

equiv inline_occs : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline{1} (1 4).
admitted.

equiv inline_occs_pat : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline{1} (1 2) * - G.
admitted.

equiv inline_codepos : Game.main ~ Game.main : true ==> true.
proof.
proc.
inline {1} 3.
admitted.

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top