Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 751 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 751 Bytes

Lesson 2: Representing Programs

Benchmark

# Convert the fnv1hash bril code to json, and run it using brili
cd bench
cat fnv1_hash.bril |  bril2json  | brili

# Use turnt to create the expected benchmark output (the hash) in fnv1_hash.out
turnt --save fnv1_hash.bril

Bril Basic Block Generation, CFG Generation, and Program Analysis

# Use turnt to verify the outputs of the basic block, cfg generation, and add instruction counting tool
turnt -e test --save benchmarks/*.bril