- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.1"
    uuid: 000c842e-c058-4eba-8a57-045ef7eda888
    creation_time: 2024-09-27T12:39:32Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''mutex-meet'' ''--set'' ''ana.activated[+]'' ''apron''
        ''--set'' ''ana.autotune.activated[-]'' ''octagon'' ''--sets'' ''ana.specification''
        ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: multithreaded
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    - name: rwlock_locked
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    ghost_updates:
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 716
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 710
        column: 3
        function: thr2
      updates:
      - variable: rwlock_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 696
        column: 3
        function: thr2
      updates:
      - variable: rwlock_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 692
        column: 3
        function: thr1
      updates:
      - variable: rwlock_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 690
        column: 3
        function: thr1
      updates:
      - variable: rwlock_locked
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.1"
    uuid: c9af09c4-93dc-4598-9da5-176ad1769229
    creation_time: 2024-09-27T12:39:32Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''mutex-meet'' ''--set'' ''ana.activated[+]'' ''apron''
        ''--set'' ''ana.autotune.activated[-]'' ''octagon'' ''--sets'' ''ana.specification''
        ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 717
        column: 3
        function: main
      value: '! multithreaded || (x == 0 || x == 3)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 717
        column: 3
        function: main
      value: '! multithreaded || (y == 0 || y == 3)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 717
        column: 3
        function: main
      value: '! multithreaded || (y == 0 || y == 3)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-ext/18_read_write_lock-pthread.i
        file_hash: 640f2537ee1134d51aea0c08ed10cc1d89c2a65b937ff07b07bc614e0b9289fc
        line: 717
        column: 3
        function: main
      value: '! multithreaded || (rwlock_locked || (x == 0 || x == 3))'
      format: c_expression
