Skip to content

Instantly share code, notes, and snippets.

@noajshu
noajshu / ReproduceZ3Bug.cpp
Last active June 27, 2022 18:35
triggers error messages printed from pb_solver.cpp
#include "z3++.h"
#include <iostream>
#include <random>
struct RandomSource {
std::uniform_real_distribution<double> RandomDistribution;
unsigned RandomSeed;
std::mt19937 RandomGenerator;
RandomSource(unsigned RandomSeed)
: RandomDistribution(0.0, 1.0), RandomSeed(RandomSeed) {