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
import z3 | |
z3.init("some_path") | |
def flatten(v, i, j): | |
formula = 0 | |
for k in range(0, j - i): | |
formula += pow(10, k) * v[j - k - 1] | |
return formula |
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 <random> | |
#include <map> | |
#include <iostream> | |
int main() | |
{ | |
using namespace std; | |
mt19937 engine; | |
discrete_distribution<> dist = {10, 20, 30, 40}; |