Skip to content

Instantly share code, notes, and snippets.

module Interpreter where
import AbsLE
import Prelude
type RContext = [(String,Integer)]
eval :: RContext -> Exp -> Maybe Integer
eval context (ELet [] exp) = eval context exp
eval context (ELet ((Def id expr):ds) exp) =
Experiment reanaSpl {
description "Reliability Analysis of Software Product Lines"
Research Hypotheses {
RH1 {analysisTime featureFamily = featureProduct description "Analysis time for Feature Family is equal to analysis time for Feature Product"}
}
Experimental Design {
runs 8
}
module Interpreter where
import AbsLang
eval :: Exp -> Maybe Integer
eval (EInt x) = Just x
eval (EAdd e1 e2) = case eval e1 of
Nothing -> Nothing
type Expr = String
data Model = ModelStub
data FDTMC = FDTMCStub
data RDG a = RDGStub a
data ADD a = ADDStub a
instance Functor RDG where
fmap = undefined
public void dumpADD(String functionName, ADD function, String fileName) {
Pointer<?> output = CUtils.fopen(fileName, CUtils.ACCESS_WRITE);
String[] orderedVariableNames = variableStore.getOrderedNames();
Pointer<DdManager> newDD = dd.as(dddmp.DddmpLibrary.DdManager.class);
Pointer<Byte> ddname = Pointer.pointerToCString("ADD");
Pointer<dddmp.DddmpLibrary.DdNode> f = function.getUnderlyingNode().as(dddmp.DddmpLibrary.DdNode.class);
Pointer<Pointer<Byte>> varnames = Pointer.pointerToCStrings(orderedVariableNames);
package jadd;
import java.util.Map;
import org.bridj.IntValuedEnum;
import org.bridj.Pointer;
import bigcudd.BigcuddLibrary;
import bigcudd.BigcuddLibrary.Cudd_ReorderingType;
import bigcudd.DdNode;
@brenoafb
brenoafb / arch-linux-install
Last active May 17, 2020 12:19 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set colemak keymap
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#define MAX_PREFS 4
#define MAX_SLOTS 2
#define FREE 0
#define TAKEN 1
#define MAX_BUF 128
@brenoafb
brenoafb / main.c
Last active May 6, 2019 02:18
HC-SR04 MSP430
#include <msp430.h>
unsigned int overflow_count = 0;
unsigned int flag = 0;
unsigned int start = 0;
unsigned int end = 0;
unsigned int distance = 0; // cm
void port_setup();