sigmund
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Hello Jiri and Peter The last week has been spent on looking into several different topics, in order to get a clear idea of what we want to pursue as our semester project this semester. In particular we have looked at the following topics: 1. Code Generation -- Going from Petri nets to code 2. Code Verification -- Going from code to Petri nets 3. Two player timed workflow games 4. Overapproximation by constraint solving using SMT techniques 5. Precompiled successor generation -- Verifying specific property of a Petri net by compiling a custom model checker that verifies only that the property holds on the given net We have come to the conclusion that we do not want to pursue the topic of _overapproximation_ (4) any further, and unfortunately, we have not yet had the chance to look too deeply at _Precompiled successor generation_ (5). _Code generation_ (1) is also an area in which we wish to conduct a bit more research before taking a decision As it stands here is what we find interesting to do within each topic (should we pick it as our semester project). We've written a short summary of our research below. --- ## 1. Code Verification The goal of this preliminary research was to determine if it is possible to answer some questions about some source code, by first faithfully converting the program to a Petri-Net, and then verifying the property on the net, instead of the code. There exists some tools that use Promela to do this: * JavaPathFinder & Brandera translates Java source code into Promela language which is the input language of SPIN * Feaver produces Promela from C programs * VeriSoft In this regard, I present 2 papers talking about this. ### Transforming sources to petri nets: a way to analyze execution of parallel programs [Transforming sources to petri nets: a way to analyze execution of parallel programs](https://dl.acm.org/doi/10.5555/1416222.1416240) Questions one could ask about a program can usually be divided into different perspectives. One such question could, e.g., be if the program terminates. In this case, then the control-flow perspective would be apt. From this, we could imagine, that we could choose one perspective at a time to answer a specific question. In this way, the combinatorial explosion is mitigated. Some more examples of perspectives could be: * Control-Flow Graph (program’s structure) * System calls Sequences, * Synchronization Mechanisms, * Array bounds, * User-defined invariants, and * I/O behaviors ### Construction of Petri net based models for C programs [Construction of Petri net based models for C programs](https://cse.iitkgp.ac.in/~chitta/pubs/rep/thesisKulwant.pdf) Compilers are unfortunately often difficult to work with because of the optimizations they promise. The compilers should verify that the optimized program is behaviourally equivalent to the original, which is difficult. Apparently Petri-Net are very good for this purpose. Instead of using Petri-Nets, the author uses a formalism called _PRES+_, which stands for Petri net based Representation of Embedded Systems. It's an extension to Petri-Nets, which allow for input-places, output-places, variables, expressional assignments, and guards. The workflow presented in the paper: ![](https://i.imgur.com/MY0NnWs.png) Limitations: * Only integer variables and arrays must be used. * Every `scanf()` and `printf()` call must read and write exactly one integer variable respectively and there must not be any other function calls. * The program must contain exactly one function i.e. `main()` with `void` as its return type. * The program must not contain any `goto` statements (although the intermediate cfg may contain such statements). ### Conclusion As far as I could tell, there does not exist anything that can translate source-code to normal Petri-Nets with Inhibitor arcs without large limitations (e.g. perspectives). Even though there seems exist some work in the area, this seems to be a good niché to work on. As a long term vision, it would be pretty cool to have an option in TAPAAL under the import menu, where the user could import Java-code (or some other source code). Being able to verify certain properties of "real" programs using TAPAAL would also be pretty cool Challenges: * Recursion: How to handle the "call-stack" in a acceptable way. * Strings: How to represent things of variable length and domain. Maybe Colored PNs would work great here? --- ## 2. Two player timed workflow games We made an (we hope) exhaustive literature search for workflow games for any number of players and we didn't find anything concrete. The only vaguely related thing we found, was a paper using colored Petri nets to assign roles to actors, in order to model the situation where there's only certain kinds of people that are able to execute certain kinds of actions in a workflow. Other than that we were not able to find anything that dealt with the notion of players on the level of Petri nets. We searched for the literature in the following places: * Applications and Theory of Petri Nets and concurrency year 2007-2020 * Proceedings of the International Workshop on Algorithms & Theories for the Analysis of Event Data year 2015-2020 * dblp and Google scholar, where we searched for * Workflow games * MAS Petri nets * Petri agent * Petri workflow agent * Workflow agent * Petri workflow net agent * Wil van der aalst * Wil van der Aalst's homepage The initial idea we have for this project is to first take the notion of players and apply it to workflow nets. The workflow nets we reference here is the ones defined in van der Aalst's classic paper: [The application of Petri nets to workflow management](https://www.worldscientific.com/doi/abs/10.1142/S0218126698000043). After that we can take two routes. Either we first implement the newly defined theory into TAPAAL and then add more constructs into the theory (time guards, age invariants, and so on) until we have all the theoretical constructs that TAPAAL offers. After that we implement the extra constructs into TAPAAL. Or we add the extra constructs in the theory first and then implement the everything into TAPAAL. Ofcourse, the order depends entirely on a multitude of factors (how is workflow TAPAAL engine constructed, how long does it take to get theory into place, etc.), however this is just an initial view of the project. --- ## 3. Code Generation We wanted to find out if it is feasible to automatically generate code from a Petri net. The generated code could either be inferred from the behaviour of the model, and thus be generated as unit tests, or it could just be generated directly into source code. As mentioned above, this area is one where we want to research a little bit more before taking a decision on it. Some examples of papers in this area could be: * [Towards Automatic Code-generation from Process-partitioned Coloured Petri Nets](https://cs.au.dk/fileadmin/site_files/cs/research_areas/centers_and_projects/cpn/paper03.pdf), where they compile CPN down to Erlang. * [A Tool for Automated Test Code Generation from High-Level Petri Nets](https://link.springer.com/chapter/10.1007%2F978-3-642-21834-7_17) --- ## Conclusion As you can probably tell, we are a bit inconclusive about what we want to work on for this semester project, however we expect to narrow the list of topics down to at least two topics before our meeting. On the meeting on wednesday we will tell you the updated list of topics and then we will start a dialog on which topic to choose, which will result in a decision from us. We are very excited to see you on wednesday. Kind regards sv904e20

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully