Skip to content

Instantly share code, notes, and snippets.

View ADITYATIWARI342005's full-sized avatar

Aditya Tiwari ADITYATIWARI342005

View GitHub Profile
// Copyright The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// This is a MOCK IMPLEMENTATION FILE for LFX Application purposes.
//
// This file is NOT meant to be compiled - it's a reference implementation
// showing the key modifications with detailed comments explaining WHY each change is made.
// Phase 1: Unit Tests with Race Detector
// Test 1: Thread-safe multiRef
func TestMultiRefMapConcurrent(t *testing.T) {
// Copyright The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// This is a MOCK IMPLEMENTATION FILE for LFX Application purposes.
// It demonstrates the code changes needed for early scraping during WAL replay.
//
// This file is NOT meant to be compiled - it's a reference implementation
// showing the key modifications with detailed comments explaining WHY each change is made.
package prometheus
adityatiwari@DeathNote:~/temp/poppler/utils$ cd ~/temp/poppler/glib/tests/fuzzing
mkdir -p corpus
cp ~/temp/Sample-pdf.pdf corpus/
timeout 10 ./struct_text_fuzzer corpus/
# Check if it processed the PDF without crashing
echo $?
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 3329132474
// Fuzzer for PDF structured text parser
#include <stdint.h>
#include <stdlib.h>
#include <poppler.h>
// Recursive function to exercise structure tree parsing
static void exercise_structure_tree(PopplerStructureElementIter *iter)
{
if (!iter) {
\m4_TLV_version 1d: tl-x.org
\SV
// URL include paths:
m4_define(['m4_swerv_repo'], ['['https://raw.githubusercontent.com/stevehoover/Cores-SweRV/master/']'])
m4_define(['m4_swerv_src'], ['m4_swerv_repo['design/']'])
m4_define(['m4_swerv_config_src'], ['m4_swerv_repo['configs/snapshots/default/']'])
// Headers:
m4_sv_get_url(m4_swerv_config_src['pic_map_auto.h'])
m4_sv_get_url(m4_swerv_config_src['pic_ctrl_verilator_unroll.sv'])
@ADITYATIWARI342005
ADITYATIWARI342005 / operators.tlv
Created December 22, 2025 13:58
visualizationExampleGist
\m5_TLV_version 1d: tl-x.org
\SV
module top(input wire clk, input wire reset, input wire [31:0] cyc_cnt, output wire passed, output wire failed);
\TLV
$reset = *reset;
$cnt[3:0] = $reset ? 0 : >>1$cnt + 1;
/inv