This file contains hidden or 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
use std::rc::Rc; | |
// Environment-passing lambda calculus interpreter in Rust | |
#[derive(Debug, Clone, PartialEq)] | |
enum LC { | |
Var(String), | |
App(Box<LC>, Box<LC>), | |
Abs(String, Box<LC>), | |
Lit(u32), | |
Incr(Box<LC>), | |
} |
This file contains hidden or 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 sys | |
import math | |
import struct | |
import random | |
import requests | |
from z3 import * | |
MASK = 0xFFFFFFFFFFFFFFFF | |
# xor_shift_128_plus algorithm |