This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef KLEE | |
#include <klee/klee.h> | |
#include <assert.h> | |
#endif | |
#ifndef KLEE | |
#include <string.h> | |
#include <stdio.h> | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <klee/klee.h> | |
#include <assert.h> | |
#define N (15) | |
#define SYM(x) { \ | |
klee_make_symbolic(&x, sizeof x, #x); \ | |
} | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <klee/klee.h> | |
#include <assert.h> | |
typedef enum { | |
NAT = 0, | |
COL = 1, | |
PET = 2, | |
DRI = 3, | |
SMO = 4 | |
} cols_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <klee/klee.h> | |
#include <assert.h> | |
#define N 8 | |
unsigned char queens[N]; | |
int abs(int x) | |
{ | |
return x >= 0 ? x: -x; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <klee/klee.h> | |
#include <assert.h> | |
typedef unsigned char byte; | |
#define N 5 | |
byte a[N * N]= | |
{ | |
/* A B C D E*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
FILE=${1-main.cc} | |
if [ ! -f "${FILE}" ] | |
then | |
cat << EOF > "${FILE}" | |
#include <klee/klee.h> | |
#include <assert.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate num; | |
use num::complex::Complex; | |
struct IFS | |
{ | |
max_iter: u64 | |
} | |
trait DDS<State> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <type_traits> | |
#define HAS_MEMBER(member) \ | |
template <typename T, typename = void> \ | |
struct has_##member : std::false_type {}; \ | |
template <typename T> \ | |
struct has_##member<T, std::void_t<decltype(std::declval<T>().member)>> : std::true_type {}; | |
struct WithBla { | |
int bla; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Find counter examples to the conjecture: | |
The orbit of all strictly positive natural numbers | |
through col3 ends up in either C[0] and C[1]. | |
""" | |
# Ignores PEP8 and pylint for brevity and math-friendly notation. | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef KLEE | |
#include <klee/klee.h> | |
#include <assert.h> | |
#endif | |
#include <stdbool.h> | |
#ifndef KLEE | |
#include <stdio.h> | |
#endif |
NewerOlder