;;; TOOL: run-roundtrip
;;; ARGS: --stdout --fold-exprs --enable-threads

(module
  (memory 1 1 shared)
  (func
    i32.const 0 i32.const 0 atomic.notify drop
    i32.const 0 i32.const 0 i64.const 0 i32.atomic.wait drop
    i32.const 0 i64.const 0 i64.const 0 i64.atomic.wait drop

    i32.const 0 i32.atomic.load drop
    i32.const 0 i64.atomic.load drop
    i32.const 0 i32.atomic.load8_u drop
    i32.const 0 i32.atomic.load16_u drop
    i32.const 0 i64.atomic.load8_u drop
    i32.const 0 i64.atomic.load16_u drop
    i32.const 0 i64.atomic.load32_u drop

    i32.const 0 i32.const 0 i32.atomic.store
    i32.const 0 i64.const 0 i64.atomic.store
    i32.const 0 i32.const 0 i32.atomic.store8
    i32.const 0 i32.const 0 i32.atomic.store16
    i32.const 0 i64.const 0 i64.atomic.store8
    i32.const 0 i64.const 0 i64.atomic.store16
    i32.const 0 i64.const 0 i64.atomic.store32

    i32.const 0 i32.const 0 i32.atomic.rmw.add drop
    i32.const 0 i64.const 0 i64.atomic.rmw.add drop
    i32.const 0 i32.const 0 i32.atomic.rmw8.add_u drop
    i32.const 0 i32.const 0 i32.atomic.rmw16.add_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw8.add_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw16.add_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw32.add_u drop

    i32.const 0 i32.const 0 i32.atomic.rmw.sub drop
    i32.const 0 i64.const 0 i64.atomic.rmw.sub drop
    i32.const 0 i32.const 0 i32.atomic.rmw8.sub_u drop
    i32.const 0 i32.const 0 i32.atomic.rmw16.sub_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw8.sub_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw16.sub_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw32.sub_u drop

    i32.const 0 i32.const 0 i32.atomic.rmw.and drop
    i32.const 0 i64.const 0 i64.atomic.rmw.and drop
    i32.const 0 i32.const 0 i32.atomic.rmw8.and_u drop
    i32.const 0 i32.const 0 i32.atomic.rmw16.and_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw8.and_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw16.and_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw32.and_u drop

    i32.const 0 i32.const 0 i32.atomic.rmw.or drop
    i32.const 0 i64.const 0 i64.atomic.rmw.or drop
    i32.const 0 i32.const 0 i32.atomic.rmw8.or_u drop
    i32.const 0 i32.const 0 i32.atomic.rmw16.or_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw8.or_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw16.or_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw32.or_u drop

    i32.const 0 i32.const 0 i32.atomic.rmw.xor drop
    i32.const 0 i64.const 0 i64.atomic.rmw.xor drop
    i32.const 0 i32.const 0 i32.atomic.rmw8.xor_u drop
    i32.const 0 i32.const 0 i32.atomic.rmw16.xor_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw8.xor_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw16.xor_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw32.xor_u drop

    i32.const 0 i32.const 0 i32.atomic.rmw.xchg drop
    i32.const 0 i64.const 0 i64.atomic.rmw.xchg drop
    i32.const 0 i32.const 0 i32.atomic.rmw8.xchg_u drop
    i32.const 0 i32.const 0 i32.atomic.rmw16.xchg_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw8.xchg_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw16.xchg_u drop
    i32.const 0 i64.const 0 i64.atomic.rmw32.xchg_u drop

    i32.const 0 i32.const 0 i32.const 0 i32.atomic.rmw.cmpxchg drop
    i32.const 0 i64.const 0 i64.const 0 i64.atomic.rmw.cmpxchg drop
    i32.const 0 i32.const 0 i32.const 0 i32.atomic.rmw8.cmpxchg_u drop
    i32.const 0 i32.const 0 i32.const 0 i32.atomic.rmw16.cmpxchg_u drop
    i32.const 0 i64.const 0 i64.const 0 i64.atomic.rmw8.cmpxchg_u drop
    i32.const 0 i64.const 0 i64.const 0 i64.atomic.rmw16.cmpxchg_u drop
    i32.const 0 i64.const 0 i64.const 0 i64.atomic.rmw32.cmpxchg_u drop

))
(;; STDOUT ;;;
(module
  (type (;0;) (func))
  (func (;0;) (type 0)
    (drop
      (memory.atomic.notify
        (i32.const 0)
        (i32.const 0)))
    (drop
      (memory.atomic.wait32
        (i32.const 0)
        (i32.const 0)
        (i64.const 0)))
    (drop
      (memory.atomic.wait64
        (i32.const 0)
        (i64.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.load
        (i32.const 0)))
    (drop
      (i64.atomic.load
        (i32.const 0)))
    (drop
      (i32.atomic.load8_u
        (i32.const 0)))
    (drop
      (i32.atomic.load16_u
        (i32.const 0)))
    (drop
      (i64.atomic.load8_u
        (i32.const 0)))
    (drop
      (i64.atomic.load16_u
        (i32.const 0)))
    (drop
      (i64.atomic.load32_u
        (i32.const 0)))
    (i32.atomic.store
      (i32.const 0)
      (i32.const 0))
    (i64.atomic.store
      (i32.const 0)
      (i64.const 0))
    (i32.atomic.store8
      (i32.const 0)
      (i32.const 0))
    (i32.atomic.store16
      (i32.const 0)
      (i32.const 0))
    (i64.atomic.store8
      (i32.const 0)
      (i64.const 0))
    (i64.atomic.store16
      (i32.const 0)
      (i64.const 0))
    (i64.atomic.store32
      (i32.const 0)
      (i64.const 0))
    (drop
      (i32.atomic.rmw.add
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.add
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.add_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.add_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.add_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.add_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.add_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw.sub
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.sub
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.sub_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.sub_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.sub_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.sub_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.sub_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw.and
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.and
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.and_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.and_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.and_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.and_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.and_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw.or
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.or
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.or_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.or_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.or_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.or_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.or_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw.xor
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.xor
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.xor_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.xor_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.xor_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.xor_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.xor_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw.xchg
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.xchg
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.xchg_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.xchg_u
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.xchg_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.xchg_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.xchg_u
        (i32.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw.cmpxchg
        (i32.const 0)
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw.cmpxchg
        (i32.const 0)
        (i64.const 0)
        (i64.const 0)))
    (drop
      (i32.atomic.rmw8.cmpxchg_u
        (i32.const 0)
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i32.atomic.rmw16.cmpxchg_u
        (i32.const 0)
        (i32.const 0)
        (i32.const 0)))
    (drop
      (i64.atomic.rmw8.cmpxchg_u
        (i32.const 0)
        (i64.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw16.cmpxchg_u
        (i32.const 0)
        (i64.const 0)
        (i64.const 0)))
    (drop
      (i64.atomic.rmw32.cmpxchg_u
        (i32.const 0)
        (i64.const 0)
        (i64.const 0))))
  (memory (;0;) 1 1 shared))
;;; STDOUT ;;)
