Skip to content

Instantly share code, notes, and snippets.

@stanislaw
stanislaw / Math-UTF8.md
Last active March 19, 2022 17:12
Common Math Symbols in Unicode, my cheatsheet for writing notes.
#include <stdio.h>
#include "gtest/gtest.h"
class MinimalistPrinter : public ::testing::EmptyTestEventListener {
void OnTestProgramEnd(const ::testing::UnitTest& unit_test) {
std::cout << "elapsed time: " << unit_test.elapsed_time() << "\n";
}
};
mull (master)*$ make -f Makefile.macos generate_fixtures
cd lab && make synchronize_fixtures
cd ./custom_test/ && make synchronize_fixtures
mkdir -p ../../unittests/fixtures/custom_test/distance/
cp ./build/*.ll ../../unittests/fixtures/custom_test/distance/
cp ./build/*.bc ../../unittests/fixtures/custom_test/distance/
cd ./google_test/google_test/ && make synchronize_fixtures
mkdir -p ../../../unittests/fixtures/google_test/google_test/
cp build/*.bc ../../../unittests/fixtures/google_test/google_test/
cd ./simple_test/mutation_operators/and_or_replacement && make synchronize_fixtures
tail call void @llvm.dbg.value(metadata %class.VirtualFunction_testEBOTA_Test* %0, i64 0, metadata !4469, metadata !4480), !dbg !4481
%2 = tail call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0)), !dbg !4482
tail call void @llvm.dbg.value(metadata %"class.std::__1::basic_ostream"* @_ZNSt3__14coutE, i64 0, metadata !4483, metadata !4480), !dbg !4490
tail call void @llvm.dbg.value(metadata i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i64 0, metadata !4488, metadata !4480), !dbg !4504
%3 = tail call dereferenceable(160) %"class.std::__1::basic_ostream"* @_ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m(%"class.std::__1::basic_ostream"* nonnull dereferenceable(160) @_ZNSt3__14coutE, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i64 17), !dbg !4505
tail call void @llvm.dbg.value(metadata %"class.std::__1::basic_ostream"* %3, i64 0, metadata !4483, metadata !4480), !dbg
_DEFUN(run_vector_1,(vector, p, func, name, args),
int vector _AND
one_line_type *p _AND
char *func _AND
char *name _AND
char *args)
{
FILE *f;
int mag;
double result;
2017/11/08 12:10:50:613|UC> Log file at: /var/mobile/Containers/Data/Application/671F1DC8-63D5-4078-97FE-E4E6BAB47189/Library/Caches/Logs/com.uberchord-engineering.uberchord-ios 2017-11-08--11-10-50-536.log
MemoryEater> eating 400 megabytes.
MemoryEater> done.
SubscriptionsClient> App start, starting to get products and then verify receipt
AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
UserDataCache.getProgress()> start...
PerformanceMeter> Finished: getProgress[memory]. Time elapsed: 0.000003
[CRITICAL VALUE] PerformanceMeter> Finished: getProgress[storage]. Time elapsed: 2.938019
UserDataCache.getProgress()> start...
PerformanceMeter> Finished: getProgress[memory]. Time elapsed: 0.000007
@stanislaw
stanislaw / SongTrainerAudioHandle.swift
Created October 10, 2017 16:14
SongTrainerAudioHandle
class SongTrainerAudioHandle {
weak manager: AudioManagerInternal
var requiresPrivilegedAccessToAudioFeatureX {
return true
}
func useAudioFeatureX {
if manager.allowsUseOfFeatureXAtThisTime {
@stanislaw
stanislaw / FindingUnusedImports.sh
Last active June 16, 2017 18:24
Stats for Large Xcode projects
[Find unused Objective-C imports](https://github.com/dblock/fui)
```bash
fui --path=./ --verbose find
```
@stanislaw
stanislaw / mutation_testing_implementation_notes.md
Created June 7, 2017 13:28 — forked from hcoles/mutation_testing_implementation_notes.md
So you want to build a mutation testing system

So you want to build a mutation testing system

Introduction

There have been a lot mutation testing systems, but very few have them have seen succesfull use in industry.

This document is a set of notes that might be helpful for anyone thinking of implementing a mutation testing system for another language.

It represents some of the things we learnt while creating pitest. The choices made by pitest are not neccessarily the best choices for your system. Some of these choices are appropriate only because of the particular quirks of Java and the JVM, and some of them are simply the first idea that we had.

swiftc \
-emit-ir \
-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks \
-Xlinker -rpath -Xlinker /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks \
-lswiftCore jitswift.swift
; ModuleID = '-'
source_filename = "-"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.9"