Skip to content

Instantly share code, notes, and snippets.

@spanners
spanners / U824-022__detect_loop_exit.md
Last active September 8, 2021 16:26
U824-022 Detection of stable loop exit conditions

Now that you have reenabled the warning regarding the stability of loop conditions, I suggest you extend it to loop exit conditions, that is, conditions in an "exit when " or conditions of an if-statement that consists in a single exit or return statement. So I would expect warnings not only on the first loop below (as done currently) but also on the two last loops:

procedure P is
   procedure A (X : Integer) is
  • --flow-show-gg runs Debug_Print_Generated_Contracts.

  • look at the function Create_JSON_File of gnat2why-driver.adb, it creates the .spark JSON format file

P811-021 visibility violations

Status

The assertion in foo.patch handles the following categories of crash:

  1. formal containers

How to enforce visiblity rule

@spanners
spanners / keybase.md
Last active September 10, 2019 13:55
keybase.io Verification

Keybase proof

I hereby claim:

  • I am spanners on github.
  • I am simonbuist (https://keybase.io/simonbuist) on keybase.
  • I have a public key ASDtmRxC9N3SfDa81925cBAn4y2hdjIIH20PEbnxayZZXQo

To claim this, I am signing this object:

From the book "59 Seconds" by Richard Wiseman

Research by psychologists Robert Emmons and Michael McCullough discovered that people who express gratitude for things, people and places that they are appreciative of in their lives each day end up happier, healthier and more optimistic about the future. At the end of each day think through five things for which you are grateful – you may wish to keep a simple diary of these things (either in a journal, on your computer, or how about trying a gratitude blog online?!) or think them through to yourself in you head, or share your five things over dinner you’re your family/partner/friends/dog. Research indicates that by doing this for just 5 days you’ll soon become aware of increased levels of overall happiness and better general mood, which is likely to persist for several months. In his latest book :59 Seconds Professor Richard Wiseman suggests writing a daily diary for one week, focusing your gratitude for each day as follows:

Monday – Thanksgiving

List

@spanners
spanners / unix_command_to_python.py
Created August 28, 2013 12:06
A way of parsing unix command output
import unittest
from mock import patch
import subprocess
import csv
class UnixCommandParser(object):
def ls_l(self, directory="."):
self.command = ['ls', '-l', directory]