Skip to content

Commit

Permalink
snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Apr 15, 2022
1 parent 8fc7f08 commit eb80b16
Show file tree
Hide file tree
Showing 316 changed files with 1,104 additions and 1,104 deletions.
12 changes: 6 additions & 6 deletions compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ arrays › array_access
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $wimport_GRAIN$MODULE$runtime/gc_decRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $wimport_GRAIN$MODULE$runtime/exception_printException (param i32 i32) (result i32)))
(global $global_0 (mut i32) (i32.const 0))
(global $global_2 i32 (i32.const 0))
(global $x_1131 (mut i32) (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_2))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
Expand Down Expand Up @@ -48,13 +48,13 @@ arrays › array_access
(local.get $0)
(i32.const 7)
)
(global.set $global_0
(global.set $x_1131
(tuple.extract 0
(tuple.make
(local.get $0)
(call $wimport_GRAIN$MODULE$runtime/gc_decRef
(global.get $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$decRef)
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand All @@ -68,7 +68,7 @@ arrays › array_access
(i32.const 0)
(i32.load offset=4
(local.tee $1
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand Down
4 changes: 2 additions & 2 deletions compiler/test/__snapshots__/arrays.24453e6e.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ arrays › array1_trailing
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$malloc (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $wimport_GRAIN$MODULE$runtime/gc_malloc (param i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(i32.store
Expand Down
12 changes: 6 additions & 6 deletions compiler/test/__snapshots__/arrays.28fcc534.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ arrays › array_access4
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $wimport_GRAIN$MODULE$runtime/gc_decRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $wimport_GRAIN$MODULE$runtime/exception_printException (param i32 i32) (result i32)))
(global $global_0 (mut i32) (i32.const 0))
(global $global_2 i32 (i32.const 0))
(global $x_1131 (mut i32) (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_2))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
Expand Down Expand Up @@ -48,13 +48,13 @@ arrays › array_access4
(local.get $0)
(i32.const 7)
)
(global.set $global_0
(global.set $x_1131
(tuple.extract 0
(tuple.make
(local.get $0)
(call $wimport_GRAIN$MODULE$runtime/gc_decRef
(global.get $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$decRef)
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand All @@ -68,7 +68,7 @@ arrays › array_access4
(i32.const 0)
(i32.load offset=4
(local.tee $1
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand Down
12 changes: 6 additions & 6 deletions compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ arrays › array_access2
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $wimport_GRAIN$MODULE$runtime/gc_decRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $wimport_GRAIN$MODULE$runtime/exception_printException (param i32 i32) (result i32)))
(global $global_0 (mut i32) (i32.const 0))
(global $global_2 i32 (i32.const 0))
(global $x_1131 (mut i32) (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_2))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
Expand Down Expand Up @@ -48,13 +48,13 @@ arrays › array_access2
(local.get $0)
(i32.const 7)
)
(global.set $global_0
(global.set $x_1131
(tuple.extract 0
(tuple.make
(local.get $0)
(call $wimport_GRAIN$MODULE$runtime/gc_decRef
(global.get $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$decRef)
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand All @@ -68,7 +68,7 @@ arrays › array_access2
(i32.const 0)
(i32.load offset=4
(local.tee $1
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand Down
12 changes: 6 additions & 6 deletions compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ arrays › array_access3
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $wimport_GRAIN$MODULE$runtime/gc_decRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $wimport_GRAIN$MODULE$runtime/exception_printException (param i32 i32) (result i32)))
(global $global_0 (mut i32) (i32.const 0))
(global $global_2 i32 (i32.const 0))
(global $x_1131 (mut i32) (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_2))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
Expand Down Expand Up @@ -48,13 +48,13 @@ arrays › array_access3
(local.get $0)
(i32.const 7)
)
(global.set $global_0
(global.set $x_1131
(tuple.extract 0
(tuple.make
(local.get $0)
(call $wimport_GRAIN$MODULE$runtime/gc_decRef
(global.get $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$decRef)
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand All @@ -68,7 +68,7 @@ arrays › array_access3
(i32.const 0)
(i32.load offset=4
(local.tee $1
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand Down
12 changes: 6 additions & 6 deletions compiler/test/__snapshots__/arrays.74d79181.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ arrays › array_access5
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $wimport_GRAIN$MODULE$runtime/gc_decRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $wimport_GRAIN$MODULE$runtime/exception_printException (param i32 i32) (result i32)))
(global $global_0 (mut i32) (i32.const 0))
(global $global_2 i32 (i32.const 0))
(global $x_1131 (mut i32) (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_2))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
Expand Down Expand Up @@ -48,13 +48,13 @@ arrays › array_access5
(local.get $0)
(i32.const 7)
)
(global.set $global_0
(global.set $x_1131
(tuple.extract 0
(tuple.make
(local.get $0)
(call $wimport_GRAIN$MODULE$runtime/gc_decRef
(global.get $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$decRef)
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand All @@ -68,7 +68,7 @@ arrays › array_access5
(i32.const 0)
(i32.load offset=4
(local.tee $1
(global.get $global_0)
(global.get $x_1131)
)
)
)
Expand Down
4 changes: 2 additions & 2 deletions compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ arrays › array3
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$malloc (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $wimport_GRAIN$MODULE$runtime/gc_malloc (param i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(i32.store
Expand Down
4 changes: 2 additions & 2 deletions compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ arrays › array1_trailing_space
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $wimport_GRAIN$MODULE$runtime/gc_GRAIN$EXPORT$malloc (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $wimport_GRAIN$MODULE$runtime/gc_malloc (param i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(local $0 i32)
(i32.store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ basic functionality › binop2.4
(type $none_=>_none (func))
(import \"_grainEnv\" \"mem\" (memory $0 0))
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(i32.const -3)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ basic functionality › neg
(type $none_=>_none (func))
(import \"_grainEnv\" \"mem\" (memory $0 0))
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(i32.const -79)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ basic functionality › comp5
(type $none_=>_none (func))
(import \"_grainEnv\" \"mem\" (memory $0 0))
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(i32.const 9)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ basic functionality › modulo4
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $gimport_pervasives_% (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $gimport_pervasives_% (param i32 i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(call $gimport_pervasives_%
(call $wimport_GRAIN$MODULE$runtime/gc_incRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ basic functionality › land4
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $gimport_pervasives_& (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$pervasives\" \"&\" (func $gimport_pervasives_& (param i32 i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(call $gimport_pervasives_&
(call $wimport_GRAIN$MODULE$runtime/gc_incRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ basic functionality › lxor1
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $gimport_pervasives_^ (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$pervasives\" \"^\" (func $gimport_pervasives_^ (param i32 i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(call $gimport_pervasives_^
(call $wimport_GRAIN$MODULE$runtime/gc_incRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ basic functionality › lor1
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $gimport_pervasives_| (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$pervasives\" \"|\" (func $gimport_pervasives_| (param i32 i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(call $gimport_pervasives_|
(call $wimport_GRAIN$MODULE$runtime/gc_incRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ basic functionality › modulo6
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $gimport_pervasives_% (mut i32)))
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $wimport_GRAIN$MODULE$runtime/gc_incRef (param i32 i32) (result i32)))
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $gimport_pervasives_% (param i32 i32 i32) (result i32)))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(call $gimport_pervasives_%
(call $wimport_GRAIN$MODULE$runtime/gc_incRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ basic functionality › precedence1
(type $none_=>_none (func))
(import \"_grainEnv\" \"mem\" (memory $0 0))
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(i32.const 55)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ basic functionality › comp16
(type $none_=>_none (func))
(import \"_grainEnv\" \"mem\" (memory $0 0))
(import \"_grainEnv\" \"relocBase\" (global $wimport__grainEnv_relocBase i32))
(global $global_1 i32 (i32.const 0))
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
(export \"memory\" (memory $0))
(export \"_gmain\" (func $_gmain))
(export \"_start\" (func $_start))
(export \"GRAIN$TABLE_SIZE\" (global $global_1))
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
(func $_gmain (; has Stack IR ;) (result i32)
(i32.const -2)
)
Expand Down
Loading

0 comments on commit eb80b16

Please sign in to comment.