Skip to content

Instantly share code, notes, and snippets.

View Mr-Slippery's full-sized avatar

Cornel Izbașa Mr-Slippery

View GitHub Profile
@Mr-Slippery
Mr-Slippery / taxi.c
Created November 19, 2020 22:06
Finding Ramanujan's taxicab number 1729 with KLEE
#include <klee/klee.h>
#include <assert.h>
#define N (15)
#define SYM(x) { \
klee_make_symbolic(&x, sizeof x, #x); \
}
int main() {
@Mr-Slippery
Mr-Slippery / turing.c
Created February 11, 2021 23:03
Find the Turing machine that will produce a desired string.
#ifdef KLEE
#include <klee/klee.h>
#include <assert.h>
#endif
#ifndef KLEE
#include <string.h>
#include <stdio.h>
#endif