Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
Superoptimizer: exhaustively search for 2-op sequences that compute h1/h3/h5.
The goal is to find if any combination of 2 operations can compute:
h1(a) = (a ^ 0xC761C23C) ^ (a >> 19)
h3(a) = (a + 0xD3A2646C) ^ (a << 9)
h5(a) = (a ^ 0xB55A4F09) ^ (a >> 16)
Available operations:
package frc.robot.lib;
import io.github.jdiemke.triangulation.DelaunayTriangulator;
import io.github.jdiemke.triangulation.NotEnoughPointsException;
import io.github.jdiemke.triangulation.Triangle2D;
import io.github.jdiemke.triangulation.Vector2D;
import java.util.List;
import java.util.Optional;
public class BarycentricInterpolation {
import csv
from scipy import stats
# Initialize empty lists to store the data
age_data = []
roi_data = []
# Read the data from the CSV file
with open('combined_data.csv', 'r') as file:
csv_reader = csv.DictReader(file)
import csv
from scipy import stats
# Initialize empty lists to store the data
age_data = []
roi_data = []
# Read the data from the CSV file
with open('combined_data.csv', 'r') as file:
csv_reader = csv.DictReader(file)