Mercurial > hg > Papers > 2019 > oshiro-thesis
view final_pre/src/csds.agda @ 11:ef87093f92d4
add pdf
author | e155702 |
---|---|
date | Sun, 17 Feb 2019 17:13:37 +0900 |
parents | 0e8b9646d43f |
children |
line wrap: on
line source
record ds0 : Set where field a : Int b : Int record ds1 : Set where field c : Int cs2 : CodeSegment ds1 ds1 cs2 = cs id cs1 : CodeSegment ds1 ds1 cs1 = cs (\d -> goto cs2 d) cs0 : CodeSegment ds0 ds1 cs0 = cs (\d -> goto cs1 (record {c = (ds0.a d) + (ds0.b d)})) main : ds1 main = goto cs0 (record {a = 100 ; b = 50})